Bug 12404: Allow TT tags for csv profiles
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 11 Feb 2014 12:25:47 +0000 (13:25 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 27 Apr 2015 13:43:23 +0000 (10:43 -0300)
commit4bb4b311596074eb7406833fc38c68a482c161a5
tree15add50b06873c351f3312ec12b343716f08f4b0
parent70fac393c8708840be40c0b9ed436103db697c7b
Bug 12404: Allow TT tags for csv profiles

This patch is the main patch. It contains the changes in
C4::Record::marcrecord2csv.

The goal of this development is to provide a better flexibility on
creating a CSV profile.
Currently it is not possible to:
- Concatenate specific subfields into a csv column
- Display a field/subfield using a condition
- Extract a substring of a subfield value
and a lot of other actions.

This patch allows to write Template Toolkit code and to extract only
data you want.

See the help page for more information (in next patch).

Test plan:
Create some CSV profiles (MARC, not SQL) using some TT methods.
Use the basket export and the export tool and verify the CSV file
generated is what you expected.

Signed-off-by: Courret <scourret@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Record.pm