https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39516 --- Comment #3 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 197162 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197162&action=edit Bug 39516: Display composite match scores in staged batch view Adds a new "Score breakdown" column to the staged MARC batch view that shows the per-matchpoint score contributions for each candidate match, e.g. "title:50, author:50" or "isbn:100", rather than a single opaque total. The column is hidden by default and can be toggled via the standard column configuration tool (Administration > Table settings > Tools > manage-marc-import). The existing "Match details" column continues to show the numeric total score unchanged. Falls back to displaying the raw aggregate score for any pre-existing import_record_matches rows that have no composite_scores data. To test: 1. Ensure you have a bibliographic matching rule with at least two matchpoints, e.g.: - Match point: search index "title", score 50, tag 245$a - Match point: search index "author", score 50, tag 100$a - Match point: search index "isbn", score 100, tag 020$a Set the threshold to 100. 2. Prepare two MARC files: a. A record that matches an existing catalogue entry via title + author (but not ISBN). b. A record that matches solely via ISBN. 3. Stage each file via Tools > Stage MARC records for import, applying the matching rule above. 4. Open the staged batch view for each batch. 5. Confirm the "Match details" column still shows the total numeric score as before, e.g. "(score=100)". 6. Use the column visibility toggle (or Administration > Table settings > Tools > manage-marc-import) to show the "Score breakdown" column. 7. Verify the breakdown column shows: a. File (a): "title:50, author:50" b. File (b): "isbn:100" 8. Confirm the "Score breakdown" column is hidden by default and the column toggle persists across page reloads. 9. Verify that pre-existing staged batches (run before this patch) still display gracefully — the breakdown column falls back to the numeric score. -- You are receiving this mail because: You are watching all bug changes.