Search Results for Sloan, Christopher (2024)

'; linkdivHTML += '

' + '

'; jQuery(divSelector).append(linkdivHTML) jQuery('#' + rId + '_browzinelinkdiv').append(htmlBzineButton); } } }//create buttonfunction CS_doiBrowzineView(rId,viewUrl){ var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open(viewUrl, '_blank'); }//--------------------------------------------------------------------------------------------//// CS Enrichment Mega Widget V5.1.1 (R 2.0)// Revision Date 2022-11-01//// Fields ["ABSTRACT","CHEMICAL_NAME","DOI","FIELD_OF_STUDY","FORMAT","ISBN","ISSN","ISSUE","IS_OPEN_ACCESS","ITYPE","KEYWORDS","MESH_NAME","OA_AUTHOR","OA_LICENSE","OA_LOCATION","OA_REFERENCE","OA_SOURCE","OER_ACCESSIBILITY","OER_CONDITIONS","OER_LEVEL","OER_PRIMARY_USER","PAGE_RANGE","PUBDATE_FULL","PUBLICATION_NAME","SUBJECT_TERM","TITLE","VOLUME"]//--------------------------------------------------------------------------------------------//// Global widget vars// CS_resolverDelay function CS_checkCsTabs(detail) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var detailBId = jQuery('[id^="detail_biblio'+detail+'_"]').attr('id'); var detailId = detailBId.replace('detail_biblio','detail') var sources = jQuery('#'+detailId+'_OA_SOURCE .OA_SOURCE_value').map(function() {return jQuery(this).text()}).get(); var tabSets = CS_getWidgetConfig(currentProfile,'dd_tabSets',{}); var tabSet = ['Dtls']; jQuery.each(sources, function( index, source ) { if (tabSets[source]){ tabSet= tabSet.concat(tabSets[source]); } }); tabSet = [ ...new Set(tabSet) ]; console.log('DB tab set',detailId,tabSet); CS_addEnrichmentTabs(detail,tabSet,sources); }async function CS_addEnrichmentTabs(detail,tabSet,sources) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var detailBId = jQuery('[id^="detail_biblio'+detail+'_"]').attr('id'); var targetId = detailBId.replace('detail_biblio'+detail+'_',''); var detailId = detailBId.replace('detail_biblio','detail'); var detailSx = detailBId.replace('detail_biblio',''); // Start by removing any existing Accordions, eg syndetics. var enrSelector = detailId.replace('detail','#detail_accordion'); // Remove any exisitng tabs e.g Syndetics jQuery(enrSelector).children().remove(); // Global function variables var isOpenAccess = CS_enumField(jQuery('#' + detailId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'isOpenAccess'); var oaLicense = CS_enumField(jQuery('#' + detailId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'oaLicense'); var accessType = ((isOpenAccess.code =='TRUE')||(isOpenAccess.code =='Yes') || (oaLicense.code !=''))?('OA'):('CA'); var mode = CS_getWidgetConfig(currentProfile,'dd_displayType','TABS'); var showAbts = CS_getWidgetConfig(currentProfile,'dd_showAbts',{'OA':false,'CA':false})[accessType]; var showRefs = CS_getWidgetConfig(currentProfile,'dd_showRefs',{'OA':false,'CA':false})[accessType]; var showCits = CS_getWidgetConfig(currentProfile,'dd_showCits',{'OA':false,'CA':false})[accessType]; var showOths = CS_getWidgetConfig(currentProfile,'dd_showOths',{'OA':false,'CA':false})[accessType]; var showMlts = CS_getWidgetConfig(currentProfile,'dd_showMlts',{'OA':false,'CA':false})[accessType]; var showAfls = CS_getWidgetConfig(currentProfile,'dd_showAfls',{'OA':false,'CA':false})[accessType]; var showBuzz = CS_getWidgetConfig(currentProfile,'dd_showBuzz',{'OA':false,'CA':false})[accessType]; var showLocs = CS_getWidgetConfig(currentProfile,'dd_showLocs',{'OA':false,'CA':false})[accessType]; var showDbes = CS_getWidgetConfig(currentProfile,'dd_showDbes',{'OA':false,'CA':false})[accessType]; var addMissingTitle = CS_getWidgetConfig(currentProfile,'dd_addMissingTitle',false); var addMissingAbstract = CS_getWidgetConfig(currentProfile,'dd_addMissingAbstract',false) var tabsId = ''; var dtlsId='dtlsId_'+detailSx, dtlsContentId='dtlsContentId_'+detailSx, dtlsTableId = 'dtlsTable' + detailSx; var abtsId='abtsId_'+detailSx, abtsContentId='abtsContentId_'+detailSx, abtsTableId = 'abtsTable' + detailSx; var aflsId='aflsId_'+detailSx, aflsContentId='aflsContentId_'+detailSx, aflsTableId = 'aflsTable' + detailSx; var refsId='refsId_'+detailSx, refsContentId='refsContentId_'+detailSx, refsTableId = 'refsTable' + detailSx; var citsId='citsId_'+detailSx, citsContentId='citsContentId_'+detailSx, citsTableId = 'citsTable' + detailSx; var mltsId='mltsId_'+detailSx, mltsContentId='mltsContentId_'+detailSx, mltsTableId = 'mltsTable' + detailSx; var othsId='othsId_'+detailSx, othsContentId='othsContentId_'+detailSx, othsTableId = 'othsTable' + detailSx; var locsId='locsId_'+detailSx, locsContentId='locsContentId_'+detailSx, locsTableId = 'locsTable' + detailSx; var buzzId='buzzId_'+detailSx, buzzContentId='buzzContentId_'+detailSx, buzzTableId = 'buzzTable' + detailSx; var dbesId='dbesId_'+detailSx, dbesContentId='dbesContentId_'+detailSx, dbesTableId = 'dbesTable' + detailSx; // ---------------------------------------- create tabs or accordions ----------------------------------// if ( (mode == 'accordions') || (jQuery('.mobile').length > 0 ) || (jQuery('.ada-mode').length > 0 )) { var selector = detailId.replace('detail','#detail_accordion'); tabsId = jQuery(selector).attr('id'); var dtlsAcdHtml ='

Details'; dtlsAcdHtml+='

'; jQuery(selector).append(dtlsAcdHtml); if (tabSet.includes('Locs') && showLocs) { var locsAcdHtml ='

Locations'; locsAcdHtml+='

'; jQuery(selector).append(locsAcdHtml); } if (tabSet.includes('Abts') && showAbts) { var abtsAcdHtml ='

Abstract'; abtsAcdHtml+='

'; jQuery(selector).append(abtsAcdHtml); } if (tabSet.includes('Afls') && showAfls) { var aflsAcdHtml ='

Author Notes'; aflsAcdHtml+='

'; jQuery(selector).append(aflsAcdHtml); } if (tabSet.includes('Refs') && showRefs) { var refsAcdHtml ='

References'; refsAcdHtml+='

'; jQuery(selector).append(refsAcdHtml); } if (tabSet.includes('Cits') && showCits) { var citsAcdHtml ='

Cited by'; citsAcdHtml+='

'; jQuery(selector).append(citsAcdHtml); } if (tabSet.includes('Mlts') && showMlts) { var mltsAcdHtml ='

Similar Titles'; mltsAcdHtml+='

'; jQuery(selector).append(mltsAcdHtml); } if (tabSet.includes('Oths') && showOths) { var othsAcdHtml ='

Published with'; othsAcdHtml+='

'; jQuery(selector).append(othsAcdHtml); } if (tabSet.includes('Buzz') && showBuzz) { var buzzAcdHtml ='

Buzz'; buzzAcdHtml+='

'; jQuery(selector).append(buzzAcdHtml); } if (tabSet.includes('Dbes') && showDbes) { var dbesAcdHtml ='

Databases'; dbesAcdHtml+='

'; jQuery(selector).append(dbesAcdHtml); } } //accordions else { // tabs var selector = detailId.replace('detail','detail_accordion'); var tabsId = detailId.replace('detail','detail_tabs'); var tabsListId = detailId.replace('detail','detail_tablist'); jQuery('#'+selector).removeClass().attr('id',tabsId); jQuery('#'+tabsId).append('

    '); var dtlsTabHtml='

  • Details
  • '; jQuery('#'+tabsListId).append(dtlsTabHtml); jQuery('#'+tabsId).append('

    '); if (tabSet.includes('Locs') && showLocs) { var locsTabHtml='

  • Locations
  • '; jQuery('#'+tabsListId).append(locsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Abts') && showAbts) { var abtsTabHtml='

  • Abstract
  • ';; jQuery('#'+tabsListId).append(abtsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Afls') && showAfls) { var aflsTabHtml='

  • Author Notes
  • '; jQuery('#'+tabsListId).append(aflsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Refs') && showRefs) { var refsTabHtml='

  • References
  • '; jQuery('#'+tabsListId).append(refsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Cits') && showCits) { var citsTabHtml='

  • Cited by
  • '; jQuery('#'+tabsListId).append(citsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Mlts') && showMlts) { var mltsTabHtml='

  • Similar Titles
  • '; jQuery('#'+tabsListId).append(mltsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Oths') && showOths) { var othsTabHtml='

  • Published with
  • '; jQuery('#'+tabsListId).append(othsTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Buzz') && showBuzz) { var buzzTabHtml='

  • Buzz
  • '; jQuery('#'+tabsListId).append(buzzTabHtml); jQuery('#'+tabsId).append('

    '); } if (tabSet.includes('Dbes') && showDbes) { var dbesTabHtml='

  • Databases
  • '; jQuery('#'+tabsListId).append(dbesTabHtml); jQuery('#'+tabsId).append('

    '); } jQuery('#'+tabsId).tabs({ activate: function (event, ui) { var active = jQuery('#'+tabsId).tabs('option', 'active'); var tabName = jQuery('#'+tabsId+ ' ul>li a').eq(active).text(); } }); if (mode == "TABS") { //move tabs to top if (jQuery('#nm_detail_wrapper').length > 0 ){ jQuery('#nm_detail_wrapper').find('.detail_main').insertAfter('#'+tabsListId); } else { var selector = '[id^="detail_wrapper'+detail+'_"]'; jQuery(selector).find('.detail_main').insertAfter('#'+tabsListId); } jQuery('#'+tabsId).closest('.detail_wrapper').css("padding","0"); jQuery('#'+tabsId).prev('.detail_main_wrapper').css("padding","0 0 10px 0"); jQuery('#'+tabsId).find('.detail_main').css({"float":"left","width":"100%","margin-bottom":"6px", "box-sizing":"border-box","padding":"20px 20px 0 0"}); jQuery('#'+tabsId).find('.detail_biblio').css({"width":"380px"}); } } // tabs function refresh_tabs(mode,tabsId) { if (mode.toLowerCase() == "tabs") {if (jQuery ('#'+tabsId).data("tabs")) {jQuery ('#'+tabsId).tab('refresh')}} if (mode == "accordions") {if (jQuery ('#'+tabsId).data("accordions")) {jQuery ('#'+tabsId).accordion('refresh')}} } function clean_tabs(mode,tabsId,tabId,contentId) { jQuery('#'+contentId).remove(); jQuery('#'+tabId).remove(); refresh_tabs(mode,tabsId); } // ---------------------------------------- populate tabs ----------------------------------// showDetails(detailId,mode,tabsId,dtlsId,dtlsContentId,dtlsTableId); if (tabSet.includes('Locs') && showLocs) { if (jQuery('#'+detailId+'_OA_LOCATION .OA_LOCATION_value').length > 0) { showLocations(detailId,mode,tabsId,locsId,locsContentId,locsTableId); } else { clean_tabs(mode,tabsId,locsId,locsContentId); } } if (tabSet.includes('Abts') && showAbts) { var abstract = jQuery('#'+detailId+'_ABSTRACT .ABSTRACT_value').first().text(); if (abstract !== ''){ showAbstract(detailId,mode,tabsId,abtsId,abtsContentId,abtsTableId,abstract); } else { if (! addMissingAbstract) { clean_tabs(mode,tabsId,abtsId,abtsContentId); } } } if (tabSet.includes('Afls') && showAfls) { if (jQuery('#'+detailId+'_OA_AUTHOR .OA_AUTHOR_value').length > 0) { showAffiliations(detailId,mode,tabsId,aflsId,aflsContentId,aflsTableId); } else { clean_tabs(mode,tabsId,aflsId,aflsContentId); }} // ------------------------------------- use cloudsource pass through ----------------------------------// if (tabSet.includes('Refs') && showRefs) { if (jQuery('#'+detailId+'_OA_REFERENCE .OA_REFERENCE_value').length > 0) { showReferences(detailId,mode,tabsId,refsId,refsContentId,refsTableId,targetId); } else { clean_tabs(mode,tabsId,refsId,refsContentId); } } if (tabSet.includes('Cits') && showCits) { var doi = jQuery('#'+detailId+'_DOI .DOI_value').first().text(); if (doi !== ''){ showCitations(detailId,mode,tabsId,citsId,citsContentId,citsTableId,targetId); } else { clean_tabs(mode,tabsId,citsId,citsContentId); } } if (tabSet.includes('Oths') && showOths) { showOtherTitles(detailId,mode,tabsId,othsId,othsContentId,othsTableId,targetId); } //-------------------------------------------------- use external doi apis -------------------------------------// if (sources.include('UNPAYWALL')) { var enrichmentData = await getDoiEnrichmentData(detailId); var articleData = enrichmentData.articledata; var altmetricsData = enrichmentData.altmetricsdata; var openaccessData = enrichmentData.openaccessdata; if ((tabSet.includes('Buzz')) && (showBuzz) && (altmetricsData)) { showPaperBuzz(detailId,mode,tabsId,buzzId,buzzContentId,buzzTableId,altmetricsData); } else {clean_tabs(mode,tabsId,buzzId,buzzContentId); } if ((addMissingTitle) && (articleData)) { addTitleData(detailId,articleData.title,articleData.subtitle) } if (jQuery('#' + detailId + '_ABSTRACT .ABSTRACT_value').text().length == 0){ if ((addMissingAbstract) && (articleData) && (articleData.abstract) && (articleData.abstract.length >0 )){ showAbstract(detailId,mode,tabsId,abtsId,abtsContentId,abtsTableId,articleData.abstract) } else { clean_tabs(mode,tabsId,abtsId,abtsContentId); } } } if ((tabSet.includes('Dbes')) && (showDbes) && (CS_getWidgetConfig(currentProfile,'useResolver',false))) { var resolver = CS_getWidgetConfig(currentProfile,'resolverDetails',{}); var isOA = CS_enumField(jQuery('#' + detailId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'Open Access'); var format = CS_enumField(jQuery('#' + detailId + '_FORMAT .FORMAT_value').first().text(),'Format'); var oaPub = jQuery('#' + detailId + '_OA_PUBLICATION .OA_PUBLICATION_value').first().text(); var issnList =jQuery('#'+detailId+'_ISSN .ISSN_value').map(function() {return jQuery(this).text()}).get(); if ( ((! resolver.issnReq) || (issnList.length > 0)) && ((isOA.code =='FALSE') ||(isOA.code =='No') ||(resolver.resolveOA)) && ((resolver['formats'].includes(format.code)) || (resolver['formats'].includes('*'))) ){ var issnL = (oaPub != '')?(JSON.parse(oaPub).issnL):(''); issnL = (issnL!= null)?(issnL):(''); if ((issnL != '') && (resolver.tryIssnL != '')){ var index = issnList.indexOf(issnL); if (index > -1){issnList.splice(index, 1)} if (resolver.tryIssnL =="fist"){issnList.unshift(issnL) } else { issnList.push(issnL) } } var dbData =[]; if (CS_resolverDelay == 0){CS_resolverDelay = Date.now()}; while ((issnList.length > 0) && (dbData.length == 0)){ var issn = issnList.shift(); var now = Date.now(); var myDelay = ((CS_resolverDelay - now) <0)?(0):(CS_resolverDelay - now); CS_resolverDelay += resolver.reqInterval; await new Promise(resolve => setTimeout(resolve, myDelay)); dbData = await CS_getDatabaseData(detailId,resolver,issn); console.log(detailId,'dbData check issn',issn,dbData.length); } if (dbData.length >0) { showDatabaseData(detailId,mode,tabsId,dbesId,dbesContentId,dbesTableId,dbData); } } else { clean_tabs(mode,tabsId,dbesId,dbesContentId); } }//--------------------------------------------Add/Show data elements --------------------------------------- function addTitleData(detailId,title,subtitle) { var currentTitle = jQuery('#'+detailId +'_TITLE .TITLE_value').text().replace(/\.$/,''); currentTitle = currentTitle; var titleSelector = '#'+detailId.replace(/detail/,'detail_biblio')+' .displayElementText.TITLE'; var newTitle = ''; if (typeof title !== 'undefined'){ newTitle = (typeof title == 'string')?(title):(title[0]); newTitle = newTitle.replace(/\.$/,''); if ((typeof subtitle !== undefined) &&(typeof subtitle[0] !== 'undefined')){ if (! title.toLowerCase().includes(subtitle[0].toLowerCase())) { if (newTitle.charAt(title.length-1) != ":") {newTitle += ":";} newTitle += ' '+subtitle[0]; newTitle = newTitle.replace(/\.$/,''); } } jQuery(titleSelector).text(newTitle); } } function showDetails(detailId,mode,tabsId,dtlsId,dtlsContentId,dtlsTableId) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var isOpenAccess = CS_enumField(jQuery('#' + detailId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'${FN_IS_OA}'); var oaLicense = CS_enumField(jQuery('#' + detailId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'${FN_OA_LICENSE}'); var accessType =((isOpenAccess.code =='TRUE')||(isOpenAccess.code =='Yes') || (oaLicense.code !=''))?('OA'):('CA') var conditions =jQuery('#'+detailId+'_OER_CONDITIONS .OER_CONDITIONS_value').first().text() var searchUrl = '/'+com_sirsi_ent_widgets.URLS.baseUrl+'/search/results'; var scrollStyle = "max-height:128px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:LightGrey white;"; var listStyle = "column-count:3;column-width:180px;list-style-position:outside;margin-left:8px;" var entryStyle = "break-inside:avoid;" var headerStyle = "padding:2px;border-bottom: solid 1px #ccc;"; var labelStyle = "padding:2px;border-bottom: solid 1px #ccc;vertical-align:top;"; var dtlsInclude = CS_getWidgetConfig(currentProfile,'dd_dtlsInclude',{'OA':{},'CA':{}}); var dtlsRows = (dtlsInclude[accessType].rows)?(dtlsInclude[accessType].rows):([]); var dtlsTableHtml = '

    '; dtlsTableHtml += ''; dtlsTableHtml += ''; dtlsTableHtml += ''; dtlsTableHtml += ''; dtlsTableHtml += '

    '; jQuery('#'+dtlsContentId).append(dtlsTableHtml); // License if (dtlsRows.includes('Lic')){ var ccLink = '(CreativeCommonsLicences)'; var licenseSymbols = ['CC BY','CC BY-SA','CC BY-NC','CC BY-NC-SA','CC BY-ND','CC BY-NC-ND','CC0','Other OA','other-oa']; var CClicenseSymbols = ['CC','CC BY','CC BY-SA','CC BY-NC','CC BY-NC-SA','CC BY-ND','CC BY-NC-ND','CC0']; var licenseClause= { 'CC' : '${CC}', 'CC BY' : 'CC BY: This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, so long as attribution is given to the creator. The license allows for commercial use.', 'CC BY-SA' : 'CC BY-SA: This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, so long as attribution is given to the creator. The license allows for commercial use. If you remix, adapt, or build upon the material, you must license the modified material under identical terms.', 'CC BY-NC' : 'CC BY-NC: This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format for noncommercial purposes only, and only so long as attribution is given to the creator. ', 'CC BY-NC-SA' : 'CC BY-NC-SA: This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format for noncommercial purposes only, and only so long as attribution is given to the creator. If you remix, adapt, or build upon the material, you must license the modified material under identical terms. ', 'CC BY-ND' : 'CC BY-ND: This license allows reusers to copy and distribute the material in any medium or format in unadapted form only, and only so long as attribution is given to the creator. The license allows for commercial use. ', 'CC BY-NC-ND' : 'CC BY-NC-ND: This license allows reusers to copy and distribute the material in any medium or format in unadapted form only, for noncommercial purposes only, and only so long as attribution is given to the creator. ', 'CC0' : 'CC0 (aka CC Zero) is a public dedication tool, which allows creators to give up their copyright and put their works into the worldwide public domain. CC0 allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, with no conditions.', 'Other OA' : 'Publisher/Author specific licence, check publication for details', 'other-oa' : 'Publisher/Author specific licence, check publication for details' } var license = CS_enumField(jQuery('#' + detailId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'Licence').code; var isOpenAccess = CS_enumField(jQuery('#' + detailId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'ISOA').code; var licenseNote = ((isOpenAccess == 'No')||(isOpenAccess == 'FALSE'))?('Not published under an Open Access License, check publication for details') :((licenseSymbols.includes(license))?(licenseClause[license]):('License conditions unknown, check publication for details')) if (CClicenseSymbols.includes(license)) {licenseNote += ' '+ccLink} var licHtml = detailText(detailId,'LIC','License',licenseNote,false,'','',targetId); jQuery('#'+dtlsTableId).append(licHtml); } //Accessibility var accessibility =jQuery('#' + detailId + '_OER_ACCESSIBILITY .OER_ACCESSIBILITY_value').first().text() if (accessibility !== ''){ var accHtml = detailText(detailId,'ACC','Accessibility',accessibility,false,'','',targetId);; jQuery('#'+dtlsTableId).append(accHtml); } //OER Course type var typData =jQuery('#' + detailId + '_OER_TYPE .OER_TYPE_value').map(function() {return CS_enumField(jQuery(this).text()).display}).get(); var typList = [...new Set(typData)].sort(); if (typList.length >0) { var typHtml = detailList(detailId,'TYP','Material Type',typList,false,'oer.materialType','Material Type',targetId); jQuery('#'+dtlsTableId).append(typHtml) } //OER Course Level var lvlData =jQuery('#' + detailId + '_OER_LEVEL .OER_LEVEL_value').map(function() {return CS_enumField(jQuery(this).text()).display}).get(); var lvlList = [...new Set(lvlData)].sort(); if (lvlList.length >0) { var lvlHtml = detailList(detailId,'LVL','Course Level',lvlList,false,'oer.courseLevel','Course Level'); jQuery('#'+dtlsTableId).append(lvlHtml) } //OER Primary User var purData =jQuery('#' + detailId + '_OER_PRIMARY_USER .OER_PRIMARY_USER_value').map(function() {return CS_enumField(jQuery(this).text()).display}).get(); var purList = [...new Set(purData)].sort(); if (purList.length >0) { var purHtml = detailList(detailId,'PUR','Primary User',purList,false,'oer.primaryUser','Primary User'); jQuery('#'+dtlsTableId).append(purHtml) } // Field of Study var fosData =jQuery('#' + detailId + '_FIELD_OF_STUDY .FIELD_OF_STUDY_value').map(function() {return jQuery(this).text()}).get(); var fosList = [...new Set(fosData)].sort(); if (fosList.length >0) { var fosHtml = detailList(detailId,'FOS','Field of Study',fosList,true,'fieldOfStudy','Field of Study',targetId); jQuery('#'+dtlsTableId).append(fosHtml) } // MeSH var mshData =jQuery('#' + detailId + '_MESH_NAME .MESH_NAME_value').map(function() {return jQuery(this).text()}).get(); var mshList = [...new Set(mshData)].sort(); if (mshList.length >0) { var mshHtml = detailList(detailId,'MSH','Medical Subject ',mshList,true,'meshTerm.meshName','MeSH Name',targetId); jQuery('#'+dtlsTableId).append(mshHtml) } //Subjects var subData =jQuery('#' + detailId + '_SUBJECT_TERM .SUBJECT_TERM_value').map(function() {return jQuery(this).text()}).get(); var subList = [...new Set(subData)].sort(); if (subList.length >0) { var subHtml = detailList(detailId,'SUB','Subject',subList,true,'allSubjects','All Subjects',targetId); jQuery('#'+dtlsTableId).append(subHtml) } //Keywords var kwdData =jQuery('#' + detailId + '_KEYWORDS .KEYWORD_value').map(function() {return jQuery(this).text()}).get(); var kwdList = [...new Set(kwdData)].sort(); if (kwdList.length >0) { var kwdHtml = detailList(detailId,'KWD','Keyword',kwdList,true,'allSubjects','All Subjects'.targetId); jQuery('#'+dtlsTableId).append(kwdHtml) } //Condititons of Use var conditions =jQuery('#' + detailId + '_OER_CONDITIONS .OER_CONDITIONS_value').first().text() if (conditions !== ''){ var cndHtml = detailText(detailId,'CND','Conditions of Use',conditions,false,'','',targetId); jQuery('#'+dtlsTableId).append(cndHtml); } //Chemicals var chmData =jQuery('#' + detailId + '_CHEMICAL_NAME .CHEMICAL_NAME_value').map(function() {return jQuery(this).text()}).get(); var chmList = [...new Set(chmData)].sort(); if (chmList.length >0) { var chmHtml = detailList(detailId,'CHM','Chemical',chmList,true,'chemicalName','Chemical Name'.targetId); jQuery('#'+dtlsTableId).append(chmHtml) } jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+dtlsId).removeClass('hidden'); jQuery('#'+dtlsContentId).removeClass('hidden'); } function detailText(detailid,code,label,text,link,srchField,srchDisp,targetId){ var searchUrl = '/'+com_sirsi_ent_widgets.URLS.baseUrl+'/search/results'; var listStyle = "list-style-type:'- ';column-count:3;column-width:180px;list-style-position:outside;margin:0;" var entryStyle = "break-inside:avoid;" var headerStyle = "padding:2px 20px 8px 0;border-bottom: solid 1px #ccc;"; var labelStyle = "padding:2px 20px 8px 0;border-bottom: solid 1px #ccc;vertical-align:top;"; var textHtml = '

    '; textHtml += ''+label+'/tr>'; textHtml += '

    '; if (link) { var hyperLink = searchUrl+'?qu=%22'+text.trim()+'%22&te='+targetId +'&rt=false%7C%7C%7C%3ECSOA%3C'+srchField+'%7C%7C%7C'+srchDisp; textHtml += '

    '+text+'

    '; } else { textHtml += '

    '+text+'

    '; } textHtml +='

    '; return textHtml; } function detailList(detailId,code,label,dataList,link,srchField,srchDisp,targetId) { var listHtml = ''; var searchUrl = '/'+com_sirsi_ent_widgets.URLS.baseUrl+'/search/results'; var listStyle = "list-style-type:'- ';column-count:3;column-width:180px;list-style-position:outside;margin:0;" var entryStyle = "break-inside:avoid;" var headerStyle = "padding:2px 20px 8px 0;border-bottom: solid 1px #ccc;"; var labelStyle = "padding:2px 20px 8px 0;border-bottom: solid 1px #ccc;vertical-align:top;"; listHtml = '

    '; listHtml += ''+label+'/tr>'; listHtml += '
      '; jQuery.each(dataList, function( index, value ) { var dispValue = value.charAt(0).toUpperCase() + value.slice(1); if (link) { var hyperLink = searchUrl+'?qu=%22'+value.trim()+'%22&te='+targetId +'&rt=false%7C%7C%7C%3ECSOA%3C'+srchField+'%7C%7C%7C'+srchDisp; listHtml += '
    • '+''+dispValue+'
    • '; } else { listHtml += '
    • '+''+dispValue+'
    • '; } }); listHtml +='

    '; return listHtml; } function showAbstract(detailId,mode,tabsId,abtsId,abtsContentId,abstTableId,abstract) { abstract = abstract.replace(/^Abstract[^ ]/i, ""); abstract = abstract.replace(/^Background[^ ]/i, ""); abstract = abstract.replace(/(<([^>]+)>)/gi, ""); abstract = abstract.replace(/\n/g, " "); abstract = abstract.replace(/ */g, " "); abstract = abstract.replace(/^ */g, " "); abstract = abstract.replace(/^(No Abstract *)*/gi, ""); if (abstract !== '') { var tableRow ='

    '+''+'

    '+abstract+'

    ' +''+'

    '; var abtsTableHtml = '

    '; abtsTableHtml += ''; abtsTableHtml += ''; abtsTableHtml += '' + tableRow + '
    Abstract

    '; jQuery('#detail_accordion'+detail).removeClass('hidden'); jQuery('#detail_tablist'+detail).removeClass('hidden'); jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+abtsId).removeClass('hidden'); jQuery('#'+abtsContentId).removeClass('hidden'); jQuery('#'+abtsContentId).append(abtsTableHtml); } } function showAffiliations(detailId,mode,tabsId,tabsId,aflsContentId,aflsTableId) { var tableRows = ''; var selector = '#' + detailId; jQuery(selector + '_OA_AUTHOR .OA_AUTHOR_value').each(function(index,author) { var aflntext = $J(this).text(); aflntext = aflntext.replace(/null/g,'""'); var aflnobj = JSON.parse(aflntext); if (aflnobj.affiliation != '') { var aflnList=aflnobj.affiliation.join(", "); if (jQuery('.mobile').length > 0) { tableRows +='

    '; var subTable = ''; subTable += ''; subTable += ''; subTable += ''; //subTable += ''; subTable += '
    Author' + aflnobj.name + '
    Institution' + aflnList+ '
    ORCID' + aflnobj.orcId + '
    '; subTable += ''; tableRows += subTable; } else { tableRows +=''; tableRows += ''+aflnobj.name+''; tableRows += ''+aflnList+''; //tableRows += ''+aflnobj.orcId+''; tableRows += '

    '; } } }); if (tableRows != ''){ var tableHeaderRow = ''; if (jQuery('.mobile').length == 0) { tableHeaderRow = '

    ' tableHeaderRow += ''; tableHeaderRow += ''; tableHeaderRow += 'Author'; tableHeaderRow += 'Institution'; // tableHeaderRow += 'ORCID'; tableHeaderRow += '

    '; } else { tableHeaderRow = '

    ' tableHeaderRow += ''; tableHeaderRow += ''; tableHeaderRow += 'Author'; tableHeaderRow += 'Institution'; // tableHeaderRow += 'ORCID'; tableHeaderRow += '

    '; } var aflsTableHtml = '

    ' + tableHeaderRow + tableRows; aflsTableHtml += '

    '; jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+aflsId).removeClass('hidden'); jQuery('#'+aflsContentId).removeClass('hidden'); jQuery('#'+aflsContentId).append(aflsTableHtml); } else { clean_tabs(mode,tabsId,aflsId,aflsContentId); } } function showLocations(detailId,mode,tabsId,locsId,locsContentId,locsTableId){ var tableRows = ''; var selector = '[id^="detail'+detail+'_"]'; jQuery(selector + '[id$="_OA_LOCATION"] .OA_LOCATION_value').each(function() { var linktext = jQuery(this).text(); linktext =linktext.replace(/null/g,'""'); var linkobj = JSON.parse(linktext); var linkUrl = ""; var rawUrl = ""; if (linkobj.url) { var linkUrlProp = new URL(linkobj.url); var linkUrlRawProp = new URL(linkobj.urlRaw); var linkUrl = ''; linkUrl += CS_enumField(linkobj.urlType,'urlType').display + ''; } var license = (CS_enumField(linkobj.license,'License').display); license = (license == 'other-oa')?('Other OA'):(license); var version = capFirstLetter(CS_enumField(linkobj.contentVersion,'Version').display); var hostType = capFirstLetter(CS_enumField(linkobj.hostType,'Host Type').display); tableRows += '

    '; if (jQuery('.mobile').length > 0) { var subTable = ''; subTable += ''; subTable += ''; subTable += ''; subTable += ''; subTable += ''; subTable += ''; subTable += '' subTable += '
    Version' + version + '
    Updated' + linkobj.lastUpdated + '
    License' + license + '
    Host Type' + hostType + '
    Host ' + linkUrlRawProp.host + '
    Document' +linkUrl + '
    '; subTable += ''; tableRows += subTable; } else { var tableRow = ''; tableRow += '' + version + ''; tableRow += '' + linkobj.lastUpdated + ''; tableRow += '' + license + ''; tableRow += '' + hostType + ''; tableRow += '' + linkUrlRawProp.host + ''; tableRow += '' + linkUrl+ ''; tableRows += tableRow; } tableRows += '

    '; });var tableHeaderRow = ''; if (jQuery('.mobile').length == 0) { tableHeaderRow = '

    ' tableHeaderRow += ''; tableHeaderRow += ''; tableHeaderRow += 'Version'; tableHeaderRow += 'Updated'; tableHeaderRow += 'License'; tableHeaderRow += 'Host Type'; tableHeaderRow += 'Host '; tableHeaderRow += 'Document'; tableHeaderRow += '

    '; } var locsTableHtml = '

    ' + tableHeaderRow + tableRows + '

    '; jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+locsId).removeClass('hidden'); jQuery('#'+locsContentId).removeClass('hidden'); jQuery('#'+locsContentId).append('

    '+locsTableHtml+'

    '); function capFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase(); } } function showReferences(detailId,mode,tabsId,refsId,refsContentId,refsTableId,targetId) { var enterpriseURL = window.location.toString(); enterpriseURL = enterpriseURL.split("/client")[0]; var currentLanguage = com_sirsi_ent_page.localeCode; var currentProfile = com_sirsi_ent_page.friendlyUrl; var searchUrl = ''; var selector = '#'+detailId; var targetEntryCode = targetId; var refList =jQuery(selector + '_OA_REFERENCE .OA_REFERENCE_value').map(function() {return JSON.parse(jQuery(this).text()).doi}).get(); var requestUrl = com_sirsi_ent_widgets.URLS.csoa.csoaSearchUrl; requestUrl = addPathParams(requestUrl, targetEntryCode); var cspassthruCfg = CS_getWidgetConfig(currentProfile,'cspasstrhuCfg',{'use':true,'pageSize':100,'maxTerms':20,'useTerms':12}); var requestBody = { "@ROAObject": "searchrequest", "start": 0, "pageSize":cspassthruCfg.pageSize, "includeFields":"id,title,author{name},publication{*},publishDate,publisher,publicationCountry,doi,pdfUrl,webUrl,doiUrl,openAccess", "includeFacets": false, filter:{ "@ROAObject": "searchclause", "operator":"OR", "field":"doi", "exact":true, "terms":refList } }; requestUrl = addPathParams(requestUrl, encodeAsTapestry(JSON.stringify(requestBody))); jQuery.ajax({ url: requestUrl, headers: {'DSC-Widget-Token': com_sirsi_ent_widgets.widgetToken}, cache: false, success: function (data) { var tableRows = ''; var tableRow = ''; var doiList = []; var tableRowNum = 0; if (data.total == 0){ clean_tabs(mode,refsId,refsId,refsContentId); } else{ jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+refsId).removeClass('hidden'); jQuery('#'+refsId).attr('aria-hidden','false'); jQuery('#'+refsContentId).removeClass('hidden'); jQuery.each(data.searchResults,function(index,article){ var openAccess = CS_enumField(article.openAccess,'OA').code; var refsInclude = CS_getWidgetConfig(currentProfile,'dd_refsInclude',{'OA':{},'CA':{}}); var accessType = ((openAccess =='TRUE')||(openAccess =='Yes'))?('OA'):('CA'); var showInList = (typeof refsInclude[accessType].list !== 'undefined')?(refsInclude[accessType].list):(false); var iconList = (typeof refsInclude[accessType].icon !== 'undefined')?(refsInclude[accessType].icon):([]); var linkType = (typeof refsInclude[accessType].link !== 'undefined')?(refsInclude[accessType].link):(''); if (showInList) { ++ tableRowNum; tableRowId =refsTableId+'_'+tableRowNum; tableRow = formatArticleLinkRow (detailId,'Link Citation',tableRowId,article,linkType,iconList,targetId,accessType); tableRows += tableRow; tableRowId =refsTableId+'_'+tableRowNum; doiList.push( '"'+encodeURIComponent(article.doi)+'"'); } }); // for each articleif (tableRowNum > 0){ var refsTableHtml = '

    '; refsTableHtml += ''; refsTableHtml += ''; refsTableHtml += '' var searchBaseUrl = enterpriseURL + '/client/'+currentLanguage + '/'+currentProfile + '/search/results';var searchClause = ''; for (var i = 0; i < doiList.length; i++){ if ((i % cspassthruCfg.useTerms) == 0) { searchClause += (searchClause == '')?('doi:('):(') OR doi:(') }else { searchClause += ' OR '; }searchClause += doiList[i]; } searchClause += ')'; //searchClause += "doi:IN:["+doiList.toString()+"]"; searchClause = searchClause.replace(/"/g,'"');searchUrl += '?qu=' + searchClause + '&te=' + targetId; if (CS_getWidgetConfig(currentProfile,'dd_allLnkSrch',true)) { refsTableHtml += ''; refsTableHtml += ''; refsTableHtml += ''; } else { refsTableHtml += ''; } refsTableHtml += ''; refsTableHtml += '' + tableRows + '
    Linked Articles Referenced'; refsTableHtml += '

    '; refsTableHtml += '' refsTableHtml += 'Show list in new search tab'; refsTableHtml += '

    Linked Articles Referenced

    '; jQuery('#'+refsContentId).append(refsTableHtml); jQuery('#'+refsContentId+' .enrIcons').tooltip({position: {my:"right-8 center",at:"left center"}}); jQuery('#'+refsContentId+' .enrDocLink').tooltip({track: true}); } else { clean_tabs(mode,tabsId,refsId,refsContentId); } } }, // success error : function(xhr, status, error) { console.log(detail, 'CloudSource refs call error',JSON.stringify(error)); clean_tabs(mode,tabsId,refsId,refsContentId); } }); //references ajax } // referencesfunction showCitations(detailId,mode,tabsId,citsId,citsContentId,citsTableId,targetId) { var enterpriseURL = window.location.toString(); enterpriseURL = enterpriseURL.split("/client")[0]; var currentLanguage = com_sirsi_ent_page.localeCode; var currentProfile = com_sirsi_ent_page.friendlyUrl; var citsInclude = CS_getWidgetConfig(currentProfile,'dd_citsInclude',{'OA':{},'CA':{}}); var selector = '#'+detailId; var parentJournal = jQuery(selector + '_PUBLICATION_NAME .PUBLICATION_NAME_value').first().text(); var parentDoi = jQuery(selector + '_DOI .DOI_value').first().text() var targetEntryCode = targetId; var searchClause = '(reference.doi:"' + parentDoi + '")'; var searchUrl = enterpriseURL + '/client/'+currentLanguage + '/'+currentProfile + '/search/results'; searchUrl += '?qu=' + encodeURIComponent(searchClause) + '&te=' +targetId var requestUrl = com_sirsi_ent_widgets.URLS.csoa.csoaSearchUrl; requestUrl = addPathParams(requestUrl, targetEntryCode); var cspassthruCfg = CS_getWidgetConfig(currentProfile,'cspasstrhuCfg',{'use':true,'pageSize':100,'maxTerms':20,'useTerms':12}); var requestBody = { "@ROAObject": "searchrequest", "start": 0, "pageSize": cspassthruCfg.pageSize, "includeFields":"id,title,author{name},publication{*},publishDate,publisher,publicationCountry,doi,pdfUrl,webUrl,doiUrl,openAccess", "includeFacets": false,filter:{ "@ROAObject": "searchclause","term": parentDoi,"field": "reference.doi","exact":true} }; requestUrl = addPathParams(requestUrl, encodeAsTapestry(JSON.stringify(requestBody))); jQuery.ajax({ url: requestUrl, headers: {'DSC-Widget-Token': com_sirsi_ent_widgets.widgetToken}, cache: false, success: function (data) { if (data.total == 0){ clean_tabs(mode,tabsId,citsId,citsContentId); } else { var tableRows = ''; var tableRow = ''; var tableRowNum = 0; jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+citsId).removeClass('hidden'); jQuery('#'+citsContentId).removeClass('hidden'); jQuery.each(data.searchResults,function(index,article){ var openAccess =CS_enumField(article.openAccess,'OA').code; var accessType = ((openAccess =='TRUE')||(openAccess =='Yes'))?('OA'):('CA'); var showList = (typeof citsInclude[accessType].list !== 'undefined')?(citsInclude[accessType].list):(false); var iconList = (typeof citsInclude[accessType].icon !== 'undefined')?(citsInclude[accessType].icon):([]); var linkType = (typeof citsInclude[accessType].link !== 'undefined')?(citsInclude[accessType].link):(''); if (showList) { ++ tableRowNum; tableRowId =citsTableId+'_'+tableRowNum; tableRow = formatArticleLinkRow (detailId,'Link Citation',tableRowId,article,linkType,iconList,targetId,accessType); tableRows += tableRow; } }); // for each article if (tableRowNum >0 ){ var citsTableHtml = '

    '; citsTableHtml += ''; citsTableHtml += ''; citsTableHtml += ''; if (CS_getWidgetConfig(currentProfile,'dd_allLnkSrch',true)) { citsTableHtml += ''; citsTableHtml += ''; citsTableHtml += ''; } else { citsTableHtml += ''; } citsTableHtml += ''; citsTableHtml += '' + tableRows + '
    Linked Citing Artices'; citsTableHtml += '

    '; citsTableHtml += '' citsTableHtml += ''; citsTableHtml += 'Show list in new search tab'; citsTableHtml += '

    Linked Citing Artices

    '; jQuery('#'+citsContentId).append(citsTableHtml); jQuery('#'+citsContentId+' .enrIcons').tooltip({position: {my:"right-8 center",at:"left center"}}); jQuery('#'+citsContentId+' .enrDocLink').tooltip({track: true}); } else { clean_tabs(mode,tabsId,citsId,citsContentId); } } }, // success error : function(xhr, status, error) { console.log(detail, 'CloudSource cits call error',JSON.stringify(error)); clean_tabs(mode,tabsId,citsId,citsContentId); } }); //other ajax } // citations function showOtherTitles(detailId,mode,tabsId,dtlsId,dtlsContentId,dtlsTableId,targetId) { var enterpriseURL = window.location.toString(); enterpriseURL = enterpriseURL.split("/client")[0]; var currentLanguage = com_sirsi_ent_page.localeCode; var currentProfile = com_sirsi_ent_page.friendlyUrl; var othsInclude = CS_getWidgetConfig(currentProfile,'dd_citsInclude',{'OA':{},'CA':{}}); var selector = '#' + detailId; var parentJournal = jQuery(selector + '_PUBLICATION_NAME .PUBLICATION_NAME_value').first().text(); var parentIssn = jQuery(selector + '_ISSN .ISSN_value').first().text() var parentPublished = jQuery(selector + '_PUBDATE_FULL .PUBDATE_FULL_value').first().text(); var targetEntryCode = targetId; var searchClause = '(publication.name:"' + parentJournal + '") AND (publishDate:"' + parentPublished + '")'; var searchUrl = enterpriseURL + '/client/'+currentLanguage + '/'+currentProfile + '/search/results'; searchUrl += '?qu=' + encodeURIComponent(searchClause) + '&te=' +targetId var requestUrl = com_sirsi_ent_widgets.URLS.csoa.csoaSearchUrl; requestUrl = addPathParams(requestUrl, targetEntryCode); var cspassthruCfg = CS_getWidgetConfig(currentProfile,'cspasstrhuCfg',{'use':true,'pageSize':100,'maxTerms':20,'useTerms':12}); var requestBody = { "@ROAObject": "searchrequest", "start": 0, "pageSize": cspassthruCfg.pageSize, "includeFields":"id,title,author{name},publication{*},publishDate,publisher,publicationCountry,doi,pdfUrl,webUrl,doiUrl,openAccess", "includeFacets": false,filter:{ "@ROAObject": "searchclause", "operator": "AND", "operands": [ {"@ROAObject": "searchclause", "operator": "OR", "operands": [ { "@ROAObject": "searchclause","@ROAObject": "searchclause","term": parentJournal,"field":"publication.name","exact":true}, { "@ROAObject": "searchclause","@ROAObject": "searchclause","term": parentIssn,"field":"publication.issn","exact":true} ] }, {"@ROAObject": "searchclause","term": parentPublished,"field":"publishDate","exact":true} ] } };requestUrl = addPathParams(requestUrl, encodeAsTapestry(JSON.stringify(requestBody))); jQuery.ajax({ url: requestUrl, headers: {'DSC-Widget-Token': com_sirsi_ent_widgets.widgetToken}, cache: false, success: function (data) { if (data.total == 0){ jQuery('#'+othsContentId).remove(); jQuery('#'+othsId).remove(); } else { var tableRows = ''; var tableRow = ''; var tableRowNum = 0; jQuery('#'+tabsId).removeClass('hidden'); jQuery('#'+othsId).removeClass('hidden'); jQuery('#'+othsContentId).removeClass('hidden'); jQuery.each(data.searchResults,function(index,article){ var openAccess =CS_enumField(article.openAccess,'OA').code; var accessType = ((openAccess =='TRUE')||(openAccess =='Yes'))?('OA'):('CA'); var showList = (typeof othsInclude[accessType].list !== 'undefined')?(othsInclude[accessType].list):(false); var iconList = (typeof othsInclude[accessType].icon !== 'undefined')?(othsInclude[accessType].icon):([]); var linkType = (typeof othsInclude[accessType].link !== 'undefined')?(othsInclude[accessType].link):(''); if (showList) { ++ tableRowNum; tableRowId =othsTableId+'_'+tableRowNum; tableRow = formatArticleLinkRow(detailId,'Link Other',tableRowId,article,linkType,iconList,targetId,accessType); tableRows += tableRow; } }); // for each article if (tableRowNum > 0) { var othsTableHtml = '

    '; othsTableHtml += ''; othsTableHtml += ''; othsTableHtml += ''; if (CS_getWidgetConfig(currentProfile,'dd_allLnkSrch',true)) { othsTableHtml += ''; othsTableHtml += ''; othsTableHtml += ''; } else { othsTableHtml += ''; } othsTableHtml += ''; othsTableHtml += '' + tableRows + '
    Other Articles in this Publication / Issue'; othsTableHtml += '

    '; othsTableHtml += '' othsTableHtml += 'Show list in new search tab'; othsTableHtml += '

    Other Articles in this Publication / Issue

    '; jQuery('#'+othsContentId).append(othsTableHtml); jQuery('#'+othsContentId+' .enrIcons').tooltip({position: {my:"right-8 center",at:"left center"}}); jQuery('#'+othsContentId+' .enrDocLink').tooltip({track: true}); } else{ clean_tabs(mode,tabsId,othsId,othsContentId); } } }, error : function(xhr, status, error) { clean_tabs(mode,tabsId,othsId,othsContentId); } }); //other ajax } // other titles function formatArticleLinkRow (detailId,linkClass,tableRowId,article,linkType,iconList,targetId,accessType) { var linkUrl=""; linkText=""; title=""; authors=""; publication=""; published= ""; publisher = ''; pubdate=""; country='';doi=''; oaStatus='No'; if (article.doi){doi = article.doi} if (article.title){title = article.title} if ((article.author) && (article.author.length > 0)) { var authorNames = article.author.map(function(elem){return elem.name;}); if (authorNames.length <= CS_getWidgetConfig(currentProfile,'dd_maxAuthors',4)){ authors = authorNames.join(', '); } else { authors = authorNames.slice(0,4).join(', ')+', et al'; } } if (article.publishDate){published = article.publishDate} if ((article.publication) &&(article.publication.name)){ publication = article.publication.name; if (article.publication.volume) { publication += ' V. '+ article.publication.volume} if (article.publication.issue) { publication += ' N. '+ article.publication.issue} } if (article.publisher){publisher = article.publisher} if (article.publicationCountry){country = article.publicationCountry} var linkUrl= '';linkText='';linkIcon=''; if(linkType =='Doc') { linkUrl = (article.pdfUrl)?(article.pdfUrl) :((article.webUrl)?(article.webUrl) :((article.doiUrl)?(article.doiUrl) :(''))); linkText ="View Article"; } else if (linkType =='Web') { linkUrl = (article.webUrl)?(article.webUrl) :((article.doiUrl)?(article.doiUrl) :('')); linkText="Publisher Web Site"; } else if (linkType =='Sch') {linkUrl = getSearchUrl(detailId,targetId,article) ; linkText="Search Link"; } tableRow = ''; tableRow +='

    '; var oaIconHtml =''; if (accessType =='OA'){ oaIconHtml += 'Search Results for Sloan, Christopher (1)Published under an Open Access License'; } else { oaIconHtml += 'Search Results for Sloan, Christopher (2)Published under a Commercial License'; } tableRow += oaIconHtml; if (iconList.length > 0) { tableRow += ''; } else { tableRow += ''; } if (linkUrl !==''){ tableRow += ''; } tableRow += ''; tableRow += '' + title + '.' ; tableRow += '' + authors + '.'; tableRow += '' + publication + ','; tableRow += '' + published + '';if (linkUrl !==''){ tableRow += ''+linkText+''} tableRow += ''; if (linkUrl !==''){ tableRow += ''; } tableRow += ''; tableRow += '' + doi + ''; tableRow += '' + publisher + ' '; tableRow += '' + pubdate + ''; tableRow += '' + country + ''; tableRow += '' + oaStatus + ''; tableRow += '' + linkUrl + ''; tableRow += ''; tableRow += ''; if (iconList.length > 0) { tableRow += ''; tableRow += formatArticleLinkUrls(detail,linkClass,article,iconList,targetId); tableRow += ''; } tableRow += '

    '; return tableRow } function formatArticleLinkUrls(detail,linkClass,article,iconList) { var enterpriseURL = window.location.toString(); enterpriseURL = enterpriseURL.split("/client")[0]; var currentLanguage = com_sirsi_ent_page.localeCode; var currentProfile = com_sirsi_ent_page.friendlyUrl; linkDivHtml=''; var pdfLink = ''; if ((iconList.includes('Doc')) && (article.pdfUrl) && (article.pdfUrl !== '')){ pdfLink += ''; pdfLink += 'View Article'; pdfLink += ''; } var webLink = ''; if (( iconList.includes('Web')) && (article.webUrl) && (article.webUrl !== '')){ webLink += ''; webLink += 'Publisher Web Site'; webLink += ''; } var searchLink = ''; var searchUrl = getSearchUrl(detail,targetId,article); if ((iconList.includes('Sch')) && (searchUrl !=='')) { searchLink += ''; searchLink += 'Search Link'; searchLink += ''; } linkDivHtml = '

    '+pdfLink+webLink+searchLink+'

    '; return linkDivHtml; } function getSearchUrl(detail,targetId,article,){ var enterpriseURL = window.location.toString(); enterpriseURL = enterpriseURL.split("/client")[0]; var currentLanguage = com_sirsi_ent_page.localeCode; var currentProfile = com_sirsi_ent_page.friendlyUrl; var searchUrl = ''; if ((article.doi) && (article.doi !== '')){ searchUrl = enterpriseURL+'/client/'+currentLanguage+'/'+currentProfile+'/search/results'; searchUrl += '?qu=doi:'+encodeURIComponent(article.doi)+'&te='+targetId; //doiLink = 'https://doi.org/'+encodeURIComponent(article.doi); } else if((article.title) && (article.title != '')){ var searchClause = ''; searchClause = 'title:"'+article.title+'"'; if ((article.authorName) && (article.authorname[0]!=='')){ searchClause+= 'AND author.name:"'+article.authorName[0]+'"'} if ((article.publishDate) && (article.publishDate !=='')){ searchClause+= 'AND publishDate:"'+article.publishDate+'"'} searchUrl = enterpriseURL+'/client/'+currentLanguage+'/'+currentProfile+'/search/results'; searchUrl += '?qu='+encodeURIComponent(searchClause)+'&te='+targetId; } return searchUrl; }function showPaperBuzz(detailId,mode,tabsId,buzzId,buzzContentId,buzzTableId,altmetrics_sources){ var localeCode = com_sirsi_ent_page.localeCode.replace("_","-"); if (altmetrics_sources.length == 0){ clean_tabs(mode,tabsId,buzzId,buzzContentId); } else{ var tableRows = ''; var tableRow=''; jQuery.each(altmetrics_sources,function(sindex,source){ var source_id = source.source.id; var source_name = source.source.display_name var source_icon = source.source.icon_url; var source_count = source.events_count; var linkDiv = '

    '; jQuery.each(source.events,function(eindex,event){ var buzzIsoDate = new Date(event.occurred_at); var buzzDate = buzzIsoDate.toLocaleDateString(localeCode,{ year: "numeric", month: "2-digit", day: "2-digit", }); var eventUrlProp = new URL(event.url); var buzzAuth = event.author || eventUrlProp.origin; var buzzLink = ''; if (jQuery('.mobile').length > 0) { buzzAuth = buzzAuth.replace(/https:\/\/|http:\/\//i,''); buzzAuth = buzzAuth.replace(/www.twitter.com\//i,''); buzzLink += '

    '+buzzDate+'

    '; buzzLink += ''; linkDiv += buzzLink; linkDiv += buzzAuth+'

    '; } else { buzzLink += '

    '+buzzDate+'

    '; buzzLink += ''; linkDiv += buzzLink; linkDiv += buzzAuth+'

    '; } }); linkDiv += '

    '; if (jQuery('.mobile').length > 0) { tableRows +='

    '; var subTable = ''; subTable += ''; subTable += ''; subTable += ''; subTable += '
    '; subTable += 'Search Results for Sloan, Christopher (3)'; subTable += '' + source_name+''+source_count + 'posts
    '; subTable += '' + linkDiv + '
    '; subTable += ''; tableRows += subTable; } else { tableRow =''; tableRow += ''; tableRow += 'Search Results for Sloan, Christopher (4)' + ''; tableRow += '' + source_name + ''; tableRow += '' + source_count + ''; tableRow += ''; tableRow += linkDiv; tableRow += ''; tableRow += '

    '; tableRows +=tableRow; } }); var tableHeaderRow = ''; if (jQuery('.mobile').length == 0) { tableHeaderRow = '

    ' tableHeaderRow += ''; tableHeaderRow += ''; tableHeaderRow += ' Activity Source'; tableHeaderRow += 'Count'; tableHeaderRow += ''; tableHeaderRow += 'Posted on'; tableHeaderRow += 'Content Link'; tableHeaderRow += '

    '; } var buzzTableHtml = '

    '; buzzTableHtml += tableHeaderRow+''+tableRows+'

    '; jQuery('#detail_accordion'+detail).removeClass('hidden'); jQuery('#detail_accordion'+detail).removeClass('hidden'); jQuery('#'+buzzId).removeClass('hidden'); jQuery('#'+buzzContentId).removeClass('hidden'); jQuery('#'+buzzContentId).append(buzzTableHtml); } } // get Buzz function showDatabaseData(detailId,mode,tabsId,dbesId,dbesContentId,dbesTableId,dbData){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var isOpenAccess = CS_enumField(jQuery('#' + detailId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'${FN_IS_OA}'); var oaLicense = CS_enumField(jQuery('#' + detailId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'${FN_OA_LICENSE}'); var accessType =((isOpenAccess.code =='TRUE')||(isOpenAccess.code =='Yes') || (oaLicense.code !=''))?('OA'):('CA') var dbesInclude = CS_getWidgetConfig(currentProfile,'dd_dbesInclude',{'OA':{},'CA':{'links':[]}}); if (dbData.length != 0){ var tableRows = ''; var tableRow=''; jQuery.each(dbData,function(sindex,database){ let dbesName = ''; let coverage = ''; let dbesProvider = ''; let dbesType = ''; let dbesCode = '';let dbesIcon = ''; dbesCode = database.code; if (dbesInclude[accessType].links.includes(dbesCode)){if (database.url !=''){ dbesName += ''; dbesName += database.name+''; }else { dbesName += ''+database.name+''; } dbesCoverage = database.coverage; dbesProvider = database.provider; dbesType = database.type;dbesIcon = (dbesCode == 'AL')?('"fa fa-link"'):((dbesCode == 'FT')?('"fa fa-file-text-o"'):('"fa fa-list"')); if (jQuery('.mobile').length > 0) { tableRows += ''; tableRows += ''; tableRows += ''; tableRows += '' + dbesName + '' + dbesCoverage + '+'+dbesProvider+''+ dbesType + ''; tableRows += ''; } else { tableRow =''; tableRow += '' + dbesName + ''; tableRow += '' + dbesCoverage + ''; tableRow += ''+dbesProvider+''; tableRow += '' + dbesType + ''; tableRow += ''; tableRows += tableRow; } } }); var tableHeaderRow = ''; if (jQuery('.mobile').length == 0) { tableHeaderRow = '' tableHeaderRow += ''; tableHeaderRow += ''; tableHeaderRow += 'Database Name'; tableHeaderRow += 'Dates'; tableHeaderRow += 'Provider'; tableHeaderRow += 'Entry Type'; tableHeaderRow += ''; } var dbesTableHtml = '

    '; dbesTableHtml += tableHeaderRow+''+tableRows+'
    '; jQuery('#detail_accordion'+detail).removeClass('hidden'); jQuery('#detail_accordion'+detail).removeClass('hidden'); jQuery('#'+dbesId).removeClass('hidden'); jQuery('#'+dbesContentId).removeClass('hidden'); jQuery('#'+dbesContentId).append(dbesTableHtml); } else { clean_tabs(mode,tabsId,dbesId,dbesContentId); } } // show dbes async function getDoiEnrichmentData(detailId){ var selector = '#' + detailId; var articleDoi = jQuery(selector + '_DOI .DOI_value').first().text(); var articleSrc = jQuery(selector + '_SOURCE .SOURCE_value').map( function(){return jQuery(this).text();}).get().join(); var currentProfile = com_sirsi_ent_page.friendlyUrl; var usePaperbuzz = CS_getWidgetConfig(currentProfile,'paperbuzzCfg',false).use; var useCrossref = CS_getWidgetConfig(currentProfile,'crossrefCfg' ,false).use; var useDoaj = CS_getWidgetConfig(currentProfile,'doajCfg' ,false).use; var useUnpaywall = CS_getWidgetConfig(currentProfile,'unpaywallCfg' ,false).use; var gotData = ""; var pbResponseData; var crResponseData; var upResponseData; var djResponseData; var altmetricsData; var articleData; var openaccessData; if (usePaperbuzz) { gotData = await getPaperBuzz(detailId,articleDoi); if (gotData =="OK") { altmetricsData = pbResponseData.altmetrics_sources; articleData = pbResponseData.metadata; openaccessData = pbResponseData.open_access; } } var response= {'articledata' :articleData, 'altmetricsdata':altmetricsData,'openaccessdata':openaccessData}; return response; function getPaperBuzz(detail,articleDoi) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var paperBuzzApi = CS_getWidgetConfig(currentProfile,'paperbuzzApi',''); var apiEmailAddr = CS_getWidgetConfig(currentProfile,'apiEmailAddress',''); var paperBuzzDoiUrl = paperBuzzApi.baseUrl + encodeURIComponent(articleDoi); if (apiEmailAddr != '') {paperBuzzDoiUrl += '?email=' + apiEmailAddr;} var gotData ="NO"; return new Promise((resolve,reject) => { jQuery.ajax({ type: 'GET', url: paperBuzzDoiUrl, dataType: 'json', async: true, success: function(apiResponseData) { gotData="OK"; pbResponseData = apiResponseData; resolve(gotData); }, //success error:function(){ resolve('NO'); } }); //paperbuzz ajax }); //promise } // paperbuzz } //get Doi Enrichment} async function CS_getDatabaseData(detailId,resolver,issn) { var currentProfile = com_sirsi_ent_page.friendlyUrl; if ( resolver.baseUrl != "") { var openUrlParams = get_openUrlParams(detailId,resolver.openUrl,issn); if (openUrlParams !== '') { var openUrl = resolver.baseUrl+openUrlParams; dbData = await get_fullTextUrl(detailId,openUrl,resolver); } } return dbData; function get_openUrlParams(detailId,version,issn) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var selector = '#'+detailId; var openUrlParams = ""; var articleParams=''; var paramVals = {}; paramVals.id = encodeURIComponent('info:doi/'+jQuery(selector + '_DOI .DOI_value').first().text()); paramVals.atitle = encodeURIComponent(jQuery(selector + '_TITLE .TITLE_value').first().text()).replace(/'/g,"%27"); paramVals.jtitle = encodeURIComponent(jQuery(selector + '_PUBLICATION_NAME .PUBLICATION_NAME_value').first().text()); paramVals.issn = issn; paramVals.volume = jQuery(selector + '_VOLUME .VOLUME_value').first().text(); paramVals.issue = jQuery(selector + '_ISSUE .ISSUE_value').first().text(); paramVals.spage = jQuery(selector + '_PAGE_RANGE .PAGE_RANGE_value').first().text().replace(/null/g,'').split('-')[0]; paramVals.epage = jQuery(selector + '_PAGE_RANGE .PAGE_RANGE_value').first().text().replace(/null/g,'').split('-')[1]; paramVals.date = jQuery(selector + '_PUBDATE_FULL .PUBDATE_FULL_value').first().text().split('-')[0]; var author = jQuery(selector + '_AUTHOR_DISPLAY .AUTHOR_DISPLAY_value').first().text().replace(/null/g,'').trim(); var nameParts=[]; if (author.indexOf(',') > 0) { nameParts = author.split(','); paramVals.aulast = encodeURIComponent(nameParts.shift()); paramVals.aufirst = encodeURIComponent(nameParts.join(' ')); } else { nameParts = author.split(' '); paramVals.aulast = encodeURIComponent(nameParts.pop()); paramVals.aufirst = encodeURIComponent(nameParts.join(' ')); } if (version =='0.1') { var paramsV0 = '&genre=article'; for (var param in paramVals){ if (paramVals[param]){ articleParams +=`&${param}=${paramVals[param]}`; } } openUrlParams = paramsV0+articleParams } else { var paramsV1 ='&url_ver=Z39.88-2004&url_ctx_fmt=info:ofi/fmt:kev:mtx:ctx&rft_val_fmt=info:ofi/fmt:kev:mtx:journal'; for (var param in paramVals){ if (paramVals[param]){ articleParams +=`&rft.${param}=${paramVals[param]}`; } } openUrlParams = paramsV1+articleParams } return openUrlParams; } function get_fullTextUrl(detailId,openUrl,resolver) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var doi = jQuery('#'+detailId+'_DOI .DOI_value').first().text(); return new Promise( async(resolve) => { if (resolver.type == 'grlinker'){ var dbData= await get_grData(detailId,openUrl,resolver);resolve(dbData); } else { resolve([]); } }); // Promise function get_grData(detailId,openUrl,resolver){ var articleDate =jQuery('#'+detailId+ '_PUBDATE_FULL .PUBDATE_FULL_value').first().text(); var rex = /\([^\(]*\)/g var dbData = []; return new Promise((resolve) => {jQuery.ajax({ type:'GET', url : openUrl, dataType : 'html', success : function(response){ var page = jQuery(response); var linksDiv = jQuery('#grarticlelinks table.articleTable',page).get(0); if (jQuery(linksDiv).length > 0) { jQuery('tr td.articleLink',linksDiv).each(function() { let desc = jQuery('a',this).text(); let provider = [...desc.matchAll(rex)].pop()[0]; let name= desc.replace(provider,''); let linkUrl = '' let rawLink = jQuery('a',this).attr('href'); if (rawLink.match('_DOI_')) { linkUrl = (doi != '')?(rawLink.replace('_DOI_',doi)):(''); } else { linkUrl = rawLink;} if (linkUrl != '') { dbData.push({'type':'Article Link','code':'AL','name':name,'provider':provider,'url':jQuery('a',this).attr('href'),'coverage':articleDate}); } }); } var ftDiv = jQuery('#grfulltext table.ftTable',page).get(0); if (jQuery(ftDiv).length > 0) { jQuery('tr td.resourceLink',ftDiv).parent().each(function() { dbData.push({'type':'Journal Link','code':'FT', 'name':jQuery('td.resourceLink a',this).text(), 'provider': jQuery('td.resourceLink span.resourceProvider',this).text(), 'url':jQuery('td.resourceLink a',this).attr('href'), 'coverage':jQuery('td.resourceDates',this).text() }); }); } var indexDiv = jQuery('#grindexing table.citTable',page).get(0); if (jQuery(indexDiv).length > 0) { jQuery('tr td.resourceLink',indexDiv).parent().each(function() { dbData.push({'type':'Indexed Only ','code':'IO', 'name':jQuery('td.resourceLink a',this).text(), 'provider': jQuery('td.resourceLink span.resourceProvider',this).text(), 'url':jQuery('td.resourceLink a',this).attr('href'), 'coverage':jQuery('td.resourceDates',this).text() }); }); }; resolve (dbData); }, error: function(){ resolve('[]'); } }); }); } //Goldrush } } function CS_viewLinkedDoc(linkTableRowID,linkType){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var viewUrl = jQuery('#'+linkTableRowID +' .linkUrl').text(); window.open(viewUrl, '_blank'); }function CS_viewLocPdf(rId,viewUrl){ var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open(viewUrl, '_blank'); }function CS_viewLocDoi(rId,doiUrl) { var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open (doiUrl, '_blank'); }function CS_viewLocWeb(rId,webUrl) { var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open (webUrl, '_blank'); }function CS_viewLocSearch(rId,searchUrl) { var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open (searchUrl, '_blank'); }function CS_viewBuzz(rId,buzzUrl) { var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open (buzzUrl, '_blank'); }function CS_viewDbes(rId,dbesUrl) { var currentProfile = com_sirsi_ent_page.friendlyUrl; window.open (dbesUrl, '_blank'); }//--------------------------------------------------------------------------------------------//// CS Search Results Enhancement V5.1.1 (R 2.0)// Revision Date 2022-11-01//// Enhances search results displays by adding to Enterprise Defaults// Fields ["ABSTRACT","DOI","FORMAT","ISSUE","IS_OPEN_ACCESS","IS_PEER_REVIEWED","OA_AUTHOR","OA_LICENSE",// "OA_SOURCE","OER_TYPE","PAGE_RANGE","PUBDATE_FULL","PUBLICATION_NAME","PUBLISHER","PUBPLACE","VOLUME"]// //--------------------------------------------------------------------------------------------//function CS_srCheckResult(rId) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var format = CS_enumField(jQuery('#' + rId + '_FORMAT .FORMAT_value').first().text(),'Format'); var sources =jQuery('#'+rId+'_OA_SOURCE .OA_SOURCE_value').map(function() {return jQuery(this).text()}).get(); if (CS_getWidgetConfig(currentProfile,'showLensAttribution',true)) { jQuery('#LensAttribution').remove(); CS_addLensAttribution(); } if (CS_getWidgetConfig(currentProfile,'sr_showSearchUrlLink',true )){ jQuery('.federatedResultsPanel .csResultsWrapper .resultsToolbar_num_results #srchLnkRes').remove(); CS_addSearchResultsLink(); } CS_srAddEnrichmentDivs(rId); CS_srTidyAllResult(rId); if (sources.includes('UNPAYWALL')) { if (CS_getWidgetConfig(currentProfile,'sr_usePbCrUpEnhance',true)){ CS_srPbCrUpEnhance(rId); } } }function CS_addSearchResultsLink(profile,mode) { if (jQuery('.federatedResultsPanel .searchWithinForm').length >0){ let host = window.location.host.toString(); let protocol = window.location.protocol.toString(); let pathname = window.location.pathname.toString(); let swLink = jQuery('.searchWithinForm').attr('action'); let swUrl = new URL(swLink,protocol+host); let csoaSearch = pathname+swUrl.search; let csoaUrl = new URL(csoaSearch,protocol+host) let linkHtml = ''; linkHtml += 'href="#searchLinkListModal" onclick="CS_displaySearchLink(\''+csoaUrl+'\')">' linkHtml += ''; linkHtml += 'Search Results Url'; if (jQuery('.mobile').length > 0){ jQuery('.searchView.federatedView .csResultsToobar .resultsToolbar_num_results').append(linkHtml); } else { jQuery('.federatedResultsPanel .csResultsWrapper .resultsToolbar_num_results').append(linkHtml); } } } function CS_srTidyAllResult(rId) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var targetId = rId.substr(rId.indexOf('_') + 1); var format = CS_enumField(jQuery('#' + rId + '_FORMAT .FORMAT_value').first().text(),'Format'); var sources =jQuery('#'+rId+'_OA_SOURCE .OA_SOURCE_value').map(function() {return jQuery(this).text()}).get(); var abstract = jQuery('#' + rId + '_ABSTRACT .ABSTRACT_value').first().text(); var selector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementLabel.PUBLICATION_NAME'; jQuery(document).ready(function() { if (CS_getWidgetConfig(currentProfile,'sr_showStatusIcons',true)) { addOpenAccessIcon(rId); addPeerReviewIcon(rId); addLicenseIcon(rId); } addFormatTag(rId,format); tidyHostingTitle(rId,targetId); tidyAuthorList(rId); tidyPublished(rId); if ((CS_getWidgetConfig(currentProfile,'sr_showAbstract',false)) && (abstract !='')) { CS_srAddAbstract(rId,abstract) } }); function tidyAuthorList(rId){ var dispAuthors = (jQuery('.mobile').length > 0)?(1):(3); var targetId = rId.substr(rId.indexOf('_') + 1); var searchUrl = '/'+com_sirsi_ent_widgets.URLS.baseUrl+'/search/results'; var adaParam = (jQuery('.ada-mode').length>0)?('&ic=true'):(''); var authors=[]; var authorsHtml = ''; var numAuthors = jQuery('#' + rId + '_OA_AUTHOR .OA_AUTHOR_value').length; if (numAuthors > 0 ) { jQuery('#' + rId + '_OA_AUTHOR .OA_AUTHOR_value').each(function(index,author) { let aflntext = $J(this).text();aflntext = aflntext.replace(/:null/g,':""'); aflntext = aflntext.replace(/null/g,''); let aflnobj = JSON.parse(aflntext);if (aflnobj.name !== '') { var name= aflnobj.name; name = name.replace(/, */,''); authors.push(name.trim()); } }); authorsDisplay = authors.slice(0,dispAuthors); for (const author of authorsDisplay ){ let hyperLink = searchUrl + '?qu=%22'+ encodeURIComponent(author) + '%22'+adaParam+'&te='+targetId; hyperLink += '&rt=false%7C%7C%7C%3ECSOA%3CallAuthors%7C%7C%7CAuthor'; let linkHtml = '' + author + ''; if (authorsHtml != '') {authorsHtml += ','} authorsHtml += ''; authorsHtml += linkHtml; } if (authors.length > dispAuthors ){authorsHtml += ',...et al.'} let labelSelector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementLabel.AUTHOR_DISPLAY'; jQuery(labelSelector).text(' Author: '); let selector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementText.AUTHOR_DISPLAY'; jQuery(selector).html(authorsHtml); } } function tidyHostingTitle(rId,targetId) { var format = CS_enumField(jQuery('#' + rId + '_FORMAT .FORMAT_value').first().text(),'Format');; var publication = jQuery('#' + rId + '_PUBLICATION_NAME .PUBLICATION_NAME_value').text(); var volume = jQuery('#' + rId + '_VOLUME .VOLUME_value').text(); var issue = jQuery('#' + rId + '_ISSUE .ISSUE_value').text(); var pages = jQuery('#' + rId + '_PAGE_RANGE .PAGE_RANGE_value').text(); pages = pages.replace(/null/g,''); var labelSelector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementLabel.PUBLICATION_NAME'; if (format.code =='book') {jQuery(labelSelector).text(' Series: ');} else if (format.code.startsWith('book')) {jQuery(labelSelector).text(' Book: ');} else if (format.code.startsWith('journal')) {jQuery(labelSelector).text(' Journal: ');} else if (format.code.startsWith('proceedings')) {jQuery(labelSelector).text(' Proceedings: ');} else if (format.code.startsWith('oer')) {jQuery(labelSelector).text(' Provider: ');} else {jQuery(labelSelector).text(' Publication: ');} let searchUrl = '/'+com_sirsi_ent_widgets.URLS.baseUrl+'/search/results'; let adaParam = (jQuery('.ada-mode').length>0)?('&ic=true'):(''); let hyperLink = searchUrl + '?qu=%22'+ encodeURIComponent(publication.trim()); hyperLink += '%22'+adaParam+'&te='+targetId; hyperLink += '&rt=false%7C%7C%7C%3ECSOA%3Cpublication.name%7C%7C%7CPublication Name'; if (publication != '') { var analytic=''; if (volume !== '') {analytic += 'vol.'+ volume +''} if (issue !== '') {analytic += 'no.' + issue +''} if (pages !== '' && pages !== '-') {analytic += 'pp.' + pages} if (analytic !== '') {analytic = ', ' + analytic} let publicationPlus = ''+ publication; publicationPlus += ''+analytic+''; let selector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementText.PUBLICATION_NAME'; jQuery(selector).html(publicationPlus); } } function tidyPublished(rId) { var publisher = jQuery('#' + rId + '_PUBLISHER .PUBLISHER_value').text(); var pubDate = jQuery('#' + rId + '_PUBDATE_FULL .PUBDATE_FULL_value').text(); var pubPlace = jQuery('#' + rId + '_PUBPLACE .PUBPLACE_value').text(); if (publisher != '') { published = publisher} if (pubDate != '') { var published = ' ' + pubDate + ', '+published} if (pubPlace != '') {published +=', ' + pubPlace} if (published !== ''){ var labelSelector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementLabel.PUBDATE_FULL'; jQuery(labelSelector).text(' Published: '); var textSelector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementText.PUBDATE_FULL'; jQuery(textSelector).text(published); } } function addFormatTag(rId,format){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var hitSelector = '#' + rId.replace(/hitlist/,"srEnrBarDiv")+' .enrBarPt1' ; var formatDivId = rId.replace(/hitlist/,"formatDiv"); var sources =jQuery('#'+rId+'_OA_SOURCE .OA_SOURCE_value').map(function() {return jQuery(this).text()}).get(); var formatTag = '' if (format.code == 'oer') { formatTag = CS_enumField(jQuery('#' + rId + '_OER_TYPE .OER_TYPE_value').first().text(),'OER Type').display; } else { formatTag= format.display; if (! format.roa) { formatTag =formatTag.charAt(0).toUpperCase() + formatTag.slice(1); formatTag = formatTag.replace(/-/g,' '); } } var formatHtml = '

    '; formatHtml += 'Format'+ formatTag; formatHtml += '

    '; jQuery(hitSelector).append(formatHtml); } function addOpenAccessIcon(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var hitSelector = '#' + rId.replace(/hitlist/,"srEnrBarDiv") + ' .enrBarPt1'; var oaIconDivId = rId.replace(/hitlist/,"oaiconDiv"); var isOpenAccess = CS_enumField(jQuery('#' + rId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'Open Access'); var oaLicense = CS_enumField(jQuery('#' + rId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'License'); var oaIconDivHtml = ''; jQuery(hitSelector).append(oaIconDivHtml); var csImgDir = CS_getWidgetConfig(currentProfile,'CS_customDir','/custom/web'); csImgDir += CS_getWidgetConfig(currentProfile,'CS_imgSubDir',''); csImgDir += '/'; var oaIconHtml = ''; if ((isOpenAccess.code =='TRUE')||(isOpenAccess.code =='Yes') || (oaLicense.code !='')){ oaIconHtml += 'Search Results for Sloan, Christopher (5)Published under Open Access License'; } else { oaIconHtml += 'Search Results for Sloan, Christopher (6)Published under a Commercial License'; } jQuery('#'+oaIconDivId).append(oaIconHtml); } function addPeerReviewIcon(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var hitSelector = '#' + rId.replace(/hitlist/,"srEnrBarDiv") + ' .enrBarPt1'; var prIconDivId = rId.replace(/hitlist/,"priconDiv"); var isPeerReviewed = CS_enumField(jQuery('#' + rId + '_IS_PEER_REVIEWED .IS_PEER_REVIEWED_value').first().text(),'Peer Reviewed'); var prIconDivHtml = ''; jQuery(hitSelector).append(prIconDivHtml); var prIconHtml = ''; if ((isPeerReviewed.code =='TRUE') ||(isPeerReviewed.code =='Yes')){ prIconHtml += 'Article has been Peer Reviewed'; } else if ((isPeerReviewed.code =='FALSE') ||(isPeerReviewed.code =='No')){ prIconHtml += 'Article has not been Peer Reviewed'; } else { prIconHtml += 'Peer Review status is unknown'; } jQuery('#'+prIconDivId).append(prIconHtml); } } function addLicenseIcon(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var hitSelector = '#' + rId.replace(/hitlist/,"srEnrBarDiv") + ' .enrBarPt1'; var ccIconDivId = rId.replace(/hitlist/,"cciconDiv"); var isOpenAccess = CS_enumField(jQuery('#' + rId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'Open Access'); var oaLicense = CS_enumField(jQuery('#' + rId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'License'); var ccIconDivHtml = ''; jQuery(hitSelector).append(ccIconDivHtml); var symbols = ['CC','CC0','BY','ND','SA','NC']; var licenseClause= { 'CC' : 'Creative Commons', 'BY' : 'BY - Credit must be given to the creator', 'NC' : 'NC - Only noncommercial uses of the work are permitted', 'SA' : 'SA - Toute adaptation doit être diffusée dans les mêmes conditions', 'ND' : 'ND - No derivatives or adaptations of the work are permitted', 'CC0': 'CC0 - No Rights Reserved' } var csImgDir = CS_getWidgetConfig(currentProfile,'CS_customDir','/custom/web'); csImgDir += CS_getWidgetConfig(currentProfile,'CS_imgSubDir',''); csImgDir += '/'; var ccIconHtml = ''; if (oaLicense.code != ''){ if ((oaLicense.code!= '${FL_OTHER-OA}') && (oaLicense.code != 'other-oa') && (oaLicense.code != 'Other OA') ){ ccIconHtml += 'License'; let license = oaLicense.code.replace(/^CC /,"CC-"); license = license.replace(/^CC0$/,"CC-CC0"); let lParts = license.split('-'); for (const part of lParts) { if (symbols.includes(part)) { ccIconHtml += 'Search Results for Sloan, Christopher (7)'; ccIconHtml += ''+licenseClause[part]+''; } } } else { ccIconHtml += 'License Author/Publisher specified OA License'; } } else { //no licence codeif ((isOpenAccess.code =='TRUE')||(isOpenAccess.code =='Yes') ){ ccIconHtml += 'License ${OA-NONE}'; } else { ccIconHtml += 'License ${CL}'; } } jQuery('#'+ccIconDivId).append(ccIconHtml); }function CS_srAddAbstract(rId,abstract){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var absDispLength= CS_getWidgetConfig(currentProfile,'sr_absDispLength',200); // tidy abstract abstract = abstract.replace(/^Abstract[^ ]* */i, ""); abstract = abstract.replace(/^Background[^ ]* */i, ""); abstract = abstract.replace(/(<([^>]+)>)/gi, ""); abstract = abstract.replace(/\n/g, " "); abstract = abstract.replace(/ */g, " "); abstract = abstract.replace(/^ */g, " "); abstract = abstract.replace(/^(No Abstract *)*/gi, ""); if (abstract !== ''){ var abstractHtml = '

    '; abstractHtml += '

    Abstract:

    '; abstractHtml += '

    '; if (abstract.length > absDispLength) { var breakAbstract = abstract.substring(0,absDispLength).lastIndexOf(" "); var startAbstract=abstract.substring(0,breakAbstract); var restAbstract =abstract.substring(breakAbstract,abstract.length); abstractHtml += ''+startAbstract+''; abstractHtml += '...'; abstractHtml += 'more'; abstractHtml += ''; abstractHtml += ''; } else { abstractHtml += abstract; } abstractHtml += '

    '; var enrichDivId = rId.replace(/hitlist/,"srEnrichDiv"); jQuery('#'+enrichDivId).before(abstractHtml); } } async function CS_srPbCrUpEnhance(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var enrichmentData = await getPbCrUpData(rId); var articleData = enrichmentData.articledata; var altmetricsData = enrichmentData.altmetricsdata; var openaccessData = enrichmentData.openaccessdata; if (CS_getWidgetConfig(currentProfile,'sr_showJaMetrics',false)){ addJaMetricsDiv(rId); if (typeof articleData !== 'undefined' ){ if (articleData['references-count']) { addCites(rId,articleData['references-count']); } if (articleData['is-referenced-by-count']) { addCited(rId,articleData['is-referenced-by-count']); } } if ((typeof altmetricsData !== 'undefined') && (altmetricsData.length != 0)){ let buzz = 0; jQuery.each(altmetricsData,function(sindex,source){ buzz += source.events_count; }); addBuzz(rId,buzz); } } if ((CS_getWidgetConfig(currentProfile,'sr_addMissingAbstract',false)) && (articleData)){ if (jQuery('#' + rId + '_ABSTRACT .ABSTRACT_value').length ==0){ if (articleData.abstract) { CS_srAddAbstract(rId,articleData.abstract); } } } if ((CS_getWidgetConfig(currentProfile,'sr_addMissingTitle',false)) && (articleData)) { addMissingTitle(rId,articleData.title,articleData.subtitle) } if (CS_getWidgetConfig(currentProfile,'sr_checkOaStatus',false)) { var oaLicense = CS_enumField(jQuery('#' + rId + '_OA_LICENSE .OA_LICENSE_value').first().text(),'License'); var isOpenAccess = CS_enumField(jQuery('#' + rId + '_IS_OPEN_ACCESS .IS_OPEN_ACCESS_value').first().text(),'Open Access'); var CS_openAccess = ((isOpenAccess.code =='TRUE')||(isOpenAccess.code =='Yes') || (oaLicense.code !='')); if (typeof openaccessData !== 'undefined') { UP_openAccess = ((openaccessData.is_oa) || ((openaccessData.best_oa_location!== null) )); if (UP_openAccess != CS_openAccess) { updateOaStatus(rId,CS_openAccess,UP_openAccess); } } } function addMissingTitle(rId,title,subtitle) { var currentTitle = jQuery('#' + rId + '_TITLE .TITLE_value').text(); currentTitle = currentTitle.replace(/\.$/,''); var selector = '#' + rId.replace(/hitlist/,"results_bio")+' .displayElementWrapper.TITLE a'; var newTitle = ''; if (typeof title !== 'undefined'){ if (typeof title == 'string') {newTitle += title} else {newTitle = title[0]} newTitle = newTitle.replace(/\.$/,''); if ((typeof subtitle !== undefined) && (typeof subtitle[0] !== 'undefined')){ if (! title.toLowerCase().includes(subtitle[0].toLowerCase())) { if (newTitle.charAt(title.length-1) != ":") {newTitle += ":";} newTitle += ' '+subtitle[0]; } } if ((newTitle !== currentTitle) && (newTitle.length > currentTitle.length)){ jQuery(selector).text(newTitle); } } } function updateOaStatus(rId,oldOaStatus,newOaStatus){ var alertNonOaHit = CS_getWidgetConfig(currentProfile,'sr_alertNonOaHit',false) var hideNonOaHit = CS_getWidgetConfig(currentProfile,'sr_hideNonOaHit',false) var disableNonOaHit = CS_getWidgetConfig(currentProfile,'sr_disableNonOaHit',false) var hitSelector = '#' + rId.replace(/hitlist/,"results_cell"); var widgetPlace = '#' + rId.replace(/hitlist/,"results_righthitlist"); var messagePlace = '#' + rId.replace(/hitlist/,"srEnrichDiv"); var oaIconDivId = '#' +rId.replace(/hitlist/,"oaiconDiv"); var oaIconHtml = ''; if (newOaStatus){ oaIconHtml += 'Search Results for Sloan, Christopher (8)*Published under Open Access License'; } else { oaIconHtml += 'Search Results for Sloan, Christopher (9)*Published under a Commercial License'; } jQuery(oaIconDivId).html(oaIconHtml); if ((oldOaStatus) && (! newOaStatus)) { jQuery(hitSelector).addClass('badOA'); if (alertNonOaHit) { jQuery(hitSelector).addClass('alertOA'); var oaStatusHtml = '

    '; oaStatusHtml += 'This resource is no longer available as an Open Access Resource.

    '; jQuery(hitSelector).after(oaStatusHtml); } if (disableNonOaHit) { jQuery(hitSelector).css({"pointer-events" : "none" , "opacity" : "0.4"}); jQuery(hitSelector).addClass('disableOA'); jQuery(hitSelector).prop('disabled',true); jQuery(hitSelector+' *').prop('onclick',null).off("click"); } if (hideNonOaHit){ jQuery(hitSelector).addClass('hideOA'); jQuery(hitSelector).parent().hide(); } } } function addJaMetricsDiv(rId){ var hitSelector = '#' + rId.replace(/hitlist/,"srEnrBarDiv") +' .enrBarPt2'; var metricsDivId = rId.replace(/hitlist/,"jaMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"jaMetricData"); var metricsInfoId = rId.replace(/hitlist/,"jaMetricInfo"); var metricsHtml = '

    '; metricsHtml += ''; metricsHtml += 'Metrics:'; metricsHtml += '

    '; metricsHtml += '

    '; jQuery(hitSelector).append(metricsHtml); jQuery('#'+metricsDivId).hide(); } function addBuzz(rId,buzz){ var metricsDivId = rId.replace(/hitlist/,"jaMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"jaMetricData"); var buzzDataId = rId.replace(/hitlist/,"jaCitedData"); var buzzMetric = '

    '; buzzMetric += 'Buzz: '+buzz+'

    '; jQuery('#' + metricsDataId).append(buzzMetric); jQuery('#'+ metricsDivId).show(); } function addCites(rId,cites) { var metricsDivId = rId.replace(/hitlist/,"jaMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"jaMetricData"); var citesDataId = rId.replace(/hitlist/,"jaCitesData"); var citesMetric = '

    '; citesMetric += 'Cites: ' + cites+'

    '; jQuery('#'+ metricsDataId).append(citesMetric); jQuery('#'+ metricsDivId).show(); } function addCited(rId,cited) { var metricsDivId = rId.replace(/hitlist/,"jaMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"jaMetricData"); var citedDataId = rId.replace(/hitlist/,"jaCitedData"); var citedMetric = '

    '; citedMetric += 'Cited: ' + cited + '

    '; jQuery('#'+ metricsDataId).append(citedMetric); jQuery('#'+ metricsDivId).show(); } async function getPbCrUpData(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var usePaperbuzz = CS_getWidgetConfig(currentProfile,'paperbuzzCfg',{'use':false}).use; var useCrossref = CS_getWidgetConfig(currentProfile,'crossrefCfg' , {'use':false}).use; var useUnpaywall = CS_getWidgetConfig(currentProfile,'unpaywallCfg',{'use':false}).use; var pbResponseData; var crResponseData; var upResponseData; var altmetricsData; var articleData; var openaccessData; var articleDoi = jQuery('#' + rId + '_DOI .DOI_value').first().text(); var hitSelector = '#' + rId.replace(/hitlist/,"results_bio"); var gotAllData = false; if (usePaperbuzz) { var gotData = await getPaperBuzz(rId,articleDoi); if (gotData =="OK") { altmetricsData = pbResponseData.altmetrics_sources; articleData = pbResponseData.metadata; openaccessData = pbResponseData.open_access; gotAllData = true; } } if (!gotAllData) { if (useCrossref){ var gotMetadata = await getCrossRef(rId,articleDoi); if (gotMetadata =="OK") { articleData = crResponseData.message; } } if (useUnpaywall){ var gotOAdata = await getUnPaywall(rId,articleDoi); if (gotOAdata =="OK") { openaccessData = upResponseData; } } } var response= {'articledata' :articleData, 'altmetricsdata':altmetricsData,'openaccessdata':openaccessData}; return response; function getPaperBuzz(rId,articleDoi) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var paperbuzzApi = CS_getWidgetConfig(currentProfile,'paperbuzzApi',{'baseUrl':''}); var apiEmailAddr =CS_getWidgetConfig(currentProfile,'apiEmailAddress',''); var paperBuzzDoiUrl = paperbuzzApi.baseUrl + encodeURIComponent(articleDoi); if (apiEmailAddr != '') {paperBuzzDoiUrl += '?email=' + apiEmailAddr;} var gotData ="NO"; return new Promise((resolve,reject) => { jQuery.ajax({ type: 'GET', url: paperBuzzDoiUrl, dataType: 'json', async: true, success: function(apiResponseData) { if (apiResponseData.metadata.length != 0){ gotData="OK"; pbResponseData = apiResponseData; } else { gotData="NO"; } resolve(gotData); }, //success error:function(){ resolve('NO'); } }); //paperbuzz ajax }); //promise } // paperbuzz function getCrossRef(rId,articleDoi) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var crossrefApi = CS_getWidgetConfig(currentProfile,'crossrefApi',{'baseUrl':''}); var apiEmailAddr =CS_getWidgetConfig(currentProfile,'apiEmailAddress',''); var crossrefDoiUrl = crossrefApi.baseUrl + encodeURIComponent(articleDoi); if (apiEmailAddr != '') {crossrefDoiUrl += '?mailto=' + apiEmailAddr;} var gotData ="NO"; return new Promise((resolve,reject) => { jQuery.ajax({ type: 'GET', url: crossrefDoiUrl, dataType: 'json', async: true, success: function(apiResponseData) { if (apiResponseData.message.length != 0){ gotData="OK"; crResponseData = apiResponseData; } else { gotData="NO"; } resolve(gotData); },//success error:function(){ resolve('NO'); } }); //crossref ajax }); //promise } function getUnPaywall(rId,articleDoi) { var currentProfile = com_sirsi_ent_page.friendlyUrl; var unpaywallApi = CS_getWidgetConfig(currentProfile,'unpaywallApi',{'baseUrl':''}); var apiEmailAddr = CS_getWidgetConfig(currentProfile,'apiEmailAddress',''); var unPaywallDoiUrl = unpaywallApi.baseUrl + encodeURIComponent(articleDoi); if (apiEmailAddr != '') {unPaywallDoiUrl += '?email=' + apiEmailAddr;} var gotData ="NO"; return new Promise((resolve,reject) => { jQuery.ajax({ type: 'GET', url: unPaywallDoiUrl, dataType: 'json', async: true, success: function(apiResponseData) { if (apiResponseData.length != 0){ gotData="OK"; upResponseData = apiResponseData; } else { gotData="NO"; } resolve(gotData); }, //success error:function(){ resolve('NO'); } }); //unpaywall ajax }); //promise } } //getEnrichmentData } // PbCrUp enhance async function CS_srEnhanceOtlResult(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; CS_srAddEnrichmentDiv(rId); if (CS_getWidgetConfig(currentProfile,'sr_showAbstract',false)) { var abstract = jQuery('#' + rId + '_ABSTRACT .ABSTRACT_value').first().text(); if (abstract != '') { CS_srAddAbstract(rId,abstract) } } var enrichmentData = await getOtlEnrichmentData(rId); var otlBookData = enrichmentData.otlbookdata; if (CS_getWidgetConfig(currentProfile,'sr_showOtlStatus',false)) { addOtlCollectionIcon(rId); } if (CS_getWidgetConfig(currentProfile,'sr_showOtlMetrics',false)){ addOtlMetricDiv(rId); if (typeof otlBookData !== 'undefined') { if (otlBookData.reviews.length >0) { addOtlReviews(rId,otlBookData.reviews.length); } if (otlBookData.rating > 0) { addOtlRating(rId,otlBookData.rating); } } } if (CS_getWidgetConfig(currentProfile,'sr_checkOAstatus',false)) { if (typeof otlBookData == 'undefined') { disableHit(rId); } } async function getOtlEnrichmentData(rId){ var otlCfg= CS_getWidgetConfig(currentProfile,'useOpenTextbookCfg',{'use':false}); var otlResponseData; var otlBookData; var otlId = jQuery('#' + rId + '_CS_OTL_ID .CS_OTL_ID_value').first().text(); var hitSelector = '#' + rId.replace(/hitlist/,"results_bio"); if (otlCfg.use) { //console.log('calling OTL api'); var gotData = await getOTLdata(rId,otlId); //console.log("OTL Hit Metadata",rId,gotData); //console.log('otlResponse ' + JSON.stringify(otlResponseData)); if (gotData =="OK") { otlBookData = otlResponseData.data; } } var response= {'otlbookdata' :otlBookData}; return response; function getOTLdata(rId,otlBookId) { var otlApi= CS_getWidgetConfig(currentProfile,'useOpenTextbookApi',{'baseUrl':''}); var otlapiBookUrl = otlApi.baseUrl + otlBookId + '.json';; var gotData ="NO"; //console.log('otlapi url',otlapiBookUrl); return new Promise((resolve,reject) => { jQuery.ajax({ type: 'GET', url: otlapiBookUrl, dataType: 'json', async: true, success: function(apiResponseData) { //console.log('OTLapiReps ' + JSON.stringify(apiResponseData)); if (apiResponseData.length != 0){ gotData="OK"; otlResponseData = apiResponseData; } else { gotData="NO"; } resolve(gotData); }, //success error:function(){ resolve('NO'); } }); //paperbuzz ajax }); //promise } } function addOtlMetricDiv(rId){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var hitSelector = '#' + rId.replace(/hitlist/,"results_bio"); var metricsDivId = rId.replace(/hitlist/,"otlMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"otlMetricData"); var metricsInfoId = rId.replace(/hitlist/,"otlMetricInfo"); var metricsHtml = '

    '; metricsHtml += ''; metricsHtml += '

    '; metricsHtml += '

    '; jQuery(hitSelector).append(metricsHtml); jQuery('#'+metricsDivId).hide(); } function addOtlReviews(rId,reviews){ var metricsDivId = rId.replace(/hitlist/,"otlMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"otlMetricData"); var reviewDataId = rId.replace(/hitlist/,"otlReviewData"); var reviewMetric = '

    '; reviewMetric += 'Reviews:: '+reviews+'

    '; jQuery('#' + metricsDataId).append(reviewMetric); jQuery('#' + metricsDivId).show(); } function addOtlRating(rId,rating){ var metricsDivId = rId.replace(/hitlist/,"otlMetricDiv"); var metricsDataId = rId.replace(/hitlist/,"otlMetricData"); var ratingDataId = rId.replace(/hitlist/,"otlRatingData"); var ratingMetric = '

    '; ratingMetric += 'Rating: ' + rating + ''; ratingMetric += '

    '; ratingMetric += ''; ratingMetric += '★★★★★' ratingMetric += '★★★★★

    '; ratingMetric += '

    '; jQuery('#' + metricsDataId).append(ratingMetric); jQuery('#' + metricsDivId).show(); } }function CS_srAddEnrichmentDivs(rId){ var hitSelector = '#' + rId.replace(/hitlist/,"results_bio"); var enrichDivId = rId.replace(/hitlist/,"srEnrichDiv"); var enrichDivHtml = '

    '; enrichDivHtml += '

    '; jQuery(hitSelector).append(enrichDivHtml); var enrBarDivId = rId.replace(/hitlist/,"srEnrBarDiv"); var enrBarDivHtml = '

    '; if (jQuery('.mobile').length > 0) { enrBarDivHtml += '

    '; enrBarDivHtml += '

    '; } else { enrBarDivHtml += '

    '; } enrBarDivHtml += '

    '; jQuery(hitSelector).append(enrBarDivHtml); jQuery('#'+enrBarDivId).tooltip(); }function CS_addLensAttribution() { var currentProfile = com_sirsi_ent_page.friendlyUrl; if (jQuery('#LensAttribution').length == 0){ var csImgDir = CS_getWidgetConfig(currentProfile,'CS_customDir','/custom/web'); csImgDir += CS_getWidgetConfig(currentProfile,'CS_imgSubDir',''); csImgDir += '/'; var lensHtml = '

    '; lensHtml += 'Powered in part by metadata from '; lensHtml += 'Search Results for Sloan, Christopher (10)'; lensHtml += 'LENS.ORG

    '; jQuery('.bottomToolbar_right').css('width','180px'); jQuery('.bottomToolbar_right').before(lensHtml); } }function CS_displaySearchLink(linkUrl){ var currentProfile = com_sirsi_ent_page.friendlyUrl; var dialogTitle = "Search Results Url"; var searchLinkUrlHtml = '

    '; searchLinkUrlHtml += ''+linkUrl+''; searchLinkUrlHtml += '

    '; if (jQuery('.mobile').length > 0) { var htmlMobile=''; jQuery(function() { jQuery(htmlMobile).dialog({ title: dialogTitle, closeLeft : true, classes : {'ui-dialog': 'bgcolor-white bcolor fullscreenModal', 'ui-dialog-buttonpane': 'bgcolor-white bcolor', 'ui-dialog-titlebar': 'text-h2 nm-bgcolor-p5 bgcolor-p3'}, modal:true, restoreFocus : true, buttons:[ { id : "searchLinkCopybtn", text : "Copy", class : "button", style : "display:block;margin:5px;", click :function(){ var bg =jQuery("#searchLinkCopybtn").css("background-color"); var fg =jQuery("#searchLinkCopybtn").css("color"); jQuery("#searchLinkCopybtn").css("background-color",fg) var range =document.createRange(); range.selectNode(document.getElementById('searchLinkDisplay')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); setTimeout(function(){jQuery("#searchLinkCopybtn").css("background-color",bg)} ,50)} }, { id : "searchLinkClosebtn", text: "Close", class : "button", style : "display:block;margin:5px;", click :function(){jQuery(this).dialog("close");} } ], open : function(){jQuery('#searchLinkModal').css("max-height",250); jQuery('.slideMenu--slide-right .ui-dialog-titlebar-close').click(); } }); }); } else { var htmlOutput='

    ' +searchLinkUrlHtml+ '

    '; jQuery(function() { jQuery(htmlOutput).dialog({ width:500, maxHeight:700, classes: {'ui-dialog': 'bgcolor-white bcolor fullscreenModal', 'ui-dialog-buttonpane': 'bgcolor-white bcolor', 'ui-dialog-titlebar': 'text-h2 nm-bgcolor-p5 bgcolor-p3'}, hide: { effect: "scale", duration: 750 }, title: dialogTitle, modal:true, buttons:[ { id : "searchLinkCopybtn", text : "Copy", class : "button", click :function(){ var bg =$J("#searchLinkCopybtn").css("background-color"); var fg =$J("#searchLinkCopybtn").css("color"); var range =document.createRange(); $J("#searchLinkCopybtn").css("background-color",fg) range.selectNode(document.getElementById('searchLinkDisplay')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); setTimeout(function(){jQuery("#searchLinkCopybtn").css("background-color",bg)} ,50)} }, { id : "searchLinkClose", text: "Close", class : "button", click :function(){jQuery(this).dialog("close");} } ], open : function(){jQuery('.ui-dialog-buttonpane').css({"float":"left","border":0}); } }); }); } }

    Fetching Results for CloudsourceOA - Online Articles...

    Search Results for Sloan, Christopher (2024)

    References

    Top Articles
    Latest Posts
    Article information

    Author: Prof. An Powlowski

    Last Updated:

    Views: 6065

    Rating: 4.3 / 5 (44 voted)

    Reviews: 83% of readers found this page helpful

    Author information

    Name: Prof. An Powlowski

    Birthday: 1992-09-29

    Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

    Phone: +26417467956738

    Job: District Marketing Strategist

    Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

    Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.