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

--- Comment #25 from Nick Clemens (kidclamp) <[email protected]> ---
Created attachment 201828
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201828&action=edit
Bug 22439: Add comprehensive tests for generate_marc_host_field item parameter

This patch adds test coverage for the new item parameter functionality in
generate_marc_host_field, ensuring proper behavior with the
EasyAnalyticalRecords
system preference.

Test coverage includes:
- MARC21 item functionality with EasyAnalyticalRecords enabled/disabled
- UNIMARC item functionality with proper biblionumber precedence
- Item-specific subfields: $0 (biblionumber), $9 (itemnumber), $o (barcode)
- Verification that item subfields are only added when EasyAnalyticalRecords is
enabled
- Backward compatibility when no item parameter is provided

The tests verify that biblionumber takes precedence over control number in
UNIMARC when using item-specific data, matching the original PrepHostMarcField
behavior and ensuring compliance with the easy analytics workflow.

To test:
prove t/db_dependent/Koha/Biblio.t

Signed-off-by: Martin Renvoize <[email protected]>
Signed-off-by: Nick Clemens <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to