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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 31 13:39:32 CET 2012


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

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 13133
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13133&action=edit
Bug 8994: Make FindDuplicateAuthority behaviour customizable

With two new sysprefs:
 - FindDuplicateOptions,
 - FindDuplicateMaxResults,
you can modify the behaviour of this sub in order to fit your needs.

You can now search on another index than 'he' and compare subfields of
search results.

For example, if FindDuplicateOptions is 'he,wrdl/2..ab | See/4..ab',
FindDuplicate will search on index 'he' and try to compare $a and $b
subfields for all 2XX fields of search results with $a and $b for 2XX
fields of newly created authority. If there is no results it will try to
search on 'See' index and compare 4XX$a$b of search results with 2XX$a$b
of created authority.

FindDuplicateMaxResults define how many results should be fetched for
comparison.

The '/2..ab' part can be omitted from FindDuplicateOptions. In this
case, no comparison is made on subfields and the first search result is
returned as duplicate.
To keep the current behaviour, fill FindDuplicateOptions with 'he,wrdl'
(default value in updatedatabase.pl)

Note: search on 'at' index is still done in all cases, so only the
authorities of the same type are returned.

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


More information about the Koha-bugs mailing list