From c86d4ff67b9ed824dd254fdf1a9232ab1e12ec53 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 16 Oct 2023 14:43:44 +0000 Subject: [PATCH] Bug 35059: Display item location on item details (catalogue/moredetail.pl) This patch updates the item details template so that item location is displayed along with information like collection and call number. The template has also been modified to correct the label "Item callnumber" to "Item call number." To test, apply the patch and update an item, if necessary, to add a shelving location. - View the bibliographic details page of the record. - Click the "Items" tab in the left-hand sidebar menu. - Under the "Item information" subheading you should see a line for "Shelving location" just after the "Item call number" line. - Confirm that the correct item location description is shown. Signed-off-by: Michaela Sieber Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/catalogue/moredetail.tt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 5e00e7b2e9..9274ff450e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -4,6 +4,7 @@ [% USE Koha %] [% USE Branches %] [% USE Price %] +[% USE AuthorisedValues %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -136,10 +137,16 @@ [% IF ( ITEM_DAT.ccode) %]
  • Collection: [% ITEM_DAT.ccode | html %]
  • [% END %] -
  • Item callnumber: [% ITEM_DAT.itemcallnumber | html %] 
  • +
  • Item call number: [% ITEM_DAT.itemcallnumber | html %]
  • [% IF ( ITEM_DAT.displaycopy ) %]
  • Copy number: [% ITEM_DAT.copyvol | html %] 
  • [% END %] + [% IF ( ITEM_DAT.location ) %] +
  • + Shelving location: + [% AuthorisedValues.GetByCode( 'LOC', ITEM_DAT.location ) | html %] +
  • + [% END %] [% IF ( ITEM_DAT.replacementprice ) %]
  • Replacement price: [% ITEM_DAT.replacementprice | $Price %] 
  • [% END %] -- 2.39.5