GithubHelp home page GithubHelp logo

onebutton's Introduction

OneButton

OneButton is a link resolving application designed to streamline resource sharing for consortia. OneButton can be used to replace multiple resource sharing options with a single request button, which checks available group circulation holdings and availability and routes the user to the appropriate fulfillment request form (either ILL or placehold/group circulation request form).

OneButton was designed for the WorldCat Local/Discovery environment and relies on the OCLC Availability API, but could be adapted using any library service platform with a holdings/availability API that displays group holdings.

Requirements

  • PHP 5.6+
  • Composer
  • A WSKey for the OCLC WMS Availability API
  • The OCLC PHP Auth Library

Installation

At the application (domain) root, install dependencies with Composer. Sample composer.json file:

{
  "name" : "MyApp",
  "repositories":
  [
    {
      "type": "git",
      "url": "https://github.com/OCLC-Developer-Network/oclc-auth-php.git"
    }
  ],
  "require" :
  {
    "OCLC/Auth" : ">=3.0"
  }
}

Create a subdirectory for each institution and clone this repository in that subdirectory.

The application's base URL will look like this:

http://somewebsite.edu/institution/link.php?

Within the institution's subdirectory, copy config.php.sample to config.php and fill in all values.

Most values can be obtained from the OCLC Developer's Network and are associated with your WSKey credentials.

Testing

You can test the application prior to implementing by appending a well-formed OpenURL request to the base URL of your application, for example:

http://somewebsite.edu/institution/link.php?url_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.genre=book&rft_id=info%3Aoclcnum%2F54987177&rft_id=urn%3AISBN%3A9780195285062&rft.btitle=The+book+of+common+prayer+%3A+and+administration+of+the+sacraments+and+other+rites+and+ceremonies+of+the+church&rft.date=1993&rft.isbn=9780195285062&rft.aucorp=Episcopal+Church.&rft.place=New+York&rft.pub=Oxford+University+Press&req_dat=&rfe_dat=54987177

Implementation

You can set up OneButton for WorldCat Local or Discovery in OCLC Service Configuration.

  • Set up the base URL of your OneButton installation as an OpenURL 1.0 link resolver
  • Reference the OneButton OpenURL Resolver you set up under Resource Sharing (Any Level) and give it a label (suggested label: Get It)
  • OneButton is designed to only work with print book materials. Under the fulfillment button display settings, set the OneButton resolver to only display for monographs owned by your resource sharing network. Use general ILL fulfillment buttons for other types (serials, articles, etc.). You can also set it up to display for monographs regardless of ownership (i.e., if you own it, the resource sharing network owns it, or it is not owned at all - OneButton will direct users to the ILL form you indicate in config.php.

onebutton's People

Contributors

lpmagnuson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

onebutton's Issues

500 error

Hello,

Trying to set this up for the first time. We're a WorldCat Discovery library. The only step in the README that I skipped was setting up directories for each consortium member, as we're (I'm) the only one trying to use it thus far. Do I need to do that anyway?

When testing it with the following link, I get a 500 error:

http://onebutton.wallacelibrary.org/whe/link.php?url_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.genre=book&rft_id=info%3Aoclcnum%2F55981782&rft_id=urn%3AISBN%3A9780684872544&rft.aulast=Smith&rft.aufirst=Martin&rft.btitle=Wolves+eat+dogs+%3A+a+novel&rft.date=2004&rft.isbn=9780684872544&rft.place=New+York&rft.pub=Simon+%26+Schuster&rft.identifier=PS3569.M5377+W65+2004&rft_dat={%22stdrt1%22%3A%22Book%22%2C%22stdrt2%22%3A%22PrintBook%22}&req_id=info:rfa/oclc/institutions/1412&req_dat=&rfe_dat=55981782

Any advice you might have would be greatly appreciated!

Thanks,
Thomas

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.