X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;ds=sidebyside;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Fmarc_subfields_structure.tt;h=c47840ba8ecd491231033cafb4e0e3eb6f738f0e;hb=5e615b76a9681143133e869c8448d332c0cbaa8e;hp=6d7d01167afbf449829bb6602e827c349daa446e;hpb=a0680d0ca2ff9c7b087cd995b85d5614d902e2d9;p=koha-ffzg.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 6d7d01167a..c47840ba8e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -1,380 +1,459 @@ +[% USE raw %] +[% USE Asset %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Administration ›[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure › Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure › [% action %][% END %][% END %] -[% IF ( delete_confirm ) %] MARC subfield structure › Confirm deletion of subfield [% tagsubfield %][% END %][% IF ( delete_confirmed ) %] MARC subfield structure › Subfield deleted[% END %][% IF ( else ) %]MARC subfield structure[% END %] -[% INCLUDE 'doc-head-close.inc' %] - - - -[% INCLUDE 'header.inc' %] -[% INCLUDE 'cat-search.inc' %] - - - -
- -
-
-
- -[% IF ( add_form ) %] -

- [% IF ( use_heading_flags_p ) %] - [% IF ( heading_edit_subfields_p ) %]Tag [% tagfield %] Subfield constraints[% END %] - [% ELSE %] - [% action %] - [% END %] -

-
- - - - - -
- - - [% FOREACH loo IN loop %] -
- -
[% IF ( loo.new_subfield ) %]Add new subfield[% ELSE %]Basic constraints[% END %] -
    - [% IF ( subfieldcode == 0 || subfieldcode ) %] -
  1. Subfield code: [% loo.subfieldcode %]
  2. - [% ELSE %] -
  3. - [% END %] -
  4. -
  5. -
  6. [% loo.repeatable %]
  7. -
  8. [% loo.mandatory %]
  9. -
  10. [% loo.tab %] (ignore means that the subfield does not display in the record editor)
  11. -
-
- - Display more constraints -
-
- [% END %] -
-
-[% END %] + + [%- IF ( add_form ) -%] + [%- IF ( use_heading_flags_p ) -%] + [%- IF ( heading_edit_subfields_p ) -%] + Edit MARC subfields constraints › MARC subfield structure + [%- END -%] -[% IF ( delete_confirm ) %] - -<h3>Confirm deletion of subfield [% tagsubfield %]?</h3> - <p>Subfield: [% tagsubfield %]</p> - <p>Description: [% liblibrarian %]</p> - - <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" /> - <input type="hidden" name="searchfield" value="[% searchfield %]" /> - <input type="hidden" name="tagfield" value="[% tagfield %]" /> - <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" /> - <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> - <input type="submit" value="Yes, Delete this Subfield" /> - </form> - - <form action="[% script_name %]" method="post"> - <input type="hidden" name="searchfield" value="[% searchfield %]" /> - <input type="hidden" name="tagfield" value="[% tagfield %]" /> - <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" /> - <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> - <input type="submit" value="No, Do Not Delete" /> - </form> -[% END %] + [%- ELSE -%] + [%- action | html -%] › MARC subfield structure + [%- END -%] -[% IF ( delete_confirmed ) %] + [%- END -%] - <h3>Data deleted</h3> - <form action="[% script_name %]" method="post"> - <input type="hidden" name="tagfield" value="[% tagfield %]" /> - <input type="submit" value="OK" /> - </form> -[% END %] + [%- IF ( delete_confirm ) -%] + MARC subfield structure › Confirm deletion of subfield [%- mss.tagsubfield | html -%] -[% IF ( else ) %] -<h1>MARC subfield structure admin for [% tagfield %] [% IF ( frameworkcode ) %](framework [% frameworkcode %])[% ELSE %](default framework)[% END %]</h1> -<p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit. </p> -<p>The column Koha field shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, or a Koha interface. This link ensures that both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p> - -<table> -<tr> - <th>Subfield</th> - <th>Text</th> - <th>Constraints</th> - <th>Edit</th> - <th>Delete</th> -</tr> -[% FOREACH loo IN loop %] -[% UNLESS ( loop.odd ) %] -<tr class="highlight"> -[% ELSE %] -<tr> -[% END %] - <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">[% loo.tagsubfield %]</a></td> - <td> - [% IF ( loo.subfield_ignored ) %] - <i>[% loo.liblibrarian %]</i> - [% ELSE %] - [% loo.liblibrarian %] - [% END %] - </td> - <td> - [% IF ( loo.subfield_ignored ) %] - <i>subfield ignored</i> - [% ELSE %] - Tab:[% loo.tab %], - [% IF ( loo.kohafield ) %] | Koha field: [% loo.kohafield %], [% END %] - [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,[% END %] - [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,[% END %] - [% IF ( loo.seealso ) %] | See Also: [% loo.seealso %],[% END %] - [% IF ( loo.hidden ) %]hidden,[% END %] - [% IF ( loo.isurl ) %]is a URL,[% END %] - [% IF ( loo.authorised_value ) %] | Auth value:[% loo.authorised_value %],[% END %] - [% IF ( loo.authtypecode ) %] | Authority:[% loo.authtypecode %],[% END %] - [% IF ( loo.value_builder ) %] | Plugin:[% loo.value_builder %],[% END %] - [% IF ( loo.link ) %] | Link:[% loo.link %],[% END %] - [% END %] - </td> - <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">Edit</a></td> - <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield %]&tagsubfield=[% loo.tagsubfield %]&frameworkcode=[% frameworkcode %]">Delete</a></td> -</tr> -[% END %] -</table> + Confirm deletion of subfield [%- tagsubfield | html -%] › MARC subfield structure + [%- END -%] -<form action="[% script_name %]" method="get"> - <fieldset class="action"><input type="hidden" name="op" value="add_form" /> - <input type="hidden" name="tagfield" value="[% edit_tagfield %]" /> - <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode %]" /> - <input type="submit" value="Edit Subfields" /> - <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield %]&frameworkcode=[% frameworkcode %]">Cancel</a> - </fieldset> -</form> + [%- IF ( delete_confirmed ) -%] + Subfield deleted › MARC subfield structure + [%- END -%] + + [%- IF ( else ) -%] + MARC subfield structure + [%- END -%] › Administration › Koha + +[% INCLUDE 'doc-head-close.inc' %] + + + + + [% WRAPPER 'header.inc' %] + [% INCLUDE 'prefs-admin-search.inc' %] [% END %] + [% WRAPPER 'sub-header.inc' %] +
-
-
-[% INCLUDE 'intranet-bottom.inc' %] + [% IF ( else ) %] +
  • + + Tag [% tagfield | html %] Subfield structure + +
  • + [% END %] + + + [% END %] + +
    +
    +
    +
    + + [% IF ( add_form ) %] +

    + [% IF ( use_heading_flags_p ) %] + [% IF ( heading_edit_subfields_p ) %]Tag [% tagfield | html %] Subfield constraints[% END %] + [% ELSE %] + [% action | html %] + [% END %] +

    + +
    + + + + + [% BLOCK outputsubfield %][% FILTER collapse %] + [% SWITCH ( subfieldanchor ) %] + [% CASE "@" %] + AT + [% CASE "%" %] + % + [% CASE %] + [% subfieldanchor | html %] + [% END %] + [% END %][% END %] + +
    + + +
    + + [% FOREACH loo IN loop %] +
    + +
    +
    + Basic constraints +
      + [% IF ( loo.subfieldcode == 0 || loo.subfieldcode ) %] +
    1. + Subfield code: + [% loo.subfieldcode | html %] + +
    2. + [% ELSE %] +
    3. + + +
    4. + [% END %] +
    5. + + +
    6. +
    7. + + +
    8. +
    9. + + [% IF loo.repeatable %] + + [% ELSE %] + + [% END %] +
    10. +
    11. + + [% IF loo.mandatory %] + + [% ELSE %] + + [% END %] +
    12. +
    13. + + [% IF loo.important %] + + [% ELSE %] + + [% END %] +
    14. +
    15. + +
      Ignore means that the subfield does not display in the record editor
      +
    16. +
    +
    +
    + +
    +
    + Advanced constraints +
      +
    1. + + +
    2. +
    3. + + +
    4. +
    5. + [% IF loo.hidden_protected %] + + [% ELSE %] + + [% END %] + + + + + + + + + + + +
    6. +
    7. + + [% IF loo.isurl %] + + [% ELSE %] + + [% END %] + If checked, it means that the subfield is a URL and can be clicked +
    8. +
    9. + + +
      An index name, e.g. title or Local-Number
      +
    10. +
    11. + + + + + +
    12. +
    +
    +
    + +
    +
    + Other options (choose one) +
      +
    1. + + +
    2. +
    3. + + +
    4. +
    5. + + +
    6. +
    +
    +
    +
    + [% END # /FOREACH loo %] +
    +
    + +
    + Cancel +
    +
    + [% END # /IF ( add_form ) %] + + [% IF ( delete_confirm ) %] +
    +

    Confirm deletion of subfield [% mss.tagsubfield | html %]?

    +

    Subfield: [% mss.tagsubfield | html %]

    +

    Description: [% mss.liblibrarian | html_entity %]

    + +
    + + + + +
    + + +
    + + + + +
    +
    + [% END # /IF ( delete_confirm ) %] + + [% IF ( else ) %] +

    MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode | html %])[% ELSE %](default framework)[% END %]

    + +

    This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.

    +

    The column 'Koha field' shows that the subfield is linked with a Koha field.

    + + + + + + + + + + + + [% FOREACH loo IN loop %] + + + + + + + [% END %] + +
    SubfieldTextConstraintsActions
    [% loo.tagsubfield | html %] + [% IF loo.tab == -1 %] + [% loo.liblibrarian | html_entity %] + [% ELSE %] + [% loo.liblibrarian | html_entity %] + [% END %] + + [% IF loo.tab == -1 %] + subfield ignored + [% ELSE %] + Tab:[% loo.tab | html %], + [% IF ( loo.kohafield ) %] | Koha field: [% loo.kohafield | html %], [% END %] + [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,[% END %] + [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,[% END %] + [% IF ( loo.important ) %]Important, [% ELSE %]Not important,[% END %] + [% IF ( loo.seealso ) %] | See also: [% loo.seealso | html %],[% END %] + [% IF ( loo.hidden ) %]hidden,[% END %] + [% IF ( loo.isurl ) %]is a URL,[% END %] + [% IF ( loo.authorised_value ) %] | Auth value:[% loo.authorised_value | html %],[% END %] + [% IF ( loo.authtypecode ) %] | Authority:[% loo.authtypecode | html %],[% END %] + [% IF ( loo.value_builder ) %] | Plugin:[% loo.value_builder | html %],[% END %] + [% IF ( loo.link ) %] | Link:[% loo.link | html %],[% END %] + [% END %] + + Edit + Delete +
    + +
    +
    + + + + Cancel +
    +
    + + [% END # /IF else %] + +
    +
    + +
    + +
    +
    + + [% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] + [% Asset.js("js/admin-menu.js") | $raw %] + + [% Asset.js("js/marc_subfields_structure.js") | $raw %] + [% END %] + + [% INCLUDE 'intranet-bottom.inc' %]