[Archivesspace_Users_Group] PUI & Digital Objects links

Majewski, Steven (sdm7g) sdm7g at virginia.edu
Fri Nov 3 13:26:53 EDT 2017

FYI: You can replace the digital object icon in the display with a thumbnail image in a plugin.

[cid:60402B02-B874-4D33-82E9-1B9BD0746ACA at virginia.edu]

You need to add or modify:  plugins/local/public/views/layout_head.html.erb

[1] Get the controller name, and only run the script for “objects” controller
( both the digital object and linked record view are via objects controller. )

<meta name="controller" content="<%= controller.controller_name %>" />
<script type="text/javascript">
    var controller = $('html head meta[name="controller"]' ).attr('content');
    if ( controller == "objects") {
        $( function() {
            form_url = $( '.objectimage >form' ).attr('action'); console.log( form_url );

[2] (above) get the digital object URL from the form action.

[3] I’m leaving out the bulk of the script which, in our instance is fetching and parsing IIIF manifests to get a thumbnail image URL. Replace with whatever is needed to get a thumbnail for your digital objects.

[4] Replace that icon with the thumbnail URL in an image element.
    ( You might need a more specific selector if the contents of that page changes, but this works for me now ):

         if ( thumb ) {
             $('.objectimage >form >button').children().first().replaceWith( $('<img/>').attr( 'src', thumb ) );

We are using IIIF manifests partly to avoid the issues involved with representing and handling complex digital objects in ArchivesSpace. ( i.e. multiple page images for a single ‘object’ and thumbnail or other different views or representations.  )  ArchivesSpace has the ability to represent digital objects as a hierarchy, but I think we need some standards and conventions about how to do this before it can be useful. Is anyone doing this now ?

— Steve Majewski

On Nov 3, 2017, at 10:43 AM, Tummino, Annie <atummino at sunymaritime.edu<mailto:atummino at sunymaritime.edu>> wrote:

Mark – thank you! This did the trick, I was just totally missing that File Version sub-record. Happy to have your help so quickly.


Annie Tummino
Stephen B. Luce Library
Interim Library Director
Archivist & Scholarly Communications Librarian

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org]On Behalf Of Custer, Mark
Sent: Friday, November 03, 2017 10:39 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] PUI & Digital Objects links


The PUI still has a way to go with integrating digital objects, but the gist is that right now to get the red Digital Record icon badge, you’ll need to use that URI as a File URI subrecord, rather than (or in addition to) the Digital Record identifier.  Here’s a bit more info:  https://archivesspace.atlassian.net/wiki/spaces/ADC/pages/103209762/Public+Interface+Documentation+for+staff#PublicInterfaceDocumentation(forstaff)-DigitalObjectButtons/Thumbnails

But it would like something like this in the staff interface:


I hope that helps, even if it’s not an ideal solution 😊


Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20171103/760464cd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resourcedothumb.png
Type: image/png
Size: 672587 bytes
Desc: resourcedothumb.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20171103/760464cd/attachment-0001.png>

More information about the Archivesspace_Users_Group mailing list