Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tmpl
Henri-Damien LAURENT fd75507a55 (bug #3370) add keyword to MARC field mapping
This add the support of keyword => MARC field mapping, ton abstract the relation between human readable fields like subtitle, title, authors, location, ... and MARC fields in each framework.
This will allow to koha developper to be more flexible with each framework and don't care about the MARC flavour, just require some "keywords" to the user.

Conflicts solved :
	C4/Biblio.pm
	installer/data/mysql/kohastructure.sql
	installer/data/mysql/updatedatabase30.pl
	kohaversion.pl

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-30 11:30:42 +02:00

77 lines
2.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="doc3" class="yui-t2">
<div id="yui-main">
<div class="yui-b">
<h1>Keyword to MARC Mapping</h1>
<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>
</form>
<form method="post" action="" id="addfield">
<input type="hidden" name="framework" value="<!-- TMPL_VAR NAME="framework" -->" />
<table>
<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 -->
<tr>
<td><input type="text" name="fieldname" /></td>
<td><input type="text" name="marcfield" size="3" /></td>
<td><input type="text" name="marcsubfield" size="1" /></td>
<td><input type="submit" /></td>
</tr>
</table>
</form>
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->