funstaff/ref-lib-ris-bundle

Funstaff RefLibRisBundle

Installs: 802

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.0.2 2018-09-28 13:30 UTC

This package is auto-updated.

Last update: 2024-11-29 02:58:42 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version License SensioLabsInsight

This bundle provide an interface for Funstaff RefLibRis

Configuration

Minimal configuration

ref_lib_ris:
    fallback: 'default'
    mappings:
        default:
            TY: ['type']
            AU: ['creator', 'author']
            SN: ['isbn', 'issn']
        BOOK:
            TY: ['type']
            AU: ['creator', 'author']
            ...

Full configuration

ref_lib_ris:
    classes:
        ris_mappings: 'Funstaff\RefLibRis\RisMappings'
        record_processing: 'Funstaff\RefLibRis\RecordProcessing'
        ris_definition: 'Funstaff\RefLibRis\RisDefinition'
        ris_writer: 'Funstaff\RefLibRis\RisWriter'
    fallback: 'default'
    mappings:
        default:
            TY: ['type']
            AU: ['creator', 'author']
            SN: ['isbn', 'issn']
        BOOK:
            TY: ['type']
            AU: ['creator', 'author']
            ...

Use

$recordDb = [
    'type' => ['BOOK'],
    'author' => ['Book Author'],
    'title' => ['Book Title'],
];

record = $this->get('ref_lib_ris.record_processing')
            ->process($recordDb);
$ris = $this->get('ref_lib_ris.ris_writer')
            ->addRecord($record)
            ->process();

Found a bug

If you found a bug, please let me know. The best way is to file a report at http://github.com/funstaff/RefLibRisBundle/issues.