Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / sru_modmapping_auth.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; SRU search fields mapping for authorities</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4
5 <script type="text/javascript">
6 //<![CDATA[
7     $(document).ready(function() {
8         $("#form01").submit(function(event) {
9             if(window.opener) {
10                 var newmap=allInputs();
11                 window.opener.$('#show_sru_fields').val(newmap);
12                 window.close();
13             } else {
14                 // In this case not called as a popup. Just do nothing.
15                 event.preventDefault();
16             }
17         });
18     });
19     function allInputs () {
20         var aInput= new Array();
21         $("form :input").each(function() {
22             if( this.id && $(this).val() ) {
23                 aInput.push(this.id+'='+$(this).val());
24             }
25         });
26         return aInput.join(',');
27     }
28 //]]>
29 </script>
30 </head>
31
32 <body id="admin_sru_modmapping" class="admin">
33
34 <div id="custom-doc" class="yui-t7">
35
36     <div id="bd">
37         <h1>Modify SRU search fields mapping for authorities</h1>
38         <form id="form01" method="post">
39             <fieldset class="rows">
40                 <div class="yui-g">
41                     <div class="yui-u first">
42                         <ol>
43                             <li>
44                                 <label for="srchany">Keyword (any): </label>
45                                 <input id="srchany" type="text" value="[% FILTER html %][% mapping.srchany | html %][% END %]" />
46                             </li>
47                             <li>
48                                 <label for="nameany">Name (any): </label>
49                                 <input id="nameany" type="text" value="[% FILTER html %][% mapping.nameany | html %][% END %]" />
50                             </li>
51                             <li>
52                                 <label for="authorany">Author (any): </label>
53                                 <input id="authorany" type="text" value="[% FILTER html %][% mapping.authorany | html %][% END %]" />
54                             </li>
55                             <li>
56                                 <label for="authorpersonal">Author (personal): </label>
57                                 <input id="authorpersonal" type="text" value="[% FILTER html %][% mapping.authorpersonal | html %][% END %]" />
58                             </li>
59                             <li>
60                                 <label for="authorcorp">Author (corporate): </label>
61                                 <input id="authorcorp" type="text" value="[% FILTER html %][% mapping.authorcorp | html %][% END %]" />
62                             </li>
63                             <li>
64                                 <label for="authormeetingcon">Author (meeting/conference): </label>
65                                 <input id="authormeetingcon" type="text" value="[% FILTER html %][% mapping.authormeetingcon | html %][% END %]" />
66                             </li>
67                         </ol>
68                     </div>
69                     <div class="yui-u">
70                         <ol>
71                             <li>
72                                 <label for="subject">Subject heading: </label>
73                                 <input id="subject" type="text" value="[% FILTER html %][% mapping.subject | html %][% END %]" />
74                             </li>
75                             <li>
76                                 <label for="subjectsubdiv">Subject sub-division: </label>
77                                 <input id="subjectsubdiv" type="text" value="[% FILTER html %][% mapping.subjectsubdiv | html %][% END %]" />
78                             </li>
79                             <li>
80                                 <label for="title">Title (any): </label>
81                                 <input id="title" type="text" value="[% FILTER html %][% mapping.title | html %][% END %]" />
82                             </li>
83                             <li>
84                                 <label for="uniformtitle">Title (uniform): </label>
85                                 <input id="uniformtitle" type="text" value="[% FILTER html %][% mapping.uniformtitle | html %][% END %]" />
86                             </li>
87                         </ol>
88                     </div>
89                 </div>
90             </fieldset>
91             <fieldset class="action">
92                 <input type="submit" value="Save" class="submit" />
93                 <a class="close cancel" href="#">Cancel</a>
94             </fieldset>
95         </form>
96     </div>
97
98 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]