Possibly related, but not the same: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15360 Reproducing: - Search for a book under "Search the catalog", e.g. /cgi-bin/koha/catalogue/search.pl?q=movement - Note the biblionumber of the last book of the first page of the search results. It's 10624 in my case, and the title is "A political history of early Christianity". - Now click "Z39.50/SRU search" in the toolbar (between "Place hold" and "Sort"). - Click search in the popup window and wait for results. - Choose any book from the results and click "Actions" -> "Import". In my case I'm picking a book called "Against capital punishment". - The popup closes, and the catalog search results tab is directed to /cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=10624&z3950=1&breedingid=411522 Expected behaviour: - The title of the addbiblio.pl page should be "Add MARC record". - Clicking "Save" should add a new record to the catalog. Current behaviour: - The title of the addbiblio.pl page is "Editing Against capital punishment [electronic resource] : the anti-death penalty movement in America, 1972-1994 / Herbert H. Haines. (Record number 10624)". Note that this is the biblionumber of an existing book. More specifically, the last one from the first page of the search results mentioned above. - Clicking "Save" replaces "A political history of early Christianity" with "Against capital punishment". Additional information: Following the same process, but starting on "Cataloging Search" at /cgi-bin/koha/cataloguing/addbooks.pl instead of "Search the catalog" does NOT cause this problem, but causes a the MARC record to be imported as a NEW biblio, as expected.
I tested on 18.05.something and on current master, and could not reproduce the issue. I note that you marked it as 18.11.
I recently had this issue on a Koha 22.05.09-1. I believe this should be raised to major, since imply lost of information; unintentionally replacing biblio records by librarians.
We encountered this situation with 22.05.07.000 Clicking on the z39.50 search button while on a results page causes the replacement of the last biblio record of the page by the imported biblio record, as described by Rudolf in 2019.
I tried on master and 21.11 and cannot reproduce. I only saw URL where biblionumber in the URL was empty. So in that case there is no overwrite. Please provide the steps in a more accurate way to reproduce.
Is there any preference or so involved in the game ?
[14:26] <Joubu> js/pages/results.js [14:26] <Joubu> 394 function PopupZ3950() { [14:26] <Joubu> is using strQuery [14:27] <Joubu> 631 $template->param (z3950_search_params => C4::Search::z3950_search_args($z3950par || $query_desc)); [14:27] <Joubu> because before we had: catalogue/results.tt [14:27] <Joubu> 812 [%- FOREACH z3950_search_param IN z3950_search_params -%] [14:27] <Joubu> 813 strQuery += "&" + "[% z3950_search_param.name |uri %]" + "=" + "[% z3950_search_param.value |uri %]"; [14:27] <Joubu> 814 [%- END -%] [14:29] <Joubu> I can easily imagine a generic 'biblionumber' coming from somewhere else
*** This bug has been marked as a duplicate of bug 32172 ***