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">
40 <legend>Legend </legend>
43 <label for="Title">Title: </label>
44 <input id="title" type="text" value="[% mapping.title %]" />
47 <label for="ISBN">ISBN: </label>
48 <input id="isbn" type="text" value="[% mapping.isbn %]" />
51 <label for="LCCall">LC Call No: </label>
52 <input id="lccall" type="text" value="[% mapping.lccall %]" />
55 <label for="Control number">Control no: </label>
56 <input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
59 <label for="Any">Any: </label>
60 <input id="srchany" type="text" value="[% mapping.srchany %]" />
63 <label for="Author">Author: </label>
64 <input id="author" type="text" value="[% mapping.author %]" />
67 <label for="ISSN">ISSN: </label>
68 <input id="issn" type="text" value="[% mapping.issn %]" />
71 <label for="Subject">Subject: </label>
72 <input id="subject" type="text" value="[% mapping.subject %]" />
75 <label for="Dewey">Dewey: </label>
76 <input id="dewey" type="text" value="[% mapping.dewey %]" />
79 <label for="Standard ID">Standard ID: </label>
80 <input id="stdid" type="text" value="[% mapping.stdid %]" />
85 <fieldset class="action">
86 <input type="submit" value="Save" class="submit" />
87 <a class="close cancel" href="#">Cancel</a>
92 [% INCLUDE 'intranet-bottom.inc' %]