|
2 | 2 |
|
3 | 3 | ## Applying changes {#batch-process-apply} |
4 | 4 |
|
5 | | -Administrator user can use the catalog API to update a set of records with an XSLT transformation. The steps are the following: |
6 | | - |
7 | | -- Sign in as admin user |
8 | | -- Search records to be updated using the `q` service eg. select all templates in a specific standard: <http://localhost:8080/geonetwork/srv/eng/q?_schema=iso19115-3&_isTemplate=y> |
9 | | -- Select all records matching the search with <http://localhost:8080/geonetwork/srv/eng/metadata.select?selected=add-all> |
10 | | -- Trigger the process with <http://localhost:8080/geonetwork/srv/eng/md.processing.batch?process=my-custom-process> |
11 | | -- Check the progress report with <http://localhost:8080/geonetwork/srv/eng/md.processing.batch.report> |
12 | | - |
13 | | -At the end of the process, a summary describes: |
14 | | - |
15 | | -- Number of records to process |
16 | | -- Number of records to processed |
17 | | -- Number of records not found (in case one record gets deleted since the selection) |
18 | | -- Number of records with errors |
19 | | -- Number of records with process not defined in its standard |
20 | | -- Number of records that current user can't edit |
21 | | - |
22 | | -A process can also be applied to one metadata record using the `md.processing` service. eg. <http://localhost:8080/geonetwork/srv/eng/md.processing?uuid=46eac9e4-33cb-45b7-a104-7bcc8e654c98&process=keywords-mapper&search=water&replace=Water> |
23 | | - |
24 | | -Parameters are: |
25 | | - |
26 | | -- uuid or id: the metadata UUID or the metadata internal identifier |
27 | | -- process: The process identifier |
28 | | -- add other extra parameters depending on the process (see below). |
| 5 | +Editor users can use the catalog API to update a set of records with an XSLT transformation. The steps are the following: |
| 6 | + |
| 7 | +- Sign in as editor user or higher profile. |
| 8 | +- In the search page or the editor board page, select the metadata to be updated. |
| 9 | +- In the API page, use the process API http://localhost:8080/geonetwork/doc/api/index.html#/processes/processRecords where you can configure: |
| 10 | + - a set of metadata UUIDs to be updated or a search selection bucket. If you have done the selection from the search page use the bucket name `s101` or `e101` if you have done the selection from the editor board page and |
| 11 | + - the process to apply. |
| 12 | +- You can also use first in the API page, the preview API http://localhost:8080/geonetwork/doc/api/index.html#/processes/previewProcessRecords to preview the changes that will be applied, using the same parameters. |
29 | 13 |
|
30 | 14 | ## Adding batch process {#batch-process-add} |
31 | 15 |
|
|
0 commit comments