Retain empty bib records (cat.bib.keep_on_empty) not honored with volume transfers

Bug #1333893 reported by Jason Etheridge
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned
3.1
Fix Released
Undecided
Unassigned
3.2
Fix Released
Undecided
Unassigned

Bug Description

The default behavior is for EG to auto-delete bibs that lose their last item, however this happens (item deletion, item transfer, or volume transfer). The library setting "Retain empty bib records" is supposed to prevent this behavior. In master (and 2.50 and 2.4.1), this doesn't work when you move the last items off of a bib through a volume transfer to a different a bib record. The originating bib record is deleted.

Here are the scenarios I tested:

Scenario 1:
 cat.bib.alert_on_empty = unset
 cat.bib.keep_on_empty = unset
 cat.volume.delete_on_empty = unset

 a) Delete last item results in:
  deleted bib, volume, item
 b) Delete last volume and item together results in:
  deleted bib, volume, item
 c) Transfer volume to lib on different bib:
  deleted bib
 d) Transfer item to a volume on a different bib:
  deleted bib, volume

Scenario 2:
 cat.bib.alert_on_empty = unset
 cat.bib.keep_on_empty = true (at Branch)
 cat.volume.delete_on_empty = unset

 a) Delete last item results in:
  deleted volume, item
 b) Delete last volume and item together results in:
  deleted volume, item
 c) Transfer volume to lib on different bib:
  deleted bib
 d) Transfer item to a volume on a different bib:
  deleted volume

I don't have a fix handy.

Yamil (ysuarez)
tags: added: cataloging
Erica Rohlfs (erohlfs)
Changed in evergreen:
status: New → Confirmed
Changed in evergreen:
status: Confirmed → In Progress
assignee: nobody → Jason Stephenson (jstephenson)
milestone: none → 3.next
Revision history for this message
Jason Stephenson (jstephenson) wrote :
tags: added: pullrequest
Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
status: In Progress → Confirmed
Changed in evergreen:
milestone: 3.next → 3.3-beta1
Changed in evergreen:
milestone: 3.3-beta1 → 3.3-rc
Revision history for this message
Beth Willis (willis-a) wrote :

NOTE: I tested this code on our Evergreen 3.2.4 system only.

I have tested this code and consent to signing off on it with my name, Beth Willis and my email address, <email address hidden>

tags: added: signedoff
Changed in evergreen:
milestone: 3.3-rc → 3.3.1
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Pushed to master and rel_3_1 through rel_3_3 for the safety of empty bibs everywhere.

Thanks for testing, Beth!

Changed in evergreen:
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.