OpenWork-NZ / core-geonetwork

GeoNetwork repository
http://geonetwork-opensource.org/
GNU General Public License v2.0
0 stars 3 forks source link

Export records from Manage Directory #49

Closed alcinnz closed 3 years ago

alcinnz commented 3 years ago

There is no option provided by the UI for this.

alcinnz commented 3 years ago

Implemented in eab5a1be9b04c8be7a9c699898a77fb4121e9ce1 (also 50b8461fc3ec5de7fd1fbea9adee3727bed86ed4 & aac8e94d13f2a706b18e77afa809598f60584c2a) as a new action upon selected directory entries, by:

  1. Add a new menu option for it in selection-widget.html.
  2. Have it call a new function in MetadataActionService.js, which decides which URL to redirect to forwarding the selectionBucket.
  3. List zip.export service to gnHttpServices in CatalogService.js for it to generate the nonparameterized URL.
  4. List zip.export service in WEBINF/config.xml & WEBINF/config-security/config-security-mapping.xml to route those requests to a newly-defined class.
  5. Base the implementation of that class upon services/mef/Export class, using the session's SelectionManager to extract the checked UUIDs.

It has been tested that the exported can be directly imported back in!

P.S. Also works for metadata records & (sub)templates.