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>
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">
115 <!---------------------------------------------------------------------------->
116 <!-- TMPL_IF name="else" -->
118 <h2 class="parameters">Select a framework</h2>
119 <form action='<!-- TMPL_VAR name="script_name" -->' method=post>
120 <select name="frameworkcode">
121 <option value="">Default</option>
122 <!-- TMPL_LOOP name="frameworkloop" -->
123 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="frameworktext" --></option>
126 <input type=text name=searchfield value="<!-- TMPL_VAR name="searchfield" -->">
127 <input type="submit" value="OK" class="button">
129 <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>
138 <th>Authorised<br />value</th>
142 <!-- TMPL_LOOP name="loop" -->
143 <tr valign=top bgcolor='<!-- TMPL_VAR name="bgcolor" -->'>
144 <td><b><!-- TMPL_VAR name="tagfield" --></b></td>
145 <td><!-- TMPL_VAR name="liblibrarian" --></td>
146 <td><!-- TMPL_IF name="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
147 <td><!-- TMPL_IF name="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
148 <td><!-- TMPL_VAR name="authorised_value" --></td>
149 <td><a href="<!-- TMPL_VAR name="subfield_link" -->" class="button">subfields</a></td>
150 <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>
151 <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>
154 <form action='<!-- TMPL_VAR name="script_name" -->' method=post>
155 <input type=hidden name=op value=add_form>
157 <form action='<!-- TMPL_VAR name="script_name" -->' method=post>
158 <input type=hidden name=op value=add_form>
159 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR name="frameworkcode" -->">
160 <input type=submit class="button" value="Add Tag" title="Add Tag" alt="Add Tag" >
161 <!-- TMPL_IF name="isprevpage" -->
162 <a href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="prevpage" -->&searchfield=<!-- TMPL_VAR name="searchfield" -->">
163 <input type=image src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/1leftarrow.png" title="previous" ALT="previous" BORDER=0>
166 <!-- TMPL_IF name="nextpage" -->
167 <a href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="nextpage" -->&searchfield=<!-- TMPL_VAR name="searchfield" -->">
168 <input type=image src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/1rightarrow.png" title="next" ALT="next" BORDER=0>
175 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->