Sha256: 681c3babcd621697b5900d209786eaf244fc70493d24f6174d09511e6cf1e78a

Contents?: true

Size: 379 Bytes

Versions: 25

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Zotero
    def self.config
      @config ||= reload_config!
    end

    def self.reload_config!
      @config = YAML.safe_load(ERB.new(IO.read(Rails.root.join('config', 'zotero.yml'))).result)['zotero']
    end

    def self.publications_url(zotero_userid)
      "/users/#{zotero_userid}/publications/items"
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/hyrax/zotero/config.rb
hyrax-5.0.0 lib/hyrax/zotero/config.rb
hyrax-5.0.0.rc3 lib/hyrax/zotero/config.rb
hyrax-5.0.0.rc2 lib/hyrax/zotero/config.rb
hyrax-5.0.0.rc1 lib/hyrax/zotero/config.rb
hyrax-3.6.0 lib/hyrax/zotero/config.rb
hyrax-4.0.0 lib/hyrax/zotero/config.rb
hyrax-4.0.0.rc3 lib/hyrax/zotero/config.rb
hyrax-4.0.0.rc2 lib/hyrax/zotero/config.rb
hyrax-4.0.0.rc1 lib/hyrax/zotero/config.rb
hyrax-3.5.0 lib/hyrax/zotero/config.rb
hyrax-4.0.0.beta2 lib/hyrax/zotero/config.rb
hyrax-3.4.2 lib/hyrax/zotero/config.rb
hyrax-4.0.0.beta1 lib/hyrax/zotero/config.rb
hyrax-3.4.1 lib/hyrax/zotero/config.rb
hyrax-3.4.0 lib/hyrax/zotero/config.rb
hyrax-3.3.0 lib/hyrax/zotero/config.rb
hyrax-3.2.0 lib/hyrax/zotero/config.rb
hyrax-3.1.0 lib/hyrax/zotero/config.rb
hyrax-3.0.2 lib/hyrax/zotero/config.rb