@@ -, +, @@ authority --- .../prog/en/includes/authorities-toolbar.inc | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc @@ -6,16 +6,15 @@ return false; }); - $("#z3950submit").click(function(){ - [% IF ( authid ) %] - if (confirm(_("Please note that this Z39.50 search could replace the current record."))){ - window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid %]","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); - } - [% ELSE %] - window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); - [% END %] + $("#z3950_new").click(function(){ + window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); return false; }); + $("#z3950_replace").click(function(){ + if (confirm(_("Please note that this Z39.50 search could replace the current record."))){ + window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid %]","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); + } + }); }); @@ -59,8 +58,14 @@ [% END %] + [% IF authid %] +
+ Replace using Z39.50 +
+ [% END %]
- New from Z39.50 + New from Z39.50 +
[% END %] --