Repository navigation
Add important OpenHistoricalMap fields to every preset - #145
Merged
Merged
Conversation
1ec5
commented
Oct 15, 2022
1ec5
marked this pull request as ready for review
October 16, 2022 17:32
1ec5
force-pushed
the
1ec5-ohm-universal-fields-449
branch
from
October 16, 2022 21:25
7e3e861 to
106d44c
Compare
This was referenced May 27, 2023
This was referenced Mar 22, 2024
Merged
This was referenced May 1, 2024
Open
1 of 4 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds the all-important Start Date, End Date, and Source(s) fields to the inspector regardless of the selected features’ presets. It also adds License as an optional field.
This implementation respects preset inheritance, which was introduced upstream after the previous implementation of these fields landed in 1258835. A preset that doesn’t define its own fields inherits the same fields it would inherit in OSM’s iD, but the core OHM fields are included too. OHM’s custom fields will be localized using the same mechanism as the rest of the core interface; however, this PR does not include any translations.
Here’s what the Law Office preset looks like initially:
If the user selects a feature that’s already tagged with
licenseor they select License from the “Add field” menu, the License field appears:Fixes OpenHistoricalMap/issues#449. Working towards OpenHistoricalMap/issues#395.
Old screenshots