@@ -, +, @@
GetAvailability output for unavailable items
numbers for each item and that some are unavailable
[OPACBASEURL]/cgi-bin/koha/ilsdi.pl?service=GetAvailability&id=[BIBLIONUMBER]&id_type=biblio
and
[OPACBASEURL]/cgi-bin/koha/ilsdi.pl?service=GetAvailability&id=[ITEMNUMBER]&id_type=item
(Where the [OPACBASEURL] is the OPAC URL of your test instance,
[BIBLIONUMBER] and [ITEMNUMBER] are a record number and item number of
your choice.)
the tag itemcallnumber (not only the available's ones)
Example: 840.08 COR R
---
C4/ILSDI/Services.pm | 10 +++++-----
koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt | 4 +++-
2 files changed, 8 insertions(+), 6 deletions(-)
--- a/C4/ILSDI/Services.pm
+++ a/C4/ILSDI/Services.pm
@@ -966,15 +966,15 @@ sub _availability {
my $itemcallnumber = $item->itemcallnumber;
if ( $item->notforloan ) {
- return ( $biblionumber, 'not available', 'Not for loan', $location );
+ return ( $biblionumber, 'not available', 'Not for loan', $location, $itemcallnumber );
} elsif ( $item->onloan ) {
- return ( $biblionumber, 'not available', 'Checked out', $location );
+ return ( $biblionumber, 'not available', 'Checked out', $location, $itemcallnumber );
} elsif ( $item->itemlost ) {
- return ( $biblionumber, 'not available', 'Item lost', $location );
+ return ( $biblionumber, 'not available', 'Item lost', $location, $itemcallnumber );
} elsif ( $item->withdrawn ) {
- return ( $biblionumber, 'not available', 'Item withdrawn', $location );
+ return ( $biblionumber, 'not available', 'Item withdrawn', $location, $itemcallnumber );
} elsif ( $item->damaged ) {
- return ( $biblionumber, 'not available', 'Item damaged', $location );
+ return ( $biblionumber, 'not available', 'Item damaged', $location, $itemcallnumber );
} else {
return ( $biblionumber, 'available', undef, $location, $itemcallnumber );
}
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt
@@ -102,7 +102,7 @@
GetAvailability
Given a set of bibliographic or item identifiers, returns a
- list with availability of the items associated with the identifiers.
+ list with availability and call number of the items associated with the identifiers.
Parameters
@@ -146,6 +146,7 @@
<dlf:identifier>1</dlf:identifier>
<dlf:availabilitystatus>available</dlf:availabilitystatus>
<dlf:location>Bibliothèque Jean Prunier</dlf:location>
+ <dlf:itemcallnumber>iPR 8923 W6 L36 1990 c.1</dlf:itemcallnumber>
</dlf:simpleavailability>
</dlf:item>
</dlf:items>
@@ -158,6 +159,7 @@
<dlf:identifier>2</dlf:identifier>
<dlf:availabilitystatus>available</dlf:availabilitystatus>
<dlf:location>Bibliothèque Jean Prunier</dlf:location>
+ <dlf:itemcallnumber>iPR 8923 W6 L36 1990 c.2</dlf:itemcallnumber>
</dlf:simpleavailability>
</dlf:item>
</dlf:items>
--