[Koha-bugs] [Bug 31801] REST API: PUT endpoint for Biblios

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 4 15:08:47 CET 2023


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

Jan Kissig <bibliothek at th-wildau.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bibliothek at th-wildau.de

--- Comment #4 from Jan Kissig <bibliothek at th-wildau.de> ---
Great that this route is going to be implemented in core. 
There is plugin available at
https://github.com/NatLibFi/koha-plugin-rest-biblios.

I found that if  MARCOverlayRules are used, f.e. protect field 100 from being
overwritten, the field is overwritten if api is used.

Can you verify this?

A modified test plan would be
1. Apply patch
2. Set RESTBasicAuth preference to true
3. Add Marc overlay rule in administration / MARC overlay rules 
  module = source
  filter = *
  tag = 001
  preset = protect
4. Set MARCOverlayRules to Use in system prefs
5. Pick a biblio to modify, and modify it's marc record especially field 001
6. Make a PUT request to /api/v1/biblios/:biblionumber with one of the
following content type header
  - application/marcxml+xml
  - application/marc-in-json
  - application/marc
7. Add the following header in the request 'x-framework-id: <framework id>'
8. Check that the biblio was modified but not field 001

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


More information about the Koha-bugs mailing list