+
+
+[% FOR m IN messages %]
+
+ [% SWITCH m.code %]
+ [% CASE 'error_on_update' %]
+ An error occurred when updating this CSV profile. Perhaps it already exists.
+ [% CASE 'error_on_insert' %]
+ An error occurred when adding this CSV profile.
+ [% CASE 'error_on_delete' %]
+ An error occurred when deleting this CSV profile. Check the logs.
+ [% CASE 'success_on_update' %]
+ CSV profile updated successfully.
+ [% CASE 'success_on_insert' %]
+ CSV profile added successfully.
+ [% CASE 'success_on_delete' %]
+ CSV profile deleted successfully.
+ [% CASE 'already_exists' %]
+ This CSV profile already exists.
+ [% CASE %]
+ [% m.code %]
+ [% END %]
+
+[% END %]
+
+[% BLOCK list_separator_options %]
+ [% IF selected_separator == ',' %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% IF selected_separator == '|' %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% IF selected_separator == ';' %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% IF selected_separator == '#' %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% IF selected_separator == ' ' %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% IF selected_separator == '\t' %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% IF selected_separator == '\n' %]
+
+ [% ELSE %]
+
+ [% END %]
+[% END %]
+
+[% BLOCK type_description %]
+ [% IF type_code == 'marc' %] MARC
+ [% ELSIF type_code == 'sql' %] SQL
+ [% ELSE %] Unknown type
+ [% END %]
+[% END %]
+
+[% BLOCK used_for_description %]
+ [% IF used_for_code == 'export_records' %] Export records
+ [% ELSIF used_for_code == 'late_issues' %] Late serial issues claims
+ [% ELSIF used_for_code == 'export_basket' %] Basket export in acquisition
+ [% ELSE %] Unknown usage
+ [% END %]
+[% END %]
+
+[% IF op == 'add_form' %]
+ [% IF csv_profile %]
+
Modify a CSV profile
+ [% ELSE %]
+
New CSV profile
+ [% END %]
+
+
+[% END %]
+
+[% IF op == 'delete_confirm' %]
+
+ [% IF csv_profile %]
+
Delete CSV Profile "[% csv_profile.profile %]?"
+
+
+ [% ELSE %]
+ This CSV Profile does not exist.
+ [% END %]
+
+[% END %]
-
-
-
-
-
-
-
-
+[% IF op == 'list' %]
-
-
-
+
-
+
CSV profiles
+
+ [% IF csv_profiles %]
+
+
+ CSV profile ID |
+ Name |
+ Description |
+ Content |
+ CSV separator |
+ CSV type |
+ Usage |
+ Actions |
+
+
+ [% FOREACH csv_profile IN csv_profiles %]
+
+ [% csv_profile.export_format_id %] |
+ [% csv_profile.profile %] |
+ [% csv_profile.description %] |
+ [% csv_profile.content %] |
+ [% csv_profile.csv_separator %] |
+ [% PROCESS type_description type_code = csv_profile.type %] |
+ [% PROCESS used_for_description used_for_code = csv_profile.used_for %] |
+
+ Edit
+ Delete
+ |
+
+ [% END %]
+
+
+ [% ELSE %]
+ There is no CSV profile defined.
Create a new CSV profile.
+ [% END %]
+[% END %]
-
-
- [% END %]
-
-