Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tmpl
2010-02-10 22:50:12 -05:00

87 lines
2.9 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Administration &rsaquo; Keyword to MARC Mapping</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#selectframework').find("input:submit").hide();
$('#framework').change(function() {
$('#selectframework').submit();
});
});
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<div id="doc3" class="yui-t2">
<div id="yui-main">
<div class="yui-b">
<h2>Keyword to MARC Mapping</h2>
<!-- TMPL_UNLESS NAME="fields" -->
<div class="dialog message"><p>There are no mappings for this framework. </p></div>
<!-- /TMPL_UNLESS -->
<form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
<label for="framework">Framework :</label>
<select name="framework" id="framework" style="width:20em;">
<option value="">Default</option>
<!-- TMPL_LOOP NAME="frameworkloop" -->
<!-- TMPL_IF NAME="selected" -->
<option selected="selected" value="<!-- TMPL_VAR NAME='value' -->"><!--TMPL_VAR NAME='frameworktext' --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!--TMPL_VAR NAME="frameworktext" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<input type="submit" value="Go" />
</form>
<form method="post" action="" id="addfield">
<input type="hidden" name="framework" value="<!-- TMPL_VAR NAME="framework" -->" />
<fieldset class="rows">
<legend>Add a mapping</legend>
<ol>
<li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
<li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
<li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
</ol>
<fieldset class="action">
<input type="submit" value="Submit" />
</fieldset>
</fieldset>
</form>
<!-- TMPL_IF NAME="fields" --><table>
<caption>Mappings for this framework</caption>
<tr>
<th>Field</th>
<th>MARC Field</th>
<th>MARC Subfield</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="fields" -->
<tr>
<td><!-- TMPL_VAR NAME="field" --></td>
<td><!-- TMPL_VAR NAME="fieldcode" --></td>
<td><!-- TMPL_VAR NAME="subfieldcode" --></td>
<td><a href="?op=delete&amp;id=<!-- TMPL_VAR NAME="id" -->&amp;framework=<!-- TMPL_VAR NAME="framework" -->">Delete</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table><!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->