From f347995482de7713a0e0f8ddd52f916c3d657e6e 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. For staff add descriptions. 1) Go to lists in Opac interface 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 7) Do the same with staff interface --- koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt | 4 +++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt index 0310e41c5b..38e3fc928c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt @@ -1,4 +1,6 @@ [% USE raw %] +[% USE AuthorisedValues %] + Your list: [% shelfname | $raw %] @@ -149,7 +151,7 @@ Your list: [% shelfname | $raw %]
    [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
  • [% ITEM_RESULT.branchname | $raw %] - [% ITEM_RESULT.location | $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 %] 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