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:42:43 +0000 (15:42 -0400)
commit840471c63c34e3b2ba14021f1b877b681d16ccc7
tree4b536976fd5ce2d375c6b05e8ed0fbe9277c1508
parent3d239c8c19082db097edb7eb149734bcfccc927b
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