Lines 1-88
Link Here
|
|
|
1 |
[% SET footerjs = 1 %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › SRU search fields mapping for authorities</title> |
3 |
<title>Koha › SRU search fields mapping for authorities</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% 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> |
5 |
</head> |
31 |
|
6 |
|
32 |
<body id="admin_sru_modmapping" class="admin"> |
7 |
<body id="admin_sru_modmapping" class="admin"> |
33 |
|
8 |
|
34 |
<div id="custom-doc" class="yui-t7"> |
9 |
<div class="main container-fluid"> |
35 |
|
10 |
|
36 |
<div id="bd"> |
11 |
<main> |
37 |
<h1>Modify SRU search fields mapping for authorities</h1> |
12 |
<h1>Modify SRU search fields mapping for authorities</h1> |
38 |
<form id="form01" method="post"> |
13 |
<form id="form01" method="post"> |
39 |
<fieldset class="rows"> |
14 |
<fieldset class="rows"> |
40 |
<div class="yui-g"> |
15 |
<div class="row"> |
41 |
<div class="yui-u first"> |
16 |
<div class="col-xs-6"> |
42 |
<ol> |
17 |
<ol> |
43 |
<li> |
18 |
<li> |
44 |
<label for="srchany">Keyword (any): </label> |
19 |
<label for="srchany">Keyword (any): </label> |
45 |
<input id="srchany" type="text" value="[% FILTER html %][% mapping.srchany | html %][% END %]" /> |
20 |
<input id="srchany" type="text" value="[% mapping.srchany | html %]" /> |
46 |
</li> |
21 |
</li> |
47 |
<li> |
22 |
<li> |
48 |
<label for="nameany">Name (any): </label> |
23 |
<label for="nameany">Name (any): </label> |
49 |
<input id="nameany" type="text" value="[% FILTER html %][% mapping.nameany | html %][% END %]" /> |
24 |
<input id="nameany" type="text" value="[% mapping.nameany | html %]" /> |
50 |
</li> |
25 |
</li> |
51 |
<li> |
26 |
<li> |
52 |
<label for="authorany">Author (any): </label> |
27 |
<label for="authorany">Author (any): </label> |
53 |
<input id="authorany" type="text" value="[% FILTER html %][% mapping.authorany | html %][% END %]" /> |
28 |
<input id="authorany" type="text" value="[% mapping.authorany | html %]" /> |
54 |
</li> |
29 |
</li> |
55 |
<li> |
30 |
<li> |
56 |
<label for="authorpersonal">Author (personal): </label> |
31 |
<label for="authorpersonal">Author (personal): </label> |
57 |
<input id="authorpersonal" type="text" value="[% FILTER html %][% mapping.authorpersonal | html %][% END %]" /> |
32 |
<input id="authorpersonal" type="text" value="[% mapping.authorpersonal | html %]" /> |
58 |
</li> |
33 |
</li> |
59 |
<li> |
34 |
<li> |
60 |
<label for="authorcorp">Author (corporate): </label> |
35 |
<label for="authorcorp">Author (corporate): </label> |
61 |
<input id="authorcorp" type="text" value="[% FILTER html %][% mapping.authorcorp | html %][% END %]" /> |
36 |
<input id="authorcorp" type="text" value="[% mapping.authorcorp | html %]" /> |
62 |
</li> |
37 |
</li> |
63 |
<li> |
38 |
<li> |
64 |
<label for="authormeetingcon">Author (meeting/conference): </label> |
39 |
<label for="authormeetingcon">Author (meeting/conference): </label> |
65 |
<input id="authormeetingcon" type="text" value="[% FILTER html %][% mapping.authormeetingcon | html %][% END %]" /> |
40 |
<input id="authormeetingcon" type="text" value="[% mapping.authormeetingcon | html %]" /> |
66 |
</li> |
41 |
</li> |
67 |
</ol> |
42 |
</ol> |
68 |
</div> |
43 |
</div> |
69 |
<div class="yui-u"> |
44 |
<div class="col-xs-6"> |
70 |
<ol> |
45 |
<ol> |
71 |
<li> |
46 |
<li> |
72 |
<label for="subject">Subject heading: </label> |
47 |
<label for="subject">Subject heading: </label> |
73 |
<input id="subject" type="text" value="[% FILTER html %][% mapping.subject | html %][% END %]" /> |
48 |
<input id="subject" type="text" value="[% mapping.subject | html %]" /> |
74 |
</li> |
49 |
</li> |
75 |
<li> |
50 |
<li> |
76 |
<label for="subjectsubdiv">Subject sub-division: </label> |
51 |
<label for="subjectsubdiv">Subject sub-division: </label> |
77 |
<input id="subjectsubdiv" type="text" value="[% FILTER html %][% mapping.subjectsubdiv | html %][% END %]" /> |
52 |
<input id="subjectsubdiv" type="text" value="[% mapping.subjectsubdiv | html %]" /> |
78 |
</li> |
53 |
</li> |
79 |
<li> |
54 |
<li> |
80 |
<label for="title">Title (any): </label> |
55 |
<label for="title">Title (any): </label> |
81 |
<input id="title" type="text" value="[% FILTER html %][% mapping.title | html %][% END %]" /> |
56 |
<input id="title" type="text" value="[% mapping.title | html %]" /> |
82 |
</li> |
57 |
</li> |
83 |
<li> |
58 |
<li> |
84 |
<label for="uniformtitle">Title (uniform): </label> |
59 |
<label for="uniformtitle">Title (uniform): </label> |
85 |
<input id="uniformtitle" type="text" value="[% FILTER html %][% mapping.uniformtitle | html %][% END %]" /> |
60 |
<input id="uniformtitle" type="text" value="[% mapping.uniformtitle | html %]" /> |
86 |
</li> |
61 |
</li> |
87 |
</ol> |
62 |
</ol> |
88 |
</div> |
63 |
</div> |
Lines 95-98
Link Here
|
95 |
</form> |
70 |
</form> |
96 |
</div> |
71 |
</div> |
97 |
|
72 |
|
|
|
73 |
[% MACRO jsinclude BLOCK %] |
74 |
<script> |
75 |
$(document).ready(function() { |
76 |
$("#form01").submit(function(event) { |
77 |
if(window.opener) { |
78 |
var newmap=allInputs(); |
79 |
window.opener.$('#show_sru_fields').val(newmap); |
80 |
window.close(); |
81 |
} else { |
82 |
// In this case not called as a popup. Just do nothing. |
83 |
event.preventDefault(); |
84 |
} |
85 |
}); |
86 |
}); |
87 |
function allInputs () { |
88 |
var aInput= new Array(); |
89 |
$("form :input").each(function() { |
90 |
if( this.id && $(this).val() ) { |
91 |
aInput.push(this.id+'='+$(this).val()); |
92 |
} |
93 |
}); |
94 |
return aInput.join(','); |
95 |
} |
96 |
</script> |
97 |
[% END %] |
98 |
|
98 |
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] |
99 |
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] |
99 |
- |
|
|