2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › SRU search fields mapping</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="admin_sru_modmapping" class="admin">
9 <div id="custom-doc" class="yui-t7">
12 <h1>Modify SRU search fields mapping</h1>
13 <form id="form01" method="post">
14 <fieldset class="rows">
16 <div class="yui-u first">
19 <label for="title">Title: </label>
20 <input id="title" type="text" value="[% mapping.title %]" />
23 <label for="isbn">ISBN: </label>
24 <input id="isbn" type="text" value="[% mapping.isbn %]" />
27 <label for="lccall">LC call number: </label>
28 <input id="lccall" type="text" value="[% mapping.lccall %]" />
31 <label for="controlnumber">Control number: </label>
32 <input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
35 <label for="srchany">Any: </label>
36 <input id="srchany" type="text" value="[% mapping.srchany %]" />
43 <label for="author">Author: </label>
44 <input id="author" type="text" value="[% mapping.author %]" />
47 <label for="issn">ISSN: </label>
48 <input id="issn" type="text" value="[% mapping.issn %]" />
51 <label for="subject">Subject: </label>
52 <input id="subject" type="text" value="[% mapping.subject %]" />
55 <label for="dewey">Dewey: </label>
56 <input id="dewey" type="text" value="[% mapping.dewey %]" />
59 <label for="stdid">Standard ID: </label>
60 <input id="stdid" type="text" value="[% mapping.stdid %]" />
66 <fieldset class="action">
67 <input type="submit" value="Save" class="submit" />
68 <a class="close cancel" href="#">Cancel</a>
73 [% MACRO jsinclude BLOCK %]
74 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
75 <script type="text/javascript">
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 'popup-bottom.inc' %]