1 <!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
4 <h1 class="parameters">MARC tag structure admin for <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
5 <script language="javascript" type="text/javascript">
6 function _(s) { return s } // dummy function for gettext
7 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8 function isNotNull(f,noalert) {
9 if (f.value.length ==0) {
14 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16 var x=f.value.toUpperCase();
20 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
21 function isNum(v,maybenull) {
22 var n = new Number(v.value);
26 if (maybenull==0 && v.value=='') {
31 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
33 var t = Date.parse(f.value);
38 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
43 if (f.tagfield.value.length==0) {
44 _alertString += "\n- " + _("tag number missing");
46 if (_alertString.length==0) {
47 document.Aform.submit();
49 alertString2 = _("Form not submitted because of the following problem(s)");
50 alertString2 += "\n------------------------------------------------------------------------------------\n";
51 alertString2 += _alertString;
57 <!-- TMPL_IF NAME="add_form" -->
58 <!-- ------------------------------------------------------------------------ -->
59 <h1 class="parameters">
60 <!-- TMPL_IF NAME="use-heading-flags-p" -->
61 <!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF -->
62 <!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF -->
63 <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
65 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
66 <input type="hidden" name="op" value="add_validate">
67 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
68 <p><label>Tag<label><!-- TMPL_VAR NAME="searchfield" --></p>
69 <p><label>Lib for librarians</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="80" maxlength="100"></p>
70 <p><label>Lib for opac</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="80" maxlength="100"></p>
71 <p><label>Repeatable</label><!-- TMPL_VAR NAME="repeatable" --></p>
72 <p><label>Mandatory</label><!-- TMPL_VAR NAME="mandatory" --></p>
73 <p><label>Authorised value</label><!-- TMPL_VAR NAME="authorised_value" --> (if you select a value here, the indicators will be limited to the authorised value list)</p>
74 <p><label> </label><input type="button" value="OK" class="button" onclick="Check(this.form)"></p>
79 <!-- TMPL_IF NAME="delete_confirm" -->
80 <!-- ------------------------------------------------------------------------ -->
84 <td><!-- TMPL_VAR NAME="searchfield" --></td>
86 <tr><td> </td><td><!-- TMPL_VAR NAME="liblibrarian" --></td></tr>
87 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
88 <tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
89 <tr><td><input type="submit" value="YES"></form></td><td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="NO"></form></td></tr>
92 <!-- TMPL_IF NAME="delete_confirmed" -->
93 <!-- ------------------------------------------------------------------------ -->
95 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
96 <input type="submit" value="OK">
99 <!-- TMPL_IF NAME="framework_create" -->
100 <!-- ------------------------------------------------------------------------ -->
101 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
102 <input type="hidden" name="op" value="framework_create_confirm">
103 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
104 Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
105 <select name="existingframeworkcode">
106 <option value="">Default</option>
107 <!-- TMPL_LOOP NAME="existingframeworkloop" -->
108 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
111 <input type="submit" value="OK" class="button">
114 <!-- ------------------------------------------------------------------------ -->
115 <!-- TMPL_IF NAME="else" -->
117 <h2 class="parameters">Select a framework</h2>
118 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
119 <select name="frameworkcode">
120 <option value="">Default</option>
121 <!-- TMPL_LOOP NAME="frameworkloop" -->
122 <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="frameworktext" --></option>
125 <input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
126 <input type="submit" value="OK" class="button">
128 <i>Display only used Tags/Subfields</i> <input type="checkbox" name="select_display" value="True" <!-- TMPL_IF Name="select_display"-->checked<!--/TMPL_IF --> OnChange="javascript:document.f.submit()">
131 <b>NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/rebuildnonmarc.pl script.</b>
140 <th>Authorised<br />value</th>
145 <!-- TMPL_IF NAME="select_display" -->
146 <!-- TMPL_LOOP NAME="loop" -->
147 <tr class="hilighted">
148 <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
149 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
150 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
151 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
152 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
153 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
154 <td><a href="<!-- TMPL_VAR NAME="edit" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0"></a></td>
155 <td><a href="<!-- TMPL_VAR NAME="delete" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0"></a></td>
157 <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
161 <td colspan=7 border=0>
162 <!-- TMPL_LOOP NAME="subfields" -->
163 <p><label> </label>
164 Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
165 <!-- 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 -->
172 <!-- TMPL_LOOP NAME="loop" -->
173 <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
174 <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
175 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
176 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
177 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
178 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
179 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
180 <td><a href="<!-- TMPL_VAR NAME="edit" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0"></a></td>
181 <td><a href="<!-- TMPL_VAR NAME="delete" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0"></a></td>
185 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
186 <input type="hidden" name="op" value="add_form">
188 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
189 <input type="hidden" name="op" value="add_form">
190 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
191 <input type="submit" class="button" value="Add Tag" title="Add Tag" alt="Add Tag" >
192 <!-- TMPL_IF NAME="isprevpage" -->
193 <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 -->">
194 <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1leftarrow.png" title="previous" alt="previous" border="0">
197 <!-- TMPL_IF NAME="nextpage" -->
198 <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 -->">
199 <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1rightarrow.png" title="next" alt="next" border="0">
203 <script language="javascript" type="text/javascript">
204 function ChangeDisplay(checkbox) {
212 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->