https://github.com/funstaff/reflibrisbundle
This bundle provide an interface for RefLibRis Lib
https://github.com/funstaff/reflibrisbundle
bundle endnote symfony-bundle
Last synced: 3 months ago
JSON representation
This bundle provide an interface for RefLibRis Lib
- Host: GitHub
- URL: https://github.com/funstaff/reflibrisbundle
- Owner: Funstaff
- License: mit
- Created: 2017-01-05T12:56:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T13:30:43.000Z (over 7 years ago)
- Last Synced: 2025-01-23T02:14:13.574Z (over 1 year ago)
- Topics: bundle, endnote, symfony-bundle
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RefLibRisBundle
===
[](https://travis-ci.org/Funstaff/RefLibRisBundle)
[](https://scrutinizer-ci.com/g/Funstaff/RefLibRisBundle/?branch=master)
[](https://scrutinizer-ci.com/g/Funstaff/RefLibRisBundle/?branch=master)
[](https://packagist.org/packages/funstaff/ref-lib-ris-bundle)
[](https://packagist.org/packages/funstaff/ref-lib-ris-bundle)
[](https://insight.sensiolabs.com/projects/f7eaf3b4-f3a8-4918-b701-8e5f8237cfba)
* Author: Bertrand Zuchuat
* License: MIT
This bundle provide an interface for [Funstaff RefLibRis](https://github.com/Funstaff/RefLibRis)
## Configuration
__Minimal configuration__
```yml
ref_lib_ris:
fallback: 'default'
mappings:
default:
TY: ['type']
AU: ['creator', 'author']
SN: ['isbn', 'issn']
BOOK:
TY: ['type']
AU: ['creator', 'author']
...
```
__Full configuration__
```yml
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
```php
$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](http://github.com/funstaff/RefLibRisBundle/issues).