[Koha-bugs] [Bug 31224] Koha::Biblio::Metadata->record should use the EmbedItems filter

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 19 11:25:12 CEST 2022


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

--- Comment #19 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
OK.. So I've worked through a grep of `metadata->record(` to catch all cases
where we were applying filters to the record (well.. all cases that did it
directly on fetch and not as a second step) for controllers and modules only at
this point.. I will follow-up and do tests next.

After working through I decided to update the new method to accept an
'interface' parameter instead of using 'opac' as a boolean.. this allows for
'opac', 'intranet' and 'undefined' as options giving us a little more control
for the ViewPolicy filter use case.

I opted not to port the optional passing of a list of itemnumbers to embed as
there's only one use case of it.. so instead I added the RecordProcesser to the
controller in that case.

Let me know what you think.. I'm also still somewhat open on the method name..
'metadata_record' vs 'filtered_record' or 'record_filtered' or something along
those lines?

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


More information about the Koha-bugs mailing list