Catalogue does not display serials holdings for bib record with an MFHD record owned outside of search scope
Bug #790905 reported by
Dan Scott
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
High
|
Dan Scott |
Bug Description
* Evergreen 2.0.6
* OpenSRF 2.0.0
* PostgreSQL 9.0.4
In rdetail.js, Dojo dies with a null reference error when an MFHD record is retrieved that is outside of the current OU search scope. For example, if a given bib record has one linked MFHD record for BR1, and one linked MFHD record for BR4, the details page chokes trying to draw the MFHD holdings in a scope that only includes BR1 and ends up drawing nothing. Ungood.
Moving the ownership check and invoking _holdingsDrawMFHD() only after ensuring that the record is within our scope resolves the problem.
I have pushed a working branch with a fix to user/dbs/
description: | updated |
description: | updated |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Dan,
Thanks for this report. The branch does fix the described issue, but causes a different problem with the way we are using 'entryNum' in a few places (menu entries and display ordering).
I was about to attach a patch to this message, but the more I kept experimenting, the less I was sure of the desired behavior in certain circumstances. The fix in the branch ends up changing a few other display results, so I figured we might want to talk it over now.
Assume a three level system like:
CONS
--SYSA
----BR1
----BR2
--SYSB
----BR3
All branches have a MFHD.
Here are a few questions:
1a) When browsing at location CONS, do we display all the MFHD records or none at all?
1b) If we display nothing, when browsing at BR1 but a depth of '0' (i.e. Everywhere), do we display BR1 MFHD, nothing, or something else?
2) I am fairly sure when browsing at SYSA at its normal depth (1), we want to see both BR1 and BR2 MFHDs. That said, when browsing at BR1 but a depth of '1' (i.e. This system), do we see both BR1 and BR2, or just BR1?
I'll stop there, as any more questions I have might not make sense depending on the answers to these.
Thanks,
Dan