[Bug 12404] CSV profiles improvements (concatenations, substrings, conditions...)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12404 --- Comment #63 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Jonathan Druart from comment #62)
(In reply to Katrin Fischer from comment #61)
I tried to use an example from the old help file, but I got:
+ <li>Display all 245$a and 245$c into the same column: + <p> + [% FOREACH field IN fields.245 %] + [% field.a %] [% field.c %] + [% END %] + </p> + </li>
Titel=[% FOREACH field IN fields.245 %][% field.a %] [% field.b %] [% field.n %] [% field.p %] [% field.c %][% END %]
ARRAY(0x5642032a0638) ARRAY(0x564202a832f0) ARRAY(0x564203388d48) ARRAY(0x5642033cc020) ARRAY(0x564203439cc0)
field.a contains the list of a's. The following works: Title=[% FOREACH field IN fields.245 %][% field.a.0 %] [% field.b.0 %] [% field.n.0 %] [% field.p.0 %] [% field.c.0 %][% END %]
Ha, there is a follow-up commit: commit c33c56028fb39a464a780b2a22e95af0da73585f Bug 12404: FIX documentation to join subfield The correct syntax is: <li>Display all 245$a and 245$c into the same column: <p> [% FOREACH field IN fields.245 %] [% field.a.join(' ') %] [% field.c.join(' ') %] [% END %] </p> </li> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org