https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40962 --- Comment #7 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195750&action=edit Bug 40962: Apply ViewPolicy filter consistently in OAI Server test setup The test built @marcxml and @oaidc expected data using metadata_record() with no parameters, while the OAI server's get_biblio_marcxml() always calls metadata_record({ interface => 'opac' }), which applies the ViewPolicy filter. On nodes where the MARC framework has non-default hidden values (or a stale cache entry), ViewPolicy strips fields like 245, causing the expected and actual responses to diverge. Fix by using interface => 'opac' when building the expected data, and deriving dc:title from the filtered MARC record rather than hardcoding it, so both sides of every comparison go through the same code path. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.