Main Koha release repository
https://koha-community.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
180 lines
8.0 KiB
180 lines
8.0 KiB
<!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
|
|
|
|
<div id="mainbloc">
|
|
<h1 class="parameters">Authority marc framework for <!-- TMPL_IF NAME="authtypecode" --><!-- TMPL_VAR NAME="authtypecode" --><!-- TMPL_ELSE -->default framework<!-- /TMPL_IF --></h1>
|
|
<script language="javascript" type="text/javascript">
|
|
function _(s) { return s } // dummy function for gettext
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
function isNotNull(f,noalert) {
|
|
if (f.value.length ==0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
function toUC(f) {
|
|
var x=f.value.toUpperCase();
|
|
f.value=x;
|
|
return true;
|
|
}
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
function isNum(v,maybenull) {
|
|
var n = new Number(v.value);
|
|
if (isNaN(n)) {
|
|
return false;
|
|
}
|
|
if (maybenull==0 && v.value=='') {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
function isDate(f) {
|
|
var t = Date.parse(f.value);
|
|
if (isNaN(t)) {
|
|
return false;
|
|
}
|
|
}
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
function Check(f) {
|
|
var ok=1;
|
|
var _alertString="";
|
|
var alertString2;
|
|
if (f.tagfield.value.length==0) {
|
|
_alertString += "\n- " + _("tag number missing");
|
|
}
|
|
if (_alertString.length==0) {
|
|
document.Aform.submit();
|
|
} else {
|
|
alertString2 = _("Form not submitted because of the following problem(s)");
|
|
alertString2 += "\n------------------------------------------------------------------------------------\n";
|
|
alertString2 += _alertString;
|
|
alert(alertString2);
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<!-- TMPL_IF NAME="add_form" -->
|
|
<!-- ------------------------------------------------------------------------ -->
|
|
<h1 class="parameters">
|
|
<!-- 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 -->
|
|
</h1>
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
|
|
<input type="hidden" name="op" value="add_validate">
|
|
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->">
|
|
<p><label>Tag<label><!-- TMPL_VAR NAME="searchfield" --></p>
|
|
<p><label>Text for librarians</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="80" maxlength="100"></p>
|
|
<p><label>Text for opac</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="80" maxlength="100"></p>
|
|
<p><label>Repeatable</label><!-- TMPL_VAR NAME="repeatable" --></p>
|
|
<p><label>Mandatory</label><!-- TMPL_VAR NAME="mandatory" --></p>
|
|
<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>
|
|
<p><label> </label><input type="button" value="OK" class="button" onclick="Check(this.form)"></p>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
<!-- TMPL_IF NAME="delete_confirm" -->
|
|
<!-- ------------------------------------------------------------------------ -->
|
|
<table>
|
|
<tr>
|
|
<td>tag</td>
|
|
<td><!-- TMPL_VAR NAME="searchfield" --></td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td><td><!-- TMPL_VAR NAME="liblibrarian" --></td>
|
|
</tr>
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
|
|
<input type="hidden" name="op" value="delete_confirmed">
|
|
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->">
|
|
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
|
|
<tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
|
|
<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>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="delete_confirmed" -->
|
|
<!-- ------------------------------------------------------------------------ -->
|
|
Data deleted
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
|
|
<input type="submit" value="OK">
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="authtype_create" -->
|
|
<!-- ------------------------------------------------------------------------ -->
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
|
|
<input type="hidden" name="op" value="authtype_create_confirm">
|
|
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->">
|
|
Create authority framework for <!-- TMPL_VAR NAME="authtypecode" --> using
|
|
<select name="existingauthtypecode">
|
|
<option value="">Default</option>
|
|
<!-- TMPL_LOOP NAME="existingauthtypeloop" -->
|
|
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<input type="submit" value="OK" class="button">
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- ------------------------------------------------------------------------ -->
|
|
<!-- TMPL_IF NAME="else" -->
|
|
<div id="bloc25">
|
|
<h2 class="parameters">Select an authority framework</h2>
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
|
|
<select name="authtypecode">
|
|
<option value="">Default</option>
|
|
<!-- TMPL_LOOP NAME="authtypeloop" -->
|
|
<option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->>
|
|
<!-- TMPL_VAR NAME="authtypetext" -->
|
|
</option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
|
|
<input type="submit" value="OK" class="button">
|
|
</form>
|
|
</div>
|
|
<div id="bloc100">
|
|
<table>
|
|
<tr>
|
|
<th>Tag</th>
|
|
<th>Lib</th>
|
|
<th>Repeatable</th>
|
|
<th>Mandatory</th>
|
|
<th>Authorised<br />value</th>
|
|
<th>Subfields</th>
|
|
<th>Edit</th>
|
|
<th>Delete</th>
|
|
<!-- TMPL_LOOP NAME="loop" -->
|
|
<tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
|
|
<td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
|
|
<td><!-- TMPL_VAR NAME="liblibrarian" --></td>
|
|
<td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
|
|
<td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
|
|
<td><!-- TMPL_VAR NAME="authorised_value" --></td>
|
|
<td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
|
|
<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>
|
|
<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>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
|
|
<input type="hidden" name="op" value="add_form">
|
|
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->">
|
|
<input type="hidden" name="op" value="add_form">
|
|
<input type="submit" class="button" value="Add Tag" title="Add Tag" alt="Add Tag" >
|
|
<!-- TMPL_IF NAME="isprevpage" -->
|
|
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&searchfield=<!-- TMPL_VAR NAME="searchfield" -->">
|
|
<input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1leftarrow.png" title="previous" alt="previous" border="0">
|
|
</a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="nextpage" -->
|
|
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&searchfield=<!-- TMPL_VAR NAME="searchfield" -->">
|
|
<input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1rightarrow.png" title="next" alt="next" border="0">
|
|
</a>
|
|
<!-- /TMPL_IF -->
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->
|
|
|