-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Metadata editor / link to remote dataset improvements #7324
Merged
Conversation
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
- Improve the title extraction For HTML links, to support title elements with attributes. - Allow to define a custom title for the remote dataset link
fxprunayre
reviewed
Sep 11, 2023
...ui/src/main/resources/catalog/components/edit/onlinesrc/partials/remote-record-selector.html
Outdated
Show resolved
Hide resolved
fxprunayre
reviewed
Sep 11, 2023
...ui/src/main/resources/catalog/components/edit/onlinesrc/partials/remote-record-selector.html
Outdated
Show resolved
Hide resolved
fxprunayre
reviewed
Sep 11, 2023
...ui/src/main/resources/catalog/components/edit/onlinesrc/partials/remote-record-selector.html
Outdated
Show resolved
Hide resolved
…rtials/remote-record-selector.html Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
…rtials/remote-record-selector.html Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
…rtials/remote-record-selector.html Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
fxprunayre
approved these changes
Sep 21, 2023
fxprunayre
added a commit
that referenced
this pull request
Oct 17, 2023
Some catalogues link records to others which can be in the same catalogue or in remote sites. Links are encoded using ```xml <gmd:source uuidref="https://ec.europa.eu/eurostat/cache/metadata/en/env_nwat_esms.htm" xlink:title="Water statistics on national level (env_nwat)" xlink:href="https://ec.europa.eu/eurostat/cache/metadata/en/env_nwat_esms.htm"/> ``` and the `xlink:title` may contain the remote record title (or the customized title cf. #7324) This adds the related records title to the full text search. Sample record https://sdi.eea.europa.eu/catalogue/srv/eng/catalog.search#/metadata/04b55edf-9a98-4123-87ab-7845af61d07d With that change searching for `env_nwat` will return the record due to the source dataset.
10 tasks
fxprunayre
added a commit
to eea/geonetwork-eea
that referenced
this pull request
Oct 17, 2023
Some catalogues link records to others which can be in the same catalogue or in remote sites. Links are encoded using ```xml <gmd:source uuidref="https://ec.europa.eu/eurostat/cache/metadata/en/env_nwat_esms.htm" xlink:title="Water statistics on national level (env_nwat)" xlink:href="https://ec.europa.eu/eurostat/cache/metadata/en/env_nwat_esms.htm"/> ``` and the `xlink:title` may contain the remote record title (or the customized title cf. geonetwork/core-geonetwork#7324) This adds the related records title to the full text search. Sample record https://sdi.eea.europa.eu/catalogue/srv/eng/catalog.search#/metadata/04b55edf-9a98-4123-87ab-7845af61d07d With that change searching for `env_nwat` will return the record due to the source dataset.
josegar74
pushed a commit
that referenced
this pull request
Oct 25, 2023
Some catalogues link records to others which can be in the same catalogue or in remote sites. Links are encoded using ```xml <gmd:source uuidref="https://ec.europa.eu/eurostat/cache/metadata/en/env_nwat_esms.htm" xlink:title="Water statistics on national level (env_nwat)" xlink:href="https://ec.europa.eu/eurostat/cache/metadata/en/env_nwat_esms.htm"/> ``` and the `xlink:title` may contain the remote record title (or the customized title cf. #7324) This adds the related records title to the full text search. Sample record https://sdi.eea.europa.eu/catalogue/srv/eng/catalog.search#/metadata/04b55edf-9a98-4123-87ab-7845af61d07d With that change searching for `env_nwat` will return the record due to the source dataset.
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.
Currently if linking to a web page without title information, the title for the link was assigned to the full html.
With this change, the user can define a custom title for the remote dataset in this case:
![remote-dataset-title-1](https://private-user-images.githubusercontent.com/1695003/266282418-01ceaaeb-ac0f-4bb4-92e0-bcc245db31a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MjU0ODMsIm5iZiI6MTcxODgyNTE4MywicGF0aCI6Ii8xNjk1MDAzLzI2NjI4MjQxOC0wMWNlYWFlYi1hYzBmLTRiYjQtOTJlMC1iY2MyNDVkYjMxYTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTlUMTkyNjIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzhhMjExN2U5OTI4M2E1NmNjYjMzNjMzMDg3MDc1MDZjZWNkYjhhMDBkZDJkNmMxNTkyZGRkNGU4ZDljNzg4NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BhysbkYDGCTzkBkoBQtEfrQKo-Ggm_mQZ6O-qoa3Isw)
or override the title extracted with a custom one: