]> 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>
Mon, 6 Jun 2011 19:45:55 +0000 (15:45 -0400)
commitd40831870ac9124ddd7438e38b847f7d67d251ee
treef6cfb61294e6a6391849ad486f77cc98e9023719
parentd30e80f798d1f868f96ed2ac637a9a0de012291c
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