El vie., 22 ene. 2021 10:09, Marcel de Rooy <M.de.Rooy@rijksmuseum.nl> escribió:
Thanks. Overlaying the whole marc record is interesting too. Overwriting specific fields might offer some more fine grained control however too. 

Something like:

PUT /api/v1/biblios/123456/marc

The fact you're passing MARC is just Content-Type, no need to make it part of the URL. PUT and POST are in the roadmap. I was mostly waiting for Koha::Biblio to have new_from_marc and set_from_marc methods.

POST, PUT /api/v1/biblios/123456/marc/field/789  ?

I think the MARC-in-JSON format is simple enough to just handle this using PATCH. 





Marcel

X
X!

​T/m 18 jaar gratis 
​In verband met de coronamaatregelen is het
​boeken van een starttijd noodzakelijk.


​Kijk hier de nieuwste aflevering van Rijksmuseum Unlocked
x!

x
xx

​Please think before you print

Van: Koha-devel <koha-devel-bounces@lists.koha-community.org> namens Tomas Cohen Arazi <tomascohen@gmail.com>
Verzonden: vrijdag 22 januari 2021 13:38
Aan: Marcel de Rooy <rooy.de.m@gmail.com>
CC: koha-devel <koha-devel@lists.koha-community.org>
Onderwerp: Re: [Koha-devel] REST API / MARC fields
 
We could have a route to overlay the MARC representation of a biblio (if acceptable). We could use

PATCH /biblios/:biblio_id
Content-Type: application/marc-in-json
{ ...




El vie., 22 ene. 2021 6:20, Marcel de Rooy <rooy.de.m@gmail.com> escribió:
Hi all,

Any thoughts here about how we should handle updating fields in MARC which have no specific corresponding database field.
I am thinking about e.g. a persistent identifier in MARC21 field 024 or an OCLC number in field 035.
Could we add REST API entries for such changes as well? They will only generate changes in the marcxml for now..

Thanks,
Marcel
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/