# Reusing DO Title as Caption in EAD Import Problematic

## Description

Currently, when the EAD importer creates a digital object from a <dao> it uses the title attribute as both the DO title and caption. Unfortunately, the title and caption have different maximum lengths in the database schema (1024 vs 256 characters), so this means that DAOs with long (but legal) titles, can't be imported. ASpace should either support longer captions, or the importer shouldn't try to re-use the title as the caption.

None

## Activity

Show:
Lora Woodford
December 18, 2018, 4:34 PM

Potentially naive question, but is there any reason for the importer to be adding a caption in the first place? Caption is not actually part of the digital_object schema/record, but rather an optional field in the optional file_version subrecord. Seems like a rather opinionated move on the part of the importer to decide that the title for the top-level digital object should become the caption for a separate file version? Why not leave the caption blank?

Also, having sample EAD to test this with would be super helpful.

Brian Harrington
December 18, 2018, 4:48 PM

Leaving it blank seems like a good idea to me, but I am curious about the rationale for adding it in the first place.

Here's a sample for you.

Lydia Tang
December 18, 2018, 5:03 PM

Caption = Alt text for screen readers, right? It's an accessibility issue. It's true that I don't know how helpful it would be if a screen reader reads the title and then reads a duplicated (or truncated) caption, but I think leaving it automatically blank wouldn't comply with WCAG 2.0. I think the idea was to have to worry about it as little as possible, with as little manual intervention as possible for quick batch jobs, with the option to manually finesse it later. More info on alt text: http://accessibility.psu.edu/images/imageshtml/

Lydia Tang
December 18, 2018, 5:11 PM

Oops, I see. I was confused because I don't see a field in the SUI for adding alt text (Lora, is there one?) and I see the caption is literally a caption below the image. My personal opinion is that the display of the DO title is unintuitively located far from the image, so the caption functions as a defacto title for usability's sake. I wonder whether getting a focus group together to assess the visual layout may be useful? I agree at the caption is redundant.

Lora Woodford
December 18, 2018, 7:35 PM

Dev Pri (12/18/18): Going to remove mapping of title -> caption for EAD imports.

Done

Brian Harrington

Brian Harrington

Minor