Sha256: bed74a43f364cd604be52088e6acec924086ec141f28c70c885251d0b31d4108

Contents?: true

Size: 630 Bytes

Versions: 45

Compression:

Stored size: 630 Bytes

Contents

require 'open-uri'
require 'nokogiri'

module Qa::Authorities
  module Oclcts
    require 'qa/authorities/oclcts/generic_oclc_authority'
    extend AuthorityWithSubAuthority

    def self.subauthority_for(subauthority)
      validate_subauthority!(subauthority)
      GenericOclcAuthority.new(subauthority)
    end

    SRU_SERVER_CONFIG = YAML.load_file(Rails.root.join("config", "oclcts-authorities.yml"))

    def self.subauthorities
      SRU_SERVER_CONFIG["authorities"].map { |subauthority| subauthority[0] }
    end

    def self.url_pattern(query_type)
      SRU_SERVER_CONFIG["url-pattern"][query_type]
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
qa-5.14.0 lib/qa/authorities/oclcts.rb
qa-5.13.0 lib/qa/authorities/oclcts.rb
qa-5.12.0 lib/qa/authorities/oclcts.rb
qa-5.11.0 lib/qa/authorities/oclcts.rb
qa-5.10.0 lib/qa/authorities/oclcts.rb
qa-5.9.0 lib/qa/authorities/oclcts.rb
qa-5.8.1 lib/qa/authorities/oclcts.rb
qa-5.8.0 lib/qa/authorities/oclcts.rb
qa-5.7.0 lib/qa/authorities/oclcts.rb
qa-5.6.0 lib/qa/authorities/oclcts.rb
qa-5.5.2 lib/qa/authorities/oclcts.rb
qa-4.3.0 lib/qa/authorities/oclcts.rb
qa-3.1.0 lib/qa/authorities/oclcts.rb
qa-2.3.0 lib/qa/authorities/oclcts.rb
qa-5.5.1 lib/qa/authorities/oclcts.rb
qa-5.5.0 lib/qa/authorities/oclcts.rb
qa-5.4.0 lib/qa/authorities/oclcts.rb
qa-5.3.1 lib/qa/authorities/oclcts.rb
qa-5.3.0 lib/qa/authorities/oclcts.rb
qa-5.2.0 lib/qa/authorities/oclcts.rb