-
Notifications
You must be signed in to change notification settings - Fork 123
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
Searchlinks in Additional metadata and more consistent Info panel UI #3871
Conversation
kahuna/public/js/components/gr-image-metadata/gr-image-metadata.js
Outdated
Show resolved
Hide resolved
b68b1b7
to
889e2d0
Compare
…spaces, dots (and quotes necessary for spaced keys
889e2d0
to
b7b3cf8
Compare
this is better: - cannot have spaces - uses chips without fileMetadata. at the beginning
…so that clicking bylineTitle in Additional metadata actually works and does not require adding quotes around field manually
This reverts commit 9622fa5.
I was running this on TEST and noticed the following error in the console: which is pointing to this line. I noticed that the values in the XMP Keywords field appear as an array of strings but they are not actually clickable, is this the expected behaviour? If not, I wonder if the query for this field is failing potentially, as the other additional metadata fields seem to be working fine. |
Very good spot, @aracho1. This was hinted at in the PR description
Arrays and other structured fields have currently no support to show properly. This PR adds “links” to them which do not work. Those fields would need to be consciously added via It is a pity, but to add support to display them properly (and then fix the linking for them) is a job too clever for this contributor (I have tried). I think it is acceptable as is, since someone would need to configure them to be shown knowing there is no support. But if you think not, I may have a look at adding code that disables linking for arrays and structured fields. Again, much better would be to make them work, but here I would need help from someone… |
Seen on auth, usage, cropper, collections, media-api, kahuna, image-loader, metadata-editor, thrall, leases (merged by @paperboyo 10 minutes and 50 seconds ago) Please check your changes! |
What does this change?
Co-authored by @jonathonherbert
Co-authored by @andrew-nowak
Fixes #3849:
Links values for metadata fields visible under Show additional metadata section to searches bringing them in line with the rest of the Info panel. Please note that identifiers have no links (because they are either unique or defunct). Arrays and other structured fields do not work, but their display is already broken anyway. Both should one day be using our pills (like eg. people) for arrays and forms (like eg. Location) for structured fields. Also, there is no reason why Additional metadata UI could not be displayed and work for multiple selections…
For consistency , it also allows searching for multiple images with the same Title by linking from the Title field. Linking from Description makes either no or very little sense. I decided not to link from hour and/or day either. Not sure about Special Instructions, but decided on no.
Finally, it brings some minor styling improvements which make the panel more consistent:
bylineTitle
,suppliersReference
andsource
) and for identifiersScreenshots
How should a reviewer test this change?
Try to search by clicking on Title and values in Additional metadata. Look around for styling fixes shown above.
How can success be measured?
Editors can discover image groupings by easily searching on Title.
Editors can discover more ways of searching.
Less chaos in the info panel, no headings without values, more consistent styling.
Tested? Documented?