Koha-clms/Koha/REST/V1
Tomas Cohen Arazi 52d3b5439d
Bug 24366: Merge biblioitem in Koha::Biblio->to_api
This patch moves the bilbioitem object merge into the
Koha::Biblio->to_api method, as opposed to doing it in the controller.
This is an inevitable change as other endpoints might require to embed
biblio objects, and they need to carry the biblioitem information.

Also, if we merge the tables, the transition will be straightforward
(remove the tests this patch introduces, and merge the mappings from
Koha::Biblioitem into Koha::Biblio).

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t \
           t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass! i.e. the new to_api method is tested, and the
API tests don't expect any behavior change.
3. Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-14 14:12:46 +00:00
..
Acquisitions Bug 18731: (QA follow-up) Spelling and POD corrections 2020-01-09 16:26:07 +00:00
Clubs Bug 23843: Add mapping to Koha::Club::Holds 2019-10-23 18:03:03 +01:00
Patrons Bug 24321: Clean /patrons/{patron_id}/account 2020-01-08 14:42:52 +00:00
Auth.pm Bug 18731: Make authenticate_api_request stash the embed structure 2020-01-09 16:25:23 +00:00
Biblios.pm Bug 24366: Merge biblioitem in Koha::Biblio->to_api 2020-01-14 14:12:46 +00:00
Checkouts.pm Bug 24321: Clean /checkouts 2020-01-08 14:42:39 +00:00
Cities.pm Bug 24321: Clean /cities 2020-01-08 14:42:22 +00:00
Holds.pm Bug 24321: Clean /holds 2020-01-08 14:42:56 +00:00
Illrequests.pm Bug 21460: (follow-up) Fix bugs found in QA 2019-04-25 10:46:56 +00:00
Items.pm Bug 24321: Clean /items 2020-01-08 14:42:48 +00:00
Libraries.pm Bug 24321: Clean /libraries 2020-01-08 14:42:36 +00:00
OAuth.pm Bug 23146: Add support for Basic auth on the OAuth2 token endpoint 2019-06-24 16:05:31 +01:00
Patrons.pm Bug 24321: Clean /patrons 2020-01-08 14:43:00 +00:00
ReturnClaims.pm Bug 14697: (QA follow-up) Organize tests in subtests 2019-10-31 12:05:14 +00:00
Stage.pm Revert "Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes" 2019-02-26 11:04:08 -05:00
Static.pm Bug 22835: (follow-up) Remove comented code 2019-06-18 17:34:53 +01:00