2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › SRU search fields mapping for authorities</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="admin_sru_modmapping" class="admin">
9 <div class="main container-fluid">
12 <h1>Modify SRU search fields mapping for authorities</h1>
13 <form id="form01" method="post">
14 <fieldset class="rows">
16 <div class="col-xs-6">
19 <label for="srchany">Keyword (any): </label>
20 <input id="srchany" type="text" value="[% mapping.srchany | html %]" />
23 <label for="nameany">Name (any): </label>
24 <input id="nameany" type="text" value="[% mapping.nameany | html %]" />
27 <label for="authorany">Author (any): </label>
28 <input id="authorany" type="text" value="[% mapping.authorany | html %]" />
31 <label for="authorpersonal">Author (personal): </label>
32 <input id="authorpersonal" type="text" value="[% mapping.authorpersonal | html %]" />
35 <label for="authorcorp">Author (corporate): </label>
36 <input id="authorcorp" type="text" value="[% mapping.authorcorp | html %]" />
39 <label for="authormeetingcon">Author (meeting/conference): </label>
40 <input id="authormeetingcon" type="text" value="[% mapping.authormeetingcon | html %]" />
44 <div class="col-xs-6">
47 <label for="subject">Subject heading: </label>
48 <input id="subject" type="text" value="[% mapping.subject | html %]" />
51 <label for="subjectsubdiv">Subject sub-division: </label>
52 <input id="subjectsubdiv" type="text" value="[% mapping.subjectsubdiv | html %]" />
55 <label for="title">Title (any): </label>
56 <input id="title" type="text" value="[% mapping.title | html %]" />
59 <label for="uniformtitle">Title (uniform): </label>
60 <input id="uniformtitle" type="text" value="[% mapping.uniformtitle | html %]" />
66 <fieldset class="action">
67 <input type="submit" value="Save" class="submit" />
68 <a class="close cancel" href="#">Cancel</a>
74 [% MACRO jsinclude BLOCK %]
76 $(document).ready(function() {
77 $("#form01").submit(function(event) {
79 var newmap=allInputs();
80 window.opener.$('#show_sru_fields').val(newmap);
83 // In this case not called as a popup. Just do nothing.
84 event.preventDefault();
88 function allInputs () {
89 var aInput= new Array();
90 $("form :input").each(function() {
91 if( this.id && $(this).val() ) {
92 aInput.push(this.id+'='+$(this).val());
95 return aInput.join(',');
100 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]