Koha-clms/Koha/REST/V1
Tomas Cohen Arazi e03e5a2ece
Bug 24908: Add text-formatted MARC support in /biblios/{biblio_id}
This patch makes the route support requesting (through the Accept
header) the MARC record to be output as formatted text as in
$record->as_formatted.

To test:
1. Apply the unit tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/biblios.t
=> FAIL: Tests fail
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Try the route with your favourite API testing tool (Postman?)
=> SUCCESS: Accept: text/plain returns the expected results
=> SUCCESS: Wrong Accept header returns a list of valid formats, and
includes 'text/plain'.
6. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-29 17:13:36 +01:00
..
Acquisitions Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
Clubs Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
Patrons Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
Auth.pm Bug 25045: Allow restricting anonymous requests on the public API 2020-04-27 11:15:37 +01:00
Biblios.pm Bug 24908: Add text-formatted MARC support in /biblios/{biblio_id} 2020-04-29 17:13:36 +01:00
Checkouts.pm Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
CirculationRules.pm Bug 18936: (QA follow-up) Add missing POD 2020-02-04 09:56:30 +00:00
Cities.pm Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
Holds.pm Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
Illbackends.pm Bug 22615: Fix perlcritic 2020-03-05 13:03:46 +00:00
Illrequests.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Items.pm Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
Libraries.pm Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
OAuth.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Patrons.pm Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
ReturnClaims.pm Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
Stage.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Static.pm Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00