Resultados de búsqueda para Religious life -- Drama.   (2024)

'); frbrResultCell.find('.frbr-accordion').insertBefore(frbrResultCell.find('.results_right')); frbrResultCell.find('.frbr-accordion-content').insertAfter(frbrResultCell.find('.frbr-accordion')); var frbrAccordionLabel = frbrResultCell.find('.frbr-accordion .displayElementLabel'); //console.log(frbrAccordionLabel); if (numberOfFormats == 0) { frbrAccordionLabel.html('' + numberOfFormats + ' Known Formats Found (Click Result\'s Title Link to Resolve)'); } else if (numberOfFormats == 1) { frbrAccordionLabel.html('' + numberOfFormats + ' Format '); } else { frbrAccordionLabel.html('' + numberOfFormats + ' Formats '); } // Add "Open All Accordions" and "Place Blanket Hold" to main accordion if (!numberOfFormats == 0) { frbrResultCell.find('.frbr-accordion').after('

Open All Formats

Place Format Holds

'); } // Display/Hide ALL FRBR Items frbrResultCell.find('.frbr-open-all, .frbr-accordion').click(function() { // console.log("click event for show/hide all"); if ($J(this).parent().find('.frbr-accordion .displayElementLabel:contains("Show")').length > 0 && $J(this).parent().find('.frbr-open-all:contains("Open All Formats")').length > 0) { $J(this).parent().find('.frbr-accordion .displayElementLabel').click(); } var formatAccordion = $J(this).parent().find('.frbr-accordion-content .expressionSearchLink'); $J(this).parent().find('.expressionSearchLink .frbr-sr-list-items').each(function() { var displayNone = $J(this).css('display') == 'none'; var displayBlock = $J(this).css('display') == 'block'; if ($J(this).parentsUntil('.frbrClusterDisplay').find('.frbr-open-all').text() == 'Open All Formats') { if (displayNone) { $J(this).slideToggle('slow', function() { //$J(this).parent('.frbr-expressions').find('i').attr('class', angleDownClass); $J(this).parent('.frbr-expressions').find('i').removeClass('fa-angle-right'); $J(this).parent('.frbr-expressions').find('i').addClass('fa-angle-down'); $J(this).parent('.frbr-expressions').find('.frbrToggle').html("–"); // $J(formatAccordion).css('background', '#f9f7df'); $J(this).parentsUntil('.frbrClusterDisplay').find('.frbr-open-all').text('Close All Formats'); }); } } else { if (displayBlock) { $J(this).slideToggle('slow', function() { //$J(this).parent('.frbr-expressions').find('i').attr('class', angleRightClass); $J(this).parent('.frbr-expressions').find('i').removeClass('fa-angle-down'); $J(this).parent('.frbr-expressions').find('i').addClass('fa-angle-right'); $J(this).parent('.frbr-expressions').find('.frbrToggle').text("+"); // $J(formatAccordion).css('background', '#fff'); $J(this).parentsUntil('.frbrClusterDisplay').find('.frbr-open-all').text('Open All Formats'); if ($J(this).css('display') == 'block' && $J(this).parentsUntil('.frbrClusterDisplay').find('.frbr-accordion > .frbr-displayElementWrapper .displayElementLabel:contains("Show")').length > 0) { $J(this).css('display', 'none'); } }); } } }); }); // Click event for "Place Blanket Hold" button // //### Turn code from other side of conditional into a function and call it here // frbrResultCell.find('.frbr-format-holds').click(function() { // }); } // end Collapse all formats desktop //################################################################################### if (displayFormatIconsOnly != true) { $J('#frbrThumbButton' + rId).click(function() { var frbrTableClone = '

'; $J(frbrTableClone).dialog({ width: 700, maxHeight: 700, hide: { effect: "scale", duration: 750 }, title: 'Multiple Formats', open: function() { //$J('#frbrPopup_'+rId + ' .frbr-expressions>a').off('click'); //$J('#frbrPopup_'+rId + ' .frbr-expressions>a').click(function(){toggleFormat(this); return false;}); $J('#frbrPopup_' + rId + ' .expressionSearchLink').off('click'); $J('#frbrPopup_' + rId + ' .expressionSearchLink').click(function() { toggleFormat(this); return false; }); }, modal: true, buttons: { Ok: function() { $J(this).dialog("close"); } } //end buttons }); }); if (!$J('body').hasClass('mobile')) { // not mobile // Click event for format accordions if (frbrResultCell) { frbrResultCell.find('.frbr-accordion-content .expressionSearchLink').each(function() { var numberOfItems = $J(this).find('.frbr-sr-list-items .frbr-table tbody tr').length; $J(this).find('a.frbrFormatTypeIcon').unbind().removeAttr('href'); // $J(this).find('.frbr-expressions').prepend(''); ////$J(this).find('a.formatTypeIcon-UNKNOWN').append(' (' + numberOfItems + ')'); ////$J(this).find('.frbr-menu-labels').append(' (' + numberOfItems + ')'); $J(this).click(function() { var formatAccordion = this; toggleFormat(formatAccordion);/* $J(this).find('.frbr-sr-list-items').slideToggle('slow', function() { if ($J(this).css('display') == 'none') { $J(this).parent().find('i').attr('class', angleRightClass); // $J(formatAccordion).css('background', '#fff'); } else if ($J(this).css('display') == 'block') { $J(this).parent().find('i').attr('class', angleDownClass); // $J(formatAccordion).css('background', '#f9f7df'); } });*/ }); $J(this).find('.frbr-sr-list-items').click(function(e){ e.stopPropagation(); }); }); } } else { // mobile $J('#' + rId + '_frbrLinks .expressionSearchLink').click(function() { var element = this; toggleFormat(element); // if ($J('button#' + rId + 'FRBRBUTTON').attr("value") == "${HIDE_OTHER_EDITIONS}") { // $J('button#' + rId + 'FRBRBUTTON').attr("value", "${VIEW_OTHER_EDITIONS}"); // $J('button#' + rId + 'FRBRBUTTON').attr("title", "${VIEW_OTHER_EDITIONS}"); // $J('button#' + rId + 'FRBRBUTTON').text("${VIEW_OTHER_EDITIONS}"); // } // else { // $J('button#' + rId + 'FRBRBUTTON').attr("value", "${HIDE_OTHER_EDITIONS}"); // $J('button#' + rId + 'FRBRBUTTON').attr("title", "${HIDE_OTHER_EDITIONS}"); // $J('button#' + rId + 'FRBRBUTTON').text("${HIDE_OTHER_EDITIONS}"); // } // $J('ul.list-items').slideToggle(300); return false; }); $J('#' + rId + '_frbrLinks .expressionSearchLink').find('.frbr-sr-list-items').click(function(e){ e.stopPropagation(); }); } } //} numClusters++; //console.log("=-=-=-=-=-=-=-="); } } }); } else { // console.log ('skipping because hit does not have both TI & AU');if (verboseMode == true) { frbrishAnalysis.curAuthor = curAuthor; frbrishAnalysis.curTitle = curTitle; frbrishAnalysis.isAuthorizedTitle == false; if (authorizedTitle == 1) { frbrishAnalysis.isAuthorizedTitle == true; } frbrishAnalysis.result = "Skipped because hit does not have both Title and Author";} } }if (verboseMode == true) { console.log(JSON.parse(JSON.stringify(frbrishAnalysis)));} } //end when FRBR=1 is not present else { //when FRBR=1 is present $J('.hitNumber').hide(); var hitSelector = '#' + rId.replace(/hitlist/, "results_bio"); var hitDocId = $J('#' + rId + '_DOC_ID').text(); if (hitDocId == "") { isErcHit = 1; hitDocId = $J('#' + rId + '_ERC_ID').text(); hitFullId = $J(hitSelector + ' .displayDetailLink > a').attr('onclick'); //console.log('hitFullId: ' +hitFullId); if (hitFullId == null) { hitFullId = $J(hitSelector + ' .displayDetailLink > a').attr('href'); hitFullId = hitFullId.replace(/^.*detailnonmodal./, ""); hitFullId = hitFullId.replace(/\/.*$/, ""); hitFullId = hitFullId.replace(/\$002f/g, "/"); } else { hitFullId = hitFullId.toString(); hitFullId = hitFullId.match(/ent:.*\?/); hitFullId = String(hitFullId); hitFullId = hitFullId.replace(/\/.*$/, ""); // hitFullId = hitFullId.replace("\/[0-9]+\/[0-9]+\/[0-9]+\\?", ""); hitFullId = hitFullId.replace(/\$002f/g, "/"); } //console.log('hitFullId ' + hitFullId); hitDocId = hitFullId; } var isIlsh*t = 0; if (hitDocId.indexOf(ILScode) > -1) { isIlsh*t = 1; } //console.log(hitDocId);frbrSearchParams = decodeURIComponent(window.location.search.replace(/^\?/, '').split("&").filter(item => item.match(/^qu=/)).join("&")); if (unclusterIdList[frbrSearchParams.toLowerCase()][hitDocId]) { $J(hitSelector).parent().parent().hide(); //console.log(' Hit found in uncluster save list so not displayed'); } } //end when FRBR=1 is present //console.log('numClusters: '+numClusters); if (!$J('#searchResultsColumn div.pagination > div.resultsToolbar_paginationNumbers > a:nth-child(2)').length) { if (numClusters == 0) { $J('.frbrNote').hide(); } else { $J('.frbrNote').show(); } } /*if (verboseMode == true) { console.log(frbrishAnalysis); }*/} //end function frbrSearch//*******************************************************************************************************************//function toggleFormat(element) { //var currentMenu = $J(element).siblings('ul.frbr-sr-list-items'); var currentMenu = $J(element).find('ul.frbr-sr-list-items'); //console.log(currentMenu); if ($J('body').hasClass('mobile')) { columnTop = $J('#searchResultsColumn').offset().top; columnHeight = $J('#searchResultsColumn').height(); //bottomWrapperTop = $J('#bottomToolbar_wrapper').offset().top; //bottomWrapperHeight = $J('#bottomToolbar_wrapper').height(); //defaultColumnHeight = bottomWrapperTop + bottomWrapperHeight + 7 - columnTop; defaultColumnHeight = columnHeight; $J('ul.frbr-sr-list-items').not(currentMenu).hide(); currentButton = jQuery(currentMenu).siblings('a').find('span.frbr-menu-open button'); //console.log(jQuery(currentButton).text()); if (jQuery(currentButton).text() == "+") { jQuery(currentButton).text("-"); } else { jQuery(currentButton).text("+"); } //console.log(jQuery(currentButton).text()); currentMenu.slideToggle(300, function() { /* curMenuTop = currentMenu.offset().top; curMenuHeight = currentMenu.height(); //console.log('column:'+ (columnTop +':'+ columnHeight) + '|curMenu:' + (curMenuTop +':'+ curMenuHeight)); // columnBottom = columnTop + defaultColumnHeight; columnBottom = columnTop + columnHeight curMenuBottom = curMenuTop + curMenuHeight; if (columnBottom < curMenuBottom) { newHeight = (curMenuBottom - columnTop) + 3; $J('#searchResultsColumn').height(newHeight); } // else if (((defaultColumnHeight + columnTop ) >= curMenuBottom) && $J('#searchResultsColumn').height() != defaultColumnHeight) { // $J('#searchResultsColumn').height(defaultColumnHeight); // } //console.log('columnBottom:'+ columnBottom + "|curMenuBottom:" + curMenuBottom +"|"); //newHeight:"+newHeight); */ }); //console.log('colWidth:'+$J('#searchResultsColumn').width()); //console.log('menuRight:'+ ($J(currentMenu).offset().left + $J(currentMenu).outerWidth)); } // end if mobile else { // not mobile //console.log("not mobile"); columnTop = $J('#searchResultsColumn').offset().top; columnHeight = $J('#searchResultsColumn').height(); bottomWrapperTop = $J('#bottomToolbar_wrapper').offset().top; bottomWrapperHeight = $J('#bottomToolbar_wrapper').height(); defaultColumnHeight = bottomWrapperTop + bottomWrapperHeight + 7 - columnTop; //if (columnTop + columnHeight < curMenuTop + curMenuHeight) { // sessionStorage.columnHeight = columnHeight; //} //else { // if (sessionStorage.columnHeight.length > 0) { // if (columnTop + sessionStorage.columnHeight > curMenuTop + curMenuHeight) { // console.log('column-ss:'+ (columnTop +':'+ sessionStorage.columnHeight) + '|curMenu:' + (curMenuTop +':'+ curMenuHeight)); // } // } //} if (currentMenu.siblings('i').hasClass('fa-angle-right')) { currentMenu.siblings('i').removeClass('fa-angle-right'); currentMenu.siblings('i').addClass('fa-angle-down'); } else { currentMenu.siblings('i').removeClass('fa-angle-down'); currentMenu.siblings('i').addClass('fa-angle-right'); } //if (currentMenu.css('display') == 'none' && currentMenu.parentsUntil('.results_cell').find('.frbr-open-all').text() == 'Open All Formats') { if (currentMenu.parentsUntil('.frbrClusterDisplay').find('.frbr-open-all').text() == 'Open All Formats') { $J('ul.frbr-sr-list-items').not(currentMenu).hide().siblings('a').find('span.frbr-menu-open button').text("+");; } currentButton = jQuery(currentMenu).siblings('a').find('span.frbr-menu-open button'); //console.log(jQuery(currentButton).text()); currentMenu.slideToggle(300, function() { if (jQuery(currentButton).text() == "+") { jQuery(currentButton).html("–"); } else { jQuery(currentButton).text("+"); } //console.log(jQuery(currentButton).text()); /* curMenuTop = currentMenu.offset().top; curMenuHeight = currentMenu.parent().height(); if (jQuery('body').height() == bodyHeight) { jQuery('body').height(jQuery('body').height() + curMenuHeight) } else { jQuery('body').height(jQuery('body').height() - curMenuHeight) } //console.log('column:'+ (columnTop +':'+ columnHeight) + '|curMenu:' + (curMenuTop +':'+ curMenuHeight)); columnBottom = columnTop + defaultColumnHeight; curMenuBottom = curMenuTop + curMenuHeight; if (columnBottom < curMenuBottom) { newHeight = (curMenuBottom - columnTop) + 3; $J('#searchResultsColumn').height(newHeight); } else if (((defaultColumnHeight + columnTop ) >= curMenuBottom) && $J('#searchResultsColumn').height() != defaultColumnHeight) { $J('#searchResultsColumn').height(defaultColumnHeight); } //else { // newHeight = (curMenuBottom - columnTop) + 3; // $J('#searchResultsColumn').height(newHeight); //} //console.log('columnBottom:'+ columnBottom + "|curMenuBottom:" + curMenuBottom +"|"); //newHeight:"+newHeight); */ }); }} // end function toggleFormat//*******************************************************************************************************************//function frbrGetSearchParam(name) { name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); var regexS = '[\\?&]' + name + '=([^]*)'; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) { return ''; } else { return results[1]; }}//*******************************************************************************************************************//function frbrRemoveParameter(sourceURL, key) { var rtn = sourceURL.split("?")[0], param, params_arr = [], queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : ""; if (queryString !== "") { params_arr = queryString.split("&"); for (var i = params_arr.length - 1; i >= 0; i -= 1) { param = params_arr[i].split("=")[0]; if (param === key) { params_arr.splice(i, 1); } } rtn = rtn + "?" + params_arr.join("&"); } return rtn;}//*******************************************************************************************************************//function prepshowAllItemCat1(junk) { setTimeout(function(){showAllItemCat1()},220);}function showAllItemCat1(junk){ if ($('moreLinkITEMCAT1')!=null) { $('moreLinkITEMCAT1').click('moreNagivators'); } if ($('fewerITEMCAT1')!=null) { //$('fewerLinkITEMCAT1').hide(); $('fewerITEMCAT1').hide(); }}function getBib(rId){/*Fill in the wsBaseUrl variable with your own Web Services URL (which you can copy from the Enterprise Admin console at Manage General Configuration -> Manage Web Services. It should end with a slash (for example: "http://blah.sirsi.net/blah_ilsws/"); you must be using the ROA Web Services, version 2015.08 or higher*/var wsBaseUrl='https://sdws04.sirsidynix.net/stlu_ilsws/';/*Fill in a valid clientId, which can be found in your Web Services admin tool. DS_CLIENT is a default that works on most systems. I*/var clientId="DS_CLIENT";/***the origApp can be any single word you want. It's just used as another ROA Web Services logging marker***/var origApp='showmarc';/***defining a subfield delimiter character (using a decimal ascii value)***/var subfieldDelimiter= '‡';/***defining fixed field tags (to determine when to not use subfield delimiter)***/var fixedFieldTags=['000','001','003','005','006','007','008'];/***In the tagExclusions array, comma separate any tags you don't want to display***/var tagExclusions=['991','999']; if (typeof jQuery.ui == 'undefined') { reload_jqueryui(rId); return false; }var htmlOutput='

';var catKey=jQuery('#'+rId+'_DOC_ID').text().split(':')[1];var marcUrl=wsBaseUrl+'catalog/bib/key/'+catKey+'?includeFields=*';jQuery.ajax({ type: 'GET', url: marcUrl, dataType: 'json', headers: { "Accept": "application/json","Content-Type":"application/json","SD-Preferred-Role":"GUEST", "x-sirs-clientID":clientId,"sd-originating-app-id":origApp},success: function(marcdata) { bibTag=marcdata.fields.bib.fields;var marcOutput='

';jQuery.each(bibTag,function(tagIndex){var curTag=this.tag;/***add tag exclusion stuff***/if(jQuery.inArray(curTag,tagExclusions)!==-1){ return; }var curInd=(this.inds!==undefined)?this.inds:'&nbsp';htmlOutput+='

';htmlOutput+='
TagInd.Subfields
'+curTag+''+curInd+'';jQuery.each(bibTag[tagIndex].subfields,function(subfieldIndex){ if(jQuery.inArray(curTag,fixedFieldTags)==-1){var subfieldCode=''+subfieldDelimiter+this.code;}else{var subfieldCode='';}var subfieldData=this.data;htmlOutput+=''+subfieldCode+''+subfieldData+'';});//end each subfield});//end each taghtmlOutput+='

';/***begin jqueryui dialog***/ $J(function() {$J(htmlOutput).dialog({width:500,maxHeight:700,hide: { effect: "scale", duration: 750 },title:'MARC for record # '+catKey,modal:true,buttons:{Ok: function(){$J(this).dialog("close");}}});});/***end jQueryUI dialog****/},error: function (xhr, ajaxOptions, thrownError) { console.log('Error occurred of status ' + xhr.status + ', message is ' + thrownError); }});//end ajax()}//end getbibfunction reload_jqueryui(rId){jQuery.getScript( "/client/js/ui/jquery.ui.core.js", function( data, textStatus, jqxhr ) { getBib(rId);});}function prepshowAllLibraries(junk) { setTimeout(function(){showAllLibraries()},220);}function showAllLibraries(junk){ if ($('moreLinkLIBRARY')!=null) { $('moreLinkLIBRARY').click('moreNagivators'); } if ($('fewerLIBRARY')!=null) { //$('fewerLinkLIBRARY').hide(); $('fewerLIBRARY').hide(); }}/*** FRBRISH_DETAIL v2022.06 ***/var ercTitleCode = "INITIAL_TITLE_SRCH";var ercAuthorCode = "INITIAL_AUTHOR_SRCH";var wsBaseUrl = "https://sdws04.sirsidynix.net/stlu_ilsws/";var clientId = "DS_CLIENT";var ILScode = "SD_ILS";var verboseModeDetail = true;var frbrishAnalysisDetail = {};var ilsType = "Symphony"; //"Horizon";var tabbed_display = true;if ($J('body').hasClass('mobile')) { tabbed_display = false;}var allowedLengthMismatchDetail = 6;var titleIncludesResponsibility = true;var ignoreAllSubtitlesDetail = true;var qualifiedErcUrlsDetail = false;var longErcUrlsDetail = true;var collapseFormatsDetail = false;var hideFacetsDetail = false;var displayAvailableDetail = true;var displayPlaceHoldDetail = false;var multiFormatRecordsDetail = false;var formatLinksDetail = false;var displayFormatIconsOnlyDetail = false;var facetFormatField = "FORMAT";var facetIsQualified = false;var frbrUseFieldsDetail = ['language', 'edition', 'pubdate', 'vendor']; //format is always presentvar customSortDetail = ""; //"pubdate";var customSortOrderDetail = "descending";var frbrExpressionFieldsDetail = { "format": { "label": "Format", "code": "FORMAT", "show": true, "ils": true, "erc": true }, "language": { "label": "Language", "code": "LANGUAGE", "show": false, "ils": true, "erc": true }, "edition": { "label": "Edition", "code": "EDITION", "show": true, "ils": true, "erc": true }, "pubdate": { "label": "Publication Date", "code": "PUBDATE_RANGE", "show": true, "ils": true, "erc": true }, "vendor": { "label": "Vendor", "code": "ERC_VENDOR", "show": false, "ils": false, "erc": true }, "isbn": { "label": "${ISBN}", "code": "ISBN", "show": false, "ils": true, "erc": false }};var frbrFormatsDetail = { "Books": { "id": "frbr-book", "title": "Book", "code": "BOOK", "facetCode": " ", "ils": true, "erc": true }, "Audio disc": { "id": "frbr-audio-disc", "title": "Audio disc", "code": "SOUNDDISC", "facetCode": " ", "ils": true, "erc": true }, "Continuing Resources": { "id": "frbr-continuing-resources", "title": "Continuing Resources", "code": "CR", "facetCode": " ", "ils": true, "erc": true }, "Video cassette": { "id": "frbr-video-cassette", "title": "Video cassette", "code": "VIDEOCASS", "facetCode": " ", "ils": true, "erc": true }, "Microform": { "id": "frbr-microform", "title": "Microform", "code": "MICROFORM", "facetCode": " ", "ils": true, "erc": true }, "Audio cassette": { "id": "frbr-audio-cassette", "title": "Audio cassette", "code": "SOUNDCASS", "facetCode": " ", "ils": true, "erc": true }, "Video disc": { "id": "frbr-video-disc", "title": "Video disc", "code": "VIDEODISC", "facetCode": " ", "ils": true, "erc": true }, "Maps": { "id": "frbr-maps", "title": "Maps", "code": "MAP", "facetCode": " ", "ils": true, "erc": true }, "Visual Materials": { "id": "frbr-visual-materials", "title": "Visual Materials", "code": "VISUAL", "facetCode": " ", "ils": true, "erc": true }, "Computer file": { "id": "frbr-computer-file", "title": "Computer file", "code": "COMPFILE", "facetCode": " ", "ils": true, "erc": true }, "Sound recording": { "id": "frbr-sound-recording", "title": "Sound recording", "code": "SOUNDREC", "facetCode": " ", "ils": true, "erc": true }, "Music Sound Recording": { "id": "frbr-music-sound-recording", "title": "Music Sound Recording", "code": "MUSICSNDREC", "facetCode": " ", "ils": true, "erc": true }, "Music": { "id": "frbr-music", "title": "Music", "code": "NOTATEDMUSIC", "facetCode": " ", "ils": true, "erc": true }, "Manuscript": { "id": "frbr-manuscript", "title": "Manuscript", "code": "MS", "facetCode": " ", "ils": true, "erc": true }, "Regular print": { "id": "frbr-regular-print", "title": "Regular Print", "code": "REGPRINT", "facetCode": " ", "ils": true, "erc": true }, "Atlas": { "id": "frbr-atlas", "title": "Atlas", "code": "ATLAS", "facetCode": " ", "ils": true, "erc": true }, "Filmstrip": { "id": "frbr-filmstrip", "title": "Filmstrip", "code": "FILMSTRIP", "facetCode": " ", "ils": true, "erc": true }, "Section": { "id": "frbr-section", "title": "Section", "code": "SECTION", "facetCode": " ", "ils": true, "erc": true }, "Motion picture": { "id": "frbr-motion-picture", "title": "Motion picture", "code": "MOTIONPICT", "facetCode": " ", "ils": true, "erc": true }, "Kit": { "id": "frbr-kit", "title": "Kit", "code": "KIT", "facetCode": " ", "ils": true, "erc": true }, "Mixed materials": { "id": "frbr-mixed-materials", "title": "Mixed materials", "code": "MIXED", "facetCode": " ", "ils": true, "erc": true }, "Remote sensing image": { "id": "frbr-remote-sensing-image", "title": "Remote sensing image", "code": "REMOTESEN", "facetCode": " ", "ils": true, "erc": true }, "Picture": { "id": "frbr-picture", "title": "Picture", "code": "PICTURE", "facetCode": " ", "ils": true, "erc": true }, "3-D Object": { "id": "frbr-3d-object", "title": "3-D Object", "code": "OBJECT", "facetCode": " ", "ils": true, "erc": true }, "Video Cartridge": { "id": "frbr-video-cartridge", "title": "Video cartridge", "code": "VIDEOCART", "facetCode": " ", "ils": true, "erc": true }, "Large Print": { "id": "frbr-large-print", "title": "Large print", "code": "LARGEPRINT", "facetCode": " ", "ils": true, "erc": true }, "Non projected graphic": { "id": "frbr-non-projected-graphic", "title": "Non projected graphic", "code": "NONPROJGRAPH", "facetCode": " ", "ils": true, "erc": true }, "Video recording": { "id": "frbr-video-recording", "title": "Video recording", "code": "VIDEOREC", "facetCode": " ", "ils": true, "erc": true }, "Chart": { "id": "frbr-chart", "title": "Chart", "code": "CHART", "facetCode": " ", "ils": true, "erc": true }, "Diagram": { "id": "frbr-diagram", "title": "Diagram", "code": "DIAGRAM", "facetCode": " ", "ils": true, "erc": true }, "Slide": { "id": "frbr-slide", "title": "Slide", "code": "SLIDE", "facetCode": " ", "ils": true, "erc": true }, "Print": { "id": "frbr-print", "title": "Print", "code": "PRINT", "facetCode": " ", "ils": true, "erc": true }, "Tactile": { "id": "frbr-tactile", "title": "Tactile", "code": "TACTILE", "facetCode": " ", "ils": true, "erc": true }, "Drawing": { "id": "frbr-drawing", "title": "Drawing", "code": "DRAWING", "facetCode": " ", "ils": true, "erc": true }, "Flashcard": { "id": "frbr-flash-card", "title": "Flashcard", "code": "FLASHCARD", "facetCode": " ", "ils": true, "erc": true }, "Globe": { "id": "frbr-globe", "title": "Globe", "code": "GLOBE", "facetCode": " ", "ils": true, "erc": true }, "View": { "id": "frbr-view", "title": "View", "code": "VIEW", "facetCode": " ", "ils": true, "erc": true }, "Photo": { "id": "frbr-photo", "title": "Photo", "code": "PHOTO", "facetCode": " ", "ils": true, "erc": true }, "Projected graphic": { "id": "frbr-projected-graphic", "title": "Projected graphic", "code": "UNKNOWN", "facetCode": " ", "ils": true, "erc": true }, "Technical drawing": { "id": "frbr-technical-drawing", "title": "Technical drawing", "code": "TECHDRAWING", "facetCode": " ", "ils": true, "erc": true }, "eBook": { "id": "frbr-ebook", "title": "eBook", "code": "E_BOOK", "facetCode": " ", "ils": false, "erc": true }, "Online Resource": { "id": "frbr-online-resource", "title": "Online Resource", "code": "ER", "facetCode": " ", "ils": true, "erc": true }, "eAudiobook": { "id": "frbr-eaudiobook", "title": "eAudiobook", "code": "E_SOUNDREC", "facetCode": " ", "ils": false, "erc": true }, "eVideo": { "id": "frbr-evideo", "title": "eVideo", "code": "E_VIDEO", "facetCode": " ", "ils": false, "erc": true }, "Cassette": { "id": "frbr-cassette", "title": "Audio cassette", "code": "SOUNDCASS", "facetCode": " ", "ils": true, "erc": true }, "Other": { "id": "frbr-other", "title": "Other", "code": "UNKNOWN", "facetCode": " ", "ils": true, "erc": true },/*** BEGIN CUSTOM ***/ "Book": { "id": "frbr-book", "title": "Book", "code": "BOOK", "facetCode": " ", "ils": true, "erc": true }, "Large print": { "id": "frbr-large-print", "title": "Large print", "code": "LARGEPRINT", "facetCode": " ", "ils": true, "erc": true },/*** END CUSTOM ***/ "Libros": { "id": "frbr-book", "title": "Libros", "code": "BOOK", "facetCode": " ", "ils": true, "erc": true }, "Disco de audio": { "id": "frbr-audio-disc", "title": "Disco de audio", "code": "SOUNDDISC", "facetCode": " ", "ils": true, "erc": true }, "Recursos permanentes": { "id": "frbr-continuing-resources", "title": "Recursos permanentes", "code": "CR", "facetCode": " ", "ils": true, "erc": true }, "Videocasete": { "id": "frbr-video-cassette", "title": "Videocasete", "code": "VIDEOCASS", "facetCode": " ", "ils": true, "erc": true }, "Microforma": { "id": "frbr-microform", "title": "Microforma", "code": "MICROFORM", "facetCode": " ", "ils": true, "erc": true }, "Casete de audio": { "id": "frbr-audio-cassette", "title": "Casete de audio", "code": "SOUNDCASS", "facetCode": " ", "ils": true, "erc": true }, "Disco de video": { "id": "frbr-video-disc", "title": "Disco de video", "code": "VIDEODISC", "facetCode": " ", "ils": true, "erc": true }, "Mapas": { "id": "frbr-maps", "title": "Mapas", "code": "MAP", "facetCode": " ", "ils": true, "erc": true }, "Material visual": { "id": "frbr-visual-materials", "title": "Material visual", "code": "VISUAL", "facetCode": " ", "ils": true, "erc": true }, "Fichero informático": { "id": "frbr-computer-file", "title": "Archivo informático", "code": "COMPFILE", "facetCode": " ", "ils": true, "erc": true }, "Grabación sonora": { "id": "frbr-sound-recording", "title": "Grabación sonora", "code": "SOUNDREC", "facetCode": " ", "ils": true, "erc": true }, "Grabación sonora musical": { "id": "frbr-music-sound-recording", "title": "Grabación sonora musical", "code": "MUSICSNDREC", "facetCode": " ", "ils": true, "erc": true }, "Música": { "id": "frbr-music", "title": "Música", "code": "NOTATEDMUSIC", "facetCode": " ", "ils": true, "erc": true }, "Manuscrito": { "id": "frbr-manuscript", "title": "Manuscrito", "code": "MS", "facetCode": " ", "ils": true, "erc": true }, "Letra normal": { "id": "frbr-regular-print", "title": "Letra normal", "code": "UNKNOWN", "facetCode": " ", "ils": true, "erc": true }, "Atlas": { "id": "frbr-atlas", "title": "Atlas", "code": "ATLAS", "facetCode": " ", "ils": true, "erc": true }, "Tira de película": { "id": "frbr-filmstrip", "title": "Tira de película", "code": "FILMSTRIP", "facetCode": " ", "ils": true, "erc": true }, "Sección": { "id": "frbr-section", "title": "Sección", "code": "SECTION", "facetCode": " ", "ils": true, "erc": true }, "Película": { "id": "frbr-motion-picture", "title": "Película", "code": "MOTIONPICT", "facetCode": " ", "ils": true, "erc": true }, "Equipo": { "id": "frbr-kit", "title": "Equipo", "code": "KIT", "facetCode": " ", "ils": true, "erc": true }, "Materiales mixtos": { "id": "frbr-mixed-materials", "title": "Materiales mixtos", "code": "MIXED", "facetCode": " ", "ils": true, "erc": true }, "Imagen obtenida por teledetección": { "id": "frbr-remote-sensing-image", "title": "Imagen de teledetección", "code": "REMOTESEN", "facetCode": " ", "ils": true, "erc": true }, "Dibujo": { "id": "frbr-picture", "title": "Dibujo", "code": "PICTURE", "facetCode": " ", "ils": true, "erc": true }, "Objecto 3-D": { "id": "frbr-3d-object", "title": "Objecto 3-D", "code": "OBJECT", "facetCode": " ", "ils": true, "erc": true }, "Cartridge de video": { "id": "frbr-video-cartridge", "title": "Cartridge de video", "code": "VIDEOCART", "facetCode": " ", "ils": true, "erc": true }, "Letra grande": { "id": "frbr-large-print", "title": "Letra grande", "code": "LARGEPRINT", "facetCode": " ", "ils": true, "erc": true }, "Gráfico no proyectado": { "id": "frbr-non-projected-graphic", "title": "Gráfico no proyectado", "code": "NONPROJGRAPH", "facetCode": " ", "ils": true, "erc": true }, "Grabación de vídeo ": { "id": "frbr-video-recording", "title": "Video recording", "code": "VIDEOREC", "facetCode": " ", "ils": true, "erc": true }, "Gráfico": { "id": "frbr-chart", "title": "Gráfico", "code": "CHART", "facetCode": " ", "ils": true, "erc": true }, "Diagrama": { "id": "frbr-diagram", "title": "Diagrama", "code": "DIAGRAM", "facetCode": " ", "ils": true, "erc": true }, "Diapositiva": { "id": "frbr-slide", "title": "Diapositiva", "code": "SLIDE", "facetCode": " ", "ils": true, "erc": true }, "Impreso": { "id": "frbr-print", "title": "Impreso", "code": "PRINT", "facetCode": " ", "ils": true, "erc": true }, "Táctil": { "id": "frbr-tactile", "title": "Táctil", "code": "TACTILE", "facetCode": " ", "ils": true, "erc": true }, "Dibujo": { "id": "frbr-drawing", "title": "Dibujo", "code": "DRAWING", "facetCode": " ", "ils": true, "erc": true }, "Tarjetas didácticas": { "id": "frbr-flash-card", "title": "Tarjeta de memoria flash", "code": "FLASHCARD", "facetCode": " ", "ils": true, "erc": true }, "Globo terráqueo": { "id": "frbr-globe", "title": "Globo terráqueo", "code": "GLOBE", "facetCode": " ", "ils": true, "erc": true }, "Ver": { "id": "frbr-view", "title": "Ver", "code": "VIEW", "facetCode": " ", "ils": true, "erc": true }, "Fotografía": { "id": "frbr-photo", "title": "Photo", "code": "PHOTO", "facetCode": " ", "ils": true, "erc": true }, "Gráfico proyectado": { "id": "frbr-projected-graphic", "title": "Projected graphic", "code": "UNKNOWN", "facetCode": " ", "ils": true, "erc": true }, "Dibujo técnico": { "id": "frbr-technical-drawing", "title": "Dibujo técnico", "code": "TECHDRAWING", "facetCode": " ", "ils": true, "erc": true }, "Libro electrónico": { "id": "frbr-ebook", "title": "Libro electrónico", "code": "E_BOOK", "facetCode": " ", "ils": false, "erc": true }, "Recurso en línea": { "id": "frbr-online-resource", "title": "Recurso en línea", "code": "ER", "facetCode": " ", "ils": true, "erc": true }, "eAudiolibro": { "id": "frbr-eaudiobook", "title": "eAudiolibro", "code": "E_SOUNDREC", "facetCode": " ", "ils": false, "erc": true }, "eVideo": { "id": "frbr-evideo", "title": "eVideo", "code": "E_VIDEO", "facetCode": " ", "ils": false, "erc": true }, "Casete": { "id": "frbr-cassette", "title": "Casete", "code": "SOUNDCASS", "facetCode": " ", "ils": true, "erc": true }, "Otro": { "id": "frbr-other", "title": "Otro", "code": "UNKNOWN", "facetCode": " ", "ils": true, "erc": true }}var searchTargetDetail = frbrGetSearchParamDisplay('te');var searchFacetsDetail = frbrGetSearchParamDisplay('qf');var searchLimitDetail = frbrGetSearchParamDisplay('lm');var numClustersDetail = 0;function removeDetailGmd(titleData) { titleData = titleData.replace(/ *\[sound recording *(\([A-Za-z0-9_-]*\))* *\]/i, ""); titleData = titleData.replace(/ *\[videorecording *(\([A-Za-z0-9_-]*\))* *\]/i, ""); titleData = titleData.replace(/ *\[text .large print.\]/i, ""); titleData = titleData.replace(/ *\[microform\]/i, ""); titleData = titleData.replace(/ *\[computer file\]/i, ""); titleData = titleData.replace(/ *\[electronic resource\]/i, ""); titleData = titleData.replace(/ *\[filmstrip\]/i, ""); titleData = titleData.replace(/ *\[braille\]/i, ""); titleData = titleData.replace(/ *\[kit\]/i, ""); titleData = titleData.replace(/ *\[motion picture\]/i, ""); titleData = titleData.replace(/ *\[slide\]/i, ""); titleData = titleData.replace(/ *\[transparency\]/i, ""); titleData = titleData.replace(/ *\[realia\]/i, ""); titleData = titleData.replace(/ *\[grabación sonora *(\([A-Za-z0-9_-]*\))* *\]/i, ""); titleData = titleData.replace(/ *\[grabación de video *(\([A-Za-z0-9_-]*\))* *\]/i, ""); titleData = titleData.replace(/ *\[texto .en tipografía mayor.\]/i, ""); titleData = titleData.replace(/ *\[microforma\]/i, ""); titleData = titleData.replace(/ *\[archivo computacional\]/i, ""); titleData = titleData.replace(/ *\[recurso electrónico\]/i, ""); titleData = titleData.replace(/ *\[tira de película\]/i, ""); //titleData = titleData.replace(/ *\[braille\]/i, ""); titleData = titleData.replace(/ *\[conjunto\]/i, ""); titleData = titleData.replace(/ *\[película\]/i, ""); titleData = titleData.replace(/ *\[diapositiva\]/i, ""); titleData = titleData.replace(/ *\[transparencia\]/i, ""); //titleData = titleData.replace(/ *\[realia\]/i, ""); return titleData;}//*******************************************************************************************************************//function removeDetailSubtitle(titleData) { if (ignoreAllSubtitlesDetail == true) { titleData = titleData.replace(/ [:=] .*$/, ""); } else { titleData = titleData.replace(/: a novel *.*/i,""); titleData = titleData.replace(/: a memoir *.*/i,""); } return titleData}//*******************************************************************************************************************//function frbrDetails(rId) { if (verboseModeDetail == true) { frbrishAnalysisDetail = {}; frbrishAnalysisDetail.resultId = rId;} var myProfile = com_sirsi_ent_page.friendlyUrl; var myLocale = com_sirsi_ent_page.localeCode; isErcHit = 0; var hitDocId = $J('#' + rId + '_DOC_ID').text(); if (hitDocId == "") { isErcHit = 1; hitDocId = $J('#' + rId + '_ERC_ID').text(); hitFullId = $J(hitSelector + ' .displayDetailLink > a').attr('onclick'); if (hitFullId == null) { hitFullId = $J(hitSelector + ' .displayDetailLink > a').attr('href'); hitFullId = hitFullId.replace(/^.*detailnonmodal./, ""); hitFullId = hitFullId.replace(/\/.*$/, ""); hitFullId = hitFullId.replace(/\$002f/g, "/"); } else { hitFullId = hitFullId.toString(); hitFullId = hitFullId.match(/ent:.*\?/); hitFullId = String(hitFullId); hitFullId = hitFullId.replace(/\/.*$/, ""); //hitFullId = hitFullId.replace("\/[0-9]+\/[0-9]+\/[0-9]+\\?", ""); hitFullId = hitFullId.replace(/\$002f/g, "/"); } hitDocId = hitFullId; } var isIlsh*t = 0; if (hitDocId.indexOf("SD_ILS") > -1) { isIlsh*t = 1; } var baseRssURL = "/client/rss/hitlist/" + myProfile + "/"; var baseSearchURL = "/client/" + myProfile + "/search/results?"; var curTitle = $J('.detail_wrapper #' + rId + '_FRBR_AUTHORIZED_TITLE').text(); var curMainTitle = $J('.detail_wrapper #' + rId + '_FRBR_TITLE').text(); var curClusterKey = $J('.detail_wrapper #' + rId + '_FRBR_CLUSTER_KEY').text();/**************************** BEGIN NEW ********************************/ var frbrClusterKeyEntries = []; if (curClusterKey != "") { var frbrClusterSearchString = 'qf=FRBR_CLUSTER_KEY%09Grouping+Key%09'+curClusterKey+'%09'+curClusterKey; var rssClusterSearchString = 'qf=FRBR_CLUSTER_KEY%09Grouping+Key%09'+curClusterKey+'%09'+curClusterKey; var frbrClusterRssSearchURL = baseRssURL + rssClusterSearchString; var frbrClusterHitSearchURL = baseSearchURL + frbrClusterSearchString + '&FRBR=1'; if (searchFacetsDetail !== '') { frbrClusterRssSearchURL += '&qf=' + searchFacetsDetail; frbrClusterHitSearchURL += '&qf=' + searchFacetsDetail; } if (searchLimitDetail !== '') { frbrClusterRssSearchURL += '&lm=' + searchLimitDetail; frbrClusterHitSearchURL += '&lm=' + searchLimitDetail; } if (searchTargetDetail !== '') { frbrClusterRssSearchURL += '&te=' + searchTargetDetail; frbrClusterHitSearchURL += '&te=' + searchTargetDetail; } frbrClusterRssSearchURL += '&ln=' + myLocale;if (verboseModeDetail == true) { frbrishAnalysisDetail.clusterKey = curClusterKey; frbrishAnalysisDetail.clusterKeyRss = window.location.origin + frbrClusterRssSearchURL; frbrishAnalysisDetail.clusterKeyUrl = window.location.origin + frbrClusterHitSearchURL; frbrishAnalysisDetail.clusterKeyHits = []; frbrClusterHit = {};} var numClusterKeyTitles = 0; $J.ajax({ type: 'GET', url: frbrClusterRssSearchURL, dataType: 'xml', async: false, success: function(data) { var entries = $J(data).find('entry'); numClusterKeyTitles = $J(entries).length; if (numClusterKeyTitles > 1) { frbrClusterKeyEntries = $J.map($J(entries), function(frbrEntry) { var frbrHitTitle = $J(frbrEntry).find('title').text().replace("Title ", ""); frbrHitTitle = jQuery('

').html(frbrHitTitle).text(); frbrHitTitle = removeDetailGmd(frbrHitTitle); frbrHitTitle = removeDetailSubtitle(frbrHitTitle); if (titleIncludesResponsibility) { frbrHitTitle = frbrHitTitle.replace(/ \/ .*$/, ''); } frbrHitTitle = frbrHitTitle.replace(/[.:;=\/]$/, "");if (verboseModeDetail == true) { frbrClusterHit.entry = {}; frbrClusterHit.entry.title = $J(frbrEntry).find('title').html(); frbrClusterHit.entry.link = $J(frbrEntry).find('link').attr('href'); frbrClusterHit.entry.id = $J(frbrEntry).find('id').html(); frbrClusterHit.entry.content = $J(frbrEntry).find('content').html(); frbrClusterHit.frbrHitTitle = frbrHitTitle; frbrClusterHit.id = $J(frbrEntry).find('id').text().replace(/ent:\/\/.*\//, "");}if (verboseModeDetail == true) { frbrClusterHit.result = "Cluster Key Hit: Retain for cluster"; frbrishAnalysisDetail.clusterKeyHits.push(JSON.parse(JSON.stringify(frbrClusterHit)));} //if (unclusterIdList[frbrClusterSearchString.toLowerCase()][$J(frbrEntry).find('id').text().replace(/ent:\/\/.*\//, "")]) { unclusterIdList[frbrClusterSearchString.toLowerCase()][$J(frbrEntry).find('id').text().replace(/ent:\/\/.*\//, "")] = false; } return frbrEntry; }); }if (verboseModeDetail == true) { frbrishAnalysisDetail.numClusterKeyHits = numClusterKeyTitles;} } }); }/**************************** END NEW **********************************/ // if the authorized title indicates it a collection of "Selections" of a larger work, do not start making a cluster; other records will include different selections if ((curTitle.match(/^Selections$/) != null) || (curTitle.match(/^Selections\./) != null) || (curTitle.indexOf(". Selections") > -1)) { curTitle = ""; } // if the authorized title does not contain Vol., Volume, or Part, but the main title does, then do not use the authorized title for searching else if ((curTitle.match(/\. Vol\. [0-9]/) == null) && (curTitle.match(/\. Volume [0-9]/) == null) && (curTitle.match(/\. Part [0-9]/) == null)) { if ((curMainTitle.match(/\. Vol\. [0-9]/) != null) || (curMainTitle.match(/\. Volume [0-9]/) != null) || (curMainTitle.match(/\. Part [0-9]/) != null)) { curTitle = ""; } } var curAuthor = $J('#' + rId + '_FRBR_AUTHOR').text(); var authorizedTitle = 1; if (curTitle == "") { // will have issues if no author & uniform title is made up of common words curTitle = $J('#' + rId + '_FRBR_TITLE').text(); if (curTitle == "") { // will have issues if no author & uniform title is made up of common words curTitle = $J('#' + rId + '_' + ercTitleCode).text(); curMainTitle = $J('#' + rId + '_' + ercTitleCode).text(); } authorizedTitle = 0; } if (curAuthor == "" && isIlsh*t == 0) { curAuthor = $J('#' + rId + '_' + ercAuthorCode).text(); } // require both Title and Author to attempt collapse; allow Title only if it is a Uniform Title curTitle = curTitle.replace(/ : *$/,''); if ( ((curTitle != "") && (curAuthor != "")) || ((authorizedTitle == 1) && (curTitle != "")) || curClusterKey != "") { curTitle = removeDetailGmd(curTitle); curTitle = curTitle.replace(/[.:;=\/]$/, ""); curMainTitle = curTitle.replace(/[.:;=\/]$/, "");if (verboseModeDetail == true) { if (curAuthor != "") { frbrishAnalysisDetail.curAuthor = curAuthor; } else { frbrishAnalysisDetail.curAuthor = ""; } frbrishAnalysisDetail.curTitle = curTitle; frbrishAnalysisDetail.curMainTitle = curMainTitle;} var frbrSearchString = 'qu=TITLE:\"' + curTitle.replace(/ /g, '+') + '\"'; var rssSearchString = 'qu=TITLE:\"' + curTitle.replace(/ /g, '+').replace(/[?&;¿¡]/g, '') + '\"'; if (curAuthor != "") { frbrSearchString += '&qu=AUTHOR:\"' + curAuthor.replace(/ /g, '+') + '\"'; rssSearchString += '&qu=AUTHOR:\"' + curAuthor.replace(/ /g, '+').replace(/[?&;¿¡]/g, '') + '\"'; } var frbrRssSearchURL = baseRssURL +rssSearchString; var frbrHitSearchURL = baseSearchURL + frbrSearchString + '&FRBR=1'; if (searchFacetsDetail !== '') { frbrRssSearchURL += '&qf=' + searchFacetsDetail; frbrHitSearchURL += '&qf=' + searchFacetsDetail; } if (searchLimitDetail !== '') { frbrRssSearchURL += '&lm=' + searchLimitDetail; frbrHitSearchURL += '&lm=' + searchLimitDetail; } if (searchTargetDetail !== '') { frbrRssSearchURL += '&te=' + searchTargetDetail; frbrHitSearchURL += '&te=' + searchTargetDetail; } frbrRssSearchURL += '&ln=' + myLocale; //console.log('rss search string ' + frbrRssSearchURL);if (verboseModeDetail == true) { frbrishAnalysisDetail.rss = window.location.origin + frbrRssSearchURL; frbrishAnalysisDetail.url = window.location.origin + frbrHitSearchURL; frbrishAnalysisDetail.hits = []; frbrishAnalysisDetail.frbrSearchString = frbrSearchString; frbrHit = {};} // Do an RSS search for the author + title, in order to discover other versions var numTitles = 0; $J.ajax({ type: 'GET', url: frbrRssSearchURL, dataType: 'xml', async: false, success: function(data) { var entries = $J(data).find('entry'); numTitles = $J(entries).length; if (numTitles > 1) { var expressions = []; var divSelector = '#' + rId.replace(/detail/,"detailActionsdetail"); if ( ((curTitle != "") && (curAuthor != "")) || ((authorizedTitle == 1) && (curTitle != "")) ) { if (authorizedTitle == 0) {if (verboseModeDetail == true) { frbrishAnalysisDetail.isAuthorizedTitle = false;} var seriesPattern = new RegExp("^" + curMainTitle.toUpperCase() + " AND |^" + curMainTitle.toUpperCase() + "\.{0,1} VOLUME |^" + curMainTitle.toUpperCase() + "\.{0,1} VOL\. |^" + curMainTitle.toUpperCase() + "\.{0,1} PART |^" + curMainTitle.toUpperCase() + "\.{0,1} [0-9]{1,} |^" + curMainTitle.toUpperCase() + " Y |" + curMainTitle.toUpperCase() + "\. [A-Z ]{3,} "); $J(entries).each(function () { var frbrHitTitle = $J(this).find('title').text().replace("Title ", ""); frbrHitTitle = jQuery('

').html(frbrHitTitle).text(); frbrHitTitle = removeDetailGmd(frbrHitTitle); frbrHitTitle = removeDetailSubtitle(frbrHitTitle); if (titleIncludesResponsibility) { frbrHitTitle = frbrHitTitle.replace(/ \/ .*$/, ''); } frbrHitTitle = frbrHitTitle.replace(/[.:;=\/]$/, "");if (verboseModeDetail == true) { frbrHit.entry = {}; frbrHit.entry.title = $J(this).find('title').html(); frbrHit.entry.link = $J(this).find('link').attr('href'); frbrHit.entry.id = $J(this).find('id').html(); frbrHit.entry.content = $J(this).find('content').html(); frbrHit.frbrHitTitle = frbrHitTitle; frbrHit.id = $J(this).find('id').text().replace(/ent:\/\/.*\//, "");}/**************************** BEGIN NEW ********************************/ if (frbrClusterKeyEntries.length > 0 && $J(this).find('id').text().indexOf(ILScode) > -1 ) {if (verboseModeDetail == true) { frbrHit.result = "Active FRBR Cluster Key: Don't include title/author ILS results in cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} numTitles--; return null;/**************************** END NEW **********************************/ } else if ($J(this).find('id').text().indexOf(hitDocId) !== -1) { //don't count the title we started from!if (verboseModeDetail == true) { frbrHit.result = "Starting record: Omit from detail cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} $J(this).remove(); numTitles--; } else if ((frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()) > 5 && (frbrHitTitle.toUpperCase().indexOf(" = " + curTitle.toUpperCase()) == -1)) || (authorizedTitle == 0 && frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()) < 0)) { //console.log("ctitle not found in ftitle or not found: "+frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()));if (verboseModeDetail == true) { frbrHit.result = "curTitle not found or found after first 5 characters of frbrHitTitle but not a parallel title: Don't include in cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} $J(this).remove(); numTitles--; } else if (seriesPattern.test(frbrHitTitle.toUpperCase())) { //console.log("volume pattern match:"+$J(this).find('id').text().replace(/ent:\/\/.*\//,"") );if (verboseModeDetail == true) { frbrHit.result = "Series/Volume pattern match: Don't include in cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} //unclusterIdList[$J(this).find('id').text().replace(/ent:\/\/.*\//, "")] = true; $J(this).remove(); numTitles--; } else if (frbrHitTitle.length > curTitle.length + allowedLengthMismatchDetail || curTitle.length > frbrHitTitle.length + allowedLengthMismatchDetail ) { //console.log("title length too different "+curTitle.length+"::"+frbrHitTitle.length);if (verboseModeDetail == true) { frbrHit.result = "frbrHitTitle is more than " + allowedLengthMismatchDetail + " characters longer than curTitle, or curTitle is more than " + allowedLengthMismatch + " characters longer than frbrHitTitle"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} $J(this).remove(); numTitles--; } else { //retain for clusterif (verboseModeDetail == true) { frbrHit.result = "Matching record: Retain for cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} } }); } // authorizedTitle = 0 else { //process hits from authorized title searchesif (verboseModeDetail == true) { frbrishAnalysisDetail.isAuthorizedTitle = true;} var seriesPattern = new RegExp("^" + curMainTitle.toUpperCase() + " AND |^" + curMainTitle.toUpperCase() + "\.{0,1} VOLUME |^" + curMainTitle.toUpperCase() + "\.{0,1} VOL\. |^" + curMainTitle.toUpperCase() + "\.{0,1} PART |^" + curMainTitle.toUpperCase() + "\.{0,1} [0-9]{1,} |^" + curMainTitle.toUpperCase() + "\.{0,1} I[IVX]{1,} |" + curMainTitle.toUpperCase() + " IN |" + curMainTitle.toUpperCase() + " Y |" + curMainTitle.toUpperCase() + "\. [A-Z ]{3,} "); $J(entries).each(function () { var frbrHitTitle = $J(this).find('title').text().replace("Title ",""); frbrHitTitle = removeDetailGmd(frbrHitTitle); frbrHitTitle = removeDetailSubtitle(frbrHitTitle); if (titleIncludesResponsibility) { frbrHitTitle = frbrHitTitle.replace(/ \/ .*$/, ''); }if (verboseModeDetail == true) { frbrHit.entry = {}; frbrHit.entry.title = $J(this).find('title').html(); frbrHit.entry.link = $J(this).find('link').attr('href'); frbrHit.entry.id = $J(this).find('id').html(); frbrHit.entry.content = $J(this).find('content').html(); frbrHit.frbrHitTitle = frbrHitTitle; frbrHit.id = $J(this).find('id').text().replace(/ent:\/\/.*\//, "");}/**************************** BEGIN NEW ********************************/ if (frbrClusterKeyEntries.length > 0 && $J(this).find('id').text().indexOf(ILScode) > -1 ) { if (verboseModeDetail == true) { frbrHit.result = "Active FRBR Cluster Key: Don't include title/author ILS results in cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} numTitles--; return null;/**************************** END NEW **********************************/ } else if ($J(this).find('id').text().indexOf(hitDocId) !== -1) { //don't include the title we started from!if (verboseModeDetail == true) { frbrHit.result = "Starting record: Omit from cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} $J(this).remove(); numTitles--; } else if (seriesPattern.test(frbrHitTitle.toUpperCase())) {if (verboseModeDetail == true) { frbrHit.result = "Series/Volume pattern match: Don't include in cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} $J(this).remove(); numTitles--; } else if ((frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()) < 5 && frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()) >= 0) && (frbrHitTitle.length > curTitle.length + 6 || curTitle.length > frbrHitTitle.length + 6 )) {if (verboseModeDetail == true) { frbrHit.result = "curTitle found in first 5 characters of frbrHitTitle, and title lengths differ by more than 6 characters: Don't include in cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} $J(this).remove(); numTitles--; } else { //retain for clusterif (verboseModeDetail == true) { frbrHit.result = "Matching record: Retain for cluster"; frbrishAnalysisDetail.hits.push(JSON.parse(JSON.stringify(frbrHit)));} } }); } // end processing for authorized title searchesif (verboseModeDetail == true) { frbrishAnalysisDetail.numHits = numTitles; //console.log(JSON.parse(JSON.stringify(frbrishAnalysisDetail)));}} else { numTitles = 0;} //console.log(' Final revised search total: '+ numTitles +' titles'); if (numTitles + frbrClusterKeyEntries.length < 2) { return; }/**************************** BEGIN NEW ********************************/ if (frbrClusterKeyEntries.length > 0) { entries = frbrClusterKeyEntries.concat(entries); }/**************************** END NEW **********************************/ var multipleTag = '

  • List all editions

';if (!tabbed_display){//console.log("td:"+tabbed_display); var accordion_selector = rId.replace("detail", "detail_accordion");if (jQuery('#'+accordion_selector)){ //console.log('FRBR found accordion');var availCount = "";if (displayAvailableDetail) { availCount = '(0 Available)';} addToAccordion('#'+accordion_selector, $J('

View other editions '+availCount+'

'), $J('

List all editions

'), true); //$J('#'+accordion_selector+" .list-items").show();//console.log("FRBR: " + $J('#'+accordion_selector).attr('class'));} else {//console.log("no accordion");}} else { var tab_selector = rId.replace("detail","detail_tabs"); if (jQuery('#'+tab_selector).length > 0) {//console.log("FRBR found tabs") detailNum = rId.replace("detail","");var availCount = "";if (displayAvailableDetail) { availCount = '(0 Available)';} jQuery('#'+tab_selector+ ' ul').append('

'); jQuery('#'+tab_selector).append('

List all editions

'); jQuery('#'+tab_selector).tabs("refresh"); }} $J(entries).each(function () { var frbrHitTitle = $J(this).find('title').text().replace("Title ",""); if (frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()) > 5 || (authorizedTitle == 0 && frbrHitTitle.toUpperCase().indexOf(curTitle.toUpperCase()) < 0)) { $J(this).remove(); return; } var el = $J(this); var frbrHitId = $J(el).find('id').text().replace(/ent:\/\/.*\//,""); var frbrFullId = ""; isErcFrbrHit = 0; if ($J(el).find('id').text().indexOf("ERC") > -1) { isErcFrbrHit = 1; frbrFullId = $J(el).find('id').text(); } if (frbrHitId != hitDocId && frbrFullId != hitDocId) { // skipIdList[frbrHitId]=true; // console.log(' Adding '+frbrHitId+' to list'); } else { return; } var docInfo = frbrHitId.split(':'); var numAvail = 0; if (displayAvailableDetail) { // Look up ILS availability var availableString = ""; if (docInfo[0] == ILScode) { var titleID = docInfo[1]; if (wsBaseUrl.substr(-1, 1) != "/") { wsBaseUrl += "/"; } if (ilsType == "Horizon") { ilsURL = wsBaseUrl + 'rest/standard/lookupTitleInfo?clientID=' + clientId + '&includeItemInfo=true&json=true&titleKey=' + titleID + '&callback=?'; } else { ilsURL = wsBaseUrl + 'rest/standard/lookupTitleInfo?clientID=' + clientId + '&includeAvailabilityInfo=true&json=true&titleID=' + titleID + '&callback=?'; } $J.getJSON(ilsURL, function(data) { if (ilsType == "Horizon") { if (data.titleInfo[0].available) { numAvail = data.titleInfo[0].available; } else { numAvail = 0; } } else { numAvail = data.TitleInfo[0].TitleAvailabilityInfo.totalCopiesAvailable; } availableString = '' + numAvail.toString() + ''; jQuery('.frbrAvail_' + titleID).text(availableString); jQuery('#frbrAvailLabel_' + titleID).show(); //add total to count on format line var formatLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID).closest('.frbr-expressions').find('.frbr-menu-labels'); if (formatLabel.find('.frbr-number-of-items').length > 0) { formatLabel.find('.frbr-number-of-items').text(parseInt(formatLabel.find('.frbr-number-of-items').text()) + numAvail) } else { if (displayAvailableDetail) { formatLabel.html(formatLabel.html() + ' (' + availableString + ' Available)'); } } if (displayAvailableDetail) { //if (collapseFormatsDetail) { //add total to count on collapsed summary line if (!tabbed_display) { var frbrSummaryLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID).closest('.ui-accordion').find('.frbr-sum-of-available'); } else { var frbrSummaryLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID).closest('.ui-tabs').find('.frbr-sum-of-available'); } if (frbrSummaryLabel.html() == "") { frbrSummaryLabel.html(' (0 Available)'); } frbrSummaryLabel.find('.frbr-number-of-items').text(parseInt(frbrSummaryLabel.find('.frbr-number-of-items').text()) + numAvail); } //else { jQuery('#'+rId+'_frbrDetailLinks .expressionSearchLink').first().addClass("frbr-first-format"); //} }); } else { /* Query eRC availability */ titleID = frbrHitId.replace(/^ent:\/\/[^\/]+\/[^\/]+\/[^\/:]+:/,""); var numAvail = ""; if (qualifiedErcUrlsDetail == true) { var titlesUrl = addPathParams(com_sirsi_ent_widgets.URLS.eRC.titleInfoUrl, encodeAsTapestry(frbrHitId)); titlesUrl = titlesUrl.replace("detailnonmodal","results"); //console.log(titlesUrl); jQuery.getJSON(titlesUrl, function(response) { var data = response.eResourceList[0]; if (data && data.status && 'OK' === data.status && data.formats && data.formats.length > 0) { if (data.availability && data.availability.available) { if (data.availability.availableCopies) { // show copies available numAvail = data.availability.availableCopies; } else { // unlimited duration numAvail = '${ERC_UNLIMITED_MESSAGE}'; } } else { // no copies available numAvail = 0; } } availableString = '' + numAvail + ''; //jQuery('.frbrAvail_'+frbrHitId).text(availableString); jQuery('.frbrAvail_' + titleID.replace(/:/g,"_")).text(availableString); jQuery('#frbrAvailLabel_' + titleID.replace(/:/g,"_")).show(); //add total to count on format line var formatLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID.replace(/:/g,"_")).closest('.frbr-expressions').find('.frbr-menu-labels'); if (formatLabel.find('.frbr-number-of-items').length > 0) { formatLabel.find('.frbr-number-of-items').text(parseInt(formatLabel.find('.frbr-number-of-items').text()) + numAvail) } else { if (displayAvailableDetail) { formatLabel.html(formatLabel.html() + ' (' + availableString + ' Available)'); } } if (displayAvailableDetail) { //(collapseFormatsDetail && displayAvailableDetail) //add total to count on collapsed summary line if (!tabbed_display) { var frbrSummaryLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID.replace(/:/g,"_")).closest('.ui-accordion').find('.frbr-sum-of-available'); } else { var frbrSummaryLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID.replace(/:/g,"_")).closest('.ui-tabs').find('.frbr-sum-of-available'); } if (frbrSummaryLabel.html() == "") { frbrSummaryLabel.html(' (0 Available)'); } if (numAvail == '${ERC_UNLIMITED_MESSAGE}') { frbrSummaryLabel.find('.frbr-number-of-items').text(parseInt(frbrSummaryLabel.find('.frbr-number-of-items').text()) + 1); } else { frbrSummaryLabel.find('.frbr-number-of-items').text(parseInt(frbrSummaryLabel.find('.frbr-number-of-items').text()) + numAvail); } } }); } else { if (!/^ent:.*:.*:/.test(frbrHitId)) { titleID = frbrHitId.replace(/^[^:]+:/, ""); } else { if (longErcUrlsDetail) { titleID = frbrHitId.replace(/^ent:\/\/[^\/]+\/[^\/]+\/[^\/:]+:/,""); } else { titleID = frbrHitId.replace(/^ent:\/\/[^\/]+\/[^\/]+\//,""); } } var titlesUrl = addPathParams(com_sirsi_ent_widgets.URLS.eRC.titleInfoUrl, encodeAsTapestry(titleID)); titlesUrl = titlesUrl.replace("detailnonmodal","results"); //console.log(titlesUrl); jQuery.getJSON(titlesUrl, function(response) { var data = response.eResourceList[0]; if (data && (data.status && 'OK' === data.status) && (data.formats && data.formats.length > 0)) { if (data.availability && data.availability.available) { if (data.availability.availableCopies) { // show copies available numAvail = data.availability.availableCopies; } else { // unlimited duration numAvail = '${ERC_UNLIMITED_MESSAGE}'; } } else { // no copies available numAvail = 0; } } availableString = '' + numAvail.toString() + ''; //jQuery('.frbrAvail_'+frbrHitId).text(availableString); jQuery('.frbrAvail_' + titleID.replace(/:/g,"_")).text(availableString); jQuery('#frbrAvailLabel_' + titleID.replace(/:/g,"_")).show(); //add total to count on format line var formatLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID.replace(/:/g,"_")).closest('.frbr-expressions').find('.frbr-menu-labels'); if (formatLabel.find('.frbr-number-of-items').length > 0) { if (numAvail == '${ERC_UNLIMITED_MESSAGE}') { formatLabel.find('.frbr-number-of-items').text(parseInt(formatLabel.find('.frbr-number-of-items').text()) + 1) } else { formatLabel.find('.frbr-number-of-items').text(parseInt(formatLabel.find('.frbr-number-of-items').text()) + numAvail) } } else { if (displayAvailableDetail) { formatLabel.html(formatLabel.html() + ' (' + availableString + ' Available)'); } } if (displayAvailableDetail) { //(collapseFormats && displayAvailableDetail) //add total to count on collapsed summary line if (!tabbed_display) { var frbrSummaryLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID.replace(/:/g,"_")).closest('.ui-accordion').find('.frbr-sum-of-available'); } else { var frbrSummaryLabel = jQuery('#'+rId+'_frbrDetailLinks .frbrAvail_' + titleID.replace(/:/g,"_")).closest('.ui-tabs').find('.frbr-sum-of-available'); } if (frbrSummaryLabel.html() == "") { frbrSummaryLabel.html(' (0 Available)'); } if (numAvail == '${ERC_UNLIMITED_MESSAGE}') { frbrSummaryLabel.find('.frbr-number-of-items').text(parseInt(frbrSummaryLabel.find('.frbr-number-of-items').text()) + 1); } else { frbrSummaryLabel.find('.frbr-number-of-items').text(parseInt(frbrSummaryLabel.find('.frbr-number-of-items').text()) + numAvail); } } }); } } } var frbrLinkURL= frbrHitSearchURL+'&DISP='+frbrHitId; var nonmodalLinkURL = $J(el).find('link').attr('href'); if (typeof nonmodalLinkURL !== "undefined") { nonmodalLinkURL = frbrRemoveParameterDisplay(nonmodalLinkURL, "ps"); } else { nonmodalLinkURL = " "; } // set up list of fields to display var content = $J(el).find('content').text(); var tags = content.split('
'); var hasTag = []; jQuery.each(frbrUseFieldsDetail, function(i, fld) { hasTag[fld] = -1; }); // analyze the visible fields of each record in the RSS search results var formatTag = -1; var expressionFormat; for (var term = 0; term < tags.length; term++) { var alltags = tags[term].split(''); tags[term] = tags[term].split(''); var termName = alltags.shift(); //translate HTML entities to proper characters var parser = new DOMParser; var dom = parser.parseFromString('' + termName, 'text/html'); termName = dom.body.textContent; tags[term][0] = termName; var termValue = alltags.join(' & '); if (!(termName == "" && termValue == "")) { // find the Format tag if ((tags[term][0] == "Format" || tags[term][0] == "Format:" || (isErcFrbrHit == 1 && (tags[term][0] == "${ERC_FORMAT}" || tags[term][0] == "${ERC_FORMAT}:"))) && formatTag == -1) { if (termValue.indexOf(" & ") == -1) { // single format term in each format tag //translate HTML entities to proper characters parser = new DOMParser; dom = parser.parseFromString('' + termValue, 'text/html'); termValue = dom.body.textContent; if (jQuery.isEmptyObject(frbrFormatsDetail[termValue])) { frbrFormatsDetail[termValue] = []; frbrFormatsDetail[termValue]['id'] = "frbr-other"; frbrFormatsDetail[termValue]['title'] = termValue; //"Other"; frbrFormatsDetail[termValue]['code'] = "UNKNOWN"; } formatTag = term; tags[term][1] = termValue; expressionFormat = frbrFormatsDetail[termValue]['code']; //termValue; if (typeof expressionFormat !== "undefined" && (typeof expressions[expressionFormat] == "undefined" || expressions[expressionFormat].length < 1)) { expressions[expressionFormat] = []; } } else { // multiple format terms in each format tag var allforms = termValue.split(' & '); allforms.sort(); var tmpexpression = []; for (var checktag = 0; checktag < allforms.length; checktag++) { //translate HTML entities to proper characters parser = new DOMParser; dom = parser.parseFromString('' + allforms[checktag], 'text/html'); allforms[checktag] = dom.body.textContent; if(tmpexpression.indexOf(frbrFormatsDetail[allforms[checktag]]['code']) == -1) { tmpexpression.push(frbrFormatsDetail[allforms[checktag]]['code']); } else { allforms.splice(checktag, 1); checktag--; } } if (frbrFormatsDetail[allforms[0]]['code'].length < 1) { frbrFormatsDetail[allforms[0]]['id'] = "frbr-other"; frbrFormatsDetail[allforms[0]]['title'] = "Other"; frbrFormatsDetail[allforms[0]]['code'] = "UNKNOWN"; } termValue = allforms.join(' & '); formatTag = term; tags[term][1] = termValue; expressionFormat = frbrFormatsDetail[allforms[0]]['code']; if (typeof expressionFormat != "undefined" && (typeof expressions[expressionFormat] == "undefined" || expressions[expressionFormat].length < 1)) { expressions[expressionFormat] = []; } } } // identify which entries in the analyzed record corresponds to used fields jQuery.each(frbrUseFieldsDetail, function(i, fld) { if (tags[term][0] == frbrExpressionFieldsDetail[fld]['label'] || tags[term][0] == frbrExpressionFieldsDetail[fld]['label'] + ":" || (hasTag[fld] == -1 && tags[term][0].indexOf(frbrExpressionFieldsDetail[fld]['label']) > -1)) { hasTag[fld] = term; tags[term][1] = termValue; } }); } //end if termname not null } //end for var consoleTmp = ""; if (formatTag > -1) { if (tags[formatTag][1].indexOf(" & ") > -1) { //multi-format record consoleTmp = 'Format ' + tags[formatTag][1] + '|' + frbrFormatsDetail[ tags[formatTag][1].split(' & ')[0]] ['code']; var expressionText = ''; //''; if ($J('body').hasClass('mobile')) { expressionText = '

'; } //console.log("made it 1a"); /* //### experimental for multi-format records, for treating subformats as subformats rather than additional formats if (tags[formatTag][1].indexOf("BOOK") > -1) { //console.log("made it 2"); if (tags[formatTag][1].indexOf("LARGEPRINT") > -1) { //console.log("made it 3a"); var tmptag = tags[formatTag][1]; tmptag = tmptag.replace("& LARGEPRINT",""); tmptag = tmptag.replace("BOOK", "BOOK (Large print)"); tags[formatTag][1] = tmptag; } else if (tags[formatTag][1].indexOf("COMICS") > -1) { //console.log("made it 3b"); tags[formatTag][1].replace("& COMICS",""); tags[formatTag][1].replace("BOOK", "Book (Comics/GN)"); } } */ var fmts = tags[formatTag][1].split(" & "); fmts.each(function(fmt) { if (expressionText.slice(-1) != ">") { expressionText += " & "; } expressionText += ' ' + frbrFormatsDetail[fmt]['title']; }); if (jQuery('body').hasClass('mobile')) { expressionText += "

"; } else { expressionText += ""; } } else { //single-format record consoleTmp = 'Format ' + tags[formatTag][1] + '|' + frbrFormatsDetail[tags[formatTag][1]]['code']; var expressionText; //expressionText = frbrFormatsDetail[tags[formatTag][1]]['title'] + ''; expressionText = tags[formatTag][1] + ''; if (jQuery('body').hasClass('mobile')) { expressionText += '

Resultados de búsqueda para Religious life -- Drama.   (2024)
Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 6001

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.