Skip to content

Commit

Permalink
isReservable from alma is "true" or "false" not "yes" or "no"
Browse files Browse the repository at this point in the history
  • Loading branch information
impara committed Jan 18, 2013
1 parent 3f79ea3 commit df11c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AlmaClient/AlmaClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ public function get_availability($alma_ids) {
$doc = $this->request('catalogue/availability', array('catalogueRecordKey' => $alma_ids));
foreach ($doc->getElementsByTagName('catalogueRecord') as $record) {
$data[$record->getAttribute('id')] = array(
'reservable' => ($record->getAttribute('isReservable') == 'yes') ? TRUE : FALSE,
'reservable' => ($record->getAttribute('isReservable') == 'true') ? TRUE : FALSE,
'available' => ($record->getAttribute('isAvailable') == 'yes') ? TRUE : FALSE,
);
}
Expand Down

0 comments on commit df11c61

Please sign in to comment.