MT2116: Addons to the CSV export
[koha.git] / tools / csv-profiles / example.yaml
1 # CSV Export custom processing example
2 # (should be name according to the csv export id : 1.yaml for example)
3 --- |
4 # preprocessing
5 # Deactivate quoting
6 $csv->quote_char('');
7 --- |
8 # postprocessing
9 # Adding a trailer at the end of the CSV file
10 $output .= "This is a trailer";
11 --- |
12 # field processing
13 # Adding "Word " before each 001
14 if ($marcfield eq '001') { $value = 'Word ' . $value; }
15 ---