1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration ›
3 <!-- TMPL_IF name="add_form" -->MARC Frameworks › <!-- TMPL_VAR name="action" --> <!-- TMPL_VAR NAME="searchfield" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->MARC Frameworks › Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirmed" -->MARC Frameworks › Data Deleted<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->MARC Frameworks<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 <script type="text/javascript">
10 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11 function isNotNull(f,noalert) {
12 if (f.value.length ==0) {
17 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
19 var x=f.value.toUpperCase();
23 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
24 function isNum(v,maybenull) {
25 var n = new Number(v.value);
29 if (maybenull==0 && v.value=='') {
34 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36 var t = Date.parse(f.value);
41 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
46 if (f.tagfield.value.length==0) {
47 _alertString += "\n- " + _("tag number missing");
49 if (_alertString.length==0) {
50 document.Aform.submit();
52 alertString2 = _("Form not submitted because of the following problem(s)");
53 alertString2 += "\n------------------------------------------------------------------------------------\n";
54 alertString2 += _alertString;
62 <!-- TMPL_INCLUDE NAME="header.inc" -->
63 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
65 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF name="add_form" --> <a href="/cgi-bin/koha/admin/marctagstructure.pl">MARC Frameworks</a> › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">MARC Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)</a> › <!-- TMPL_VAR name="action" --> <!-- TMPL_VAR NAME="searchfield" --><!-- /TMPL_IF -->
66 <!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/marctagstructure.pl">MARC Frameworks</a> › Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
67 <!-- TMPL_IF name="delete_confirmed" --> <a href="/cgi-bin/koha/admin/marctagstructure.pl">MARC Frameworks</a> › Data Deleted<!-- /TMPL_IF -->
68 <!-- TMPL_IF name="else" --><a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC Frameworks</a> › MARC Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- /TMPL_IF --></div>
70 <div id="doc3" class="yui-t2">
76 <!-- TMPL_IF NAME="else" --><div id="toolbar">
77 <script type="text/javascript">
80 // prepare DOM for YUI Toolbar
82 $(document).ready(function() {
86 // YUI Toolbar Functions
88 function yuiToolbar() {
89 new YAHOO.widget.Button("addtag");
95 <li><a id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&searchfield=<!-- TMPL_VAR NAME="searchfield"-->&frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">New Tag</a></li>
96 </ul></div><!-- /TMPL_IF -->
98 <h1>MARC Framework for <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
100 <!-- TMPL_IF NAME="add_form" -->
102 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
104 <fieldset class="rows"><legend><!-- TMPL_IF NAME="use-heading-flags-p" --><!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag <input type="hidden" name="modif" value="1" /><!-- TMPL_VAR NAME="searchfield" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF --></legend> <input type="hidden" name="op" value="add_validate" />
105 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
107 <ol> <li><label for="tagfield">Tag: </label><input id="tagfield" type="text" name="tagfield" value="<!-- TMPL_VAR NAME="searchfield" -->" maxlength="3" size="3" /></li>
108 <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" ESCAPE="HTML" -->" size="40" maxlength="100" /></li>
109 <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="<!-- TMPL_VAR NAME="libopac" ESCAPE="HTML" -->" size="40" maxlength="100" /></li>
110 <li><label for="repeatable">Repeatable: </label><!-- TMPL_VAR NAME="repeatable" --></li>
111 <li><label for="mandatory">Mandatory: </label><!-- TMPL_VAR NAME="mandatory" --></li>
112 <li><label for="authorised_value">Authorized value: </label><!-- TMPL_VAR NAME="authorised_value" --> (if you select a value here, the indicators will be limited to the authorised value list)</li>
114 <fieldset class="action">
115 <input type="submit" value="Save Changes" onclick="Check(this.form)" />
116 <a class="cancel" href="<!-- TMPL_VAR NAME="script_name" -->?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">Cancel</a>
122 <!-- TMPL_IF NAME="delete_confirm" -->
124 <div class="dialog alert"><h3>Confirm Deletion of Tag <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span>?</h3>
125 <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
126 <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
127 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
128 <input type="hidden" name="op" value="delete_confirmed" />
129 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
130 <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
132 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete" class="deny" /></form></div>
135 <!-- TMPL_IF NAME="delete_confirmed" -->
137 <div class="details"><div class="dialog message"><h3>Tag Deleted</h3>
138 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
139 <input type="submit" value="OK" class="approve" />
142 <!-- TMPL_IF NAME="framework_create" -->
144 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
145 <input type="hidden" name="op" value="framework_create_confirm" />
146 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
147 Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
148 <select name="existingframeworkcode">
149 <option value="">Default</option>
150 <!-- TMPL_LOOP NAME="existingframeworkloop" -->
151 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
154 <input type="submit" value="OK" />
159 <!-- TMPL_IF NAME="else" -->
161 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
162 <p><label for="frameworkcode">Framework</label>
163 <select id="frameworkcode" name="frameworkcode">
164 <option value="">Default</option>
165 <!-- TMPL_LOOP NAME="frameworkloop" -->
166 <!-- TMPL_IF NAME="selected" -->
167 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="frameworktext" --></option>
169 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
175 <label for="searchfield">Search for Tag</label>
176 <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
177 <input type="submit" value="Search" />
180 <!-- TMPL_IF Name="select_display"-->
181 <label for="select_display">Display only used Tags/Subfields</label> <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="this.form.submit();" />
183 <label for="select_display">Display only used Tags/Subfields</label> <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" />
187 <p>NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/rebuildnonmarc.pl script.</p>
201 <!-- TMPL_IF NAME="select_display" -->
202 <!-- TMPL_LOOP NAME="loop" -->
203 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
204 <td><!-- TMPL_VAR NAME="tagfield" --></td>
205 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
206 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
207 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
208 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
209 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
210 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
211 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
213 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
218 <!-- TMPL_LOOP NAME="subfields" -->
219 <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
220 <!-- TMPL_VAR NAME="liblibrarian" --> <!-- TMPL_IF NAME="kohafield" --><!-- TMPL_VAR NAME="kohafield" --><!--/TMPL_IF --><!-- TMPL_IF NAME="repeatable" -->, repeatable<!-- /TMPL_IF --><!-- TMPL_IF NAME="mandatory" -->, Mandatory<!-- /TMPL_IF --><!-- TMPL_IF NAME="seealso" -->, See <!-- TMPL_VAR name="seealso" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authorised_value" -->, <!-- TMPL_VAR NAME="authorised_value" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authtypecode" -->, <!-- TMPL_VAR NAME="authtypecode" --><!--/TMPL_IF --><!-- TMPL_IF NAME="value_builder" -->, <!-- TMPL_VAR NAME="value_builder" --><!--/TMPL_IF -->
227 <!-- TMPL_LOOP NAME="loop" -->
228 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
229 <td><!-- TMPL_VAR NAME="tagfield" --></td>
230 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
231 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
232 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
233 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
234 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
235 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
236 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
241 <!-- TMPL_IF NAME="isprevpage" -->
242 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&searchfield=<!-- TMPL_VAR NAME="searchfield" -->&frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&select_display=True<!--/TMPL_IF -->"><< Previous</a>
245 <!-- TMPL_IF NAME="nextpage" -->
246 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&searchfield=<!-- TMPL_VAR NAME="searchfield" -->&frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&select_display=True<!--/TMPL_IF -->">Next >></a>
255 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
258 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->