Skip to content

lido-cli is a php-cli command line tool to process Lido xml data to ldjson with ability to adjust it to different sources and output schemes.

License

Notifications You must be signed in to change notification settings

ubleipzig/lido-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIDO CLI

Lido Cli is a command line tool to process LIDO xml data for SOLR import.

Installation

Clone repository via git. Change to root directory of lido-cli and execute:

composer install

to load all dependencies via composer.

Make sure you have mbstring extension enabled.

Usage

To get an first overview over functions move to lido-cli/src and call

php ./lido-cli.php -h

to list available usage.

To run the lido-cli programme please note that the (-i|--import) parameter is required with a valid LIDO XML source file.

php ./lido-cli.php -i /path/to/lido-xml

Lido Cli follows the concept to be scalable in two directions to keep usability to manage different Lido sources.

  1. Run the output to a given Solr scheme with parameter (-s|schema)
  2. To process or normalize possible various LIDO xml interpretation (-r|record)
php ./lido-cli.php -i /path/to/lido-xml -r daphne -s vufind

The example will process Daphne LIDO data of Staatliche Kunstsammlungen Dresden toward the VuFind Solr schema. If no parameter indicated the programme outputs native data of the NatLibFi LidoRecord class.

Output

Output depends on given parameter (-e|--export) for an data directory where to store output in as line delimited json (*.ldj).

If no export parameter given lido-cli outputs Solr arrays on the screen for example evaluating processed content by the fly.

License

General Public License 3 or later; See also the LICENSE.txt file.

About

lido-cli is a php-cli command line tool to process Lido xml data to ldjson with ability to adjust it to different sources and output schemes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published