Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tmpl
Stéphane Delaune a59b1d23bb Fix for Bug 6037, Invalid markup, missing breadcrumbs on Keyword to MARC Mapping page
Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-08 11:32:32 +12:00

87 lines
3.3 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="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Keyword to MARC Mapping</div>
<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>&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" -->