MEDIA INFORMATION
// ie6 default group menu issue function ie6CssHover(el) { var ie6CssEls = document.getElementById("DefaultGroupMenu").getElementsByTagName(el); for (var i=0; i<ie6CssEls.length; i++) { ie6CssEls[i].onmouseover = function() { this.className+=" hover"; } ie6CssEls[i].onmouseout = function() { this.className=this.className.replace(new RegExp(" hover\b"), ""); } } } function ie6CssStart() { ie6CssHover("ul"); ie6CssHover("li"); } if ( ( /msie|MSIE 6/.test(navigator.userAgent) ) && (window.attachEvent) ) window.attachEvent("onload", ie6CssStart); function openChildLink( e ) { if( e ) { var anchor = e.getElementsBySelector('a'); window.location.href = anchor[0].href; } } var sortOptionsOverlay = null; YAHOO.util.Event.onAvailable("ScriptsLoaded", initializeSortOptions); function initializeSortOptions() { var formContainer = document.getElementById( 'SortOptionsDialog' ); // only initialize once if( sortOptionsOverlay == null ) { // Define various event handlers for Dialog var handleCancel = function() { this.cancel(); }; var handleSubmit = function() { // the overlay sortOptionsOverlay.hide(); // build sort fields var form = jshGetFirstFormElement( formContainer ); if( form ) { var sortFields = ''; var selects = jshGetElementBy( form, 'select' ); if( selects ) { for( var i = 0; i 0 ) { // add seperator if( sortFields.length > 0 ) sortFields += ','; // append sort field id sortFields += selects[i].options[ selects[i].selectedIndex ].value; } } } if( sortFields =="" ) { sortFields = " "; } // add groupId to url if one exists var groupId = ( form.mgid ) ? "&mgid=" + form.mgid.value : ""; // redirect if we have sortFields if( jshIsNonEmpty( sortFields ) ) { document.location.href = jshAppendParameter( 'httpsx3Ax2Fx2Fwww.davidrumsey.comx2Flunax2Fservletx2Fdetailx2FRUMSEYx7E8x7E1x7E36319x7E1201476x3AWx2Dx2Dx26x2DBx2Dx2DDouglasx2D', "sort", sortFields + groupId ); } } }; // create the , if( $( 'SortOptionsDialog' ) ) { $( 'SortOptionsDialog' ).style.display = 'block'; sortOptionsOverlay = new YAHOO.widget.Dialog("SortOptionsDialog", { width : "320px", context:["SortOptions","tr","tr"], visible : false, draggable : false, constraintoviewport : true, zIndex: 1000001, fixedcenter: true, underlay: 'none', buttons : [ { text:"Sort", handler:handleSubmit, isDefault:true }, { text:"Cancel", handler:handleCancel } ] } ); // Render the Dialog sortOptionsOverlay.render(); } if( formContainer ) { // to avoid it showing up and/or taking up space initially it has not size. // need to restore it formContainer.style.height = ''; formContainer.style.overflow = ''; } if( $( 'SortOptionsDialog' ) && $('SortOptions') ) { // on click even on the sort options button YAHOO.util.Event.addListener( "SortOptions", "click", sortOptionsOverlay.show, sortOptionsOverlay, true ); } } } | YAHOO.util.Event.addListener( window, "load", createHelpfulTipControl ); YAHOO.util.Event.addListener( window, "load", createHelpControl ); YAHOO.util.Event.onAvailable( "ScriptsLoaded", initializeQuickSearch ); YAHOO.util.Event.onDOMReady( updateSearchOptionText ); YAHOO.util.Event.addListener( window, "resize", updateAdvancedSearchPosition ); function createHelpfulTipControl() { helpfulTipControl = new HelpControl(); helpfulTipControl.setShowTip('false'); helpfulTipControl.setAnimate( false ); helpfulTipControl.render('httpsx3Ax2Fx2Fwww.davidrumsey.comx2Flunax2Fservletx2Fdetailx2FRUMSEYx7E8x7E1x7E36319x7E1201476x3AWx2Dx2Dx26x2DBx2Dx2DDouglasx2D', 'https://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-BrowsingandViewingMedia', true); helpfulTipControl.setShowTipParameter('&showTip=false'); helpfulTipControl.setHelpPopObject(helpfulTipControl); } function createHelpControl() { helpControl = new HelpControl(); helpControl.setAnimate( false ); helpControl.render( null, 'https://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-BrowsingandViewingMedia', false ); helpControl.setHelpObject(helpControl); } var mediaSearchOperators = [ {displayName: 'Equals', value:'='}, {displayName: 'Starts With', value:'^'}, {displayName: 'Similar To', value:'|'} ]; var mediaSearchDateOperators = [ {displayName: 'Equals', value:'='}, {displayName: 'Between', value:'...'} ] var advanceSearchHideablePanel = null; var enhancedSearchHideablePanel = null; var advanceSearchContainer = null; var qsRenderReference = null; var allCollections = [{"virtualCollection":false,"serverAddress":"N/A","totalMediaCount":88803,"serverPort":3070,"type":0,"serverId":0,"collectionName":"David Rumsey Historical Map Collection","countryCode":"US","id":"RUMSEY~8~1","medeEnabled":false,"abbreviatedName":"RUMSEY~8~1","collectionId":"8","vcId":"NA","groupProfileId":1,"standardName":"object_type","groupKeyCode":"N/A","institutionId":"RUMSEY","userCollection":1,"languageCode":"en","userId":1,"collectionType":"lunaLibrary","groupName":"N/A","profileId":1,"sortOrder":0,"sessionCodeKey":"N/A","publicCollection":false,"uniqueCollectionId":1}]; var collectionsInContext = [{"virtualCollection":false,"serverAddress":"N/A","totalMediaCount":88803,"serverPort":3070,"type":0,"serverId":0,"collectionName":"David Rumsey Historical Map Collection","countryCode":"US","id":"RUMSEY~8~1","medeEnabled":false,"abbreviatedName":"RUMSEY~8~1","collectionId":"8","vcId":"NA","groupProfileId":1,"standardName":"object_type","groupKeyCode":"N/A","institutionId":"RUMSEY","userCollection":1,"languageCode":"en","userId":1,"collectionType":"lunaLibrary","groupName":"N/A","profileId":1,"sortOrder":0,"sessionCodeKey":"N/A","publicCollection":false,"uniqueCollectionId":1}]; var timeoutMilli = 47000; // 10 seconds //caches facet counts var relatedItemFacetCache = {}; function initializeQuickSearch() { var urlQueryStr = window.location.search.substring(1); if ( document.forms['quickSearchForm'] && document.forms['quickSearchForm'].q.value.length == 0) { var queryRe = /qvq=q:([^;&]+);/g; var queryArray = queryRe.exec(urlQueryStr); if (queryArray && queryArray.length > 1) { document.forms['quickSearchForm'].q.value = decodeURIComponent(queryArray[1]).replace(/+/g,' ').strip(); } } // continue if we have a container advanceSearchContainer = $( 'QuickSearch' ); qsRenderReference = $$('.settings')[0]; if( advanceSearchContainer && !$( 'QuickSearchA' ).checked && !$( 'fullTextSearch' ).checked && !$( 'DateSearchCb' ).checked) { $( 'QuickSearchA' ).checked = true; } if( ! enhancedSearchHideablePanel ) { if( advanceSearchContainer ) { // create a new panel and associate with the form rendered below in html enhancedSearchHideablePanel = new EnhancedAdvancedSearch(); if ("".length >0) { enhancedSearchHideablePanel.setSort( "" ); } else if ("pub_list_no_initialsort,pub_date,pub_list_no,series_no".length >0) { enhancedSearchHideablePanel.setSort( "pub_list_no_initialsort,pub_date,pub_list_no,series_no" ); } //helpfulTipControl.setAdvancedSearchObject( advanceSearchHideablePanel ); enhancedSearchHideablePanel.setSearchUrl( '/luna/servlet/view/search' ); enhancedSearchHideablePanel.setAnimate( false ); enhancedSearchHideablePanel.setRequestMediaFieldsFunction( requestMediaFields ); enhancedSearchHideablePanel.setRequestSuggestionFunction( requestSuggestions ); enhancedSearchHideablePanel.setAlternateSearchEnabledFunction( alternateSearchEnabled ); enhancedSearchHideablePanel.setToggleSearchFunction( toggleSearch ); enhancedSearchHideablePanel.setMediaCollections( allCollections ); enhancedSearchHideablePanel.setMediaSearchOperators( mediaSearchOperators ); enhancedSearchHideablePanel.setMediaSearchDateOperators( mediaSearchDateOperators ); enhancedSearchHideablePanel.render( advanceSearchContainer, qsRenderReference ); enhancedSearchHideablePanel.setSelectedCollections( collectionsInContext ); // helpTip functions enhancedSearchHideablePanel.setHelpObjects(helpfulTipControl, helpControl); enhancedSearchHideablePanel.setAdvancedSearchHelpUrl( 'https://doc.lunaimaging.com/display/V74D/Searching#Searching-Searching' ); enhancedSearchHideablePanel.setAdvancedSearchShowTip('false'); enhancedSearchHideablePanel.setHelpUrl('https://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-BrowsingandViewingMedia') enhancedSearchHideablePanel.setShowTip('false'); //helpfulTipControl.setAdvancedSearchObject( advanceSearchHideablePanel ); } } if((alternateSearchEnabled()) && ( ! advanceSearchHideablePanel )) { if( advanceSearchContainer ) { // create a new panel and associate with the form rendered below in html advanceSearchHideablePanel = new AdvanceMediaSearch(); if ("".length >0) { advanceSearchHideablePanel.setSort( "" ); } else if ("pub_list_no_initialsort,pub_date,pub_list_no,series_no".length >0) { advanceSearchHideablePanel.setSort( "pub_list_no_initialsort,pub_date,pub_list_no,series_no" ); } advanceSearchHideablePanel.setSearchUrl( '/luna/servlet/view/search' ); advanceSearchHideablePanel.setAnimate( false ); advanceSearchHideablePanel.setRequestMediaFieldsFunction( requestMediaFieldsForAlternateSearch ); advanceSearchHideablePanel.setRequestSuggestionFunction( requestSuggestionsForAlternateSearch ); advanceSearchHideablePanel.setToggleSearchFunction( toggleSearch ); advanceSearchHideablePanel.setMediaCollections( allCollections ); advanceSearchHideablePanel.setMediaSearchOperators( mediaSearchOperators ); advanceSearchHideablePanel.setMediaSearchDateOperators( mediaSearchDateOperators ); advanceSearchHideablePanel.render( advanceSearchContainer, qsRenderReference ); advanceSearchHideablePanel.setSelectedCollections( collectionsInContext ); // helpTip functions advanceSearchHideablePanel.setHelpObjects(helpfulTipControl, helpControl); advanceSearchHideablePanel.setAdvancedSearchHelpUrl( 'https://doc.lunaimaging.com/display/V74D/Searching#Searching-Searching' ); advanceSearchHideablePanel.setAdvancedSearchShowTip('false'); advanceSearchHideablePanel.setHelpUrl('https://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-BrowsingandViewingMedia') advanceSearchHideablePanel.setShowTip('false'); helpfulTipControl.setAdvancedSearchObject( advanceSearchHideablePanel ); } } } function updateAdvancedSearchPosition() { if( enhancedSearchHideablePanel && !enhancedSearchHideablePanel.mIsHidden ) { enhancedSearchHideablePanel.hide(); enhancedSearchHideablePanel.show(); } } function requestMediaFields( mediaCollections ) { var mediaCollectionIds = mediaCollections.join(','); // constrcut url var sUrl = '/luna/servlet/search/fields'; sUrl = jshAppendParameter( sUrl, 'collectionIds', mediaCollectionIds , true ); var callback = { success: setMediaFields, failure: setMediaFields, timeout: timeoutMilli } // make call var transaction = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, callback, null ); } function setMediaFields( o ) { if( o && o.responseText ) { var mediaFields = jshEvalJSON( o.responseText, 1 ); if( mediaFields && mediaFields.statusCode && ( mediaFields.statusCode != 1 ) ) { //messageToUser( mediaFields ); } else if( mediaFields ) { if( enhancedSearchHideablePanel ) { enhancedSearchHideablePanel.setMediaFields( mediaFields ); } } } } function requestMediaFieldsForAlternateSearch( mediaCollections ) { var mediaCollectionIds = mediaCollections.join(','); // constrcut url var sUrl = '/luna/servlet/search/fields'; sUrl = jshAppendParameter( sUrl, 'collectionIds', mediaCollectionIds , true ); var callback = { success: setMediaFieldsForAlternateSearch, failure: setMediaFieldsForAlternateSearch, timeout: timeoutMilli } // make call var transaction = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, callback, null ); } function setMediaFieldsForAlternateSearch( o ) { if( o && o.responseText ) { var mediaFields = jshEvalJSON( o.responseText, 1 ); if( mediaFields && mediaFields.statusCode && ( mediaFields.statusCode != 1 ) ) { //messageToUser( mediaFields ); } else if( mediaFields ) { if( advanceSearchHideablePanel ) { advanceSearchHideablePanel.setMediaFields( mediaFields ); } } } } function requestSuggestions( input, mediaFieldName, mediaCollections ) { if ((mediaFieldName || mediaFieldName == "") && input && mediaCollections) { var mediaCollectionIds = mediaCollections.join(','); // constrcut url var requestSuggestionsUrl = '/luna/servlet/search/suggestions'; var sUrl = requestSuggestionsUrl; sUrl = jshAppendParameter( sUrl, 'collectionIds', mediaCollectionIds , true ); sUrl = jshAppendParameter( sUrl, 'term', input , false ); sUrl = jshAppendParameter( sUrl, 'mediaFieldName', mediaFieldName, false ); //alert( sUrl ); var callback = { success: setSuggestions, failure: setSuggestions, argument: [input, mediaFieldName, mediaCollections], timeout: timeoutMilli } // make call var transaction = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, callback, null ); } } function setSuggestions( o ) { if( o && o.responseText ) { var suggestions = jshEvalJSON( o.responseText, -1 ); if( suggestions && suggestions.statusCode && ( suggestions.statusCode != 1 ) ) { //messageToUser( suggestions ); } else if( suggestions ) { if( enhancedSearchHideablePanel ) { enhancedSearchHideablePanel.setSuggestions( suggestions, o.argument[0], o.argument[1], o.argument[2] ); } } } } function requestSuggestionsForAlternateSearch( input, mediaFieldName, mediaCollections ) { if ((mediaFieldName || mediaFieldName == "") && input && mediaCollections) { var mediaCollectionIds = mediaCollections.join(','); // constrcut url var requestSuggestionsUrl = '/luna/servlet/search/suggestions'; var sUrl = requestSuggestionsUrl; sUrl = jshAppendParameter( sUrl, 'collectionIds', mediaCollectionIds , true ); sUrl = jshAppendParameter( sUrl, 'term', input , false ); sUrl = jshAppendParameter( sUrl, 'mediaFieldName', mediaFieldName, false ); //alert( sUrl ); var callback = { success: setSuggestionsForAlternateSearch, failure: setSuggestionsForAlternateSearch, argument: [input, mediaFieldName, mediaCollections], timeout: timeoutMilli } // make call var transaction = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, callback, null ); } } function setSuggestionsForAlternateSearch( o ) { if( o && o.responseText ) { var suggestions = jshEvalJSON( o.responseText, -1 ); if( suggestions && suggestions.statusCode && ( suggestions.statusCode != 1 ) ) { //messageToUser( suggestions ); } else if( suggestions ) { if( advanceSearchHideablePanel ) { advanceSearchHideablePanel.setSuggestions( suggestions, o.argument[0], o.argument[1], o.argument[2] ); } } } } function alternateSearchEnabled() { return false; } function toggleSearch() { advanceSearchHideablePanel.toggle(); enhancedSearchHideablePanel.toggle(); } function requestRelatedItemFacets( fieldname, prefix, mediaCollectionId ) { if( !(relatedItemFacetCache[fieldname] === undefined) && !(relatedItemFacetCache[fieldname][prefix] === undefined) ) { updateRelatedItemCounts( prefix, relatedItemFacetCache[fieldname][prefix] ); return; } // create place holder before the ajax so only 1 request would be sent for identical values if( relatedItemFacetCache[fieldname] === undefined ) relatedItemFacetCache[fieldname] = {}; if( relatedItemFacetCache[fieldname][prefix] === undefined ) relatedItemFacetCache[fieldname][prefix] = {}; var sUrl = '/luna/servlet/as/fetchRelatedItemFacets'; sUrl = jshAppendParameter( sUrl, 'mediaFieldName', fieldname , true ); sUrl = jshAppendParameter( sUrl, 'prefix', prefix , true ); var callback = { success: setRelatedItemFacets, failure: setRelatedItemFacets, timeout: timeoutMilli, argument: [fieldname] } // make call var transaction = YAHOO.util.Connect.asyncRequest( 'GET', sUrl, callback, null ); } function setRelatedItemFacets( o ) { if( o && o.responseText ) { var facets = jshEvalJSON( o.responseText, 1 ); if( facets ) { for( i = 0; i < facets.length; i++ ) { var fieldname = o.argument[0]; if( relatedItemFacetCache[ fieldname ] === undefined ) relatedItemFacetCache[ fieldname ] = {}; relatedItemFacetCache[ fieldname ][ facets[i].value ] = facets[i].count; updateRelatedItemCounts( facets[i].value, facets[i].count ); } } } } function fetchRelatedItemFacets() { var divs = document.getElementsByClassName("relatedItemMfv"); for( i = 0; i < divs.length; i++ ) { var fn = divs[i].getAttribute("data-fieldname"); var fv = divs[i].getAttribute("data-fieldvalue"); requestRelatedItemFacets( fn, fv ) } } function updateSearchOptionText() { if( $( 'QuickSearchA' ).checked ) { $$('.quickSearchCurrentOption')[0].innerHTML = 'Data'; hideDateRangeSearch(); showTextSearch(); } else if( $( 'fullTextSearch' ).checked ) { $$('.quickSearchCurrentOption')[0].innerHTML = 'All'; hideDateRangeSearch(); showTextSearch(); } else if( $( 'DateSearchCb' ).checked ) { $$('.quickSearchCurrentOption')[0].innerHTML = 'Date Range'; showDateRangeSearch(); hideTextSearch(); } } function showTextSearch() { $('q').show(); } function hideTextSearch() { $('q').hide(); } function showDateRangeSearch() { var dateRangeEls = $$('.dateRangeSearch'); for( var i = 0; i < dateRangeEls.length; i++ ) { $(dateRangeEls)[i].removeClassName('dateSearchHidden'); } var ic = $$('.quickSearchOptionIcon'); for( var i = 0; i < ic.length; i++ ) { $(ic)[i].addClassName('dateRangeOption'); } } function hideDateRangeSearch() { var dateRangeEls = $$('.dateRangeSearch'); for( var i = 0; i < dateRangeEls.length; i++ ) { $(dateRangeEls)[i].addClassName('dateSearchHidden'); } var ic = $$('.quickSearchOptionIcon'); for( var i = 0; i < ic.length; i++ ) { $(ic)[i].removeClassName('dateRangeOption'); } } YAHOO.util.Event.onAvailable( "ScriptsLoaded", fetchRelatedItemFacets ); -
|
YAHOO.util.Event.addListener( window, "load", createShareThis ); YAHOO.util.Event.addListener( window, "load", setHelpControlListner ); addthis_config = { ui_header_color:'#000000' }; function createHelpfulTipControl() { helpfulTipControl = new HelpControl(); helpfulTipControl.setShowTip('false'); helpfulTipControl.setAnimate( false ); helpfulTipControl.render('httpsx3Ax2Fx2Fwww.davidrumsey.comx2Flunax2Fservletx2Fdetailx2FRUMSEYx7E8x7E1x7E36319x7E1201476x3AWx2Dx2Dx26x2DBx2Dx2DDouglasx2D', 'https://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-BrowsingandViewingMedia', true); helpfulTipControl.setShowTipParameter('&showTip=false'); helpfulTipControl.setHelpPopObject(helpfulTipControl); } function createHelpControl() { helpControl = new HelpControl(); helpControl.setAnimate( false ); helpControl.render( null, 'https://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-BrowsingandViewingMedia', false ); helpControl.setHelpObject(helpControl); } function setHelpControlListner() { if (! helpControl) createHelpControl(); if (! helpfulTipControl) createHelpfulTipControl(); helpControl.setListnerSource($('HelpControl')) ; helpfulTipControl.setListnerSource($('HelpControl')) ; } var shareThis = null; function createShareThis() { shareThis = new ShareThis(); shareThis.enableIIIF(); shareThis.render( $('ShareThisMenuItem'), 'httpsx3Ax2Fx2Fwww.davidrumsey.comx2Flunax2Fservletx2Fdetailx2FRUMSEYx7E8x7E1x7E36319x7E1201476x3AWx2Dx2Dx26x2DBx2Dx2DDouglasx2D' ); shareThis.setBaseUrl( 'https://www.davidrumsey.com/luna/servlet' ); shareThis.setShareWidgetScriptUrl( '//s7.addthis.com/js/300/addthis_widget.js' ); //set current page url shareThis.setSourceUrl( 'httpsx3Ax2Fx2Fwww.davidrumsey.comx2Flunax2Fservletx2Fdetailx2FRUMSEYx7E8x7E1x7E36319x7E1201476x3AWx2Dx2Dx26x2DBx2Dx2DDouglasx2D' ); if( shareThis.mUrlContainer ) shareThis.setBaseIIIFUrl(shareThis.getBaseUrl() +'/iiif/'+ shareThis.mUrlContainer.value.substring(shareThis.getBaseUrl().length+1)); shareThis.setIIIFUrl(shareThis.getBaseUrl() +'/iiif/'+'m/RUMSEY~8~1~36319~1201476/manifest' ); shareThis.setAddThisItemsHTML( '' ); } dropDown = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("MainNavSubmenus"); for (i=0; i<navRoot.childNodes.length; i++) { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } } // make sure we're not calling this method twice var oldOnload = new String(window.onload); var newString = oldOnload.substring(oldOnload.indexOf('{') + 1, oldOnload.indexOf('}') - 1 ); if(newString == null || newString == "" || newString.substring(newString.indexOf('s'), newString.indexOf(';')) != "dropDown()") { window.onload = dropDown; } |
<!-- --> YAHOO.util.Event.addListener( window, "load", initializeDetailView ); YAHOO.util.Event.addListener( window, "resize", setWorkspaceSize ); YAHOO.util.Event.onAvailable( "ScriptsLoaded", initMediaPanel); // focus the search form YAHOO.util.Event.onAvailable( "ScriptsLoaded", function(){ setTimeout( function(){if( document['quickSearchForm'] ) document['quickSearchForm'].q.focus();}, 500 ) } ); // some variables used var setCollapseStateUrl = '/luna/servlet/view/collapseState'; var workspace = null; var templateContainer = null; var helpUrl = 'http://doc.lunaimaging.com/display/V74D/Browsing+and+Viewing+Media#BrowsingandViewingMedia-LUNAWorkspace'; var mediaFullViewUrl = '/luna/servlet/workspace/handleMediaPlayer?lunaMediaId=RUMSEY~8~1~36319~1201476'; var imageInfo = {"maxLevel":7,"displayName":"W. & B. Douglas.","book":false,"largestUrlAvailable":"https://media.davidrumsey.com/rumsey/Size4/D0120/5479035.jpg","sourceMediaGroupId":-1,"description":"","urlSource":"http://rumseysid.lunaimaging.com/mrsid/bin/image_jpeg.pl?client=Rumsey&image=SIDS/D0120/5479035.sid","fieldValues":"[{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":1,"value":"Colton, G.W."},{"metaData":false,"previewFieldSort":3,"summaryDescriptionFieldSort":0,"value":"1857"},{"metaData":false,"previewFieldSort":2,"summaryDescriptionFieldSort":0,"value":"W. & B. Douglas."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"J.H. Colton"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"New York"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Advertisement"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"42"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"34"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":2,"value":"W. & B. Douglas, Middletown, Conn. (pumps, curbs, rollers, chain wheels). Printed by Henry B. Ashmead, George Street above Eleventh, Philadelphia."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":3,"value":"5479.035"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"41"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Ashmead, Henry B."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Colton, G.W."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"1857"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Colton's Advertising Atlas Of America. Colton's Atlas Of America. Illustrating The Physical And Political Geography Of North And South America And The West India Islands, By George W. Colton. Accompanied By Descriptions Geographical, Statistical, And Historical, By Richard Swainson Fisher, M.D. New York: J.H. Colton And Company, No. 172 William, Corner Beekman Street. 1857. Entered ... One Thousand Eight Hundred and Fifty-five, by J.H. Colton And Company ... New York."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Full page advertisements interspersed throughout the atlas with an Index to Advertisements bound in the front."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"5479.000"},{"metaData":false,"previewFieldSort":4,"summaryDescriptionFieldSort":0,"value":"National Atlas"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"63"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"48"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"42"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"5479035"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Full Image Download in MrSID Format"},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"GeoViewer for JP2 and SID files"},{"metaData":false,"previewFieldSort":1,"summaryDescriptionFieldSort":0,"value":"Colton, G.W."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"Rumsey Collection"}]","video":false,"mediaId":1201476,"type":"{}","displayTitle":"W. & B. Douglas.","previewFieldValues":"","indexInitiated":false,"maxHeight":7191,"identity":"RUMSEY~8~1~36319~1201476","summaryFieldValues":"[{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":1,"value":"Colton, G.W."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":2,"value":"W. & B. Douglas, Middletown, Conn. (pumps, curbs, rollers, chain wheels). Printed by Henry B. Ashmead, George Street above Eleventh, Philadelphia."},{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":3,"value":"5479.035"}]","urlSize4":"https://media.davidrumsey.com/rumsey/Size4/D0120/5479035.jpg","audio":false,"id":"RUMSEY~8~1~36319~1201476","urlSize2":"https://www.davidrumsey.com/rumsey/Size2/D0120/5479035.jpg","urlSize3":"https://www.davidrumsey.com/rumsey/Size3/D0120/5479035.jpg","objectId":36319,"urlSize0":"https://www.davidrumsey.com/rumsey/Size0/D0120/5479035.jpg","maxWidth":6529,"mediaCollectionId":"RUMSEY~8~1","misc":false,"urlSize1":"https://www.davidrumsey.com/rumsey/Size1/D0120/5479035.jpg","image":true,"institutionId":"RUMSEY","relatedItemFieldValues":"[{"metaData":false,"previewFieldSort":0,"summaryDescriptionFieldSort":0,"value":"5479.000"}]","fullImageUrls":"["https://www.davidrumsey.com/rumsey/Size0/D0120/5479035.jpg","https://www.davidrumsey.com/rumsey/Size1/D0120/5479035.jpg","https://www.davidrumsey.com/rumsey/Size2/D0120/5479035.jpg","https://www.davidrumsey.com/rumsey/Size3/D0120/5479035.jpg","https://media.davidrumsey.com/rumsey/Size4/D0120/5479035.jpg"]","mediaType":"IMAGE","collection":"{"virtualCollection":false,"serverAddress":"N/A","totalMediaCount":88803,"serverPort":3070,"type":0,"serverId":0,"collectionName":"David Rumsey Historical Map Collection","countryCode":"US","id":"RUMSEY~8~1","medeEnabled":false,"abbreviatedName":"RUMSEY~8~1","collectionId":"8","vcId":"NA","groupProfileId":1,"standardName":"object_type","groupKeyCode":"N/A","institutionId":"RUMSEY","userCollection":1,"languageCode":"en","userId":1,"collectionType":"lunaLibrary","groupName":"N/A","profileId":1,"sortOrder":0,"sessionCodeKey":"N/A","publicCollection":false,"uniqueCollectionId":1}","recache":0,"pdf":false,"uniqueCollectionId":"1","status":1}; var animate = false; var quickView; var quickViewQuery; var quickVIewDelay = 1000; var params = window.document.location.href.toQueryParams(); var linkSearchShowDelayMilliSec = '50'; var linkSearchHideDelayMilliSec = '1000'; var linkSearchShowTimerId = null; var linkSearchHideTimerId = null; var mediaGroupPrefixUrl = '/luna/servlet/view/group'; var viewAllPrefixUrl = '/luna/servlet/view/all'; var searchPrefixUrl = '/luna/servlet/view/search'; var myMediaPrefixUrl = '/luna/servlet/view/myMedia'; var mapMediaTypeToOnErrorImage = $({}); mapMediaTypeToOnErrorImage['IMAGE'] = 'https://www.davidrumsey.com/luna/images/luna-media-icons/default-thumbnail.gif'; mapMediaTypeToOnErrorImage['AUDIO'] = 'https://www.davidrumsey.com/luna/images/luna-media-icons/audio-thumbnail.gif'; mapMediaTypeToOnErrorImage['VIDEO'] = 'https://www.davidrumsey.com/luna/images/luna-media-icons/video-thumbnail.gif'; mapMediaTypeToOnErrorImage['MISC'] = 'https://www.davidrumsey.com/luna/images/luna-media-icons/misc-thumbnail.gif'; var os = params['mi']; var pgs = 50; var emb = ''; var defaultGroupId = '-1'; YAHOO.util.Event.addListener( window, "load", initialCollapseState ); if (!checkIphone() && !checkIpad()) { YAHOO.util.Event.addListener( window, "load", initializeQuickView_ ); } function initializeDetailView() { workspace = $( 'Workspace' ); templateContainer = workspace.select('iframe')[0]; var mgid = getQuickViewMediaGroupId( window.document.location.href ); if( !mgid || mgid==undefined || mgid==null ) mgid = 0; templateContainer.src = 'https://www.davidrumsey.com/luna/servlet/template/mediaTemplate?mediaTemplate=1&tpath=/themes/default/mediaTemplates/&view=detailView&ext=jpg&mgid='+mgid+''; } function initializeQuickView_() { // only craete this if we have enough info to render quickViewQuery = constructQuickViewQuery( window.document.location.href ); if( quickViewQuery && ( quickViewQuery.length > 0 ) && $('QuickViewContainer') != null ) { quickView = new QuickView(); quickView.setTotalNumberOfImages( params['trs'] ); quickView.setCurrentImageOffset( params['mi'] ); quickView.setFunctionCreateImageLinkUrl( createDetailViewLink ); quickView.setPlacholderImageUrl( 'https://www.davidrumsey.com/luna/images/default/quickview-loading.gif' ); quickView.setErrorImageUrls( mapMediaTypeToOnErrorImage ); quickView.setFunctionFetchImages( requestQuickViewImages ); quickView.setAnimate( true ); quickView.setShowMagnification( true ); quickView.render( $('QuickViewContainer') ); setTimeout( function(){ quickView.updateImages(); }, quickVIewDelay ); } constructLinkSearch(); } function createDetailViewLink( imageInfo, offset ) { var prefix = 'https://www.davidrumsey.com/luna/servlet/detail/'; if( prefix.charAt( prefix.length - 1) == ':' ) { prefix = prefix.substring( 0, prefix.length - 1 ); } var url = prefix + (jshIsValidObjectId(imageInfo.objectId)? imageInfo.objectId : imageInfo.id); url = jshAppendParameter( url, 'qvq', encodeURIComponent( params['qvq'] ), false ); url = jshAppendParameter( url, 'mi', offset, false ); url = jshAppendParameter( url, 'trs', params['trs'], false ); if (emb) { url = jshAppendParameter( url, 'embedded', true, false ); url = jshAppendParameter( url, 'widgetFormat', 'javascript', false ); url = jshAppendParameter( url, 'widgetType', 'detail', false ); url = jshAppendParameter( url, 'controls', 1, false ); url = jshAppendParameter( url, 'nsip', 1, false ); } return url; } function notifyTemplate() { if( workspace && templateContainer ) { setWorkspaceSize(); var tcw = templateContainer.contentWindow; var detailViewUrl = 'https://www.davidrumsey.com/luna/servlet/detail/RUMSEY~8~1~36319~1201476:W--&-B--Douglas-'; var urls = {}; urls['helpUrl'] = helpUrl; urls['mediaFullViewUrl'] = mediaFullViewUrl; urls['addImageToWorkspaceUrl'] = addImageToWorkspaceUrl; urls['addImageToDefaultGroupUrl'] = addImageToDefaultGroupUrl; urls['workspaceUrl'] = workspaceUrl; urls['defaultGroupId'] = defaultGroupId; urls['detailViewUrl'] = detailViewUrl; if ($( 'fullTextSearch' ) && $( 'fullTextSearch' ).checked) { tcw.initalizeTemplate( workspace, imageInfo, urls, animate, document.forms[0].q.value ); } else { tcw.initalizeTemplate( workspace, imageInfo, urls, animate); } } } function setWorkspaceSize() { if( workspace ) { // lets resize the container; var offset = workspace.viewportOffset(); var windowSize = jshGetWindowSize(); workspace.style.width = ( 100 ) + '%'; workspace.style.height = ( windowSize[1] - offset[1] ) + 'px'; } } function initialCollapseState() { if (!checkIphone() && !checkIpad()) { //TOUCHCHANGE collapsibleContainer = new CollapsibleContainer( '', {'className' : 'collapsibleContainer', 'collapseVertically' : true, 'noAnimateCollapse' : true, 'initialState' : '1', 'noInfo' : '', 'maxStates' : '3' } ); collapsibleContainer.associate( $('MediaInformation') ); } //TOUCHCHANGE } function requestQuickViewImages( offset ) { var batchSize = 3; //100 var os = Math.round( offset - ( batchSize / 2 ) ); os = Math.max( 0, os ); var sUrl = '/luna/servlet/as/fetchMediaSearch' + quickViewQuery; if ($( 'fullTextSearch' ) && $( 'fullTextSearch' ).checked) { sUrl +="&fullTextSearch=fullTextSearch" } sUrl = jshAppendParameter( sUrl, 'os', os, false ); sUrl = jshAppendParameter( sUrl, 'bs', batchSize, true ); //$('q').value += sUrl; var timeoutMilli = 10000; var callback = { success: setQuickViewImages, failure: setQuickViewImages, timeout: timeoutMilli, argument: [os] } // make call var transaction = YAHOO.util.Connect.asyncRequest( 'POST', sUrl, callback, null ); } function setQuickViewImages( o ) { if( quickView ) { var offset = o.argument[0]; var imageInfos = jshEvalJSON( o.responseText, 1 ); quickView.setImageInfos( imageInfos, offset ); } } function constructLinkSearch() { var linkSearch = new LinkSearch(); var excludedFieldsString = 'Collection, Image ID, Resolution Size, Format, Media Type, File Name, Width, Height, Originating Url'; var excludedFields = excludedFieldsString.split(','); linkSearch.setSearchPrefixUrl( searchPrefixUrl ); linkSearch.setShowTimeOut( linkSearchShowDelayMilliSec ); linkSearch.setHideTimeOut( linkSearchHideDelayMilliSec ); linkSearch.setExcludedFields( excludedFields ); if ("".length >0) { linkSearch.setSort( "" ); } else if ("".length >0) { linkSearch.setSort( "" ); } linkSearch.render( $('MediaInformation') ); } function updateRelatedItemCounts( value, count ) { if( JSON.stringify(count) === '{}' ) return; value = value.replace(/s/g,'_') var els = document.getElementsByClassName("LN_" + value); for( j = 0; j < els.length; j++ ) { var ts = els[j].getElementsBySelector("span"); for( k = 0; k 0 ) ts[k].innerHTML = jshAddBraces( count + c*1 ); else ts[k].innerHTML = jshAddBraces( count ); if( ts[k].innerHTML.length > 0 && jshStripBraces(ts[k].innerHTML) <= 1 ) els[j].style.display = "none"; else els[j].style.display = "block"; } } } function initMediaPanel() { if (!checkIphone() && !checkIpad()) { // TOUCHCHANGE var workspace = $('MediaViewContainer') ; //workspace.style.overflow = 'visible'; manager = new MediaGroupPanelManager( workspace, null, null, timeoutMilli, '', null, null, null, null, null, true, true ); manager.setAnimate( false ); imagesPanel = new MediaImagesPanel(); imagesPanel.setManager(manager); imagesPanel.setAnimate( false ); imagesPanel.setDefaultMediaGroupId( -1); imagesPanel.setDefaultMediaGroupName( ''); imagesPanel.setErrorImageUrls( mapMediaTypeToOnErrorImage ); imagesPanel.render( workspace ); // imagesPanel.setRequestMediaGroupImagesFunction( requestSourceImages ); imagesPanel.setRequestGroupImagesUrl( '/luna/servlet/view/group/fetchImages' ); imagesPanel.setViewGroupUrl( '/luna/servlet/view/group' ); imagesPanel.requestImages( -1 ); imagesPanel.setMediaGroups( ); manager.setImagesPanel(imagesPanel); } }
if (checkIpad() || checkIphone()) { var container = window.document.getElementById('PageContainer'); var buyButton = window.document.getElementById("BuyButton"); var geoButton = window.document.getElementById("GeoreferencerButton"); var iframe = window.document.getElementById('Workspace'); if (iframe != undefined) { // iframe.getElementsByTagName('iframe')[0].ontouchmove=BlockMove; iframe.parentNode.removeChild(iframe); window.document.body.appendChild(iframe); if (buyButton != undefined && buyButton.parentNode != undefined) { buyButton.style.display='none'; buyButton.parentNode.removeChild(buyButton); window.document.body.appendChild(buyButton); } if (geoButton != undefined && geoButton.parentNode != undefined) { geoButton.style.display='none'; geoButton.style.visibility='hidden'; geoButton.parentNode.removeChild(geoButton); window.document.body.appendChild(geoButton); } // container.style.visibility='hidden'; container.parentNode.removeChild(container); } } YAHOO.util.Event.addListener( window, "orientationchange", setWorkspaceSize); function toggleThisFieldGrp(element, parentName) { if($(element).hasClassName('fieldCollapsed')) $(element).addClassName('fieldExpanded').removeClassName('fieldCollapsed'); else $(element).addClassName('fieldCollapsed').removeClassName('fieldExpanded'); var elem = document.getElementsByName(parentName); for(var i=elem.length-1; i>=0 ; i--) { $( elem[i] ).toggle(); } } |