e330b4672d
This patch adds a new system preference 'OPACAcquisitionDetail'. If it is enabled, information about items on order will be displayed on the OPAC detail page. Test plan: - switch on the OPACAcquisitionDetails pref. - set the AcqCreateItems pref to 'receiving'. - create some orders on 1 or more items. - go to the opac detail page and verify the "Holdings" tab contains the line "X item are on order." (at the bottom of the table containing the item list). - receive the items. - verify the number of items has decreased. - set the AcqCreateItems pref to 'ordering'. - create some orders on 1 or more items. - go to the opac detail page and verify the item list contains the items with the "on order" status. - receive the items. - verify the received items no longer have the the "on order" status. To test completely this feature, you should verify there is no regression on the pref OpacMaxItemsToDisplay, OpacSeparateHoldings and OpacSeparateHoldingsBranch. Signed-off-by: Paola Rossi <paola.rossi@cineca.it> Signed-off-by: Galen Charlton <gmc@esilibrary.com> Also removed some blank lines from the original patch and bumped up the DBRev. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
53 lines
2 KiB
HTML
53 lines
2 KiB
HTML
[% USE AuthorisedValues %]
|
|
|
|
[%#-
|
|
This include takes two parameters: an item structure
|
|
and an optional loan (issue) structure. The issue
|
|
structure is used by course reserves pages, which do
|
|
not use an API to fetch items that populates item.datedue.
|
|
-%]
|
|
|
|
[% IF ( item.itemlost ) %]
|
|
[% av_lib_include = AuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
|
|
[% IF ( av_lib_include ) %]
|
|
[% av_lib_include %]
|
|
[% ELSE %]
|
|
[% IF ( item.lostimageurl ) %]
|
|
<img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]" />
|
|
[% ELSE %]
|
|
Item lost
|
|
[% END %]
|
|
[% END %]
|
|
[% ELSIF ( item.datedue || issue.date_due ) %]
|
|
[% IF ( OPACShowCheckoutName ) %]
|
|
Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %]
|
|
[% ELSE %]
|
|
Checked out
|
|
[% END %]
|
|
[% ELSIF ( item.transfertwhen ) %]
|
|
In transit from [% item.transfertfrom %]
|
|
to [% item.transfertto %] since [% item.transfertwhen %]
|
|
[% ELSIF ( item.waiting ) %]
|
|
On hold
|
|
[% ELSIF ( item.withdrawn ) %]
|
|
Item withdrawn
|
|
[% ELSIF ( item.itemnotforloan ) %]
|
|
[% IF ( item.notforloanvalueopac ) %]
|
|
[% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
|
|
[% ELSE %]
|
|
Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
|
|
[% END %]
|
|
[% ELSIF ( item.notforloan_per_itemtype ) %]
|
|
Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
|
|
[% ELSIF ( item.damaged ) %]
|
|
[% av_lib_include = AuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %]
|
|
[% IF av_lib_include %]
|
|
[% av_lib_include %]
|
|
[% ELSE %]
|
|
Item damaged
|
|
[% END %]
|
|
[% ELSIF item.on_order %]
|
|
On order
|
|
[% ELSE %]
|
|
Available [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
|
|
[% END %]
|