[Koha-bugs] [Bug 33036] REST API: Merge biblio records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 24 14:57:47 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33036

--- Comment #24 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #23)
> 
> 6. Not sure about the response of the endpoint, IMO it should return the
> biblio generated by the merge.
> Also the response contains "merged" and "kept" with the IDs we passed, it
> does not seem needed.

I'd say it needs to return the resulting object, with the Location header
pointing to the /biblios/:biblio_id endpoint (instead of the /merge)

> Note that Tomas suggested on the list:
> POST /biblios/123/merges
> {
>     "biblio_id": 456,
>     "rules": ?
> }

Yes, we certainly need a way to specify what to pick from which record... An
initial implementation could just implement a full overwrite (i.e. effectively
moving the items and removing the biblio) but it needs to allow, by design, for
future enhancements like this, so it is more useful.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list