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 22:13:13 +0000 (18:13 -0400)
commit3c62bf76d9e472cf3fe9cd10a692d74a1e0095f8
tree3537505b1f2b66db513ba8cd4988a9705ecc3cee
parent9723a305848958612c63ce76a5154c6769267843
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