]> git.koha-community.org Git - koha.git/commit
Bug 22144: Add method metadata() to Koha::Biblio
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 16 Jan 2019 19:25:07 +0000 (14:25 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 30 Jan 2019 11:50:48 +0000 (11:50 +0000)
commita681830f2ba36496eb7b86d562d1a625b7e04c94
tree97db7006d13870eeedbb840e789a2665bd395345
parent78bba50d462880087a2c9539d3aff8c262267d10
Bug 22144: Add method metadata() to Koha::Biblio

It would be very convenient to be able to retrieve a bib's attached metadata objects directly from the biblio object. This would be very useful for Template Toolkit syntax in slips and notices where a library would like to use arbitrary metadata fields that aren't stored in the database.

Test Plan:
1) Apply this patch
2) prove t/db_dependent/Koha/Biblio.t

Signed-off-by: Te Rahui Tunua <terahuitunua@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Biblio.pm
Koha/Biblio/Metadata.pm
t/db_dependent/Koha/Biblio.t [new file with mode: 0644]