]> git.evergreen-ils.org Git - Evergreen.git/commit
Fix rendering of MFHD records when ownership is out of scope
authorDan Scott <dan@coffeecode.net>
Fri, 27 May 2011 17:51:59 +0000 (13:51 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 27 May 2011 17:51:59 +0000 (13:51 -0400)
commit3bd7c7e41404585b925915afbd2abd67bf4300bf
tree09565be7544b039eff603dbe9b6b75025cb5b78a
parent81818c81a1df25ded485329195c9a40b960c05bd
Fix rendering of MFHD records when ownership is out of scope

Dojo would die with a null reference error when an MFHD record
was retrieved that was outside of the current OU search scope.
For example, if a given bib record had one linked MFHD record
for BR1, and one linked MFHD record for BR4, the details page
would choke trying to draw the MFHD holdings in a scope that
only included BR1 and end up drawing nothing. Ungood.

Moving the ownership check and invoking _holdingsDrawMFHD()
only after ensuring that the record is within our scope resolves
the problem.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/web/opac/skin/default/js/rdetail.js