]> git.koha-community.org Git - koha.git/commit
Bug 32336: (QA follow-up) Use $metadata->schema
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 23 Mar 2023 23:16:37 +0000 (20:16 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Mar 2023 09:56:48 +0000 (11:56 +0200)
commit075ef09f48b66df7766c22e1c9ecf1d3cf7a039a
tree63f41dcfbdef1fc055def01b04262fe3bc22c701
parent1a02ba56f177fe6d05ad9ae1518d583c6a3ea8ac
Bug 32336: (QA follow-up) Use $metadata->schema

When we worked on Koha::Biblio::Metadata, we agreed
biblio_metadata.schema would be the sourceof truth when it comes to the
record schema.

This patch acknowledges that, while retaining the fallback to the
syspref.

To test:
1. Apply this patch
2. Run:
   $ prove t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass, behavior is unchanged.
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Biblios.pm