@@ -, +, @@ window available during importing record from Z39.50 2a) Go to cataloguing (basic editor) 2b) Click on "New from Z39.50/SRU" or some dropdown variant for particular framework 2c) Perform a search and import a record 2f) Record is imported into editor and search window is closed /cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=&frameworkcode=BKS --- koha-tmpl/intranet-tmpl/prog/js/z3950_search.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/z3950_search.js +++ a/koha-tmpl/intranet-tmpl/prog/js/z3950_search.js @@ -1,13 +1,15 @@ /* global __ total_pages */ //z3950_search.js for Authorities, Bib records and Acquisitions module function Import(Breeding, recordid, AuthType, FrameworkCode) { - + target = (window.opener != null) ? window.opener.document : document; if ( AuthType == false ) { - opener.document.location="../cataloguing/addbiblio.pl?biblionumber="+recordid+"&z3950=1&frameworkcode="+FrameworkCode+"&breedingid="+Breeding; + target.location="../cataloguing/addbiblio.pl?biblionumber="+recordid+"&z3950=1&frameworkcode="+FrameworkCode+"&breedingid="+Breeding; } else { - opener.document.location="../authorities/authorities.pl?breedingid="+Breeding+"&authtypecode="+AuthType+"&authid="+recordid; + target.location="../authorities/authorities.pl?breedingid="+Breeding+"&authtypecode="+AuthType+"&authid="+recordid; + } + if (window.opener != null) { + window.close(); } - window.close(); return false; } --