X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Ftools%2Fcsv-profiles.tt;h=40f64f51c376e3687686ddcf09f36d75e0d502d4;hb=327495b5e0ec4de47d20bd27d6a1c5b88e0be191;hp=7432bf656a6fafcca1d917062394abe448e51d74;hpb=5884fb100071e973daf671a4ada6b32724376768;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt index 7432bf656a..40f64f51c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt @@ -2,311 +2,306 @@ - - [% INCLUDE 'header.inc' %] - [% INCLUDE 'cat-search.inc' %] + +[% INCLUDE 'header.inc' %] +[% INCLUDE 'cat-search.inc' %] - - -
-
-
-
- [% IF ( success || error ) %] - [% IF ( success ) %] - [% IF ( action == 'create' ) %]

The new CSV profile "[% profile_name %]" has been successfully created.

[% END %] - [% IF ( action == 'edit' ) %]

The CSV profile has been successfully modified.

[% END %] - [% IF ( action == 'delete' ) %]

The CSV profile has been successfully deleted.

[% END %] - [% ELSE %] - [% IF ( action == 'create' ) %]

The new CSV profile "[% profile_name %]" has not been created.

[% END %] - [% IF ( action == 'edit' ) %]

The CSV profile has not been modified.

[% END %] - [% IF ( action == 'delete' ) %]

The CSV profile has not been deleted.

[% END %] - [% END %] - [% END %] -
- -
-

New CSV export profile

- -
-
-
  1. -
  2. - -
  3. -
  4. - -
  5. - -
  6. - -
  7. - -
  8. - -
  9. - -
  10. - -
  11. -
  12. - - -
  13. - -

    You have to define which fields or subfields you want to export, separated by pipes.

    -

    You can also use your own headers (instead of the ones from koha) by prefixing the field number with an header, followed by the equal sign.

    -

    Example: Personal name=200|Entry element=210$a|300|009

    -
  14. -
-
-
-
-
-
+ - [% IF ( existing_profiles ) %] -
-

Modify or delete a CSV export profile

- -
-
-
  1. -
  2. - -
  3. -
  4. - -
  5. -
  6. - -
  7. -
  8. +
    +
    +
    +
    + +[% 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 %] + + + + +
    +
      + [% IF csv_profile %] +
    1. Profile ID: [% csv_profile.export_format_id %]
    2. + [% END %] +
    3. + + + Required +
    4. +
    5. + + + Required +
    6. +
    7. + + +
    8. +
    9. + + +
    10. +
    11. + + +
    12. +
    13. + + +
    14. + +
    15. + + +
    16. + +
    17. + +
    18. + +
    19. + +
    20. + +
    21. + + + Required +

      You have to define which fields or subfields you want to export, separated by pipes.

      +

      You can also use your own headers (instead of the ones from Koha) by prefixing the field number with an header, followed by the equal sign.

      +

      Example: Personal name=200|Entry element=210$a|300|009

      +

      You can use Template Toolkit tags too. See the help page for more information.

      +
    22. + +
    23. + + +

      You have to define which fields you want to export, separated by pipes.

      +

      You can also use your own headers (instead of the ones from Koha) by prefixing the field name with an header, followed by the equal sign.

      +

      Example: Name=subscription.name|Title=subscription.title|Issue number=serial.serialseq

      +

      For late issues claims you can use data from following tables: serial, subscription, biblio, biblioitems and aqbookseller.

      +

      For basket exports you can use data from following tables: biblio, biblioitems, aqorders, aqbudgets and aqbasket.

      +
    24. +
    +
    +
    + + Cancel +
    + +[% END %] + +[% IF op == 'delete_confirm' %] +
    + [% IF csv_profile %] +

    Delete CSV Profile "[% csv_profile.profile %]?"

    +
    + + + +
    +
    + +
    + [% ELSE %] + This CSV Profile does not exist. + [% END %] +
    +[% END %] -
  9. -
  10. - -
  11. -
  12. - -
  13. -
  14. +[% IF op == 'list' %] -
  15. -
  16. -
+ -
+

CSV profiles

+ + [% IF csv_profiles %] + + + + + + + + + + + + + [% FOREACH csv_profile IN csv_profiles %] + + + + + + + + + + + [% END %] + +
CSV profile IDNameDescriptionContentCSV separatorCSV typeUsageActions
[% 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 +
+ [% ELSE %] + There is no CSV profile defined. Create a new CSV profile. + [% END %] +[% END %] -
- - Cancel
-
- [% END %] - -
-
-
-
- [% INCLUDE 'tools-menu.inc' %] -
-
- [% INCLUDE 'intranet-bottom.inc' %] +
+
+[% INCLUDE 'tools-menu.inc' %] +
+
+[% INCLUDE 'intranet-bottom.inc' %]