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