From 3afc13543ae9e456c5d7438bcc8faf3eae03057a Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Wed, 29 Jul 2020 11:01:29 +0200 Subject: [PATCH] Bug 22352: lists sent by mail, print location description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For patrons location codes aren't very useful, replace them with their descriptions as defined in authorised values. 1) Go to lists 2) Choose a list and send it at one of your emails 3) In the sent mail, watch the infos below the “Item” mention, location codes are displayed 4) Apply patch 5) Redo 1) and 2) 6) Location descriptions are displayed --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt index be952e2399..dc4d0db4a1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt @@ -1,4 +1,6 @@ [% USE raw %] +[% USE AuthorisedValues %] + Your list : [% shelfname | $raw %] @@ -150,7 +152,7 @@ Your list : [% shelfname | $raw %]
    [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
  • [% ITEM_RESULT.branchname | $raw %] - [% ITEM_RESULT.location | $raw %] + [% AuthorisedValues.GetByCode( 'LOC', ITEM_RESULT.location ) | html %] [% IF ITEM_RESULT.itemcallnumber %]([% ITEM_RESULT.itemcallnumber | $raw %])[% END %] [% ITEM_RESULT.barcode | $raw %]
  • [% END %] -- 2.11.0