[Koha-bugs] [Bug 8994] Make FindDuplicateAuthority behaviour customizable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 24 16:28:31 CEST 2015


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

Julian Maurice <julian.maurice at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Patch doesn't apply         |Needs Signoff

--- Comment #9 from Julian Maurice <julian.maurice at biblibre.com> ---
For the test plan, I'm assuming 2XX authority fields are indexed in a 'he'
index and 4XX fields are indexed in a 'See' index.
Also, I don't know MARC21 authorities, so the examples here are for UNIMARC.

Test plan:
0/ Delete all your authorities and reindex or be sure to use unique strings in
the following examples.
1/ Create an authority type T with "Authority field to copy" = "200"
2/ Create a new authority A1 of type T
     200$a: Foo
     200$b: Bar
     400$a: Baz
3/ Set FindDuplicateOptions to 'he,wrdl' (the default)
4/ Reindex authorities
5/ Create a new authority of type T
      200$a: Foo
   A duplicate should be found (A1). Cancel the creation.
6/ Create a new authority of type T
      200$a: Baz
   No duplicate should be found.
7/ Set FindDuplicateOptions to 'he,wrdl/2..a'
8/ Create a new authority of type T
      200$a: Foo
      200$b: Baz
   A duplicate should be found (A1). Cancel the creation.
9/ Set FindDuplicateOptions to 'he,wrdl/2..ab'
10/ Create a new authority of type T
      200$a: Foo
      200$b: Baz
   No duplicate should be found
11/ Set FindDuplicateOptions to 'See/4..a'
12/ Create a new authority of type T
      200$a: Foo
   No duplicate should be found
14/ Create a new authority of type T
      200$a: Baz
   A duplicate should be found (A1). Cancel the creation.

This is a very simple test plan as there can be many more cases to test, but I
hope this will make testing easier.

There is something that may need clarification, however.
The Zebra query is built using the 'index' and 'subfield' parts of the syspref,
and the "Authority field to copy" defined in authority type.
For example, if:
- type T has "Auth field to copy" = 215
- FindDuplicateOptions is 'See/4..ay'
- we try to create an authority: 215$a: 'foo', 215$b: 'bar', 215$y: 'baz'
The query will look like this: "See = foo and See = baz" (215$b is not used)

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


More information about the Koha-bugs mailing list