Koha/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing
Fridolin Somers f27d454048 Bug 13268 - biblioitems.size value not correctly displayed (more)
Bug partially corrected by Bug 11357.

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 or current loop.

It's currently used in the templates like opac-topissues.tt :
[% IF results_loo.size %][% results_loo.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 :
- Be sure there is a mapping between a MARC field and biblioitems.size
- Create a record A with biblioitems.size defined : like "10x12"
- Create a record B with no value in biblioitems.size
- Check each modified page :
=> Without this patch : you see a number (loop size) for both records
=> With this patch : you only see the correct value for A and nothing for B

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-02-05 14:46:35 -03:00
..
value_builder Bug 13204: Plugin housekeeping: Remove labs_theses.pl plugin 2015-01-14 21:26:42 -03:00
addbiblio.tt Bug 6536: QA Follow-up for string changes referring to Z39.50 2014-09-01 10:09:14 -03:00
addbooks.tt Bug 13268 - biblioitems.size value not correctly displayed (more) 2015-02-05 14:46:35 -03:00
additem.tt Bug 10473: (RM followup) small wording change 2014-11-14 13:06:21 -03:00
linkitem.tt
merge.tt Bug 11905 - when editing item, cursor is positioning in search box and not to item 2014-07-30 11:57:31 -03:00
moveitem.tt
z3950_auth_search.tt Bug 11961 - This patch fix the QA critical error, fix the capitalization and the UNIMARC support. 2015-01-24 18:19:10 -03:00
z3950_search.tt Bug 13218: (RM followup) only scroll on actually variable stuff 2014-12-19 14:06:08 -03:00