2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › Keyword to MARC mapping</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="admin_fieldmapping" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'prefs-admin-search.inc' %]
10 <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>
11 <div id="doc3" class="yui-t2">
14 <h2>Keyword to MARC mapping</h2>
15 [% UNLESS ( fields.count ) %]
16 <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>
18 <form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
19 <label for="framework">Framework:</label>
20 <select name="framework" id="framework" style="width:20em;">
21 <option value="">Default</option>
22 [% FOREACH f IN frameworks %]
23 [% IF f.frameworkcode == framework.frameworkcode %]
24 <option selected="selected" value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
26 <option value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
30 <input type="submit" value="Go" />
34 <form method="post" action="" id="addfield">
35 <input type="hidden" name="framework" value="[% framework.frameworkcode %]" />
36 <fieldset class="rows">
37 <legend>Add a mapping</legend>
39 <li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
40 <li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
41 <li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
43 <fieldset class="action">
44 <input type="submit" value="Submit" />
49 [% IF ( fields.count ) %]
51 <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
55 <th>MARC subfield</th>
58 [% FOREACH field IN fields %]
60 <td>[% field.field |html %]</td>
61 <td>[% field.fieldcode %]</td>
62 <td>[% field.subfieldcode %]</td>
63 <td><a class="btn btn-default btn-xs" href="?op=delete&id=[% field.id %]&framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td>
73 [% INCLUDE 'admin-menu.inc' %]
76 [% MACRO jsinclude BLOCK %]
77 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
78 <script type="text/javascript">
79 $(document).ready(function() {
80 $('#selectframework').find("input:submit").hide();
81 $('#framework').change(function() {
82 $('#selectframework').submit();
87 [% INCLUDE 'intranet-bottom.inc' %]