Bug 15922: Show authorized value description in staff client search results for lost, withdrawn, and damaged
If an item in the staff client search results list is lost, withdrawn, or damaged, the actual authorized value description for each of those statuses should be displayed rather than the generic term. This patch adds use of the AuthorisedValues template plugin to output the correct description. To test, apply the patch and perform a catalog search in the staff client which will return results with various values for lost, damaged, and withdrawn. Confirm that the correct lost, damaged, or withdrawn status appears for each item rather than the generic term. Followed test plan, statuses appear as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
3c5843b156
commit
fdea02efce
|
|
@ -3,6 +3,7 @@
|
|||
[% USE Biblio %]
|
||||
[% USE KohaDates %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% USE AuthorisedValues %]
|
||||
[% IF BiblioDefaultViewmarc %]
|
||||
[% SET DetailPage="MARCdetail.pl" %]
|
||||
[% ELSIF BiblioDefaultViewlabeled_marc %]
|
||||
|
|
@ -543,9 +544,9 @@
|
|||
[% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname %][% END %]
|
||||
[% IF ( other_items_loo.location ) %][% other_items_loo.location %][% END %]
|
||||
[% IF ( other_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% other_items_loo.itemcallnumber |uri %]%22">[% other_items_loo.itemcallnumber %]</a>][% END %]
|
||||
[% IF ( other_items_loo.withdrawn ) %](Withdrawn)[% END %]
|
||||
[% IF ( other_items_loo.itemlost ) %](Lost)[% END %]
|
||||
[% IF ( other_items_loo.damaged ) %](Damaged)[% END %]
|
||||
[% IF ( other_items_loo.withdrawn ) %]([% AuthorisedValues.GetByCode( 'WITHDRAWN', other_items_loo.withdrawn ) %])[% END %]
|
||||
[% IF ( other_items_loo.itemlost ) %]([% AuthorisedValues.GetByCode( 'LOST', other_items_loo.itemlost ) %])[% END %]
|
||||
[% IF ( other_items_loo.damaged ) %]([% AuthorisedValues.GetByCode( 'DAMAGED', other_items_loo.damaged ) %])[% END %]
|
||||
[% IF ( other_items_loo.intransit ) %](In transit)[% END %]
|
||||
[% IF ( other_items_loo.onhold ) %](On hold)[% END %]
|
||||
[% IF ( other_items_loo.notforloan ) %][% other_items_loo.notforloan %][% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue