[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 14:41:49 CEST 2014


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

--- Comment #2 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Has said in Bug 10466 and Bug 6374 the "size" is a virtual method of TT.
When biblio.size is not defined, [% BIBLIO_RESULT.size %] will return the
number of keys :
http://template-toolkit.org/docs/manual/VMethods.html#section_Hash_Virtual_Methods

There I think a better way of correcting than setting size in perl : using item
virtual method in TT :
http://template-toolkit.org/docs/manual/VMethods.html#section_item

I found this solution here :
http://stackoverflow.com/questions/2311303/how-can-i-handle-hash-keys-containing-illegal-identifier-characters-in-template

This may append for other cases, like keys with space, hyphen, other colmns
named like virtual method.

(I've been on this several months).

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


More information about the Koha-bugs mailing list