renew_items()
Function:
renew_items ($cardnum, $pin = NULL, $items = NULL)
Purpose:
renew_items() needs to accept an array of $items and renew on those items. If no $items array is passed, all renewable items should be renewed.
Arguments:
$cardnum : (string) required The patron's library card number.
$pin : (string) optional The patron's PIN number or password.
$items : (array) optional A keyed array of unique identifiers of items to be renewed. Each key should be a unique item identifier, or item number and the value should be a variable name used to refer to the item in question. Because different ILSs will handle renewal's differently, the connector can interpret this however it likes. This convention is so that Locum can round-trip the data.
Array ($items)
(
[{$inum}] => (string) Item identifier/variable name
)Expected Result:
Array of renewal result information
(
[{$inum}] => Array
(
[num_renews] => (int) # of times this item has been renewed sinced checked out
[error] => (string) Error message if this item cannot be renewed
[varname] => (string) This is the variable name as passed to the function
[new_duedate] => (int) UNIX timestamp of the item's new due date. Original due date if the item could not be renewed.
)
)- Printer-friendly version
- Login or register to post comments



4 weeks 1 day ago
4 weeks 3 days ago
4 weeks 3 days ago
4 weeks 4 days ago
6 weeks 19 hours ago
7 weeks 4 days ago
19 weeks 4 days ago
1 year 29 weeks ago
1 year 31 weeks ago
1 year 37 weeks ago