[% USE raw %] [% USE Asset %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% IF ( add_form ) %] [% t("Edit subfield constraints") | html %] › [% END %] [% IF ( delete_confirm ) %] [% tx("Confirm deletion of subfield '{subfield}'", {subfield = mss.tagsubfield }) | html %] › [% END %] [% IF ( add_form || delete_confirm || else ) %] [% tx("Tag {tag}", { tag = tagfield}) | html %] › [% END %] [% IF ( frameworkcode ) %] [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) [% ELSE %] [% t("Default framework") | html %] [% END %] › [% t("MARC bibliographic frameworks") | html %] › [% t("Administration") | html %] › [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Administration [% END %] [% WRAPPER breadcrumb_item %] MARC bibliographic frameworks [% END %] [% WRAPPER breadcrumb_item %] [% IF ( frameworkcode ) %] [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) [% ELSE %] Default framework [% END %] [% END %] [% IF ( add_form ) %] [% WRAPPER breadcrumb_item %] [% tx("Tag {tag}", { tag = tagfield}) | html %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Edit subfield constraints [% END %] [% END %] [% IF ( delete_confirm ) %] [% WRAPPER breadcrumb_item %] [% tx("Tag {tag}", { tag = tagfield}) | html %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Confirm deletion of subfield '{subfield}'?", {subfield = mss.tagsubfield }) | html %] [% END %] [% END %] [% IF ( else ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Tag {tag} subfield structure", { tag = tagfield}) | html %] [% END %] [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %]
[% INCLUDE 'messages.inc' %] [% IF ( add_form ) %]

[% tx("Tag {tag} subfield constraints", { tag = tagfield}) | html %]

You can drag and drop the subfield tabs to change the order.
[% INCLUDE 'csrf-token.inc' %] [% 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. [% END %]
  4. [% IF loo.repeatable %] [% ELSE %] [% END %]
  5. [% IF loo.mandatory %] [% ELSE %] [% END %]
  6. [% IF loo.important %] [% ELSE %] [% END %]
  7. Ignore means that the subfield does not display in the record editor and that its value, if any, is deleted from the record
Advanced constraints
  1. [% IF loo.hidden_protected %] [% ELSE %] [% END %]
  2. [% IF loo.isurl %] [% ELSE %] [% END %] If checked, it means that the subfield is a URL and can be clicked
  3. An index name, e.g. title or Local-Number
  4. [% loo.kohafield | html %]
    Edit in 'Koha to MARC mapping'
Other options (choose one)
[% END # /FOREACH loo %]
Cancel
[% END # /IF ( add_form ) %] [% IF ( delete_confirm ) %]

[% tx("Confirm deletion of subfield '{subfield}'?", {subfield = mss.tagsubfield }) | html %]

Subfield: [% mss.tagsubfield | html %]

Description: [% mss.liblibrarian | html_entity %]

[% INCLUDE 'csrf-token.inc' %]
[% INCLUDE 'csrf-token.inc' %]
[% END # /IF ( delete_confirm ) %] [% IF ( else ) %] [% IF ( frameworkcode ) %]

[% tx("Tag {tag} subfield structure (framework {frameworkcode})", { tag = tagfield, frameworkcode = frameworkcode }) | html %]

[% ELSE %]

[% tx("Tag {tag} subfield structure (default framework)", { tag = tagfield}) | html %]

[% 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 %]
Subfield Text Constraints Actions
[% 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( "lib/sortable/Sortable.min.js" ) | $raw %] [% Asset.js("js/admin-menu.js") | $raw %] [% Asset.js("js/marc_subfields_structure.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]