LP1125471 - Use label instead of id in recording in-house use prompt user/bshum/in-house-use-label
authorBen Shum <bshum@biblio.org>
Sat, 8 Feb 2014 08:42:07 +0000 (03:42 -0500)
committerBen Shum <bshum@biblio.org>
Sat, 8 Feb 2014 08:45:45 +0000 (03:45 -0500)
commitf5b71896c7fa36d7af2f44c1d6999d9c4554489c
tree11fcd73ca2e6fa3595edbf5381a4c2e16f70f516
parent66772286f65981bf7102a58b9e0990a77679986d
LP1125471 - Use label instead of id in recording in-house use prompt

When recording multiple in-house use with the library settings for threshold
prompts, the prompt would bring up the ID as the variable instead of the name
of the non-cataloged material. This caused confusion among staff members who
might see a message like: "Are you sure you want to mark 9 as having been used
21 times?" (9 being the id, not the name of the non-cataloged material)

This commit leverages existing code which had been commented out and under
the ID to use the label name for the non-cataloged material instead. Also,
minor bugfix with a missing semi-colon at the end of the function being used.

Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/xul/staff_client/server/circ/in_house_use.js