Created attachment 114853 [details] [review] Bug 27338: Use current window as fallback, if no opener window available during importing record from Z39.50 Test plan: 1) Apply the patch 2) Confirm there is no regression_ 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 3) Open new browser tab/window and go direct to Z39.50 search url: /cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=&frameworkcode=BKS 4) Perform a search and import a record. It should be imported into the current tab/window
Created attachment 114944 [details] [review] Bug 27338: Use current window as fallback, if no opener window available during importing record from Z39.50 Test plan: 1) Apply the patch 2) Confirm there is no regression_ 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 3) Open new browser tab/window and go direct to Z39.50 search url: /cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=&frameworkcode=BKS 4) Perform a search and import a record. It should be imported into the current tab/window Signed-off-by: Michal Denar <black23@gmail.com>
As bug 23302 is PQA, I will rework this on top of it