1) Oh no, not from scratch! I was thinking that you could just define the function in something like opac/common/js/opac_utils.js and then invoke it from where the code is currently duplicated - should be pretty straightforward. If you like, I could take a stab at doing that.
1) Oh no, not from scratch! I was thinking that you could just define the function in something like opac/common/ js/opac_ utils.js and then invoke it from where the code is currently duplicated - should be pretty straightforward. If you like, I could take a stab at doing that.