[Koha-bugs] [Bug 10811] Add a 999$c record matching rule to the MARC21 defaults

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 15 23:34:47 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10811

--- Comment #14 from David Cook <dcook at prosentient.com.au> ---
(In reply to M. Tompsett from comment #13)
> Created attachment 24421 [details] [review]
> Bug 10811 - Add a 999$c record matching rule to the MARC21 defaults
> 
> This patch adds a default record matching rule for biblionumber
> using the 999$c and the Local-Number index.
> 
> This is part of the optional marc21 SQL, as well as in the
> updatabase.pl script.
> 
> TEST PLAN
> ---------
>  1) Back up your DB, because you probably want it back.
>  2) Apply the patch
>  3) Run the QA test tool.
>  4) Run updatedatabase.pl
>  5) Export some MARC bibliographic records from Koha
>  6) Import those same MARC bibliographic records using the
>      "KohaBiblio" record matching rule.
>  7) The incoming records should match perfectly
>  8) Check the mysql tables (marc_matchers, matchpoints,
>       matcher_matchpoints, matchpoint_components,
>       matchpoint_component_norms) to make sure the values were
>      inserted as expected.
>  9) drop the koha database
> 10) create the koha database
> 11) Go to the staff client page, and do a "fresh" install making
>      sure to select lots of optional marc 21 matching rules so
>      the .../marc21/optional/marc21_default_matching_rules.sql
>      gets triggered.
> 12) Check the mysql tables (marc_matchers, matchpoints,
>       matcher_matchpoints, matchpoint_components,
>       matchpoint_component_norms) to make sure the values were
>      inserted as expected.
> 13) Restore your DB backup. :)
> 
> I wasn't able to do steps 5-7 properly, because of the lack
> of 999$c MARC records in my data as far as I know.

Thanks for the update. I've been putting this one off as a trivial enhancement
for a little while.

You should be able to do steps 5-7. Your Koha biblionumber is stored as your
999$c. If you don't have one in your Koha records, something is seriously
wrong.

That said, it won't show up for you in Koha, as it's a hidden field everywhere.
You'd have to verify its existence by checking the marcxml in the biblioitems
table.

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


More information about the Koha-bugs mailing list