[Koha-bugs] [Bug 11357] biblio.size value not correctly displayed in list emails sent from OPAC and intranet

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 19 15:15:34 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11357

--- Comment #3 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 29017
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29017&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list