Skip to content

Commit

Permalink
i19 - pull in uv configs from nnp to enable ocr search
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Jan 26, 2022
1 parent 33dc8c5 commit 211e888
Show file tree
Hide file tree
Showing 2 changed files with 419 additions and 0 deletions.
335 changes: 335 additions & 0 deletions config/uv/uv-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,335 @@

{
"options": {
"allowStealFocus": false,
"bookmarkThumbHeight": 150,
"bookmarkThumbWidth": 90,
"dropEnabled": false,
"footerPanelEnabled": true,
"headerPanelEnabled": true,
"leftPanelEnabled": true,
"limitLocales": false,
"multiSelectionMimeType": "application/zip",
"navigatorEnabled": true,
"openTemplate": "http://universalviewer.io?manifest={0} 18",
"overrideFullScreen": false,
"pagingEnabled": true,
"pagingOptionEnabled": true,
"pessimisticAccessControl": false,
"preserveViewport": false,
"rightPanelEnabled": true,
"saveUserSettings": false,
"clickToZoomEnabled": true,
"searchWithinEnabled": true,
"termsOfUseEnabled": false,
"theme": "uv-en-GB-theme",
"tokenStorage": "session",
"useArrowKeysToNavigate": true,
"zoomToSearchResultEnabled": true
},
"modules": {
"contentLeftPanel": {
"options": {
"defaultToTreeEnabled": true,
"defaultToTreeIfGreaterThan": 0,
"elideCount": 40,
"expandFullEnabled": false,
"galleryThumbChunkedResizingThreshold": 400,
"galleryThumbHeight": 320,
"galleryThumbLoadPadding": 3,
"galleryThumbWidth": 200,
"oneColThumbHeight": 320,
"oneColThumbWidth": 200,
"pageModeEnabled": true,
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": false,
"tabOrder": "",
"thumbsEnabled": true,
"thumbsExtraHeight": 8,
"thumbsImageFadeInDuration": 300,
"thumbsLoadRange": 15,
"treeEnabled": true,
"twoColThumbHeight": 150,
"twoColThumbWidth": 90
},
"content": {
"collapse": "Collapse Contents",
"collapseFull": "Collapse Gallery",
"date": "date",
"expand": "Expand Contents",
"expandFull": "Expand Gallery",
"index": "Index",
"searchResult": "{0} search result",
"searchResults": "{0} search results",
"sortBy": "Sort By:",
"thumbnails": "Thumbnails",
"title": "Contents",
"volume": "volume"
}
},
"dialogue": {
"content": {
"close": "Close"
}
},
"downloadDialogue": {
"options": {
"confinedImageSize": 1000,
"currentViewDisabledPercentage": 90,
"maxImageWidth": 5000,
"optionsExplanatoryTextEnabled": false,
"selectionEnabled": false
},
"content": {
"currentViewAsJpg": "Current view {0} x {1}px (jpg)",
"currentViewAsJpgExplanation": "Opens in a new window",
"pagingNote": "Please turn off Two Page View for additional options."
}
},
"footerPanel": {
"options": {
"bookmarkEnabled": false,
"downloadEnabled": true,
"embedEnabled": false,
"feedbackEnabled": false,
"fullscreenEnabled": true,
"minimiseButtons": true,
"moreInfoEnabled": false,
"openEnabled": false,
"printEnabled": false,
"shareEnabled": false
},
"content": {
"bookmark": "Add to bookmarks",
"download": "Download",
"embed": "Embed",
"feedback": "Feedback",
"exitFullScreen": "Exit Full Screen",
"fullScreen": "Full Screen",
"open": "Open",
"share": "Share"
}
},
"genericDialogue": {
"content": {
"emptyValue": "please enter a value.",
"invalidNumber": "Please enter a valid number.",
"noMatches": "No matches were found.",
"ok": "OK",
"pageNotFound": "This item does not contain a page with the number you entered. Try switching the numbering mode to 'image'.",
"refresh": "Refresh"
}
},
"headerPanel": {
"options": {
"localeToggleEnabled": true,
"settingsButtonEnabled": true
}
},
"helpDialogue": {
"content": {
"text": "placeholder text",
"title": "Help"
}
},
"moreInfoRightPanel": {
"options": {
"canvasDisplayOrder": "",
"canvasExclude": "",
"copyToClipboardEnabled": false,
"manifestDisplayOrder": "",
"manifestExclude": "",
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": false,
"rtlLanguageCodes": "ar, ara, dv, div, he, heb, ur, urd",
"showAllLanguages": false,
"textLimit": 4,
"textLimitType": "lines"
},
"content": {
"attribution": "Attribution",
"collapse": "Collapse Information",
"collapseFull": "Collapse Gallery",
"description": "Description",
"expand": "Expand Information",
"expandFull": "Expand Gallery",
"holdingText": "Your module goes here!",
"less": "less",
"license": "License",
"logo": "Logo",
"more": "more",
"noData": "No data to display",
"page": "Page",
"title": "More Information",
"manifestHeader": "About the item",
"canvasHeader": "About the image",
"copyToClipboard": "Copy to clipboard",
"copiedToClipboard": "Copied to clipboard"
}
},
"multiSelectDialogue": {
"options": {
"galleryThumbChunkedResizingEnabled": true,
"galleryThumbChunkedResizingThreshold": 400,
"galleryThumbHeight": 320,
"galleryThumbLoadPadding": 3,
"galleryThumbWidth": 200,
"pageModeEnabled": false
},
"content": {
"select": "Download",
"selectAll": "Select All",
"title": "Select Pages for Download"
}
},
"pagingHeaderPanel": {
"options": {
"autoCompleteBoxEnabled": false,
"galleryButtonEnabled": true,
"imageSelectionBoxEnabled": true,
"pageModeEnabled": false,
"pagingToggleEnabled": true
},
"content": {
"close": "Close",
"emptyValue": "Please enter a value",
"first": "First",
"firstImage": "First Image",
"firstPage": "First Page",
"folio": "Folio",
"gallery": "Gallery",
"go": "Go",
"help": "Help",
"image": "Image",
"last": "Last",
"lastImage": "Last Image",
"lastPage": "Last Page",
"next": "Next",
"nextImage": "Next Image",
"nextPage": "Next Page",
"of": "of {0}",
"oneUp": "Single page view",
"page": "Page",
"previous": "Previous",
"previousImage": "Previous Image",
"previousPage": "Previous Page",
"settings": "Settings",
"twoUp": "Two page view"
}
},
"seadragonCenterPanel": {
"options": {
"animationTime": 0.15,
"autoHideControls": true,
"attributionEnabled": true,
"blendTime": 0,
"constrainDuringPan": false,
"controlsFadeAfterInactive": 1500,
"controlsFadeDelay": 250,
"controlsFadeLength": 250,
"defaultZoomLevel": 0,
"immediateRender": false,
"maxZoomPixelRatio": 1.25,
"navigatorPosition": "BOTTOM_RIGHT",
"pageGap": 50,
"showHomeControl": false,
"trimAttributionCount": 150,
"visibilityRatio": 0.5
},
"content": {
"attribution": "Attribution",
"goHome": "Go Home",
"imageUnavailable": "Image Unavailable",
"next": "Next",
"previous": "Previous",
"rotateRight": "Rotate Right",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out"
}
},
"searchFooterPanel": {
"options": {
"elideDetailsTermsCount": 20,
"elideResultsTermsCount": 10,
"pageModeEnabled": true,
"positionMarkerEnabled": true
},
"content": {
"clearSearch": "Clear",
"defaultLabel": "-",
"displaying": "{0} {1} of {2}",
"enterKeyword": "Enter Keyword",
"image": "image",
"imageCaps": "Image",
"instanceFound": "1 instance of '{0}' found",
"instancesFound": "{0} instances of '{1}' found",
"nextResult": "Next Result",
"page": "page",
"pageCaps": "Page",
"previousResult": "Previous Result",
"print": "Print",
"resultFoundFor": "result found for",
"resultsFoundFor": "results found for",
"searchWithin": "Search within this item:"
}
},
"settingsDialogue": {
"content": {
"locale": "Locale",
"navigatorEnabled": "Navigator Enabled",
"clickToZoomEnabled": "Mouse Click To Zoom",
"pagingEnabled": "Two Page View",
"preserveViewport": "Preserve Zoom",
"title": "Settings",
"website": "<a href='https://github.com/universalviewer/universalviewer#contributors'>more info</a>"
}
},
"shareDialogue": {
"options": {
"embedTemplate": "<div class=\"uv\" data-locale=\"{0}\" data-config=\"{1}\" data-uri=\"{2}\" data-collectionindex=\"{3}\" data-manifestindex=\"{4}\" data-sequenceindex=\"{5}\" data-canvasindex=\"{6}\" data-xywh=\"{7}\" data-rotation=\"{8}\" style=\"width:{9}px; height:{10}px; background-color: #000\"></div><script type=\"text/javascript\" id=\"embedUV\" src=\"{11}\"></script><script type=\"text/javascript\">/* wordpress fix */</script>",
"instructionsEnabled": false,
"shareFrameEnabled": true
},
"content": {
"customSize": "custom",
"embed": "Embed",
"embedInstructions": "To embed this item in your own website, copy and paste the code below.",
"height": "Height",
"iiif": "IIIF Manifest",
"share": "Share",
"shareInstructions": "To share this item, copy the URL below.",
"size": "Size:",
"width": "Width"
}
},
"clickThroughDialogue": {
"content": {
"viewTerms": "Read Full Terms and Conditions"
}
},
"loginDialogue": {
"content": {
"login": "Login",
"logout": "Logout",
"cancel": "Cancel"
}
},
"mobileFooterPanel": {
"content": {
"rotateRight": "Rotate Right",
"moreInfo": "More Information",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out"
}
},
"restrictedDialogue": {
"content": {
"cancel": "Cancel"
}
}
}
}

0 comments on commit 211e888

Please sign in to comment.