[Archivesspace_Users_Group] Feature request: tag image_url in exported EAD

Steven Majewski sdm7g at virginia.edu
Wed Feb 11 08:36:59 EST 2015


On Feb 10, 2015, at 4:14 PM, Brian Hoffman <brianjhoffman at gmail.com> wrote:

> Hi Steve,
> 
> This seems like a useful and uncontroversial change to me (I can't see how it will break anything for others). Would you consider posting a PR on github?
> 
> Brian
> 
> 


Will  do.  — Steve. 


> 
> On Tue, Feb 10, 2015 at 5:03 AM, Steven Majewski <sdm7g at virginia.edu> wrote:
> 
> It would be helpful if the repo image_url was tagged in some way to uniquely identify it in the exported EAD. 
> 
> I’m currently using this modification in a local plugin to attach an @id . 
> What that id is doesn’t particularly matter, as long as it’s tagged in some way. 
> ( I’m open to alternate suggestions here. )
> 
> --- a/backend/app/exporters/serializers/ead.rb
> +++ b/backend/app/exporters/serializers/ead.rb
> @@ -615,7 +615,7 @@ class EADSerializer < ASpaceExport::Serializer
>            xml.publisher { sanitize_mixed_content(data.repo.name,xml, fragments)
>  
>            if data.repo.image_url
> -            xml.p {
> +            xml.p ( { "id" => "logostmt" } ) {
>                xml.extref ({"xlink:href" => data.repo.image_url,
>                            "xlink:actuate" => "onLoad",
>                            "xlink:show" => "embed",
> 
> 
> Identifying the repo image_url by position xpath only without some other tag is not really reliable if you have 
> EAD from different sources : //publicationstmt/p/extref  could be a link to something else. 
> 
> Locally, tagging it with an id in local plugin works, however, we have 30+ institutions contributing guides to 
> the Virginia Heritage union catalog and a number of these institutions are migrating to ArchivesSpace. 
> Trying to get the other institutions using ASpace to all use the same export plugin may not be possible. 
> I would like to make it possible to directly export from ASpace to Virginia Heritage. Most other issues can
> be handled by tweaking our stylesheets, but this issue does seem to require tagging and identifying the 
> logo image in some way.  This would seem to be a generally useful feature. 
> 
> 
> — Steve Majewski / Alderman Library University of Virginia
> 
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
> 
> 
> 
> 
> -- 
> Brian Hoffman
> brianjhoffman at gmail.com
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150211/fca29ba5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4943 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150211/fca29ba5/attachment.bin>


More information about the Archivesspace_Users_Group mailing list