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

Main.prevent.delete.multiple.online.resources.iso.19139.schema #17

Conversation

wangf1122
Copy link
Owner

No description provided.

fxprunayre and others added 30 commits September 21, 2023 10:39
…tion (geonetwork#7288)

* DOI / ISO19115-3 / Support DOI set in resource identifier or distribution

DOI can be stored in different places depending on user convention:
* metadata linkage (only in ISO19115-3)
* resource identifier
* online link

Make DOI discovery more similar to ISO19139 (in case record are migrated from ISO19139) https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19139/src/main/plugin/iso19139/formatter/datacite/view.xsl#L142

* Update schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/formatter/datacite/view.xsl

Co-authored-by: Jose García <[email protected]>

---------

Co-authored-by: Jose García <[email protected]>
OGC API Record parameter for paging is `limit`. 

Follow up of geonetwork#7094
* Standard / ISO / Labels improvements

* Standard / ISO19139 / Label improvement

Remove non existing element.
More consistent label with JS app and facets.
When the Links table is empty an 500 error happens:
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed

This is caused because the response.sendError(...) method is being called twice when
the Links table has no entries. This commits fix this error calling the method only
once.
In addition, it removes unnecessary info returned to the client.

Signed-off-by: Juan Luis Rodríguez <[email protected]>
* Update Xalan from 2.7.1 to 2.7.3 to address CVE-2022-34169.
 * Use a workaround to address a shortcoming in xalan 2.7.3.
   The xalan serializer is declared as explicit dependency and
   the place marked for later reversal of this workaround.
geonetwork#7348)

related records

If a record has more than 100 related records, statistics are only
provided on the first 100.
eg. https://sdi.eea.europa.eu/catalogue/srv/eng/catalog.search?#/metadata/3c362237-daa4-45e2-8c16-aaadfb1a003b

If extending the stats to more than 100 records, Elasticsearch returns:
```
Top hits result window is too large, the top hits aggregator [docs]'s
 from + size must be less than or equal to: [100] but was [105].
This limit can be set by changing the [index.max_inner_result_window] index level setting."
```

Adding the possibility to configure the index to compute stats on a
larger window of results. By default 200.
* Prevent invalid date written into xml

* set invalid date prevention at the variable initiating place

* default date and check isValid
* Portal / RSS feeds point to current portal 

RSS feeds now focus on the current portal in use (as OGC API Records provides endpoints per portal).
If more than one feed declared, add the label to clearly identify the purpose of the link.

* Cleanup old API link
On Firefox, when adding/removing elements which trigger form reload eg. adding thesaurus block, removing a fieldset, the browser usually scroll down the position before saving.

It seems related to https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor/Guide_to_scroll_anchoring
…ttp proxy is configured in Java system properties (geonetwork#7325)

* Don't override proxy configuration when saving the settings, if the http proxy is configured in Java system properties

* Update core/src/main/java/org/fao/geonet/lib/ProxyConfiguration.java

Co-authored-by: François Prunayre <[email protected]>

---------

Co-authored-by: François Prunayre <[email protected]>
A WPS may require a `BoundingBoxData` in a particular CRS.
Add reprojection step if needed:

```
      <Input minOccurs="0" maxOccurs="1">
        <ows:Identifier>EXTENT</ows:Identifier>
        <ows:Title>A spatial extent</ows:Title>
        <ows:Metadata xlink:title="processing:type" xlink:href="extent" xlink:type="simple"/>
        <BoundingBoxData>
          <Default>
            <CRS>EPSG:2154</CRS>
          </Default>
          <Supported>
            <CRS>EPSG:2154</CRS>
          </Supported>
        </BoundingBoxData>
      </Input>
```
* WFS layer improvements

QGIS Server may not advertised namespace for feature type eg. https://geodata.valenceromansagglo.fr/api/ogc?SERVICE=WFS&REQUEST=GetCapabilities

* WFS / Add missing version parameter

Make WFS feature type search more similar to what is done for WMS layer. Add the version property which is used later on in https://github.com/geonetwork/core-geonetwork/blob/main/web-ui/src/main/resources/catalog/components/common/map/mapService.js#L1460 when adding the vector source.
…7264)

* Add icons for related types (association and initiative) in the editor and the footer of a card view.

---------

Co-authored-by: François Prunayre <[email protected]>
* Map / WMS dimension saved in map

Save current map dimension value in the map context to be able to open a
map on specific date.

Follow up of geonetwork#6820
"

* Map / Layer enabled in layer manager status saved in context.
* Add a new DOI icon

Add an extra icon font for the DOI icon, an icon font was needed in order to colour and size the new DOI icon in the same way as all the FontAwesome icons

* Update name of the font file and remove unused `css` code

* Update the internal name of the font and moved the file up one directory
Follow up of geonetwork#7340

Clarify coordinate order for geo_shape field: 
"In GeoJSON and WKT, and therefore Elasticsearch, the correct coordinate order is longitude, latitude (X, Y) within coordinate arrays. This differs from many Geospatial APIs (e.g., Google Maps) that generally use the colloquial latitude, longitude (Y, X)."

Test :
* https://www.geocat.ch/geonetwork/srv/api/records/78a41177-6125-4f11-ac8b-4ec6166dad70/formatters/iso19139?output=xml
* check coordinate order in default view (advanced view is fine because base on the XML)
Improvements to allow future deployment of multiple instances
* Improved handling of empty titles

* Fixed mdResourceTitle typo
jodygarnett and others added 29 commits January 16, 2024 13:04
* Remove the custom grid styles, the latest version of Material for MkDocs has this as a default option.

The minimum version for Material for MkDocs is 9.5, this is added in the `requirements.txt`
Minor text edits
…me (geonetwork#7457)

* unpack iso19139 sample data, create mef file at build time

Signed-off-by: Jody Garnett <[email protected]>

* unpack iso19155-3.2018 sample data, create mef file at build time

Signed-off-by: Jody Garnett <[email protected]>

* unpack dublin-core sample data, create mef file at build time

Signed-off-by: Jody Garnett <[email protected]>

---------

Signed-off-by: Jody Garnett <[email protected]>
…twork#7412)

* move changes to their own folder

Signed-off-by: Jody Garnett <[email protected]>

* update doing a release for doc updates prior to tagging release

# Conflicts:
#	docs/manual/docs/contributing/doing-a-release.md

* automation used to deploy manual, manual deploy during release not longer required

* changelog management using git notes to document major features

* housekeeping: clean up commented out pom.xml snippet

Signed-off-by: Jody Garnett <[email protected]>

* update docs/README.md description to reflect contents

Signed-off-by: Jody Garnett <[email protected]>

* gitIgnore WEB-INF schemapublication folder

Signed-off-by: Jody Garnett <[email protected]>

* Change to 4.4.1 release example

* Update build procedure to deploy datastorages

Signed-off-by: Jody Garnett <[email protected]>

---------

Signed-off-by: Jody Garnett <[email protected]>
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
The column is added automatically by Hibernate when GeoNetwork starts. Removing it
from the SQL because it makes the process to fail with
```
Duplicate column name "ICON"; SQL statement:
 ALTER TABLE public.spg_page ADD icon varchar NUL [42121-212]
```

Related to geonetwork#7536.
Fix some incorrect comments
Remove class prefix as it was not required.
Added missing license.
These services aren't available anymore. This commit remove the implementing classes from GeoNetwork source code.
Services removed:

* `profiles.Get`
* `util.ping`
* `RegExpReplace`
* `db.select`
* `http.Get`
* `session.Put`
* Upgrade guidance for geonetwork 3 users

- Includes mitigation guidance for removed serivces
- housekeeping: Address mkdocs warnings with due to changing emoji library
- change maven build to use --strict flag to prevent mkdoc regressions

Signed-off-by: Jody Garnett <[email protected]>

* Update docs/manual/docs/maintainer-guide/updating/index.md

* Update docs/manual/docs/maintainer-guide/updating/index.md

* Update docs/manual/docs/maintainer-guide/updating/index.md

* Update docs/manual/docs/maintainer-guide/updating/index.md

* Update docs/manual/docs/maintainer-guide/updating/index.md

* Update doc typos

---------

Signed-off-by: Jody Garnett <[email protected]>
Co-authored-by: Jose García <[email protected]>
Affected API calls:
* http://localhost:8080/geonetwork/srv/api/records/720ceda7-a9ea-4bbe-896a-04925c44a7f0/formatters/xyz
* http://localhost:8080/geonetwork/srv/api/records/720ceda7-a9ea-4bbe-896a-04925c44a7f0/related?type=thumbnails&type=onlines

For testing, add a record with 2 online resources. Add withheld attribute to one of them, call the related API.
Sometimes 1 or 2 links are returned (it does not happen always, but usually if accessing the same API call with a browser and Curl using the same session the problem can be observed). A variable was set using ThreadLocal which looks to be the cause of this. It was noticed while opening the editor not always listing all distribution links.

The Formatter API has a `hide_withheld` parameter to hide with held elements even if the user is allowed to see them. The application is not using this parameter, and opening an incognito window can be used to check if with held elements are properly removed.

This change propose to remove the ThreadLocal variable and only rely on user session and edits rights of the current user to hide or not with held elements.
@wangf1122 wangf1122 closed this Feb 9, 2024
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.