Bug 37110 - Add Replace record via Z39.50/SRU search button to Advanced Editor
Summary: Add Replace record via Z39.50/SRU search button to Advanced Editor
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 08:12 UTC by Iming Chan
Modified: 2024-06-24 19:38 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iming Chan 2024-06-18 08:12:30 UTC
Introduce "Replace record via Z39.50/SRU search" button to Advanced Editor like for the Normal Editor.
Comment 1 Phil Ringnalda 2024-06-23 21:47:07 UTC
Not a bad idea, but it wouldn't and couldn't be like the basic editor's one. That one is deeply tied to calling stuff in Perl that isn't exposed via JS, and triggers a search form that doesn't return records in the form the advanced editor uses. It's also a single form that works from both viewing an existing record and also from the editor, so it limits itself to things that are in the biblio and biblioitems table. And if you look closely at it, it's horribly crufty and fails to do most of the things that parts of the code think they are doing.

So implementing something similar for the advanced editor would require a spec for what things we want to prefill from where (getting Standard number out of 024 would be huge for me, replacing DVD/CD/board game records, where I have to copy it and paste into the advanced search modal, unlike ISBN that I can just drag from the record to the search form), and probably a per-user way to configure which ones to prefill, since which you want will not only depend on what's in the record but also on what works with your search targets.
Comment 2 Esther Melander 2024-06-24 19:24:44 UTC
The Advanced Search link on the left side of the Advanced Editor is how one gains access to a z39.50 search in order to overlay or import records. Perhaps that link could be changed to a button and/or be renamed to more clearly express the kind of search it is.
Comment 3 Phil Ringnalda 2024-06-24 19:38:09 UTC
Well, the Advanced link is how you get to more (empty) fields, the fields above it are how you more quickly do the exact same thing with the four most popular searches, in each case with the option to either Substitute if you want to replace the existing record you were editing or to Import if you want a new record, but the thing that the Replace via Z39.50/SRU button in the basic editor does that nothing in the Advanced editor does is to fill in the ISBN/ISSN, author, and title search fields from your existing record.