[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
Sat Jun 28 21:47:32 CEST 2014


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29322|0                           |1
        is obsolete|                            |

--- Comment #7 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 29346
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29346&action=edit
[PASSED QA] 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

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Works well!!
Tested on staff & opac, cart & list.
No koha-qa errors

Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
Passes QA script and tests.

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


More information about the Koha-bugs mailing list