RefLibRisBundle
, (*1)
This bundle provide an interface for Funstaff RefLibRis, (*2)
Configuration
Minimal configuration, (*3)
ref_lib_ris:
fallback: 'default'
mappings:
default:
TY: ['type']
AU: ['creator', 'author']
SN: ['isbn', 'issn']
BOOK:
TY: ['type']
AU: ['creator', 'author']
...
Full configuration, (*4)
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., (*5)