-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap EAD abstract in HTML tag #1165
base: main
Are you sure you want to change the base?
Conversation
What in the UI is inconsistent whether it's from the abstract or ?scopeandcontents or abstract? |
If it's a |
this has implications for the responsive truncator as well — you can't calculate the height of a bare text node using |
(if there's a "wrap this in an element if it isn't already wrapped" type helper, we could just as easily use that in the component template, I just didn't see anything like that, so this was our solution for now). |
an example of the truncator issue can be seen in the brief display for the Hemingway collection fixture (you can find it by searching "hemingway"). it has both an <div class="col al-document-abstract-or-scope" data-arclight-truncate="true">
<div class="content"> This artificial collection includes articles by or about Hemingway, movie posters and photographs, manuscript letters, printed and miscellaneous materials about Ernest Hemingway and his books, diaries of Ernest's uncle, George R. Hemingway, and the organizational records of the Michigan Hemingway Society. </div>
...
</div> cf. some of the items on the repositories page, which use their <div class="col al-document-abstract-or-scope truncated" data-arclight-truncate="true">
<div class="content"><p>Images of students and student activities including track meets, women basketball players, dormitory rooms, picnics and off-campus excursions, commencement activities (including decoration of the arcades as parlors), and theatricals; there are also photographs of campus buildings before and after the 1906 earthquake and of Leland Stanford Jr.'s railroad track on campus. Non-Stanford images include Yosemite and scenes from a European trip. </p>
...
</div> |
relevant truncator code: arclight/app/assets/javascripts/arclight/truncator.js Lines 7 to 9 in c64f240
|
This makes the UI consistent whether we display data from scopeandcontents or abstract
Thanks to @thatbudakguy for finding this issue + pairing !