4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Administration › Keyword to MARC mapping</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="admin_fieldmapping" class="admin">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'prefs-admin-search.inc' %]
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Keyword to MARC mapping</div>
13 <div id="doc3" class="yui-t2">
16 <h2>Keyword to MARC mapping</h2>
17 [% UNLESS ( fields.count ) %]
18 <div class="dialog message"><p>There are no mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext | html %]</em>[% ELSE %]default[% END %] framework. </p></div>
20 <form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
21 <label for="framework">Framework:</label>
22 <select name="framework" id="framework" style="width:20em;">
23 <option value="">Default</option>
24 [% FOREACH f IN frameworks %]
25 [% IF f.frameworkcode == framework.frameworkcode %]
26 <option selected="selected" value="[% f.frameworkcode | html %]">[% f.frameworktext | html %]</option>
28 <option value="[% f.frameworkcode | html %]">[% f.frameworktext | html %]</option>
32 <input type="submit" value="Go" />
36 <form method="post" action="" id="addfield">
37 <input type="hidden" name="framework" value="[% framework.frameworkcode | html %]" />
38 <fieldset class="rows">
39 <legend>Add a mapping</legend>
41 <li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
42 <li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
43 <li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
45 <fieldset class="action">
46 <input type="submit" value="Submit" />
51 [% IF ( fields.count ) %]
53 <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext | html %]</em>[% ELSE %]default[% END %] framework</caption>
57 <th>MARC subfield</th>
60 [% FOREACH field IN fields %]
62 <td>[% field.field | html %]</td>
63 <td>[% field.fieldcode | html %]</td>
64 <td>[% field.subfieldcode | html %]</td>
65 <td><a class="btn btn-default btn-xs" href="?op=delete&id=[% field.id | html %]&framework=[% field.frameworkcode | html %]"><i class="fa fa-trash"></i> Delete</a></td>
75 [% INCLUDE 'admin-menu.inc' %]
78 [% MACRO jsinclude BLOCK %]
79 [% Asset.js("js/admin-menu.js") | $raw %]
80 <script type="text/javascript">
81 $(document).ready(function() {
82 $('#selectframework').find("input:submit").hide();
83 $('#framework').change(function() {
84 $('#selectframework').submit();
89 [% INCLUDE 'intranet-bottom.inc' %]