3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Administration › Keyword to MARC mapping</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="admin_fieldmapping" class="admin">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'prefs-admin-search.inc' %]
11 <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>
12 <div id="doc3" class="yui-t2">
15 <h2>Keyword to MARC mapping</h2>
16 [% UNLESS ( fields.count ) %]
17 <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>
19 <form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
20 <label for="framework">Framework:</label>
21 <select name="framework" id="framework" style="width:20em;">
22 <option value="">Default</option>
23 [% FOREACH f IN frameworks %]
24 [% IF f.frameworkcode == framework.frameworkcode %]
25 <option selected="selected" value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
27 <option value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
31 <input type="submit" value="Go" />
35 <form method="post" action="" id="addfield">
36 <input type="hidden" name="framework" value="[% framework.frameworkcode %]" />
37 <fieldset class="rows">
38 <legend>Add a mapping</legend>
40 <li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
41 <li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
42 <li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
44 <fieldset class="action">
45 <input type="submit" value="Submit" />
50 [% IF ( fields.count ) %]
52 <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
56 <th>MARC subfield</th>
59 [% FOREACH field IN fields %]
61 <td>[% field.field |html %]</td>
62 <td>[% field.fieldcode %]</td>
63 <td>[% field.subfieldcode %]</td>
64 <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>
74 [% INCLUDE 'admin-menu.inc' %]
77 [% MACRO jsinclude BLOCK %]
78 [% Asset.js("js/admin-menu.js") %]
79 <script type="text/javascript">
80 $(document).ready(function() {
81 $('#selectframework').find("input:submit").hide();
82 $('#framework').change(function() {
83 $('#selectframework').submit();
88 [% INCLUDE 'intranet-bottom.inc' %]