-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
dd961a7
Link Title
paperboyo df4f288
Italicise Multiple descriptions
paperboyo 86e6d22
Italicise multiple dateTakens
paperboyo 40ae597
Italicise Multiple descriptions again, but better
paperboyo a7bc637
Make Photoshoots look like the rest
paperboyo 491e1f0
Add search links to Additional metadata keys
paperboyo d7c1fee
Make fieldAlias.elasticsearchPath available to Additional metadata fo…
paperboyo e6203ab
Fix title logic
paperboyo fd56dfc
Update kahuna/public/js/components/gr-image-metadata/gr-image-metadat…
paperboyo 2b1db98
Show Unknown for empty Credit when user can’t edit
paperboyo 7b802c2
When empty and user can’t edit, hide Taken, Location, Filename and Pe…
paperboyo b7b3cf8
fix clientside queryparser emulation to accept chip names containing …
andrew-nowak 2505fe3
Go back to b68b1b7 for Andrew’s regex fix
paperboyo 92ca2c2
Use alias instead of elsticsearchPath
paperboyo 9622fa5
Make longer chips not break in ugly ways
paperboyo 6542932
Add bylineTitle to QuerySyntax…
paperboyo bc2ef26
Revert "Make longer chips not break in ugly ways"
paperboyo 57b8b7e
Revert any regex changes
paperboyo b4422d6
Empty Date Taken to always show as Unknown
paperboyo 3f3e133
Fix Location hiding logic…
paperboyo 3e0ce41
Fix People for unpermissioned users
paperboyo be5bfa8
Modify spaceWords so that it gives us Title Case
paperboyo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm probably missing something - what is the reason for checking
ctrl.hasMultipleValues
on thecity
,state
, andcountry
separately tohasLocationInformation()
? Is the location information returned onrawMetadata
different frommetadata
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but the honest answer is: I don’t know. This was kindly suggested by @andrew-nowak after it wasn’t working correctly before. All fault mine, obviously…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I thought I'd check since I understood
ctrl.hasMultipleValues
was being used elsewhere to displayMultiple something
in the field but didn't seem like that's what we want for the location fieldsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! the difference (I think) is that previously the location field was always shown, whereas we now want to not show the location field if there's no data and the user cannot edit. In an ideal world the
hasLocationInformation
would reliably tell us if there's location info or not, but currently it only works on single image selection. We could update it to understand multiple image selection, but it is also used elsewhere and we don't want/have time to untangle right now.(The highlighted code is similar to the existing
grid/kahuna/public/js/components/gr-image-metadata/gr-image-metadata.html
Lines 372 to 377 in ca2628a