Bugzilla – Attachment 74617 Details for
Bug 15922
Show authorized value description in staff client search results for lost, withdrawn, and damaged
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15922: Show authorized value description in staff client search results for lost, withdrawn, and damaged
Bug-15922-Show-authorized-value-description-in-sta.patch (text/plain), 3.26 KB, created by
Nick Clemens (kidclamp)
on 2018-04-20 10:52:23 UTC
(
hide
)
Description:
Bug 15922: Show authorized value description in staff client search results for lost, withdrawn, and damaged
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-04-20 10:52:23 UTC
Size:
3.26 KB
patch
obsolete
>From 01832c18f967a505429e9c89f78bd9f66bfe0e25 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 25 Feb 2016 21:12:30 -0500 >Subject: [PATCH] Bug 15922: Show authorized value description in staff client > search results for lost, withdrawn, and damaged >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 127bd8c..5d1e1ab 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -3,6 +3,7 @@ > [% USE Biblio %] > [% USE KohaDates %] > [% SET footerjs = 1 %] >+[% USE AuthorisedValues %] > [% IF BiblioDefaultViewmarc %] > [% SET DetailPage="MARCdetail.pl" %] > [% ELSIF BiblioDefaultViewlabeled_marc %] >@@ -546,9 +547,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 %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15922
:
48385
|
48402
|
74616
| 74617