[Koha-bugs] [Bug 11315] Add support for subfield deletion when doing authority merges.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 18 23:40:28 CET 2014


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

Chris Cormack <chris at bigballofwax.co.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25377|0                           |1
        is obsolete|                            |

--- Comment #4 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 25404
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25404&action=edit
Bug 11315 : Add the overwriteSubfieldsOnMerge preference.

If it is activated, all of the biblio's subfields will be overwritten
when doing an authority merge.
This means that subfields that exist in the biblio, but not in the
authority will be deleted in the biblio when doing the merge.

Sponsored-by: CCSR ( http://www.ccsr.qc.ca )

Test plan :

Preparation :
* Set dontmerge system preference to "Do automatically update attached
biblios..."
* Create a test authority. For example, lets create a PERSON authority
with this value : 100$a : "Bruce Wayne"
* Rebuild the Zebra authority index. (rebuild_zebra.pl -a)
* Create a new biblio record and link it to the newly created
authority by clicking the icon right of the 600$a field and searching
for the "Bruce Wayne" authority.
* Add the "2014" value in the 600$d field of the biblio record before
saving the biblio record. This is the value we will use to check the
behavior of the new system preference.
* Rebuild the Zebra biblio index. (rebuild_zebra.pl -b)

Test 1 :
* Set the "overwriteSubfieldsOnMerge" system preference to "Don't
overwrite".
* Edit the "Bruce Wayne" authority, change 100$a value to "Batman".
* Save the authority and go check the test biblio record. The 600$a
field should now be "Batman", and the 600$d should still be "2014".

Test 2 :
* Set the "overwriteSubfieldsOnMerge" system preference to "Overwrite".
* Edit the "Batman" authority, change the 100$a value back to "Bruce
Wayne".
* Save the authority and go check the test biblio record. The 600$a
field should now be "Bruce Wayne", and the 600$d should now be empty.
The additional subfield was overwritten this time.

Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>

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


More information about the Koha-bugs mailing list