<div id="tabs" class="toptabs">
<h2>Source records</h2>
<ul class="nav nav-tabs" role="tablist">
<div class="tab-content">
[% FOREACH record IN sourcerecords %]
<li role="presentation">
<a href="#tabrecord[% record.recordid | uri %]" aria-controls="tabrecord[% record.recordid | uri %]" role="tab" data-toggle="tab">
return confirm(_("Are you sure you want to delete this authorized value category?"));
});
if( $(".tab-pane.active").length < 1 ){
if( $("#icons .tab-pane.active").length < 1 ){
$("#icons a:first").tab("show");
}
if( $("#transferlimit_tabs .tab-pane.active").length < 1 ){
$("#transferlimit_tabs a:first").tab("show");
toUC(this);
$(".library_limitation").tooltip();
[% END %]
<script>
$(document).ready(function() {
if( $("#authoritiestabs .tab-pane.active").length < 1 ){
$("#authoritiestabs a:first").tab("show");
ev.preventDefault();
newin=window.open($(this).attr('href'),'merge_reference', 'width=1000,height=600,toolbar=false,scrollbars=yes');
if( $("#tabs .tab-pane.active").length < 1 ){
$("#tabs a:first").tab("show");
$("#Frameworks").on("change",function(){
Changefwk(this);
if( $("#bibliotabs .tab-pane.active").length < 1 ){
$("#bibliotabs a:first").tab("show");
var Sticky;
$("input[name=q]:eq(0)").focus();
if( $("#advsearches .tab-pane.active").length < 1 ){
$("#advsearches a:first").tab("show");
Sticky = $("#toolbar");
rebuild_target($("#tabs"), $("#resultul"));
-