Bug 19623: (follow-up) Correct footer include in pop-up windows
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / fieldmapping.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Administration &rsaquo; Keyword to MARC mapping</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
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> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Keyword to MARC mapping</div>
11 <div id="doc3" class="yui-t2">
12         <div id="yui-main">
13                 <div class="yui-b">
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>
17             [% END %]
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>
25                     [% ELSE %]
26                     <option value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
27                     [% END %]
28                 [% END %]
29                 </select>
30                         <input type="submit" value="Go" />
31                         </form>
32
33
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>
38                                 <ol>
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>
42                                 </ol>
43                                 <fieldset class="action">
44                                         <input type="submit" value="Submit" />
45                                 </fieldset>
46                                 </fieldset>
47                         </form>
48
49                 [% IF ( fields.count ) %]
50                     <table>
51                     <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
52                                                                         <tr>
53                                                                                 <th>Field</th>
54                                         <th>MARC field</th>
55                                         <th>MARC subfield</th>
56                                                                                 <th>&nbsp;</th>
57                                                                         </tr>
58                                                                         [% FOREACH field IN fields %]
59                                                                         <tr>
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&amp;id=[% field.id %]&amp;framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td>
64                                                                         </tr>
65                                                                         [% END %]
66                                                                 </table>[% END %]
67
68
69                 </div>
70         </div>
71
72         <div class="yui-b">
73                 [% INCLUDE 'admin-menu.inc' %]
74         </div>
75
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();
83             });
84         });
85     </script>
86 [% END %]
87 [% INCLUDE 'intranet-bottom.inc' %]