1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration ›
3 [% IF ( add_form ) %]MARC frameworks › [% action %] [% searchfield %][% END %]
4 [% IF ( delete_confirm ) %]MARC frameworks › Confirm deletion of tag '[% searchfield %]'[% END %]
5 [% IF ( delete_confirmed ) %]MARC frameworks › Data deleted[% END %]
6 [% IF ( else ) %]MARC frameworks[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript">
14 $(document).ready(function() {
15 $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
17 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
19 "sPaginationType": "four_button"
26 <body id="admin_marctagstructure" class="admin">
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'cat-search.inc' %]
30 <div id="breadcrumbs">
31 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
32 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
33 › <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
35 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
36 › [% action %] [% searchfield %]
38 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
39 [% ELSIF ( delete_confirm ) %]
40 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
41 › Confirm deletion of tag '[% searchfield %]'
42 [% ELSIF ( delete_confirmed ) %]
43 › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]">[% frameworktext %] ([% frameworkcode %])</a>
48 <div id="doc3" class="yui-t2">
54 <div id="toolbar" class="btn-toolbar">
55 <a class="btn btn-small" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% frameworkcode %]"><i class="icon-plus"></i> New tag</a>
58 <h1>MARC Framework for [% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]default MARC framework[% END %]</h1>
62 <form action="[% script_name %]" name="Aform" method="post" class="validated">
64 <fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action %][% END %]</legend> <input type="hidden" name="op" value="add_validate" />
65 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
67 <ol> <li><label for="tagfield" class="required">Tag: </label><input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" /> <span class="required">Required</span></li>
68 <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
69 <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
70 <li><label for="repeatable">Repeatable: </label>
71 [% IF ( repeatable ) %]
72 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
74 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
77 <li><label for="mandatory">Mandatory: </label>
78 [% IF ( mandatory ) %]
79 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
81 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
84 <li><label for="authorised_value">Authorized value: </label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li>
86 <fieldset class="action">
87 <input type="submit" value="Save changes" />
88 <a class="cancel" href="[% script_name %]?frameworkcode=[% frameworkcode %]">Cancel</a>
94 [% IF ( delete_confirm ) %]
96 <div class="dialog alert"><h3>Confirm deletion of tag <span class="ex">'[% searchfield %]'</span>?</h3>
97 <p>Tag: [% searchfield %]</p>
98 <p>Description: [% liblibrarian %]</p>
99 <form action="[% script_name %]" method="post">
100 <input type="hidden" name="op" value="delete_confirmed" />
101 <input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
102 <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
104 <form action="[% script_name %]" method="get"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /><input type="submit" value="No, Do Not Delete" class="deny" /></form></div>
107 [% IF ( delete_confirmed ) %]
109 <div class="dialog message"><h3>Tag deleted</h3>
110 <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
111 <input type="submit" value="OK" class="approve" />
114 [% IF ( framework_create ) %]
116 <form action="[% script_name %]" method="post">
117 <input type="hidden" name="op" value="framework_create_confirm" />
118 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
119 Create framework for [% frameworkcode %] ([% frameworktext %]) using
120 <select name="existingframeworkcode">
121 <option value="">Default</option>
122 [% FOREACH existingframeworkloo IN existingframeworkloop %]
123 <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext %]</option>
126 <input type="submit" value="OK" />
132 <form name="f" action="[% script_name %]" method="post">
133 <fieldset style="padding:.5em;">
134 <label for="searchfield"><strong>Search for tag:</strong> </label>
135 <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
137 <label for="frameworkcode"><strong>In framework:</strong> </label>
138 <select id="frameworkcode" name="frameworkcode">
139 <option value="">Default</option>
140 [% FOREACH frameworkloo IN frameworkloop %]
141 [% IF ( frameworkloo.selected ) %]
142 <option value="[% frameworkloo.value %]" selected="selected">[% frameworkloo.frameworktext %]</option>
144 <option value="[% frameworkloo.value %]">[% frameworkloo.frameworktext %]</option>
148 <input type="submit" value="Search" />
149 <p> <label for="select_display">Display only used tags/subfields</label>
150 [% IF ( select_display ) %]
151 <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="this.form.submit();" />
153 <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
158 <table id="table_marctagstructure">
172 [% IF ( select_display ) %]
173 [% FOREACH loo IN loop %]
174 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
175 <td>[% loo.tagfield %]</td>
176 <td>[% loo.liblibrarian %]</td>
177 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
178 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
179 <td>[% loo.authorised_value %]</td>
180 <td><a href="[% loo.subfield_link %]">subfields</a></td>
181 <td><a href="[% loo.edit %]">Edit</a></td>
182 <td><a href="[% loo.delete %]">Delete</a></td>
184 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
187 [% FOREACH subfield IN loo.subfields %]
188 <p> Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
189 [% subfield.liblibrarian %] [% IF ( subfield.kohafield ) %][% subfield.kohafield %][% END %][% IF ( subfield.repeatable ) %], repeatable[% END %][% IF ( subfield.mandatory ) %], Mandatory[% END %][% IF ( subfield.seealso ) %], See [% subfield.seealso %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder %][% END %]
196 [% FOREACH loo IN loop %]
197 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
198 <td>[% loo.tagfield %]</td>
199 <td>[% loo.liblibrarian %]</td>
200 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
201 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
202 <td>[% loo.authorised_value %]</td>
203 <td><a href="[% loo.subfield_link %]">Subfields</a></td>
204 <td><a href="[% loo.edit %]">Edit</a></td>
205 <td><a href="[% loo.delete %]">Delete</a></td>
220 [% INCLUDE 'admin-menu.inc' %]
223 [% INCLUDE 'intranet-bottom.inc' %]