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 %]" />
69 [% IF ( heading_modify_tag_p ) %]
70 <input type="hidden" name="tagfield" value="[% searchfield %]" />
71 <span class="label">Tag:</span>
74 <label for="tagfield" class="required">Tag: </label>
75 <input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" />
76 <span class="required">Required</span>
79 <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
80 <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
81 <li><label for="repeatable">Repeatable: </label>
82 [% IF ( repeatable ) %]
83 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
85 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
88 <li><label for="mandatory">Mandatory: </label>
89 [% IF ( mandatory ) %]
90 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
92 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
95 <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>
97 <fieldset class="action">
98 <input type="submit" value="Save changes" />
99 <a class="cancel" href="[% script_name %]?frameworkcode=[% frameworkcode %]">Cancel</a>
105 [% IF ( delete_confirm ) %]
107 <div class="dialog alert"><h3>Confirm deletion of tag <span class="ex">'[% searchfield %]'</span>?</h3>
108 <p>Tag: [% searchfield %]</p>
109 <p>Description: [% liblibrarian %]</p>
110 <form action="[% script_name %]" method="post">
111 <input type="hidden" name="op" value="delete_confirmed" />
112 <input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
113 <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
115 <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>
118 [% IF ( delete_confirmed ) %]
120 <div class="dialog message"><h3>Tag deleted</h3>
121 <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
122 <input type="submit" value="OK" class="approve" />
125 [% IF ( framework_create ) %]
127 <form action="[% script_name %]" method="post">
128 <input type="hidden" name="op" value="framework_create_confirm" />
129 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
130 Create framework for [% frameworkcode %] ([% frameworktext %]) using
131 <select name="existingframeworkcode">
132 <option value="">Default</option>
133 [% FOREACH existingframeworkloo IN existingframeworkloop %]
134 <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext %]</option>
137 <input type="submit" value="OK" />
143 <form name="f" action="[% script_name %]" method="post">
144 <fieldset style="padding:.5em;">
145 <label for="searchfield"><strong>Search for tag:</strong> </label>
146 <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
148 <label for="frameworkcode"><strong>In framework:</strong> </label>
149 <select id="frameworkcode" name="frameworkcode">
150 <option value="">Default</option>
151 [% FOREACH frameworkloo IN frameworkloop %]
152 [% IF ( frameworkloo.selected ) %]
153 <option value="[% frameworkloo.value %]" selected="selected">[% frameworkloo.frameworktext %]</option>
155 <option value="[% frameworkloo.value %]">[% frameworkloo.frameworktext %]</option>
159 <input type="submit" value="Search" />
160 <p> <label for="select_display">Display only used tags/subfields</label>
161 [% IF ( select_display ) %]
162 <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="this.form.submit();" />
164 <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
169 <table id="table_marctagstructure">
183 [% IF ( select_display ) %]
184 [% FOREACH loo IN loop %]
185 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
186 <td>[% loo.tagfield %]</td>
187 <td>[% loo.liblibrarian %]</td>
188 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
189 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
190 <td>[% loo.authorised_value %]</td>
191 <td><a href="[% loo.subfield_link %]">subfields</a></td>
192 <td><a href="[% loo.edit %]">Edit</a></td>
193 <td><a href="[% loo.delete %]">Delete</a></td>
195 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
198 [% FOREACH subfield IN loo.subfields %]
199 <p> Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
200 [% 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 %]
207 [% FOREACH loo IN loop %]
208 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
209 <td>[% loo.tagfield %]</td>
210 <td>[% loo.liblibrarian %]</td>
211 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
212 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
213 <td>[% loo.authorised_value %]</td>
214 <td><a href="[% loo.subfield_link %]">Subfields</a></td>
215 <td><a href="[% loo.edit %]">Edit</a></td>
216 <td><a href="[% loo.delete %]">Delete</a></td>
231 [% INCLUDE 'admin-menu.inc' %]
234 [% INCLUDE 'intranet-bottom.inc' %]