[Koha-bugs] [Bug 12404] CSV profiles improvements

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 11 18:44:06 CET 2014


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

Francois Charbonnier <francois.charbonnier at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |francois.charbonnier at inlibr
                   |                            |o.com

--- Comment #24 from Francois Charbonnier <francois.charbonnier at inlibro.com> ---
I tested this with two CSV profils :

Without TT methods
1. Personal name=200|Entry element=210$a|300|009 -> It works

With TT methods
2. 245i1=[% fields.245.0.indicator.2 %]|245ac=[% FOREACH field IN fields.245 %]
[% field.a.0 %] [% field.c.0 %] [% END %] | Subject=[% FOREACH field IN
fields.650 %][% IF field.indicator.2 %][% field.a.0 %] [% END %][% END %] |
Language=[% fields.008.0.substr( 28, 3 ) %] |  Title=[% IF
fields.100.0.indicator.1 %][% fields.245.0.a.0 %][% END %]

I used the examples in the help section for the last one. I also works BUT I
had to correct one method.

The help section says :
Display all 245$a and 245$c into the same column:
[% FOREACH field IN fields.245 %] [% field.a %] [% field.c %] [% END %] 

but it doesn't work. I think it should be corrected by :
[% FOREACH field IN fields.245 %] [% field.a.0 %] [% field.c.0 %] [% END %]
which works.

Since I'm not familiar with template toolkit, I let you confirm it's correct.

Once the documentation is corrected I'll test it again to sign it off!

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


More information about the Koha-bugs mailing list