31 |
html = '<ul class="tags">'; |
html = '<ul class="tags">'; |
32 |
$.each(data.tags, function(i,tag) { |
$.each(data.tags, function(i,tag) { |
33 |
console.debug( i, tag ); |
console.debug( i, tag ); |
34 |
html += '<li class=' + tag.security + '><tt>' + tag.sid + ' ' + tag.content + '</tt>'; |
html += '<li><tt class=' + tag.security + '>' + tag.sid; |
35 |
|
if ( tag.content ) { |
36 |
|
html += ' <a href="https://koha-dev.rot13.org:8443/cgi-bin/koha/members/member.pl?member=' + tag.content + '" title="lookup in Koha" target="koha-lookup">' + tag.content + '</a>'; |
37 |
|
html += '</tt>'; |
38 |
|
} else { |
39 |
|
html += '</tt>'; |
40 |
|
html += ' <form method=get action=program style="display:inline">' |
41 |
|
+ '<!-- <input type=checkbox name=secure value='+tag.sid+' title="secure tag"> -->' |
42 |
|
+ '<input type=text name=tag_'+tag.sid+' size=12>' |
43 |
|
+ '<input type=submit name="Reprogram tag">' |
44 |
|
+ '</form>' |
45 |
|
; |
46 |
|
} |
47 |
}); |
}); |
48 |
html += '</ul>'; |
html += '</ul>'; |
49 |
} |
} |
70 |
scan_tags(); |
scan_tags(); |
71 |
}); |
}); |
72 |
$('input#pull-reader').attr('checked', true); // force check on load |
$('input#pull-reader').attr('checked', true); // force check on load |
73 |
|
|
74 |
|
$('div#tags').click( function() { |
75 |
|
$('input#pull-reader').attr('checked', false); |
76 |
|
} ); |
77 |
|
|
78 |
scan_tags(); |
scan_tags(); |
79 |
}); |
}); |
80 |
</script> |
</script> |