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>
14 <div class="main container-fluid">
16 <div class="col-sm-10 col-sm-push-2">
19 <h2>Keyword to MARC mapping</h2>
20 [% UNLESS ( fields.count ) %]
21 <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>
23 <form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
24 <label for="framework">Framework:</label>
25 <select name="framework" id="framework" style="width:20em;">
26 <option value="">Default</option>
27 [% FOREACH f IN frameworks %]
28 [% IF f.frameworkcode == framework.frameworkcode %]
29 <option selected="selected" value="[% f.frameworkcode | html %]">[% f.frameworktext | html %]</option>
31 <option value="[% f.frameworkcode | html %]">[% f.frameworktext | html %]</option>
35 <input type="submit" value="Go" />
39 <form method="post" action="" id="addfield">
40 <input type="hidden" name="framework" value="[% framework.frameworkcode | html %]" />
41 <fieldset class="rows">
42 <legend>Add a mapping</legend>
44 <li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
45 <li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
46 <li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
48 <fieldset class="action">
49 <input type="submit" value="Submit" />
54 [% IF ( fields.count ) %]
56 <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext | html %]</em>[% ELSE %]default[% END %] framework</caption>
60 <th>MARC subfield</th>
63 [% FOREACH field IN fields %]
65 <td>[% field.field | html %]</td>
66 <td>[% field.fieldcode | html %]</td>
67 <td>[% field.subfieldcode | html %]</td>
68 <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>
74 </div> <!-- /.col-sm-10.col-sm-push-2 -->
76 <div class="col-sm-2 col-sm-pull-10">
78 [% INCLUDE 'admin-menu.inc' %]
80 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
82 [% MACRO jsinclude BLOCK %]
83 [% Asset.js("js/admin-menu.js") | $raw %]
84 <script type="text/javascript">
86 $(document).ready(function() {
87 $('#selectframework').find("input:submit").hide();
88 $('#framework').change(function() {
89 $('#selectframework').submit();
94 [% INCLUDE 'intranet-bottom.inc' %]