<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie., 22 ene. 2021 10:09, Marcel de Rooy <<a href="mailto:M.de.Rooy@rijksmuseum.nl" target="_blank" rel="noreferrer">M.de.Rooy@rijksmuseum.nl</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks. Overlaying the whole marc record is interesting too. Overwriting specific fields might offer some more fine grained control however too. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Something like:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
PUT /api/v1/biblios/123456/marc</div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)" dir="auto"></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)" dir="auto"><div dir="auto"><span style="font-size:12pt">POST, PUT /api/v1/biblios/123456/marc/</span><span style="font-size:12pt">field/789  ?</span></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I think the MARC-in-JSON format is simple enough to just handle this using PATCH. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)" dir="auto"><div dir="auto"><br></div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Marcel</div>
<div>
<div id="m_6456824216072055415m_-539272169462994413appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div><table cellpadding="0" cellspacing="0" border="0" style="width:100%"><tbody><tr style="font-size:0"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;font-style:normal;font-weight:400;white-space:nowrap"><tbody><tr style="font-size:0"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0"><tbody><tr style="font-size:0;line-height:normal"><td align="left" style="vertical-align:top"><a href="https://www.rijksmuseum.nl/nl/steun/vriendschappen" id="m_6456824216072055415m_-539272169462994413LPlnk689713" style="text-decoration:none" rel="noreferrer noreferrer" target="_blank"><img src="cid:image737934.png@472DE82C.A485212C" width="250" height="66" border="0" alt="" style="width:250px;min-width:250px;max-width:250px;height:66px;min-height:66px;max-height:66px;font-size:0"></a></td></tr><tr style="font-size:14.67px;color:#ffffff;font-style:normal;font-weight:400;white-space:nowrap"><td align="left" style="vertical-align:top;font-family:Verdana">X<span style="font-family:remialcxesans;font-size:1px;line-height:1px">​</span></td></tr><tr style="font-size:14.67px;color:#ffffff;font-style:normal;font-weight:400;white-space:nowrap"><td align="left" style="vertical-align:top;font-family:Verdana">X!<br></td></tr><tr style="font-size:0;line-height:normal"><td align="left" style="vertical-align:top"><a href="https://www.rijksmuseum.nl/" id="m_6456824216072055415m_-539272169462994413LPlnk689713" style="text-decoration:none" rel="noreferrer noreferrer" target="_blank"><img src="cid:image057227.jpg@554D9F74.4920F257" width="217" height="26" border="0" alt="" style="width:217px;min-width:217px;max-width:217px;height:26px;min-height:26px;max-height:26px;font-size:0"></a></td></tr><tr style="font-size:0"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:#000001;font-size:14.67px;font-family:Verdana;font-weight:700;font-style:normal;text-align:left;line-height:20px"><tbody><tr style="font-size:12px"><td style="font-family:RijksText,Arial,sans-serif"><br>​T/m 18 jaar gratis <br><a href="https://www.rijksmuseum.nl/nl/tickets/artikelen" id="m_6456824216072055415m_-539272169462994413LPlnk689713" title="Tickets" style="text-decoration:none;color:#000001" rel="noreferrer noreferrer" target="_blank"><strong style="font-weight:700">​In verband met de coronamaatregelen is het <br>​boeken van een starttijd noodzakelijk.</strong></a><br>​<br>​Kijk <span style="text-decoration:underline"><a href="https://youtu.be/OI_uT2o7bqc" id="m_6456824216072055415m_-539272169462994413LPlnk689713" title="Rijksmuseum Unlocked" style="text-decoration:underline;color:#000001" rel="noreferrer noreferrer" target="_blank"><strong style="font-weight:700">hier</strong></a></span> de nieuwste aflevering van Rijksmuseum Unlocked<br></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="font-size:14.67px;color:#ffffff"><td align="left" style="vertical-align:top;font-family:Verdana">x!</td></tr><tr style="font-size:14.67px;color:#000001"><td align="left" style="vertical-align:top;font-family:Verdana"><br></td></tr><tr style="font-size:0"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal"><tbody><tr style="font-size:0"><td align="left" style="vertical-align:top"><a href="https://www.instagram.com/rijksmuseum/" id="m_6456824216072055415m_-539272169462994413LPlnk689713" style="text-decoration:none" rel="noreferrer noreferrer" target="_blank"><img src="cid:image481710.png@F688075F.9D4F456B" width="25" border="0" alt="" style="width:25px;min-width:25px;max-width:25px;font-size:0"></a></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="white-space:nowrap;color:#ffffff;font-size:14.67px;font-family:Verdana;font-weight:400;font-style:normal;text-align:left;width:2px"><tbody><tr style="font-size:14.67px"><td style="font-family:Verdana">x</td></tr></tbody></table></td><td align="left" style="vertical-align:top"><a href="https://www.facebook.com/rijksmuseum" id="m_6456824216072055415m_-539272169462994413LPlnk689713" style="text-decoration:none" rel="noreferrer noreferrer" target="_blank"><img src="cid:image676877.png@F510032E.790B3EFD" width="25" border="0" alt="" style="width:25px;min-width:25px;max-width:25px;font-size:0"></a></td><td align="left" style="vertical-align:top;font-size:14.67px;color:#ffffff;font-family:Verdana;font-style:normal;font-weight:400;white-space:nowrap">x</td><td align="left" style="vertical-align:top"><a href="https://www.linkedin.com/company/rijksmuseum/" id="m_6456824216072055415m_-539272169462994413LPlnk689713" style="text-decoration:none" rel="noreferrer noreferrer" target="_blank"><img src="cid:image447450.png@CBD249C7.9C798847" width="25" border="0" alt="" style="width:25px;min-width:25px;max-width:25px;font-size:0"></a></td><td align="left" style="vertical-align:top;font-size:14.67px;color:#ffffff;font-family:Verdana;font-style:normal;font-weight:400;white-space:nowrap">x</td><td align="left" style="vertical-align:top"><a href="https://twitter.com/rijksmuseum" id="m_6456824216072055415m_-539272169462994413LPlnk689713" style="text-decoration:none" rel="noreferrer noreferrer" target="_blank"><img src="cid:image637524.png@A8B35D54.EEBC28EB" width="25" border="0" alt="" style="width:25px;min-width:25px;max-width:25px;font-size:0"></a></td></tr></tbody></table></td></tr><tr style="font-size:12px;color:#00b050;font-weight:700"><td align="left" style="vertical-align:top;font-family:Verdana"><br>​Please think before you print<br></td></tr></tbody></table></td></tr></tbody></table></div><hr style="display:inline-block;width:98%">
<div id="m_6456824216072055415m_-539272169462994413divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Van:</b> Koha-devel <<a href="mailto:koha-devel-bounces@lists.koha-community.org" rel="noreferrer noreferrer" target="_blank">koha-devel-bounces@lists.koha-community.org</a>> namens Tomas Cohen Arazi <<a href="mailto:tomascohen@gmail.com" rel="noreferrer noreferrer" target="_blank">tomascohen@gmail.com</a>><br>
<b>Verzonden:</b> vrijdag 22 januari 2021 13:38<br>
<b>Aan:</b> Marcel de Rooy <<a href="mailto:rooy.de.m@gmail.com" rel="noreferrer noreferrer" target="_blank">rooy.de.m@gmail.com</a>><br>
<b>CC:</b> koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" rel="noreferrer noreferrer" target="_blank">koha-devel@lists.koha-community.org</a>><br>
<b>Onderwerp:</b> Re: [Koha-devel] REST API / MARC fields</font>
<div> </div>
</div>
<div>
<div dir="auto">We could have a route to overlay the MARC representation of a biblio (if acceptable). We could use
<div dir="auto"><br>
</div>
<div dir="auto">PATCH /biblios/:biblio_id</div>
<div dir="auto">Content-Type: application/marc-in-json</div>
<div dir="auto">{ ...</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
<br>
<div>
<div dir="ltr">El vie., 22 ene. 2021 6:20, Marcel de Rooy <<a href="mailto:rooy.de.m@gmail.com" rel="noreferrer noreferrer" target="_blank">rooy.de.m@gmail.com</a>> escribió:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>Any thoughts here about how we should handle updating fields in MARC which have no specific corresponding database field.</div>
<div>I am thinking about e.g. a persistent identifier in MARC21 field 024 or an OCLC number in field 035.</div>
<div>Could we add REST API entries for such changes as well? They will only generate changes in the marcxml for now..</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Marcel</div>
</div>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" rel="noreferrer noreferrer noreferrer" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.koha-community.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fkoha-devel&data=04%7C01%7Cm.de.rooy%40rijksmuseum.nl%7C8a43a8da6b554e41b3b108d8bed2ba1d%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C637469159561939658%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=stBfgoLskKrgvFhMGNVV16wPP%2B%2Fujj3cxlnNjZHx8P8%3D&reserved=0" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.koha-community.org%2F&data=04%7C01%7Cm.de.rooy%40rijksmuseum.nl%7C8a43a8da6b554e41b3b108d8bed2ba1d%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C637469159561949653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1cSgyDiK99%2Fts6gHaB2ykUq14RnsqLA7oYrMnQZ1Xho%3D&reserved=0" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">
https://www.koha-community.org/</a><br>
git : <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.koha-community.org%2F&data=04%7C01%7Cm.de.rooy%40rijksmuseum.nl%7C8a43a8da6b554e41b3b108d8bed2ba1d%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C637469159561949653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=uY%2BCVgf8svk4GJqQQPNbZdOlxQo%2BWB4psGleHBf14zw%3D&reserved=0" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">
https://git.koha-community.org/</a><br>
bugs : <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.koha-community.org%2F&data=04%7C01%7Cm.de.rooy%40rijksmuseum.nl%7C8a43a8da6b554e41b3b108d8bed2ba1d%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C637469159561959648%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=I8u%2FDourFHEiGEEscgPFGcfPMzP3VtqgzVNky1NNoTY%3D&reserved=0" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">
https://bugs.koha-community.org/</a><br>
</blockquote>
</div>
</div>
</div>
</div>

</blockquote></div></div></div>