1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › SRU search fields mapping</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</h1>
38 <form id="form01" method="post">
39 <fieldset class="rows">
41 <div class="yui-u first">
44 <label for="title">Title: </label>
45 <input id="title" type="text" value="[% mapping.title %]" />
48 <label for="isbn">ISBN: </label>
49 <input id="isbn" type="text" value="[% mapping.isbn %]" />
52 <label for="lccall">LC call number: </label>
53 <input id="lccall" type="text" value="[% mapping.lccall %]" />
56 <label for="controlnumber">Control number: </label>
57 <input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
60 <label for="srchany">Any: </label>
61 <input id="srchany" type="text" value="[% mapping.srchany %]" />
68 <label for="author">Author: </label>
69 <input id="author" type="text" value="[% mapping.author %]" />
72 <label for="issn">ISSN: </label>
73 <input id="issn" type="text" value="[% mapping.issn %]" />
76 <label for="subject">Subject: </label>
77 <input id="subject" type="text" value="[% mapping.subject %]" />
80 <label for="dewey">Dewey: </label>
81 <input id="dewey" type="text" value="[% mapping.dewey %]" />
84 <label for="stdid">Standard ID: </label>
85 <input id="stdid" type="text" value="[% mapping.stdid %]" />
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' %]