Bugzilla – Attachment 48385 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-s.patch (text/plain), 3.30 KB, created by
Owen Leonard
on 2016-02-26 02:16:18 UTC
(
hide
)
Description:
Bug 15922 - Show authorized value description in staff client search results for lost, withdrawn, and damaged
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-02-26 02:16:18 UTC
Size:
3.30 KB
patch
obsolete
>From a33d8329fe86c51432c10b628d186389fa3b50dc 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 >Content-Type: text/plain; charset="utf-8" > >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. >--- > 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 65f35f1..7eacc02 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -1,4 +1,5 @@ > [% USE Koha %] >+[% USE AuthorisedValues %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -646,9 +647,9 @@ var holdForPatron = function () { > [% 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 %] >-- >1.7.10.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