210 lines
12 KiB
Cheetah
210 lines
12 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › System Administration ›
|
|
<!-- TMPL_IF name="add_form" --><!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" -->Data Added<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Preferences<!-- /TMPL_IF --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
|
|
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
|
|
|
|
<!-- TMPL_IF NAME="add_form" -->
|
|
<h1>
|
|
<!-- TMPL_IF NAME="use-heading-flags-p" -->
|
|
<!-- TMPL_IF NAME="heading-edit-subfields-p" -->Edit MARC subfields constraints<!-- /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="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
|
|
<input type="submit" value="Save Changes" />
|
|
|
|
<h2>Tag <!-- TMPL_VAR NAME="tagfield" --></h2>
|
|
<div id="tabs">
|
|
<p>Edit subfield
|
|
<!-- TMPL_LOOP NAME="loop" -->
|
|
<a
|
|
href="javascript:active('sub<!-- TMPL_VAR NAME='subfieldcode' -->');"
|
|
class="tab_inactive"
|
|
id="sub<!-- TMPL_VAR NAME="subfieldcode" -->"
|
|
title="<!-- TMPL_VAR NAME="liblibrarian" -->"
|
|
>
|
|
<!-- TMPL_VAR NAME="subfieldcode" -->
|
|
</a>
|
|
<!-- /TMPL_LOOP -->
|
|
</p>
|
|
</div>
|
|
|
|
<div id="content" style="display:block">
|
|
<!-- TMPL_LOOP NAME="loop" -->
|
|
<div id="content_sub<!-- TMPL_VAR NAME="subfieldcode" -->" class="content_hidden">
|
|
|
|
<h3>Basic constaints</h3>
|
|
<!-- TMPL_IF name="subfieldcode" -->
|
|
<p>Subfield code: <!-- TMPL_VAR NAME="subfieldcode" --> <input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
|
|
<!-- TMPL_ELSE -->
|
|
<p>Subfield code: <input type="text" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
|
|
<!-- /TMPL_IF -->
|
|
<p><label for="liblibrarian<!-- TMPL_VAR NAME="row" -->">Text for librarian</label><input id="liblibrarian<!-- TMPL_VAR NAME="row" -->" type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" -->" size="40" maxlength="80" /></p>
|
|
<p><label for="libopac<!-- TMPL_VAR NAME="row" -->">Text for OPAC</label><input type="text" id="libopac<!-- TMPL_VAR NAME="row" -->" name="libopac" value="<!-- TMPL_VAR NAME="libopac" -->" size="40" maxlength="80" /></p>
|
|
<p><label for="repeatable<!-- TMPL_VAR NAME="row" -->">Repeatable</label><!-- TMPL_VAR NAME="repeatable" --> </p>
|
|
<p><label for="mandatory<!-- TMPL_VAR NAME="row" -->">Mandatory</label><!-- TMPL_VAR NAME="mandatory" --> </p>
|
|
<p><label for="tab<!-- TMPL_VAR NAME="row" -->">Managed in tab</label><!-- TMPL_VAR NAME="tab" --> (ignore means that the subfield is NOT managed by Koha)</p>
|
|
|
|
<a href="javascript:displayMoreConstraint('more<!-- TMPL_VAR NAME="subfieldcode" -->')">display more constraints</a>
|
|
<span id="more<!-- TMPL_VAR NAME="subfieldcode" -->" class="content_hidden">
|
|
<h3>Advanced constraint</h3>
|
|
<p>
|
|
<label for="defaultvalue">default value</label>
|
|
<input type="text" name="defaultvalue" id="defaultvalue" value="<!-- TMPL_VAR NAME="defaultvalue" -->" />
|
|
</p>
|
|
<p><label for="hidden">hidden</label><input type="text" id="hidden<!-- TMPL_VAR NAME="row" -->" name="hidden" value="<!-- TMPL_VAR name="hidden" -->" size="2" /> (see online help)</label></p>
|
|
<p><label for="isurl<!-- TMPL_VAR NAME="row" -->">Is a URL</label><!-- TMPL_VAR NAME="isurl" --> (if checked, it means that the subfield is an URL and can be clicked</p>
|
|
<p><label>Link</label><input type="text" name="link" value="<!-- TMPL_VAR NAME="link" -->" size="10" maxlength="5" /> (exemple:200b)</p>
|
|
<p><label>Others Options: <p>(choose one)</p></label>
|
|
<p><label>Authorized Value</label><!-- TMPL_VAR NAME="authorised_value" --></p>
|
|
<p><label>Thesaurus</label><!-- TMPL_VAR NAME="authtypes" --></p>
|
|
<p><label>Plugin</label><!-- TMPL_VAR NAME="value_builder" --></p>
|
|
</p>
|
|
<p><label for="kohafield<!-- TMPL_VAR NAME="row" -->">Koha link</label><!-- TMPL_VAR NAME="kohafield" --></p>
|
|
</span>
|
|
</div>
|
|
<!-- /TMPL_LOOP -->
|
|
</div>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="delete_confirm" -->
|
|
|
|
<table>
|
|
<caption>Confirm Deletion of Subfield <!-- TMPL_VAR NAME="tagsubfield" -->?</span></caption>
|
|
<tr>
|
|
<th>Subfield</th>
|
|
<td><!-- TMPL_VAR NAME="tagsubfield" --></td>
|
|
</tr>
|
|
<p>Description<!-- TMPL_VAR NAME="liblibrarian" --></p>
|
|
</table>
|
|
<form class="inline" action="<!-- TMPL_VAR NAME="delete_link" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" />
|
|
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
|
|
<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" /><input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="tagsubfield" -->" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><input type="submit" value="Yes, Delete this Subfield" />
|
|
</form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /> <input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" /> <input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="tagsubfield" -->" /> <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /> <input type="submit" value="No, Do Not Delete" />
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="delete_confirmed" -->
|
|
|
|
Data deleted
|
|
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->">
|
|
<input type="submit" value="OK" />
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
<!-- TMPL_IF NAME="else" -->
|
|
<h1>MARC subfield structure admin for <!-- TMPL_VAR NAME="tagfield" --> (framework <!--TMPL_VAR NAME="frameworkcode" -->)</h1>
|
|
<p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit. </p>
|
|
<p>The column Koha field shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, or a Koha interface. This link ensures that both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Subfield</th>
|
|
<th>Text</th>
|
|
<th>Constraints</th>
|
|
<th>Delete</th>
|
|
<!-- TMPL_LOOP NAME="loop" -->
|
|
<!-- TMPL_IF NAME="toggle" --><tr class="highlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
|
|
<td><!-- TMPL_VAR NAME="tagsubfield" --></td>
|
|
<td>
|
|
<!-- TMPL_IF NAME="subfield_ignored" -->
|
|
<i><!-- TMPL_VAR NAME="liblibrarian" --></i>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="liblibrarian" -->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_IF NAME="subfield_ignored" -->
|
|
<i>subfield ignored</i>
|
|
<!-- TMPL_ELSE -->
|
|
Tab:<!-- TMPL_VAR NAME="tab" -->,
|
|
<!-- TMPL_IF NAME="kohafield" --> | Koha field: <!-- TMPL_VAR NAME="kohafield" -->, <!--/TMPL_IF -->
|
|
<!-- TMPL_IF NAME="repeatable" -->Repeatable, <!-- TMPL_ELSE -->Not repeatable,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="mandatory" -->Mandatory, <!-- TMPL_ELSE -->Not mandatory,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="seealso" --> | See Also: <!-- TMPL_VAR NAME="seealso" -->,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="hidden" -->hidden,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="isurl" -->is an url,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="authorised_value" --> | Auth value:<!-- TMPL_VAR NAME="authorised_value" -->,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="authtypecode" --> | Authority:<!-- TMPL_VAR NAME="authtypecode" -->,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="value_builder" --> | Plugin:<!-- TMPL_VAR NAME="value_builder" -->,<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="link" --> | Link:<!-- TMPL_VAR NAME="link" -->,<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
|
|
<input type="hidden" name="op" value="add_form" />
|
|
<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="edit_tagfield" -->" />
|
|
<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="edit_frameworkcode" -->" />
|
|
<input type="submit" value="Edit Subfields" />
|
|
</form>
|
|
<form class="inline" action="marctagstructure.pl" method="get">
|
|
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
|
|
<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
|
|
<input type="submit" value="Return to Marc Structure" />
|
|
</form>
|
|
<!-- TMPL_IF NAME="previous" -->
|
|
<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="next" -->
|
|
<!-- TMPL_VAR NAME="next" -->
|
|
<input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1rightarrow.png" title="next" alt="next" border="0" />
|
|
</a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
|
|
function active(numlayer){
|
|
var contentdiv = document.getElementById("content");
|
|
var subfields = contentdiv.getElementsByTagName("div");
|
|
var numSubfield = subfields.length;
|
|
var tabs = document.getElementById("tabs").getElementsByTagName('a');
|
|
|
|
// all others must be hidden
|
|
for (i=0; i < numSubfield ; i++ ) {
|
|
if (subfields[i].getAttribute('id') == "content_"+numlayer) {
|
|
|
|
// display this subfield
|
|
subfields[i].removeAttribute("class");
|
|
subfields[i].setAttribute("class","content_visible");
|
|
|
|
// change css class
|
|
tabs[i].removeAttribute('class');
|
|
tabs[i].setAttribute('class',"tab_active");
|
|
|
|
} else {
|
|
tabs[i].removeAttribute('class');
|
|
tabs[i].setAttribute('class',"tab_inactive");
|
|
subfields[i].removeAttribute("class");
|
|
subfields[i].setAttribute("class","content_hidden");
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function displayMoreConstraint(numlayer){
|
|
var thisdiv = document.getElementById(numlayer);
|
|
if(thisdiv.getAttribute("class") == "content_hidden"){
|
|
thisdiv.removeAttribute('class');
|
|
thisdiv.setAttribute("class","content_visible");
|
|
} else {
|
|
thisdiv.removeAttribute('class');
|
|
thisdiv.setAttribute("class","content_hidden");
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|