Comments (5)
Hmm, that's a tricky one.
In terms of the way the module currently works, it's rough since everything is assumed to have a single alt text for all contexts. So there's simple things like the database model not allowing multiple alt texts per record, but that's not insurmountable of course. If the idea is pulling text out of the metadata that's less of an issue, as well.
It's a little iffier getting the correct context to decide what text to use. You could look at the page you're on and try to decide that way, though that's likely to be a brittle solution.
from alttext.
Totally. This is prompted partly by wanting to write locally specific doco for our users and then strengthened by talking with our web accessibility team. That team tells me that the alt for an image used as a link (which will be all uses of Media on a Site Page, yes?) should be the target for the link so adaptive tech compiling the links will have a readable and useful list. This target is settable in Site settings.
I have no idea how it would be done and how nontrivial it would be, but there's a place (+/- what you mention) to put a caption on a piece of media when adding it as an attachment to a block. That seems like the best (UX-wise) place to put the ability to give that attachment locally specific alt text. In the world of rainbows and unicorns, an alt text field in that attachment selection drawer would default to the alt text added at the Media level so that if it's fine the author doesn't need to do anything.
We've arrived at telling our people to use "See more about [appropriate media/item title]" as the alt text because that phrasing is mostly semantically valid for the 3 possible uses of Media I know of.
from alttext.
So, the handling of the alt
parameter by the AltText module already kind of allows what you're talking about: basically, if you've specified an alt
already in your call to show a thumbnail or render an image, that one will get used. Only where there isn't an alt specified will the module use the one that's configured for the media.
The missing piece would be the part where you can set an alt in the UI when attaching the media on the backend. Using an alt that's calculated from metadata or in some other "automated" way would already be possible with a custom block that just passes along an alt
parameter when displaying the images.
from alttext.
Thanks for that explanation. I'm still shallow/green enough with Omeka S development and my org is leery of writing custom code, so it's unlikely we'll go that route. Good to know we could if we wanted to.
One question, though: Using a custom block for this would seem to me to mean writing shadow versions of the Media Embed, Item Showcase, and Item with Metadata blocks. Am I understanding correctly? Or is there a way, in principle, to write a custom block that introduces something into each of those?
from alttext.
Closing in favor of omeka/omeka-s#1711
from alttext.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alttext.