1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Keyword to MARC Mapping</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript">
7 $(document).ready(function() {
8 $('#selectframework').find("input:submit").hide();
9 $('#framework').change(function() {
10 $('#selectframework').submit();
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
23 <div id="doc3" class="yui-t2">
26 <h2>Keyword to MARC Mapping</h2>
27 <!-- TMPL_UNLESS NAME="fields" -->
28 <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>
30 <form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
31 <label for="framework">Framework:</label>
32 <select name="framework" id="framework" style="width:20em;">
33 <option value="">Default</option>
34 <!-- TMPL_LOOP NAME="frameworkloop" -->
35 <!-- TMPL_IF NAME="selected" -->
36 <option selected="selected" value="<!-- TMPL_VAR NAME='value' -->"><!--TMPL_VAR NAME="frameworktext" --></option>
38 <option value="<!-- TMPL_VAR NAME="value" -->"><!--TMPL_VAR NAME="frameworktext" --></option>
42 <input type="submit" value="Go" />
46 <form method="post" action="" id="addfield">
47 <input type="hidden" name="framework" value="<!-- TMPL_VAR NAME="framework" -->" />
48 <fieldset class="rows">
49 <legend>Add a mapping</legend>
51 <li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
52 <li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
53 <li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
55 <fieldset class="action">
56 <input type="submit" value="Submit" />
61 <!-- TMPL_IF NAME="fields" --><table>
62 <caption>Mappings for the <!-- TMPL_IF NAME="frameworktext" --><em><!-- TMPL_VAR NAME="frameworktext" --></em><!-- TMPL_ELSE -->default<!-- /TMPL_IF --> framework</caption>
66 <th>MARC Subfield</th>
69 <!-- TMPL_LOOP NAME="fields" -->
71 <td><!-- TMPL_VAR NAME="field" --></td>
72 <td><!-- TMPL_VAR NAME="fieldcode" --></td>
73 <td><!-- TMPL_VAR NAME="subfieldcode" --></td>
74 <td><a href="?op=delete&id=<!-- TMPL_VAR NAME="id" -->&framework=<!-- TMPL_VAR NAME="framework" -->">Delete</a></td>
77 </table><!-- /TMPL_IF -->
84 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
87 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->