my ( $params ) = @_;
my $res="
<script>
function Click$params->{id}() {
function Click$params->{id}(ev) {
var code = document.getElementById('$params->{id}');
ev.preventDefault();
var code = document.getElementById(ev.data.id);
var url = '../cataloguing/plugin_launcher.pl?plugin_name=callnumber-KU.pl&code=' + code.value;
var req = \$.get(url);
req.done(function(resp){
-