From 3323498f0da45ec50090436b431c420ae26b1eb7 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 Signed-off-by: Emmanuel Bétemps --- .../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 81567cb980..fe3d38c1cc 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.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => 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..8919dba939 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.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ITEM_RESULT.location ) | html %] [% IF ITEM_RESULT.itemcallnumber %]([% ITEM_RESULT.itemcallnumber | $raw %])[% END %] [% ITEM_RESULT.barcode | $raw %]
    • [% END %] -- 2.30.2