Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Installing Zotero Components On a Mac

cam156 edited this page Oct 16, 2015 · 18 revisions
  1. Install Node
  brew install node
  1. Install arkivo-sufia
  mkdir arkivo-sufia
  cd archivo-sufia
  npm install arkivo-sufia hiredis arkivo
  1. Configure arkivo-sufia
  mkdir config
  vi config/default.json

Paste in default json

 {
    "arkivo": {
      "plugins": [ "arkivo-sufia" ]
    }
 }
  1. Check to make sure the sufia plugin is installed
   $(npm bin)/arkivo-plugins list

You should see the following output

  1 plugin(s) available.
  sufia: Synchronizes data to a Sufia host.
  1. Run arkivo-sufia

The following command will run arkivo in the current context and output debug information about what is happening as arkivo runs. Omit the DEBUG= if you do not wish to see the debug

  DEBUG=arkivo:*,zotero* $(npm bin)/arkivo up
  1. Configuring ScholarSphere for zotero

You will need an account on Zotero (see sites for the PSU account) and then go to zotero oauth to generate or retrieve a key.

Once you have the Client Secret and Client Key edit config/zotero.yml to include them

  1. Test the zotero Connection

Edit a user profile and you should see Zotero Profile as an option

  1. Clearing the zotero connection for a user

      > u = User.find_by(login:"cam156")
      > u.arkivo_subscription = nil;
      > u.zotero_token = nil;
      > u.zotero_userid = nil;
      > u.save
    
Clone this wiki locally