+
+ [% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
+
+
+ Hold must be record level
+
+ [% ELSIF ( itemloo.available ) %]
+
+ [% ELSIF ( itemloo.override ) %]
+
+
+ [% ELSE %]
+
+
+ [% IF itemloo.not_holdable %]
+ [% IF itemloo.not_holdable == 'damaged' %]
+ Item damaged
+ [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
+ Age restricted
+ [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
+ Exceeded max holds per record
+ [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
+ Daily hold limit reached for patron
+ [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
+ Too many holds
+ [% ELSIF itemloo.not_holdable == 'notReservable' %]
+ Not holdable
+ [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
+ Patron is from different library
+ [% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %]
+ Cannot place hold from patron's library
+ [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
+ Patron already has hold for this item
+ [% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %]
+ Cannot be transferred to pickup library
+ [% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %]
+ Only pickup locations within the same hold group are allowed
+ [% ELSIF itemloo.not_holdable == 'noReservesAllowed' %]
+ No reserves are allowed on this item
+ [% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %]
+ Library is not a pickup location
+ [% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %]
+ No valid pickup location
+ [% ELSE %]
+ [% itemloo.not_holdable | html %]
[% END %]
-
- [% END # /IF force_hold_level %]
- |
-
- [% IF (itemloo.pickup_locations_count > 0) %]
-
- [% END %]
- |
- [% IF Koha.Preference('item-level_itypes') %]
-
- [% UNLESS ( noItemTypeImages ) %]
- [% IF ( itemloo.itemtype.image_location) %] [% END %]
[% END %]
- [% itemloo.itemtype.translated_description | html %]
- |
+
+ [% END # /IF force_hold_level %]
+
+
+ [% IF (itemloo.pickup_locations_count > 0) %]
+
+ [% END %]
+ |
+ [% IF Koha.Preference('item-level_itypes') %]
- [% itemloo.barcode | html %]
- |
-
- [% Branches.GetName( itemloo.homebranch ) | html %]
+ [% UNLESS ( noItemTypeImages ) %]
+ [% IF ( itemloo.itemtype.image_location) %] [% END %]
+ [% END %]
+ [% itemloo.itemtype.translated_description | html %]
|
+ [% END %]
+
+ [% itemloo.barcode | html %]
+ |
+
+ [% Branches.GetName( itemloo.homebranch ) | html %]
+ |
+
+ [% Branches.GetName( itemloo.holdingbranch ) | html %]
+ |
+ [% IF itemdata_ccode %]
- [% Branches.GetName( itemloo.holdingbranch ) | html %]
+ [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
|
- [% IF itemdata_ccode %]
-
- [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
- |
- [% END %]
+ [% END %]
+
+ [% itemloo.itemcallnumber | html %]
+ |
+
+ [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %]
+ |
+ [% IF itemdata_enumchron %]
- [% itemloo.itemcallnumber | html %]
+ [% itemloo.enumchron | html %]
|
+ [% END %]
+ [% IF ( itemloo.onloan ) %]
+
+ Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]
+ [% ELSE %]
|
- [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %]
- |
- [% IF itemdata_enumchron %]
-
- [% itemloo.enumchron | html %]
- |
- [% END %]
- [% IF ( itemloo.onloan ) %]
-
- Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]
- [% ELSE %]
- |
- [% IF ( itemloo.transfertwhen ) %]
- In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
- to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | html %]
- [% END %]
- [% END %]
+ [% IF ( itemloo.transfertwhen ) %]
+ In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
+ to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | html %]
+ [% END %]
+ [% END %]
- [% IF ( itemloo.reservedate ) %]
- [% IF ( itemloo.nocancel ) %]
- Can't be cancelled when item is in transit
+ [% IF ( itemloo.reservedate ) %]
+ [% IF ( itemloo.nocancel ) %]
+ Can't be cancelled when item is in transit
+ [% ELSE %]
+ [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
+ [% IF ( itemloo.canreservefromotherbranches ) %]
+ for [% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]
+ [% END %]
+ [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %]
+ [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since
+ [% IF ( itemloo.waitingdate ) %]
+ [% itemloo.waitingdate | $KohaDates %]
[% ELSE %]
- [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
- [% IF ( itemloo.canreservefromotherbranches ) %]
- for [% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]
+ [% IF ( itemloo.reservedate ) %]
+ [% itemloo.reservedate | html %]
[% END %]
- [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %]
- [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since
- [% IF ( itemloo.waitingdate ) %]
- [% itemloo.waitingdate | $KohaDates %]
- [% ELSE %]
- [% IF ( itemloo.reservedate ) %]
- [% itemloo.reservedate | html %]
- [% END %]
- [% END %].
- Cancel hold
- [% END # /IF itemloo.nocancel %]
- [% ELSE %]
- Not on hold
- [% END # /IF itemloo.reservedate %]
+ [% END %].
+ Cancel hold
+ [% END # /IF itemloo.nocancel %]
+ [% ELSE %]
+ Not on hold
+ [% END # /IF itemloo.reservedate %]
- [% IF itemloo.item_level_holds == "N" %]
- Item level hold not allowed from OPAC
- [% ELSIF itemloo.item_level_holds == "F" %]
- Item level hold forced from OPAC
- [% END %]
+ [% IF itemloo.item_level_holds == "N" %]
+ Item level hold not allowed from OPAC
+ [% ELSIF itemloo.item_level_holds == "F" %]
+ Item level hold forced from OPAC
+ [% END %]
- [% IF ( itemloo.itemlost ) %]
- [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]
- [% END %]
+ [% IF ( itemloo.itemlost ) %]
+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]
+ [% END %]
- [% IF ( itemloo.damaged ) %]
- [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]
- [% END %]
+ [% IF ( itemloo.damaged ) %]
+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]
+ [% END %]
- [% IF ( itemloo.withdrawn ) %]
- [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]
- [% END %]
+ [% IF ( itemloo.withdrawn ) %]
+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]
+ [% END %]
+
+ [% IF ( itemloo.notforloan ) %]
+ Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])
+ [% END %]
+ |
+
+ [% END # / UNLESS itemloo.hide %]
+ [% END # /FOREACH itemloo %]
+