[Archivesspace_Users_Group] Styling links in ArchviesSpace notes

Caffrey, Julia jcaffrey at towson.edu
Fri Nov 16 16:03:04 EST 2018

Hi All,

To add on to the previously suggested solution: Using < extptr> embeds it as an HTML5 <embed>, rather than an image (<img>). HTML5 introduced the embed so that a variety of formats can be included.

I’m not familiar with AS enough to know why you can’t encode as an image, but I recommend including the following attributes for greater accessibility and to make your code more semantic.

Use an aria-label and alt to define the media type and alternative text:
<extptr href="http://library.cshl.edu/images/archives/datura-workers-1927.jpg" actuate="onload" show="embed" aria-label="image" alt="Scientists from the Department of Genetics of the Carnegie Institution of Washington pose in front of an academic building"></extptr>

If the image is decorative or redundant with text, use alt=""

Julia Caffrey
Web Services Librarian
Towson University

From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Terry Brady
Sent: Friday, November 16, 2018 2:52 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Cc: archivesspace at googlegroups.com
Subject: Re: [Archivesspace_Users_Group] Styling links in ArchviesSpace notes


That is very helpful to know.  Thank you!

On Fri, Nov 16, 2018 at 11:18 AM Adams, Thomas <tadams at cshl.edu<mailto:tadams at cshl.edu>> wrote:

You are able to include an image within the resource/collection description. Simply added within the Notes - Scope and Content section, the following tag:
<extptr href="http://library.cshl.edu/images/archives/datura-workers-1927.jpg" actuate="onload" show="embed"></extptr>

For including a link, we use the following construct:
<extref href="http://library.cshl.edu/personal-collections/amos-g-avery/collection-inventory">http://library.cshl.edu/personal-collections/amos-g-avery/collection-inventory</extref<http://library.cshl.edu/personal-collections/amos-g-avery/collection-inventory%3c/extref>>

These two constructs do not get sanitized, like the html construct would. No AS customization is required. I do not see why both would not work together.

An example of both is displayed here:

Hope that helps.


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<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>] On Behalf Of Terry Brady
Sent: Friday, November 16, 2018 1:54 PM
To: archivesspace at googlegroups.com<mailto:archivesspace at googlegroups.com>; Archivesspace Users Group
Subject: [Archivesspace_Users_Group] Styling links in ArchviesSpace notes

The Georgetown University Library uses DSpace to publish digital objects for our archival collections.

In ArchivesSpace, we will be constructing DAO objects that link to specific DSpace items.

At the ArchivesSpace resource/collection level, we would like to display a note that indicates that digital objects exist within the resource.  We would like that note to link to a DSpace collection.

We are able to create a scope and content note that contains a hyperlink to a DSpace collection.

Additionally, we would like to display an inline image along with that hyperlink.

If we attempt to add html img tags into our scope and content note, we see that ArchivesSpace sanitizes the html and removes the img tags.

Is there a way to include inline images within a note (or another object) in ArchivesSpace?

So far, we have kept the code changes in our AS instance to a minimum.  I suppose that we could create a custom note type and then render that note type on the front end with an inline image.  If possible, we would prefer to avoid that level of customization.

Do you have any suggestions for how we could solve this problem?

Alternatively, we think it could be useful to be able to display DAO thumbnails inline for collection/resource objects.  See the following enhancement request: https://archivesspace.atlassian.net/browse/ANW-810<https://urldefense.proofpoint.com/v2/url?u=https-3A__archivesspace.atlassian.net_browse_ANW-2D810&d=DwMFaQ&c=mkpgQs82XaCKIwNV8b32dmVOmERqJe4bBOtF0CetP9Y&r=TjLjUtY9iLO-GIp5svlZHQ&m=_cXjaq6ih0M7IjucpRywXzBbMbqpxxrDCKGBCLZWMm8&s=7YvhpXakAFrJYG5apnjYECsKAGVtlUum81H8D37IuGQ&e=>

Thanks, Terry

Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
425-298-5498 (Seattle, WA)
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>

Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
425-298-5498 (Seattle, WA)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20181116/3dc4da99/attachment.html>

More information about the Archivesspace_Users_Group mailing list