Owen Leonard
3c36084b29
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com> Signed-off-by: Galen Charlton <gmcharlt@gmail.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
87 lines
3.2 KiB
Cheetah
87 lines
3.2 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Administration › 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 the <!-- TMPL_IF NAME="frameworktext" --><em><!-- TMPL_VAR NAME="frameworktext" --></em><!-- TMPL_ELSE -->default<!-- /TMPL_IF --> 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 the <!-- TMPL_IF NAME="frameworktext" --><em><!-- TMPL_VAR NAME="frameworktext" --></em><!-- TMPL_ELSE -->default<!-- /TMPL_IF --> framework</caption>
|
|
<tr>
|
|
<th>Field</th>
|
|
<th>MARC Field</th>
|
|
<th>MARC Subfield</th>
|
|
<th> </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&id=<!-- TMPL_VAR NAME="id" -->&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" -->
|