Bug 14829: Fix shortcuts in the cataloging and patron modules
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities-toolbar.inc
index 972cea6..b460cdc 100644 (file)
@@ -7,7 +7,13 @@
         });
 
         $("#z3950submit").click(function(){
-            window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
+            [% 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=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
+                }
+            [% ELSE %]
+                window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
+            [% END %]
             return false;
         });
 
@@ -54,7 +60,7 @@
         </ul>
     </div>
     <div class="btn-group">
-        <a class="btn btn-small" id="z3950submit" href="#"><i class="icon-search"></i> Z39.50 search</a>
+        <a class="btn btn-small" id="z3950submit" href="#"><i class="icon-search"></i> New from Z39.50</a>
     </div>
 [% END %]
 </div>