Skip to content
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
merged 4 commits into from
Sep 21, 2023

Conversation

josegar74
Copy link
Member

  • Improve the title extraction For HTML links, to support title elements with attributes.
  • Allow to define a custom title for the remote dataset link.

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

or override the title extracted with a custom one:

remote-dataset-title-2

- Improve the title extraction For HTML links, to support title elements with attributes.
- Allow to define a custom title for the remote dataset link
@josegar74 josegar74 added this to the 4.4.0 milestone Sep 7, 2023
josegar74 and others added 3 commits September 20, 2023 16:19
…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 fxprunayre merged commit 3609c5d into geonetwork:main Sep 21, 2023
6 checks passed
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.
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants