$('a[href*="qualtrics.com"]').each(function(){if(this.href.indexOf('?')>-1){this.href+="&pagetitle="+encodeURIComponent(document.title);}else{this.href+="?pagetitle="+encodeURIComponent(document.title);}}) $(".rs-listing-accordion").click(function(){let el=this;let id=$(el).attr('href');setTimeout(function(){if($(id).hasClass('in')===true){$(el).addClass('expanded');}else if($(id).hasClass('in')===false){$(el).removeClass('expanded');}},50);}) var headers=$('table.rs-secondaries-table thead td') var headerNames=$.map(headers,function(header){return header.textContent;});$('table.rs-secondaries-table tbody tr').each(function(row){for(let i=1;i<=headerNames.length;i++){$(this).find('td:nth-child('+i+')').attr('data-label',headerNames[i-1]);}}) $('.rs-secondaries-table td:nth-child(3)').each(function(){var innerHTML=this.innerHTML;console.log('Before: '+innerHTML);let legend=[[/ (AY) /g,'AY = Academic Year',],[/ (CY) /g,'CY = Calendar Year',],[/ (D) /g,'D = Destroy',],[/ (EV) /g,'EV = Event',],[/ (FY) /g,'FY = Fiscal Year',],[/ (FR) /g,'FR = Full Retention by University Archives unless otherwise noted',],[/ (OPR) /g,'OPR = Office or Department responsible for source of truth records',],[/ (SO) /g,'SO = When superseded or obsolete',],[/ (SR) /g,'SR = Selective Retention by University Archives',],[/ (UA) /g,'UA = University Archives',],] legend.forEach(function(entry){innerHTML=innerHTML.replace(entry[0],'$1'+entry[1]+'');}) console.log('After: '+innerHTML);this.innerHTML=innerHTML;});jQuery(document).ready(function($){$("#facet-sidebar-open a").on('click',function(){$('#facet-sidebar').addClass('show');});$('#facet-sidebar-close').on('click',function(){$('#facet-sidebar').removeClass('show');});});var $=jQuery.noConflict();$(".wiki-embed iframe").wrap("
");$(".wiki-embed object").wrap("
");$(".wiki-embed .wikitable").css("width","100%");jQuery(document).ready(function($){$(".copyright-footer").insertAfter("#ubc7-unit-social-icons");});