Sha256: 4d5a5ca892954e04ace21ff0e80d7b67346d5cb70799bccb86f2048b13444455

Contents?: true

Size: 454 Bytes

Versions: 29

Compression:

Stored size: 454 Bytes

Contents

module Hyrax
  # Provide select options for the license (dcterms:rights) field
  class LicenseService < QaSelectService
    def initialize
      super('licenses')
    end

    def include_current_value(value, _index, render_options, html_options)
      unless value.blank? || active?(value)
        html_options[:class] << ' force-select'
        render_options += [[label(value), value]]
      end
      [render_options, html_options]
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/services/hyrax/license_service.rb
hyrax-2.0.3 app/services/hyrax/license_service.rb
hyrax-2.1.0 app/services/hyrax/license_service.rb
hyrax-2.1.0.rc4 app/services/hyrax/license_service.rb
hyrax-2.1.0.rc3 app/services/hyrax/license_service.rb
hyrax-2.1.0.rc2 app/services/hyrax/license_service.rb
hyrax-2.1.0.rc1 app/services/hyrax/license_service.rb
hyrax-1.1.0 app/services/hyrax/license_service.rb
hyrax-2.1.0.beta2 app/services/hyrax/license_service.rb
hyrax-2.0.2 app/services/hyrax/license_service.rb
hyrax-2.1.0.beta1 app/services/hyrax/license_service.rb
hyrax-2.0.1 app/services/hyrax/license_service.rb
hyrax-2.0.0 app/services/hyrax/license_service.rb
hyrax-2.0.0.rc3 app/services/hyrax/license_service.rb
hyrax-2.0.0.rc2 app/services/hyrax/license_service.rb
hyrax-2.0.0.rc1 app/services/hyrax/license_service.rb
hyrax-1.0.5 app/services/hyrax/license_service.rb
hyrax-2.0.0.beta5 app/services/hyrax/license_service.rb
hyrax-2.0.0.beta4 app/services/hyrax/license_service.rb
hyrax-2.0.0.beta3 app/services/hyrax/license_service.rb