Skip to content

Commit

Permalink
Merge pull request #370 from UNC-Libraries/uv-viewer
Browse files Browse the repository at this point in the history
Uv viewer settings
  • Loading branch information
bbpennel authored Apr 26, 2019
2 parents dad474b + 86e2c48 commit 53576a4
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/hyrax/base/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
<% end %>
<div class="col-sm-3 text-center">
<%= render 'representative_media', presenter: @presenter, viewer: false unless @presenter.iiif_viewer? %>
<%= render 'representative_media', presenter: @presenter, viewer: false %>
<%= render 'citations', presenter: @presenter %>
<%= render 'social_media' %>
</div>
Expand Down
4 changes: 3 additions & 1 deletion app/views/hyrax/file_sets/media_display/_image.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
Hyrax.config.display_media_download_link?) %>
<div>
<h2 class="sr-only"><%= t('hyrax.file_set.show.downloadable_content.heading') %></h2>
<%= image_tag thumbnail_url(file_set),
<% if !@presenter.respond_to?(:iiif_viewer?) || !@presenter.iiif_viewer? %>
<%= image_tag thumbnail_url(file_set),
class: "representative-media",
alt: "",
role: "presentation" %>
<% end %>
<%= link_to t('hyrax.file_set.show.downloadable_content.image_link'),
hyrax.download_path(file_set),
data: { label: file_set.id },
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,371 @@
{
"options": {
"allowStealFocus": false,
"bookmarkThumbHeight": 150,
"bookmarkThumbWidth": 90,
"dropEnabled": true,
"footerPanelEnabled": true,
"headerPanelEnabled": true,
"leftPanelEnabled": true,
"limitLocales": false,
"multiSelectionMimeType": "application/zip",
"navigatorEnabled": true,
"openTemplate": "http://universalviewer.io?manifest={0}",
"overrideFullScreen": false,
"pagingEnabled": true,
"pagingOptionEnabled": true,
"pessimisticAccessControl": false,
"preserveViewport": false,
"rightPanelEnabled": false,
"saveUserSettings": false,
"clickToZoomEnabled": true,
"searchWithinEnabled": true,
"termsOfUseEnabled": false,
"theme": "uv-en-GB-theme",
"tokenStorage": "session",
"useArrowKeysToNavigate": false,
"zoomToSearchResultEnabled": true
},
"modules": {
"contentLeftPanel": {
"options": {
"defaultToTreeEnabled": false,
"defaultToTreeIfGreaterThan": 0,
"elideCount": 40,
"expandFullEnabled": true,
"galleryThumbChunkedResizingThreshold": 400,
"galleryThumbHeight": 320,
"galleryThumbLoadPadding": 3,
"galleryThumbWidth": 200,
"oneColThumbHeight": 320,
"oneColThumbWidth": 200,
"pageModeEnabled": true,
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": true,
"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",
"download": "Download",
"downloadSelection": "Download Selection",
"downloadSelectionExplanation": "Opens a dialogue to select which pages to download.",
"editSettings": "Edit Settings",
"entireDocument": "Entire document ({0})",
"entireFileAsOriginal": "Entire file ({0})",
"noneAvailable": "No download options are available.",
"pagingNote": "Please turn off Two Page View for additional options.",
"preview": "Preview",
"title": "Download",
"wholeImageHighRes": "Whole image {0} x {1}px ({2})",
"wholeImageHighResExplanation": "Opens in a new window.",
"wholeImagesHighRes": "Whole images ({0})",
"wholeImagesHighResExplanation": "Opens in two new windows.",
"wholeImageLowResAsJpg": "Whole image {0} x {1}px (jpg)",
"wholeImageLowResAsJpgExplanation": "Opens in a new window."
}
},
"footerPanel": {
"options": {
"bookmarkEnabled": false,
"downloadEnabled": false,
"embedEnabled": false,
"feedbackEnabled": false,
"fullscreenEnabled": true,
"minimiseButtons": true,
"moreInfoEnabled": true,
"openEnabled": false,
"printEnabled": false,
"shareEnabled": true
},
"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": false,
"settingsButtonEnabled": false
}
},
"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": true
},
"content": {
"select": "Download",
"selectAll": "Select All",
"title": "Select Pages for Download"
}
},
"pagingHeaderPanel": {
"options": {
"autoCompleteBoxEnabled": true,
"galleryButtonEnabled": true,
"imageSelectionBoxEnabled": false,
"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>\n<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"
}
}
},
"localisation": {
"label": "English (GB)",
"locales": [
{
"name": "cy-GB",
"label": "Cymraeg"
},
{
"name": "en-GB",
"label": "English (GB)"
}
]
},
"content": {
"authCORSError": "Your browser does not support CORS, please upgrade to view this content.",
"authorisationFailedMessage": "Your log-in attempt did not appear to be successful. Please try again.",
"canvasIndexOutOfRange": "Canvas index out of range.",
"degradedResourceMessage": "Please log in to view at full quality.",
"degradedResourceLogin": "log in",
"forbiddenResourceMessage": "Your current access rights are insufficient to view this image",
"termsOfUse": "Terms of Use"
}
}

0 comments on commit 53576a4

Please sign in to comment.