2017 © Pedro Peláez
 

library ref-lib-ris

RIS is a format for reference metadata

image

funstaff/ref-lib-ris

RIS is a format for reference metadata

  • Friday, January 6, 2017
  • by Garfield-fr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 715 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

RefLibRis

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version License SensioLabsInsight, (*1)

This library provide a writer to RIS data format., (*2)

Installation

  1. Follow the instructions at http://packagist.org
  2. In your new project, create a composer.json file which requires RefLibRis:
{
  "require": {
    "funstaff/ref-lib-ris": ">=2.0"
  }
}

Use

<?php

namespace ...;

use Funstaff\RefLibRis\RecordProcessing;
use Funstaff\RefLibRis\RisDefinition;
use Funstaff\RefLibRis\RisMappings;
use Funstaff\RefLibRis\RisWriter;

$mapping = [
    'DEFAULT' => [
        'TY' => ['type'],
        'AU' => ['author'],
        'TI' => ['title', 'title_secondary'],
    ],
    'BOOK' => [
        'TY' => ['type'],
        'AU' => ['author'],
        'TI' => ['title', 'title_secondary'],
        'ID' => ['recordid']
    ]
];

$recordDb = [
    'title' => ['History of the CDC PY - 1999'],
    'author' => ['Behrens, J.', 'Behrens, A.'],
    'type' => ['BOOK']
];

$risMappings = new RisMappings($mapping, 'DEFAULT');
$recordProcessing = new RecordProcessing($risMappings);
$record = $recordProcessing->process($recordDb);

$writer = new RisWriter(new RisDefinition());
$output = $writer->addRecord($record)->process();

Output:, (*3)

TY  - BOOK
AU  - Behrens, J.
AU  - Behrens, A.
TI  - History of the CDC PY - 1999
ER  -

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/RefLibRis/issues., (*4)

The Versions

06/01 2017

dev-master

9999999-dev https://github.com/funstaff/RefLibRis

RIS is a format for reference metadata

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

ris bibliography reference

05/01 2017

1.0.1

1.0.1.0 https://github.com/funstaff/RefLibRis

RIS is a format for reference metadata

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

ris bibliography reference

05/01 2017

1.0

1.0.0.0 https://github.com/funstaff/RefLibRis

RIS is a format for reference metadata

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

ris bibliography reference