I haven't tested the patch yet, but it would be better if you didn't modify the value of overdue_hint label with javascript, and instead used something like this directly:
<label id="overdue_hint" hidden="true" style="background: red; color: white" value="&staff.patron.items.overdue_hint;"/>
I haven't tested the patch yet, but it would be better if you didn't modify the value of overdue_hint label with javascript, and instead used something like this directly:
<label id="overdue_hint" hidden="true" style="background: red; color: white" value=" &staff. patron. items.overdue_ hint;"/ >