Bugzilla – Attachment 29017 Details for
Bug 11357
biblio.size value not correctly displayed in list emails sent from OPAC and intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet
Bug-11357---biblioitemssize-value-not-correctly-di.patch (text/plain), 13.46 KB, created by
Fridolin Somers
on 2014-06-19 13:15:34 UTC
(
hide
)
Description:
Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2014-06-19 13:15:34 UTC
Size:
13.46 KB
patch
obsolete
>From 91651c2e3a36a9c1d6be815e2568d5405bf97cb6 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 19 Jun 2014 14:47:15 +0200 >Subject: [PATCH] Bug 11357 - biblioitems.size value not correctly displayed in > list emails sent from OPAC and intranet > >The size column in biblioitems is a bit problematic when used in TT, because instead of the size value from the biblio column it will give you the size of the variable. > >It's currently used in the templates for sending shelves from OPAC and intranet and maybe also in other places: > >[% END %] > [% IF BIBLIO_RESULT.size %] > , [% BIBLIO_RESULT.size %] >[% END %] > >This patch corrects by using item() TT method. >See http://stackoverflow.com/questions/2311303/how-can-i-handle-hash-keys-containing-illegal-identifier-characters-in-template. > >Test plan : >In each display : >=> Without this patch you see biblioitems.pages and then a number >=> With this patch you only see biblioitems.pages > >- Create a record with biblioitems.pages defined (like "12p") but without biblioitems.size defined >Same for OPAC and intranet : >- Add it to the cart >- Open the cart >- Check the "Title" column >- Click on "More Details" >- Check the "Details" row >- Send the basket via email and check the result >- Add to a list >- Send the list via email and check the result >--- > koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 8 ++++---- > koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt | 4 ++-- > .../intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt | 6 +++--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt | 6 +++--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt | 6 +++--- > 6 files changed, 17 insertions(+), 17 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >index 897a9d2..5a3d22e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >@@ -136,7 +136,7 @@ function placeHold () { > [% END %] > </h3> > <!-- COinS / Openurl --> >- <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.size %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> >+ <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.item('size') %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> > <table> > [% IF ( BIBLIO_RESULT.isbn ) %] > <tr> >@@ -175,7 +175,7 @@ function placeHold () { > [% IF ( BIBLIO_RESULT.pages ) %] > <tr> > <th scope="row">Details</th> >- <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.size %]</td> >+ <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.item('size') %]</td> > </tr> > [% END %] > [% IF ( BIBLIO_RESULT.seriestitle ) %] >@@ -311,14 +311,14 @@ function placeHold () { > [% BIBLIO_RESULT.author %] > <p>[% IF ( BIBLIO_RESULT.publishercode ) %]- [% BIBLIO_RESULT.publishercode %] > [% IF ( BIBLIO_RESULT.place ) %] [% BIBLIO_RESULT.place %][% END %][% END %] >- [% IF ( BIBLIO_RESULT.pages ) %] - [% BIBLIO_RESULT.pages %][% IF ( BIBLIO_RESULT.size ) %] [% BIBLIO_RESULT.size %] >+ [% IF ( BIBLIO_RESULT.pages ) %] - [% BIBLIO_RESULT.pages %][% IF ( BIBLIO_RESULT.item('size') ) %] [% BIBLIO_RESULT.item('size') %] > [% END %] > [% END %]</p> > [% IF ( BIBLIO_RESULT.notes ) %] > <p>[% BIBLIO_RESULT.notes %]</p> > [% END %] > <!-- COinS / Openurl --> >- <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.size %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> >+ <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.item('size') %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> > > </td> > <td>[% BIBLIO_RESULT.description %]</td> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >index 09ce7dd..0514bc1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >@@ -66,8 +66,8 @@ Your cart > [% IF ( BIBLIO_RESULT.pages ) %] > , [% BIBLIO_RESULT.pages %] > [% END %] >- [% IF BIBLIO_RESULT.size %] >- , [% BIBLIO_RESULT.size %] >+ [% IF BIBLIO_RESULT.item('size') %] >+ , [% BIBLIO_RESULT.item('size') %] > [% END %] > </span><br/> > [% END %] >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 062b5da..f3738f4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >@@ -55,7 +55,7 @@ Your list: [% shelfname %] > </span><br/> > [% END %] > >- [% IF ( BIBLIO_RESULT.ISBN && BIBLIO_RESULT.size > 0 ) %] >+ [% IF ( BIBLIO_RESULT.ISBN ) %] > <span> > ISBN: [% FOREACH isbn IN BIBLIO_RESULT.ISBN %] > [% isbn.marcisbn %] >@@ -73,8 +73,8 @@ Your list: [% shelfname %] > [% IF ( BIBLIO_RESULT.pages ) %] > , [% BIBLIO_RESULT.pages %] > [% END %] >- [% IF BIBLIO_RESULT.size %] >- , [% BIBLIO_RESULT.size %] >+ [% IF BIBLIO_RESULT.item('size') %] >+ , [% BIBLIO_RESULT.item('size') %] > [% END %] > </span><br/> > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt >index 1a21dbd..29b2279 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt >@@ -76,7 +76,7 @@ > [% END # / IF print_basket %] > </h3> > <!-- COinS / Openurl --> >- <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.size %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> >+ <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.item('size') %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> > > <table class="table"> > [% IF ( BIBLIO_RESULT.isbn ) %] >@@ -117,7 +117,7 @@ > [% IF ( BIBLIO_RESULT.pages ) %] > <tr> > <th scope="row">Details</th> >- <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.size %]</td> >+ <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.item('size') %]</td> > </tr> > [% END %] > >@@ -256,7 +256,7 @@ > <td> > <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest %]',[% BIBLIO_RESULT.biblionumber %])">[% BIBLIO_RESULT.title |html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %]</a> > <!-- COinS / Openurl --> >- <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.size %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> >+ <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.item('size') %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span> > [% IF ( TagsInputEnabled && loggedinusername ) %] > <span id="newtag[% BIBLIO_RESULT.biblionumber %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span> > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >index dc6929d..29c4cbb 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >@@ -66,8 +66,8 @@ Your cart > [% IF ( BIBLIO_RESULT.pages ) %] > , [% BIBLIO_RESULT.pages %] > [% END %] >- [% IF BIBLIO_RESULT.size %] >- , [% BIBLIO_RESULT.size %] >+ [% IF BIBLIO_RESULT.item('size') %] >+ , [% BIBLIO_RESULT.item('size') %] > [% END %] > </span><br/> > [% 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 f3c7ed7..91041bb 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >@@ -56,7 +56,7 @@ Your list : [% shelfname %] > </span><br/> > [% END %] > >- [% IF ( BIBLIO_RESULT.ISBN && BIBLIO_RESULT.size > 0 ) %] >+ [% IF ( BIBLIO_RESULT.ISBN ) %] > <span> > ISBN: [% FOREACH isbn IN BIBLIO_RESULT.ISBN %] > [% isbn %] >@@ -74,8 +74,8 @@ Your list : [% shelfname %] > [% IF ( BIBLIO_RESULT.pages ) %] > , [% BIBLIO_RESULT.pages %] > [% END %] >- [% IF BIBLIO_RESULT.size %] >- , [% BIBLIO_RESULT.size %] >+ [% IF BIBLIO_RESULT.item('size') %] >+ , [% BIBLIO_RESULT.item('size') %] > [% END %] > </span><br/> > [% END %] >-- >1.9.1
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 11357
:
29017
|
29322
|
29346