Skip to content

feat(catalog): Forced metadata#1077

Merged
PhilippeLafreniere18 merged 26 commits intonextfrom
forcedMetadata
Jun 22, 2022
Merged

feat(catalog): Forced metadata#1077
PhilippeLafreniere18 merged 26 commits intonextfrom
forcedMetadata

Conversation

@pelord
Copy link
Member

@pelord pelord commented Jun 21, 2022

Please check if the PR fulfills these requirements

What is the current behavior? (You can also link to an open issue here)
When we integrate external layers in a composite catalog, the content of the "metadata" button is automatically generated from the layer, when the information is set. It is not possible to change it as we can using mapfiles.

What is the new behavior?
It is now possible to force the "abstract" (a text), newMetadataAbstract, or the "metadataUrl" (a link), newMetadataUrl, as the content of the "metadata" button of a layer in a composite catalog. It is possible to force it for a single layer, using its layer name, or to all layers (newMetadataUrlAll, newMetadataAbstractAll) of a link. If we set newMetadataAbstractAll or newMetadataUrlAll, even single layers will be overridden.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:

Other information:

@pelord pelord changed the base branch from master to next June 21, 2022 17:50
@PhilippeLafreniere18 PhilippeLafreniere18 merged commit 8d89c56 into next Jun 22, 2022
@PhilippeLafreniere18 PhilippeLafreniere18 changed the title Forced metadata feat(catalog): Forced metadata Jun 22, 2022
@pelord pelord deleted the forcedMetadata branch September 22, 2022 20:54
cbourget pushed a commit that referenced this pull request Mar 21, 2023
* Metadata sur services externes, aucune réponse - à vérifier

* fix last commit

* draft forcedMetadataUrl

* draft forced metadata url

* fix draft commit forced metadata url

* draft forced NewMetadataURL

* fix last commit

* draft backup

* force a new metadata URL or Abstract, 1 per link, not layer

* tests change single layer + other layers

* final version with some overrides to fix

* lint

* refactor and minor code fix

* minor fix

* rename forced metadata properties, updated examples

* change All for *

* change All for *

* change all for *

* refactor(catalog): forced properties refactor

* lint

Co-authored-by: mneige <90412486+mneige@users.noreply.github.com>
Co-authored-by: Philippe Lafreniere <philippe.lafreniere@msp.gouv.qc.ca>
Co-authored-by: Pierre-Étienne Lord <pe_lord@yahoo.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants