-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 4.2.x] WebDav harvester / Add support for XSLT filter proce…
…ss (#8423) * WebDav harvester / Add support for XSLT filter process * Documentation / update documentation for harvesters and add Geonetwork 2.1-3.X harvester page * WebDav harvester / Use current date for metadata change date if can't be retrieved from the remote metadata * Documentation / remove Z39.50 harvester documentation. The harvester is no longer available in GeoNetwork 4.x * Documentation / Unify harvesters configuration * Update web-ui/src/main/resources/catalog/templates/admin/harvest/type/webdav.html Co-authored-by: François Prunayre <fx.prunayre@gmail.com> * Update harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/webdav/Harvester.java Co-authored-by: François Prunayre <fx.prunayre@gmail.com> * HarvesterUtil / Use conversions from schema (#106) Cf #6772 --------- Co-authored-by: Jose García <josegar74@gmail.com> Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
- Loading branch information
1 parent
0af6926
commit 5251764
Showing
37 changed files
with
599 additions
and
537 deletions.
There are no files selected for viewing
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
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
9 changes: 9 additions & 0 deletions
9
docs/manual/docs/user-guide/harvesting/harvesting-geonetwork-2.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# GeoNetwork 2.0 Harvester {#gn2_harvester} | ||
|
||
## Upgrading from GeoNetwork 2.0 Guidance | ||
|
||
GeoNetwork 2.1 introduced a new powerful harvesting engine which is not compatible with GeoNetwork version 2.0 based catalogues. | ||
|
||
* Harvesting metadata from a v2.0 server requires this harvesting type. | ||
* Old 2.0 servers can still harvest from 2.1 servers | ||
* Due to the fact that GeoNetwork 2.0 is no longer suitable for production use, this harvesting type is deprecated. |
46 changes: 40 additions & 6 deletions
46
docs/manual/docs/user-guide/harvesting/harvesting-geonetwork.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
# GeoNetwork 2.0 Harvester {#gn2_harvester} | ||
# GeoNetwork 2.1-3.X Harvester | ||
|
||
## Upgrading from GeoNetwork 2.0 Guidance | ||
This harvester will connect to a remote GeoNetwork server that uses versions from 2.1-3.X and retrieve metadata records that match the query parameters. | ||
|
||
GeoNetwork 2.1 introduced a new powerful harvesting engine which is not compatible with GeoNetwork version 2.0 based catalogues. | ||
## Adding a GeoNetwork 2.1-3.X harvester | ||
|
||
* Harvesting metadata from a v2.0 server requires this harvesting type. | ||
* Old 2.0 servers can still harvest from 2.1 servers | ||
* Due to the fact that GeoNetwork 2.0 is no longer suitable for production use, this harvesting type is deprecated. | ||
To create a GeoNetwork 2.1-3.X harvester go to `Admin console` > `Harvesting` and select `Harvest from` > `GeoNetwork (from 2.1 to 3.x)`: | ||
|
||
![](img/add-geonetwork-3-harvester.png) | ||
|
||
Providing the following information: | ||
|
||
- **Identification** | ||
- *Node name and logo*: A unique name for the harvester and, optionally, a logo to assign to the harvester. | ||
- *Group*: Group which owns the harvested records. Only the catalog administrator or users with the profile `UserAdmin` of this group can manage the harvester. | ||
- *User*: User who owns the harvested records. | ||
|
||
- **Schedule**: Scheduling options to execute the harvester. If disabled, the harvester must be run manually from the harvester page. If enabled, a scheduling expression using cron syntax should be configured ([See examples](https://www.quartz-scheduler.org/documentation/quartz-2.1.7/tutorials/crontrigger)). | ||
|
||
- **Configure connection to GeoNetwork (from 2.1 to 3.x)** | ||
- *Catalog URL*: | ||
- The remote URL of the GeoNetwork server from which metadata will be harvested. The URL should contain the catalog name, for example: http://www.fao.org/geonetwork. | ||
- Additionally, it should be configured the node name, usually the value `srv`. | ||
- *Search filter*: (Optional) Define the filter to retrieve the remote metadata. | ||
- *Catalog*: (Optional) Select the portal in the remote server to harvest. | ||
|
||
- **Configure response processing for GeoNetwork** | ||
- *Action on UUID collision*: When a harvester finds the same uuid on a record collected by another method (another harvester, importer, dashboard editor,...), should this record be skipped (default), overriden or generate a new UUID? | ||
- *Remote authentication*: If checked, should be provided the credentials for basic HTTP authentication on the WebDAV/WAF server. | ||
- *Use full MEF format*: If checked, uses MEF format instead of XML to retrieve the remote metadata. Recommended to metadata with files. | ||
- *Use change date for comparison*: If checked, uses change date to detect changes on remote server. | ||
- *Set category if it exists locally*: If checked, uses the category set on the metadata in the remote server also locally (assuming it exists locally). Applies only when using MEF format for the harvesting. | ||
- *Category*: (Optional) A GeoNetwork category to assign to each metadata record. | ||
- *XSL filter name to apply*: (Optional) The XSL filter is applied to each metadata record. The filter is a process which depends on the schema (see the `process` folder of the schemas). | ||
|
||
It could be composed of parameter which will be sent to XSL transformation using the following syntax: `anonymizer?protocol=MYLOCALNETWORK:FILEPATH&email=gis@organisation.org&thesaurus=MYORGONLYTHEASURUS` | ||
|
||
- *Validate records before import*: Defines the criteria to reject metadata that is invalid according to XML structure (XSD) and validation rules (schematron). | ||
- Accept all metadata without validation. | ||
- Accept metadata that are XSD valid. | ||
- Accept metadata that are XSD and schematron valid. | ||
|
||
- **Privileges** - Assign privileges to harvested metadata. |
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
Oops, something went wrong.