Bugzilla – Attachment 138175 Details for
Bug 22352
Items location not shown correctly in email sent lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22352: lists sent by mail, print location description
Bug-22352-lists-sent-by-mail-print-location-descri.patch (text/plain), 3.09 KB, created by
Biblibre Sandboxes
on 2022-07-27 12:48:21 UTC
(
hide
)
Description:
Bug 22352: lists sent by mail, print location description
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2022-07-27 12:48:21 UTC
Size:
3.09 KB
patch
obsolete
>From 3323498f0da45ec50090436b431c420ae26b1eb7 Mon Sep 17 00:00:00 2001 >From: Didier Gautheron <didier.gautheron@biblibre.com> >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 <e.betemps@gmail.com> >--- > .../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 %] >+ > <SUBJECT> > Your list: [% shelfname | $raw %] > <END_SUBJECT> >@@ -149,7 +151,7 @@ Your list: [% shelfname | $raw %] > <ul> > [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]<li> > [% 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 %] > </li>[% 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 %] >+ > <SUBJECT> > Your list : [% shelfname | $raw %] > <END_SUBJECT> >@@ -150,7 +152,7 @@ Your list : [% shelfname | $raw %] > <ul> > [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]<li> > [% 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 %] > </li>[% END %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22352
:
85183
|
100597
|
107478
|
107479
|
112520
|
113112
|
119868
|
138174
| 138175