1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › System Administration ›
3 <!-- TMPL_IF name="add_form" --><!-- TMPL_VAR name="action" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Tag '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirmed" -->Data Deleted<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->MARC tag Structure<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
10 <!-- TMPL_INCLUDE NAME="header.inc" -->
12 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
14 <div id="doc3" class="yui-t2">
18 <div class="yui-b"><div class="yui-g">
20 <h1>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>
21 <script language="javascript" type="text/javascript">
22 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23 function isNotNull(f,noalert) {
24 if (f.value.length ==0) {
29 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
31 var x=f.value.toUpperCase();
35 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36 function isNum(v,maybenull) {
37 var n = new Number(v.value);
41 if (maybenull==0 && v.value=='') {
46 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
48 var t = Date.parse(f.value);
53 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
58 if (f.tagfield.value.length==0) {
59 _alertString += "\n- " + _("tag number missing");
61 if (_alertString.length==0) {
62 document.Aform.submit();
64 alertString2 = _("Form not submitted because of the following problem(s)");
65 alertString2 += "\n------------------------------------------------------------------------------------\n";
66 alertString2 += _alertString;
72 <!-- TMPL_IF NAME="add_form" -->
73 <!-- ------------------------------------------------------------------------ -->
74 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
75 <input type="hidden" name="op" value="add_validate" />
76 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
77 <h2><!-- TMPL_IF NAME="use-heading-flags-p" --><!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF --><!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF --></h2>
78 <p><label>Tag</label><input id="tagfield" type="text" name="tagfield" value="<!-- TMPL_VAR NAME="searchfield" -->" maxlength="3" size="3" /></p>
79 <p><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" /></p>
80 <p><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" /></p>
81 <p><label for="repeatable">Repeatable</label><!-- TMPL_VAR NAME="repeatable" --> </p>
82 <p><label for="mandatory">Mandatory</label><!-- TMPL_VAR NAME="mandatory" --> </p>
83 <p><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)</p>
85 <input type="submit" value="Save Changes" onclick="Check(this.form)" />
86 <input type="submit" value="Cancel and Return to MARC Tag Structure" onclick="location.href='<!-- TMPL_VAR NAME="script_name" -->?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->'; return false;" />
92 <!-- TMPL_IF NAME="delete_confirm" -->
93 <!-- ------------------------------------------------------------------------ -->
95 <caption>Confirm Deletion of Tag <em><!-- TMPL_VAR NAME="searchfield" --></em>?</caption>
96 <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
97 <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
99 <form class="inline" 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" -->" /> <input type="submit" value="Yes, Delete this Tag" /></form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete" /></form>
102 <!-- TMPL_IF NAME="delete_confirmed" -->
103 <!-- ------------------------------------------------------------------------ -->
104 <div class="details"><h3>Tag Deleted</h3>
105 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
106 <input type="submit" value="Return to MARC Tag Structure" />
109 <!-- TMPL_IF NAME="framework_create" -->
110 <!-- ------------------------------------------------------------------------ -->
111 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
112 <input type="hidden" name="op" value="framework_create_confirm" />
113 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
114 Create framework for <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) using
115 <select name="existingframeworkcode">
116 <option value="">Default</option>
117 <!-- TMPL_LOOP NAME="existingframeworkloop" -->
118 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
121 <input type="submit" value="OK" />
125 <!-- ------------------------------------------------------------------------ -->
126 <!-- TMPL_IF NAME="else" -->
128 <form name="f" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
129 <p><label for="frameworkcode">Framework</label>
130 <select id="frameworkcode" name="frameworkcode">
131 <option value="">Default</option>
132 <!-- TMPL_LOOP NAME="frameworkloop" -->
133 <!-- TMPL_IF NAME="selected" -->
134 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="frameworktext" --></option>
136 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
142 <label for="searchfield">Search for Tag</label>
143 <input type="text" name="searchfield" id="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
144 <input type="submit" value="Search" />
147 <!-- TMPL_IF Name="select_display"-->
148 <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();" />
150 <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();" />
154 <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>
167 <!-- TMPL_IF NAME="select_display" -->
168 <!-- TMPL_LOOP NAME="loop" -->
169 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
170 <td><!-- TMPL_VAR NAME="tagfield" --></td>
171 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
172 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
173 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
174 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
175 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
176 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
177 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
179 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
184 <!-- TMPL_LOOP NAME="subfields" -->
185 <p> Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
186 <!-- 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 -->
193 <!-- TMPL_LOOP NAME="loop" -->
194 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
195 <td><!-- TMPL_VAR NAME="tagfield" --></td>
196 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
197 <td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
198 <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
199 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
200 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
201 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
202 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
207 <!-- TMPL_IF NAME="isprevpage" -->
208 <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>
209 <!-- /TMPL_IF --><form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
210 <input type="hidden" name="op" value="add_form" />
211 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
212 <input type="hidden" name="op" value="add_form" />
213 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield"-->" />
214 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
215 <input type="submit" value="Add Tag" />
217 <!-- TMPL_IF NAME="nextpage" -->
218 <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>
228 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
229 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->