Lines 3-11
Link Here
|
3 |
[% INCLUDE 'greybox.inc' %] |
3 |
[% INCLUDE 'greybox.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
<script type="text/javascript"> |
5 |
<script type="text/javascript"> |
6 |
$(document).ready(function() { |
6 |
//<![CDATA[ |
7 |
$('#header_search').tabs(); |
7 |
|
8 |
}); |
8 |
$(document).ready(function() { |
|
|
9 |
$("#z3950search").click(function(){ |
10 |
PopupZ3950(); |
11 |
return false; |
12 |
}); |
13 |
}); |
14 |
|
15 |
/* this function open a popup to search on z3950 server. */ |
16 |
function PopupZ3950() { |
17 |
var strQuery = GetZ3950Terms(); |
18 |
if(strQuery){ |
19 |
window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]"+strQuery,"z3950search",'width=760,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'); |
20 |
} |
21 |
} |
22 |
/* provide Z3950 search points */ |
23 |
function GetZ3950Terms(){ |
24 |
var strQuery="&frameworkcode="; |
25 |
[% FOREACH z3950_search_param IN z3950_search_params %] |
26 |
strQuery += "&" + "[% z3950_search_param.name %]" + "=" + "[% z3950_search_param.encvalue %]"; |
27 |
[% END %] |
28 |
return strQuery; |
29 |
} |
30 |
//]]> |
9 |
</script> |
31 |
</script> |
10 |
</head> |
32 |
</head> |
11 |
<body id="cat_addbooks" class="cat"> |
33 |
<body id="cat_addbooks" class="cat"> |
Lines 19-25
Link Here
|
19 |
<div id="bd"> |
41 |
<div id="bd"> |
20 |
<div id="yui-main"> |
42 |
<div id="yui-main"> |
21 |
|
43 |
|
22 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% INCLUDE 'cataloging-toolbar.inc' %][% END %] |
44 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
|
|
45 |
<div id="newmenuc" class="btn-toolbar"> |
46 |
<div class="btn-group"> |
47 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New record <span class="caret"></span></button> |
48 |
<ul class="dropdown-menu"> |
49 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> |
50 |
[% FOREACH frameworkcodeloo IN frameworkcodeloop %] |
51 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% frameworkcodeloo.value %]">[% frameworkcodeloo.frameworktext %]</a></li> |
52 |
[% END %] |
53 |
</ul> |
54 |
</div> |
55 |
<div class="btn-group"><a id="z3950search" class="btn btn-small" href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]&frameworkcode=[% FOREACH z3950_search_param IN z3950_search_params %]&[% z3950_search_param.name %]=[% z3950_search_param.encvalue %][% END %]"><i class="icon-search"></i> Z39.50 search</a></div> |
56 |
</div> |
57 |
[% END %] |
23 |
|
58 |
|
24 |
[% IF ( noitemsfound ) %] |
59 |
[% IF ( noitemsfound ) %] |
25 |
No results found |
60 |
No results found |
26 |
- |
|
|