Code Monkey home page Code Monkey logo

reflib's Introduction

RefLib

NOTICE: This module is depreciated in favour of the newer RefLib NPM. Please use that project instead.

PHP module for managing a variety of citation reference libraries.

At present this library can read/write the following citation library formats:

Installation

The easiest way to install is via Composer - composer require hashbang/reflib

If you wish to install without composer then download the source code, unzip it into a directory include the file in the normal way.

Examples

Read in EndNote XML

require('reflib.php');
$lib = new RefLib();
$lib->SetContentsFile('tests/data/endnote.xml');

print_r($lib->refs); // Outputs all processed refs in an associative array

Write EndNote XML

require('reflib.php');
$lib = new RefLib();
$lib->SetContentsFile('tests/data/endnote.xml'); // Read in content (or populate $lib->refs yourself)
$lib->GetContents('EndNote File.xml'); // Output file to the browser

File conversion

require('reflib.php');
$lib = new RefLib();
$lib->SetContentsFile('tests/data/endnote.xml'); // Read in content (or populate $lib->refs yourself)
$lib->GetContents('EndNote File.ris'); // Output file to the browser in RIS format

reflib's People

Contributors

danielbaird avatar hash-bang avatar jeromecaffaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

reflib's Issues

Change license?

IMNSHO, GPL is super onerous for this type of project. I see RefLib as a library, useful in larger programs, but the GPL requires that any larger program it is a part of also be released under GPL.
See http://en.wikipedia.org/wiki/GPL#Linking_and_derived_works

Much preferable, in my mind is LGPL, which requires modifications to the library to be shared, but not the larger program which it is a part of.

Another alternative is MIT-style license.

Please change the license?

Missing RIS data fields

I downloaded this .ris file from Google Scholar.

Seems like the Authors are encoded as A1 and the journal as JO. Can you please update the driver to read those fields?

TY - JOUR
T1 - Insights into the molecular architecture of the 26S proteasome
A1 - Nickell, Stephan
A1 - Beck, Florian
A1 - Scheres, Sjors HW
A1 - Korinek, Andreas
A1 - Förster, Friedrich
A1 - Lasker, Keren
A1 - Mihalache, Oana
A1 - Sun, Na
A1 - Nagy, István
A1 - Sali, Andrej
JO - Proceedings of the National Academy of Sciences
VL - 106
IS - 29
SP - 11943
EP - 11947
SN - 0027-8424
Y1 - 2009
PB - National Acad Sciences
ER -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.