This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split metadata.select services and include where appropriate
- Loading branch information
1 parent
86b66b5
commit 21e9531
Showing
5 changed files
with
82 additions
and
99 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
.. _metadata_xml_select: | ||
|
||
Metadata Select Services | ||
======================== | ||
|
||
These services are for creating and managing a set of selected metadata records. The selected set is normally used by the metadata.batch services eg. :ref:`metadata.batch.update.privileges`, :ref:`metadata.batch.newowner`. | ||
|
||
.. include:: metadata_xml_select_include.rst |
64 changes: 64 additions & 0 deletions
64
eng/developer/source/xml_services/metadata_xml_select_include.rst
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,64 @@ | ||
Request to metadata.select service | ||
`````````````````````````````````` | ||
|
||
Parameters: | ||
|
||
- **id**: Identifier of metadata to select (can be more than one) | ||
|
||
- **selected**: Selection state. Values: add, add-all, remove, remove-all | ||
|
||
Select all metadata example:: | ||
|
||
Url: | ||
http://localhost:8080/geonetwork/srv/en/metadata.select | ||
|
||
Mime-type: | ||
application/xml | ||
|
||
Post request: | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<request> | ||
<selected>add-all</selected> | ||
</request> | ||
|
||
Select a metadata record example:: | ||
|
||
Url: | ||
http://localhost:8080/geonetwork/srv/en/metadata.select | ||
|
||
Mime-type: | ||
application/xml | ||
|
||
Post request: | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<request> | ||
<id>2</id> | ||
<selected>add</selected> | ||
</request> | ||
|
||
Clear metadata selection example:: | ||
|
||
Url: | ||
http://localhost:8080/geonetwork/srv/en/metadata.select | ||
|
||
Mime-type: | ||
application/xml | ||
|
||
Post request: | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<request> | ||
<selected>remove-all</selected> | ||
</request> | ||
|
||
Response from metadata.select service | ||
````````````````````````````````````` | ||
|
||
The response contains the number of metadata records selected. | ||
|
||
Example:: | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<request> | ||
<Selected>10</Selected> | ||
</request> | ||
|