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_IF Name="searchfield" -->
69 <!-- TMPL_VAR NAME="searchfield" -->
71 <input type="text" name="tagfield" value="" escape=HTML -->
74 <p><label>Lib for librarians</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="80" maxlength="100"></p>
75 <p><label>Lib for opac</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="80" maxlength="100"></p>
76 <p><label>Repeatable</label><!-- TMPL_VAR NAME="repeatable" --></p>
77 <p><label>Mandatory</label><!-- TMPL_VAR NAME="mandatory" --></p>
78 <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>
79 <p><label> </label><input type="button" value="OK" class="button" onclick="Check(this.form)"></p>
84 <!-- TMPL_IF NAME="delete_confirm" -->
85 <!-- ------------------------------------------------------------------------ -->
89 <td><!-- TMPL_VAR NAME="searchfield" --></td>
91 <tr><td> </td><td><!-- TMPL_VAR NAME="liblibrarian" --></td></tr>
92 <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" -->">
93 <tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
94 <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>
97 <!-- TMPL_IF NAME="delete_confirmed" -->
98 <!-- ------------------------------------------------------------------------ -->
100 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
101 <input type="submit" value="OK">
104 <!-- TMPL_IF NAME="framework_create" -->
105 <!-- ------------------------------------------------------------------------ -->
106 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
107 <input type="hidden" name="op" value="framework_create_confirm">
108 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
109 Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
110 <select name="existingframeworkcode">
111 <option value="">Default</option>
112 <!-- TMPL_LOOP NAME="existingframeworkloop" -->
113 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
116 <input type="submit" value="OK" class="button">
119 <!-- ------------------------------------------------------------------------ -->
120 <!-- TMPL_IF NAME="else" -->
122 <h2 class="parameters">Select a framework</h2>
123 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
124 <select name="frameworkcode">
125 <option value="">Default</option>
126 <!-- TMPL_LOOP NAME="frameworkloop" -->
127 <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="frameworktext" --></option>
130 <input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
131 <input type="submit" value="OK" class="button">
132 <p><!-- TMPL_IF Name="select_display"-->
133 <i>Display only used Tags/Subfields</i> <input type="checkbox" name="select_display" value="True" checked OnChange="javascript:document.f.submit()">
135 <i>Display only used Tags/Subfields</i> <input type="checkbox" name="select_display" value="True" OnChange="javascript:document.f.submit()">
139 <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>
148 <th>Authorised<br />value</th>
153 <!-- TMPL_IF NAME="select_display" -->
154 <!-- TMPL_LOOP NAME="loop" -->
155 <tr class="hilighted">
156 <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
157 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
158 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
159 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
160 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
161 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
162 <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>
163 <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>
165 <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
169 <td colspan=7 border=0>
170 <!-- TMPL_LOOP NAME="subfields" -->
171 <p><label> </label>
172 Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
173 <!-- 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 -->
180 <!-- TMPL_LOOP NAME="loop" -->
181 <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
182 <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
183 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
184 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
185 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
186 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
187 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
188 <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>
189 <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>
193 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
194 <input type="hidden" name="op" value="add_form">
196 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
197 <input type="hidden" name="op" value="add_form">
198 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
199 <input type="submit" class="button" value="Add Tag" title="Add Tag" alt="Add Tag" >
200 <!-- TMPL_IF NAME="isprevpage" -->
201 <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 -->">
202 <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1leftarrow.png" title="previous" alt="previous" border="0">
205 <!-- TMPL_IF NAME="nextpage" -->
206 <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 -->">
207 <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1rightarrow.png" title="next" alt="next" border="0">
215 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->