Code Monkey home page Code Monkey logo

biblio-refbase's Introduction

Biblio::Refbase
===============

Biblio::Refbase is an object-oriented interface to refbase
Web Reference Database sites.

refbase (http://www.refbase.net/) is a web-based bibliographic manager
which can import and export references in various formats (including BibTeX,
Endnote, MODS and OpenOffice).


SYNOPSIS

    use Biblio::Refbase;

    my $refbase = Biblio::Refbase->new(
      url      => 'http://beta.refbase.net/',
      user     => '[email protected]',
      password => 'guest',
    );
    my $response = $refbase->search(
      keywords => 'baltic sea',    # Search in keywords.
      style    => 'Chicago',       # Set citation style.
    );
    if ($response->is_success) {   # all methods from
      if ($response->hits) {       # HTTP::Response
        print $response->content;  # available
      }
      else {
        print 'Nothing found!';
      }
    }
    else {
      print 'An error occurred: ', $response->status_line;
    }
    print "\n\n";

    $response = $refbase->upload(
      user       => '[email protected]',  # Switch user for
      password   => 'user',              # this request.
      show       => 1,                   # Return records
      format     => 'BibTeX',            # in BibTeX format.
      source_ids => [                    # Upload records
        'arXiv:cs/0106057',              # from arXiv.org
        'arXiv:cond-mat/0210361',        # via source IDs.
      ],
    );
    if ($response->is_success) {
      print 'Number of records imported: ', $response->rows   , "\n";
      print 'ID range of records: '       , $response->records, "\n";
      print "Records:\n\n",  $response->content;
    }

    # Upload records by supplying a string of content:
    # $response = $refbase->upload( content => $content );


INSTALLATION

To install this module, run the following commands:

    perl Makefile.PL
    make
    make test
    make install


DEPENDENCIES

This module requires these other modules:

    HTTP::Request::Common
    HTTP::Response
    HTTP::Status
    LWP::UserAgent
    Test::More 0.62+      (required by "make test")
    URI
    URI::QueryParam


DOCUMENTATION

After installing, you can find documentation for this module with
the perldoc command:

    perldoc Biblio::Refbase


COPYRIGHT AND LICENSE

Copyright (c) 2008-2011 Henning Manske. All rights reserved.

This module is free software. You can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/

This module is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

biblio-refbase's People

Contributors

hma avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

biblio-refbase's Issues

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.