3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › SRU search fields mapping</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="admin_sru_modmapping" class="admin">
10 <div id="custom-doc" class="yui-t7">
13 <h1>Modify SRU search fields mapping</h1>
14 <form id="form01" method="post">
15 <fieldset class="rows">
17 <div class="yui-u first">
20 <label for="title">Title: </label>
21 <input id="title" type="text" value="[% mapping.title %]" />
24 <label for="isbn">ISBN: </label>
25 <input id="isbn" type="text" value="[% mapping.isbn %]" />
28 <label for="lccall">LC call number: </label>
29 <input id="lccall" type="text" value="[% mapping.lccall %]" />
32 <label for="controlnumber">Control number: </label>
33 <input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
36 <label for="srchany">Any: </label>
37 <input id="srchany" type="text" value="[% mapping.srchany %]" />
44 <label for="author">Author: </label>
45 <input id="author" type="text" value="[% mapping.author %]" />
48 <label for="issn">ISSN: </label>
49 <input id="issn" type="text" value="[% mapping.issn %]" />
52 <label for="subject">Subject: </label>
53 <input id="subject" type="text" value="[% mapping.subject %]" />
56 <label for="dewey">Dewey: </label>
57 <input id="dewey" type="text" value="[% mapping.dewey %]" />
60 <label for="stdid">Standard ID: </label>
61 <input id="stdid" type="text" value="[% mapping.stdid %]" />
67 <fieldset class="action">
68 <input type="submit" value="Save" class="submit" />
69 <a class="close cancel" href="#">Cancel</a>
74 [% MACRO jsinclude BLOCK %]
75 [% Asset.js("js/admin-menu.js") %]
76 <script type="text/javascript">
77 $(document).ready(function() {
78 $("#form01").submit(function(event) {
80 var newmap=allInputs();
81 window.opener.$('#show_sru_fields').val(newmap);
84 // In this case not called as a popup. Just do nothing.
85 event.preventDefault();
89 function allInputs () {
90 var aInput= new Array();
91 $("form :input").each(function() {
92 if( this.id && $(this).val() ) {
93 aInput.push(this.id+'='+$(this).val());
96 return aInput.join(',');
101 [% INCLUDE 'popup-bottom.inc' %]