This module produces and exports files in marcxml format from selected resources according to a defined mapping.
The complete documentation of MarcXmlExport can be found here.
This module export a set of selected resources in a marcxml file which can be easily downloadable after.
-
Omeka S >= 3.1.0
-
The export path is currently hard-coded, so it is necessary to create a directory here :
mkdir OMEKAS_DIR\files\Marc_XML_Export
- Add the module to Omeka S
- Login to the admin interface, and use it.
Actually this module includes an 'Unimarc' mapping and a specific one for Bokeh exchange but you can also add your own custom mapping by adding on module.config.php
:
'marcxmlexport_mapping' => [
'factories' => [
'your_mapping' => Path\To\Your\Mapping::class,
],
],
Then, choose the type of export (type of resource to export + mapping to use) and it will be launched the background task.
You can download your exports from the Past Exports page via the download icon link.
A script to clean up the files stored in /files/Marc_XML_Export/
can be launched from the command line by specifying a 'date' argument corresponding to the deadline for which you want to keep the exports.
~/tools/omeka-s/job-start --user-id X --job-class 'MarcXmlExport\JobRemoveFilesJob' --job-args '{"date": "<YEAR>-<MONTH>-<DAY>"}'
exports prior to this date will be deleted from the MarcXmlExport module table and the files in the /files/Marc_XML_Export/
directory will also be deleted.
You can contribute to this module by adding issues directly here.
Contributors:
MarcXmlExport is distributed under the GNU General Public License, version 3. The full text of this license is given in the LICENSE file.
Created by BibLibre.