X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Fbiblio_framework.tt;h=166663f2d290fd0ef93330c8ea5efe2b7648c763;hb=a482880352c4e9b363402a83358e1c239fbc1d74;hp=eb826a4136e4b437a9c428a6f92409d21029d26c;hpb=8e9fc9b38565e574d9537250b579db023234cbcb;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index eb826a4136..166663f2d2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -1,139 +1,37 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › MARC frameworks -[% IF ( add_form ) %] -› [% IF ( frameworkcode ) %]Modify framework text[% ELSE %]Add framework[% END %] -[% ELSIF ( delete_confirm ) %] -› Delete framework for [% frameworktext %] ([% frameworkcode %])? +[% IF op == 'add_form' %] +› [% IF framework %]Modify framework text[% ELSE %]Add framework[% END %] +[% ELSIF op == 'delete_confirm' %] +› Delete framework for [% framework.frameworktext |html %] ([% framework.frameworkcode %])? [% END %] [% INCLUDE 'doc-head-close.inc' %] + +[% INCLUDE 'datatables.inc' %] - + [% INCLUDE 'header.inc' %] -[% INCLUDE 'cat-search.inc' %] +[% INCLUDE 'prefs-admin-search.inc' %] @@ -141,139 +39,246 @@ $(document).ready(function() {
- -[% IF ( else ) %][% END %] -[% IF ( add_form ) %] -

[% IF ( frameworkcode ) %]Modify framework text[% ELSE %]Add framework[% END %]

-
+[% FOR m IN messages %] +
+ [% SWITCH m.code %] + [% CASE 'error_on_update' %] + An error occurred when updating this framework. Perhaps it already exists. + [% CASE 'error_on_insert' %] + An error occurred when adding this framework. The framework might already exist. + [% CASE 'error_on_delete' %] + An error occurred when deleting this framework. Check the logs. + [% CASE 'success_on_update' %] + Framework updated successfully. + [% CASE 'success_on_insert' %] + Framework added successfully. + [% CASE 'success_on_delete' %] + Framework deleted successfully. + [% CASE 'already_exists' %] + This framework code already exists. + [% CASE %] + [% m.code %] + [% END %] +
+[% END %] + + + +[% IF op == 'list'%] + +[% END %] + +[% IF op == 'add_form' %] +

[% IF framework %]Modify framework text[% ELSE %]Add framework[% END %]

+ -
-
    - [% IF ( frameworkcode ) %] -
  1. Framework code[% frameworkcode %] - -
  2. - [% ELSE %] -
  3. - [% END %] -
  4. -
-
+
+
    + [% IF framework %] +
  1. + Framework code: + [% framework.frameworkcode %] + +
  2. + [% ELSE %] +
  3. + + + Required +
  4. + [% END %] +
  5. + + + Required +
  6. +
+
+
+ +
[% END %] -[% IF ( delete_confirm ) %] -
-

Delete framework for [% frameworktext %] ([% frameworkcode %])?

- [% IF ( total ) %] -

This framework is used [% total %] times.

- [% END %] -
-
-
-
+[% IF op == 'delete_confirm' %] +
+ [% IF biblios_use_this_framework %] +

This framework cannot be deleted

+

[% framework.frameworktext |text %] ([% framework.frameworkcode %])

+

The framework is used [% biblios_use_this_framework %] times.

+
+ +
+ [% ELSE %] +

Delete framework for [% framework.frameworktext |html %] ([% framework.frameworkcode %])?

+
+ + + +
+
+ +
+ [% END %] +
[% END %] -[% IF ( else ) %] +[% IF op == 'list' %]

MARC frameworks

Framework name, then go to MARC biblio to set MARC editor parameters

- +
+ - - - - + + - - - - - - - [% FOREACH loo IN loop %] - [% IF ( loop.odd ) %] - [% ELSE %] - [% END %] + + [% FOREACH loo IN frameworks %] + - - - - + - + [% END %]
Code Description  EditDeleteExportImport
  Default frameworkMARC structure  
Export -
-
- -
    -
  • Close
  • -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
Import -
-
- - -
    -
  • Close
  • -
  • -
  • -
-
+
+
[% loo.frameworkcode %][% loo.frameworktext %]MARC structureEditDelete[% loo.frameworktext |html %] -
Export -
-
+
Import -
-
- - -
    -
  • Close
  • -
  • -
  • -
-
-
-
-
- [% IF ( previous ) %]<< Previous[% END %] - [% IF ( next ) %]Next >>[% END %] [% END %]