From 8c781986eef08d136939c96f2920d73f54f38888 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 7 Mar 2019 16:04:25 +0000 Subject: [PATCH] Bug 22475: Shelving location doesn't appear on tags list view This patch corrects the tags list view so that shelving location appears correctly. Previously the template tried to display a variable which was empty. To test, apply the patch and locate an title which has both a tag applied to it and a shelving location defined for one or more items. Go to Tools -> Tags and click the tag to view titles with that tag. In the location column of the table the shelving location should appear along with library and call number. Signed-off-by: Liz Rea Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 54cf1df239e3b83ae5550e3ef499038dd5597d95) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt index 21402708b0..08ac2d63b2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE AuthorisedValues %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Tags › [% IF ( do_it ) %]Review › [% ELSE %]Review tags[% END %] @@ -48,7 +49,9 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% IF ( title.items ) %]
    [% FOREACH item IN title.items %]
  • [% item.branchname | html %] - [% item.location_description | html %] + + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] + [% IF ( item.itemcallnumber ) %] ([% item.itemcallnumber | html %]) [% END %] -- 2.39.5