We do similar but have added a condition so it doesn't expand all for devices
smaller than an iPad:
if ($(window).width() >= 768) { collapse_all('.note_panel',true); }
Andrew.
On Fri, 2020-02-28 at 17:26 +0000, Majewski, Steven Dennis (sdm7g) wrote:
We use the "open accordions by default" javascript method.
In plugins/local/public/views/layout_head.html.erb, we have:
<% if ( [ 'objects', 'resources' ].include?( controller.controller_name )) %>
<!-- expand all -->
<script type="text/javascript" >
$( function() { collapse_all( '.note_panel', true ); } );
</script>
<% end %><!-- end if controller.controller_name... -->
I would also note that I’ve found that IF local mods can be done in javascript
only, rather than customizing views, then it does make the local mods, on
average, somewhat more maintainable. Changes are localized into that one
layout_head template and checking for conflicts in new releases is a bit
simpler. ( My preference. Your mileage may vary! )
— Steve M.
On Feb 28, 2020, at 11:35 AM, Custer, Mark
<[email protected]<mailto:[email protected]>> wrote:
Jordon,
1. As far as I know, you would have to do that in a plugin right now. Here’s
an example, since it’s not obvious where one would do that:
https://github.com/YaleArchivesSpace/yale_pui_customizations/commit/18b7be17825cc84916d2b0ad6cd4cfe776545462#diff-7ff34653933e2e6d670c7b053db80db6
So, you just put a list of the notes you want to display above the accordions
in the “non_folder” variable, and include the ones that appear in the
accordions” in the “folder” variable. All that said, I’d personally like to
see the PUI try something else other than using accordions by default to hide
notes.
1. I also think that Digital Objects in general should be overhauled in
ArchivesSpace (both on the staff and public side)…. I’d actually prefer
something like the “File URI” subrecords be something that you could associate
with archival object, resource, an accession records, rather than have digital
object records at all (we don’t isolate description in ASpace for anything else
based on format). That said, some folks have used a plugin to add a bit of
javascript that opens all of the accordions by default so that the contents are
immediately visible (and findable with a browser search). That might be
another way rather than just re-ordering what notes display above the
accordions. And then Harvard did even more helpful customizations to highlight
digital objects by making them their own tab on the collection-level pages.
E.g.https://hollisarchives.lib.harvard.edu/repositories/24/resources/1248/digital_only
I definitely think that feature (or something like it) needs to be part of
the core public interface!
Mark
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of
Jordon Steele
Sent: Friday, 28 February, 2020 10:53 AM
To: Archivesspace Users Group
<[email protected]<mailto:[email protected]>>
Subject: [Archivesspace_Users_Group] Better notifying users of digital content
presence
Hello,
When our collections have digital content associated with them, our practice is
to add an “Existence and Location of Copies” note to the collection level
indicating the presence of digital content like digitized copies of the
originals. (We do other stuff at lower levels, too.) However, by default, this
note only appears if you click the “Expand All” button. This means that users
and staff often request boxes—especially small collections—without noticing
that all or part of the collection is scanned.
We’re considering changing the order of the notes so that this note features
more prominently, above the “Expand All” fold. I have two questions.
1. Is this something that is configurable in the standard staff-side
interface of ASpace, or would the PUI plug-in need to be edited? (I think the
answer is the latter, but just confirming I am not missing something.)
2. Bumping the note above the “Expand All” fold is just the first idea that
came to mind. Do you have other ways you signal to users on the
collection-level page the presence of digital content? If so, I’m all ears.
Thank you in advance, and sorry if this has been discussed before!
Best,
Jordon
Jordon Steele
Hodson Curator of the University Archives
Sheridan Libraries
Johns Hopkins University
3400 N Charles St
Baltimore, MD 21218
410-516-5493
[email protected]<mailto:[email protected]>
he/him/his
_______________________________________________
Archivesspace_Users_Group mailing list
[email protected]<mailto:[email protected]>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________
Archivesspace_Users_Group mailing list
[email protected]<mailto:[email protected]>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________
Archivesspace_Users_Group mailing list
[email protected]
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group