1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › SRU search fields mapping for authorities</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
7 $(document).ready(function() {
8 $("#form01").submit(function(event) {
10 var newmap=allInputs();
11 window.opener.$('#show_sru_fields').val(newmap);
14 // In this case not called as a popup. Just do nothing.
15 event.preventDefault();
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());
26 return aInput.join(',');
32 <body id="admin_sru_modmapping" class="admin">
34 <div id="custom-doc" class="yui-t7">
37 <h1>Modify SRU search fields mapping for authorities</h1>
38 <form id="form01" method="post">
39 <fieldset class="rows">
41 <div class="yui-u first">
44 <label for="srchany">Keyword (any): </label>
45 <input id="srchany" type="text" value="[% FILTER html %][% mapping.srchany %][% END %]" />
48 <label for="nameany">Name (any): </label>
49 <input id="nameany" type="text" value="[% FILTER html %][% mapping.nameany %][% END %]" />
52 <label for="authorany">Author (any): </label>
53 <input id="authorany" type="text" value="[% FILTER html %][% mapping.authorany %][% END %]" />
56 <label for="authorpersonal">Author (personal): </label>
57 <input id="authorpersonal" type="text" value="[% FILTER html %][% mapping.authorpersonal %][% END %]" />
60 <label for="authorcorp">Author (corporate): </label>
61 <input id="authorcorp" type="text" value="[% FILTER html %][% mapping.authorcorp %][% END %]" />
64 <label for="authormeetingcon">Author (meeting/conference): </label>
65 <input id="authormeetingcon" type="text" value="[% FILTER html %][% mapping.authormeetingcon %][% END %]" />
72 <label for="subject">Subject heading: </label>
73 <input id="subject" type="text" value="[% FILTER html %][% mapping.subject %][% END %]" />
76 <label for="subjectsubdiv">Subject sub-division: </label>
77 <input id="subjectsubdiv" type="text" value="[% FILTER html %][% mapping.subjectsubdiv %][% END %]" />
80 <label for="title">Title (any): </label>
81 <input id="title" type="text" value="[% FILTER html %][% mapping.title %][% END %]" />
84 <label for="uniformtitle">Title (uniform): </label>
85 <input id="uniformtitle" type="text" value="[% FILTER html %][% mapping.uniformtitle %][% END %]" />
91 <fieldset class="action">
92 <input type="submit" value="Save" class="submit" />
93 <a class="close cancel" href="#">Cancel</a>
98 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]