[Koha-bugs] [Bug 12404] CSV profiles improvements (concatenations, substrings, conditions...)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 10 09:17:25 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12404

--- Comment #62 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(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 %]

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


More information about the Koha-bugs mailing list