Line 0
Link Here
|
0 |
- |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
2 |
<title>Koha › SRU Search fields mapping</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
|
5 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
7 |
$(document).ready(function() { |
8 |
$("#form01").submit(function(event) { |
9 |
if(window.opener) { |
10 |
var newmap=allInputs(); |
11 |
window.opener.$('#show_sru_fields').val(newmap); |
12 |
window.close(); |
13 |
} else { |
14 |
// In this case not called as a popup. Just do nothing. |
15 |
event.preventDefault(); |
16 |
} |
17 |
}); |
18 |
}); |
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()); |
24 |
} |
25 |
}); |
26 |
return aInput.join(','); |
27 |
} |
28 |
//]]> |
29 |
</script> |
30 |
</head> |
31 |
|
32 |
<body id="sru_modmapping"> |
33 |
<div id="custom-doc" class="yui-t7"> |
34 |
|
35 |
<div id="bd"> |
36 |
<h1>Modify SRU Search fields mapping</h1> |
37 |
<form id="form01" method="post"> |
38 |
<fieldset class="rows"> |
39 |
<legend>Legend </legend> |
40 |
<ul> |
41 |
<li> |
42 |
<label for="Title">Title: </label> |
43 |
<input id="title" type="text" value="[% mapping.title %]" /> |
44 |
</li> |
45 |
<li> |
46 |
<label for="ISBN">ISBN: </label> |
47 |
<input id="isbn" type="text" value="[% mapping.isbn %]" /> |
48 |
</li> |
49 |
<li> |
50 |
<label for="LCCall">LC Call No: </label> |
51 |
<input id="lccall" type="text" value="[% mapping.lccall %]" /> |
52 |
</li> |
53 |
<li> |
54 |
<label for="Control number">Control no: </label> |
55 |
<input id="controlnumber" type="text" value="[% mapping.controlnumber %]" /> |
56 |
</li> |
57 |
<li> |
58 |
<label for="Any">Any: </label> |
59 |
<input id="srchany" type="text" value="[% mapping.srchany %]" /> |
60 |
</li> |
61 |
<li> |
62 |
<label for="Author">Author: </label> |
63 |
<input id="author" type="text" value="[% mapping.author %]" /> |
64 |
</li> |
65 |
<li> |
66 |
<label for="ISSN">ISSN: </label> |
67 |
<input id="issn" type="text" value="[% mapping.issn %]" /> |
68 |
</li> |
69 |
<li> |
70 |
<label for="Subject">Subject: </label> |
71 |
<input id="subject" type="text" value="[% mapping.subject %]" /> |
72 |
</li> |
73 |
<li> |
74 |
<label for="Dewey">Dewey: </label> |
75 |
<input id="dewey" type="text" value="[% mapping.dewey %]" /> |
76 |
</li> |
77 |
<li> |
78 |
<label for="Standard ID">Standard ID: </label> |
79 |
<input id="stdid" type="text" value="[% mapping.stdid %]" /> |
80 |
</li> |
81 |
|
82 |
</ul> |
83 |
</fieldset> |
84 |
<fieldset class="action"> |
85 |
<input type="submit" value="Save" class="submit" /> |
86 |
<a class="close cancel" href="#">Cancel</a> |
87 |
</fieldset> |
88 |
</form> |
89 |
</div> |
90 |
|
91 |
[% INCLUDE 'intranet-bottom.inc' %] |