Fix legacy record dropdown repopulation user/dbwells/legacy_record_entry_dropdown_fix
authorDan Wells <dbw2@calvin.edu>
Thu, 31 Jan 2013 17:20:12 +0000 (12:20 -0500)
committerDan Wells <dbw2@calvin.edu>
Thu, 28 Feb 2013 16:54:21 +0000 (11:54 -0500)
commit1216e8d97623f866c9ac13459ad286cd63b15c91
treec29cf9de39b1705c56b6d6b045bc9245244e0166
parentd81af6be77536b70da6af26a73aae4c6755ce642
Fix legacy record dropdown repopulation

Whenever the staff client OPAC would refresh (for instance, when
editing the MFHD record), the legacy record dropdown selector in
the serial control distribution editor would lose track of the
associated records. This bug was traced back to some funny
interactions with the global mfhdDetails variable, and the best
solution was to not rely on the event reading the global at all,
but rather to pass mfhdDetails into the event handler instead.

This commit corrects the issue in both the TPAC and the JSPAC,
and also fixes a small display issue when using TPAC (entryNum
must be an integer, not a string, as it gets incremented before
it is displayed in the editor).

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/web/js/ui/default/opac/staff.js
Open-ILS/web/opac/skin/default/js/rdetail.js
Open-ILS/xul/staff_client/chrome/content/cat/opac.js