Sha256: c8b8ea17a93d8acf4f3a692a2b11100654094e48d2d5b677e75b7cb313f721db

Contents?: true

Size: 344 Bytes

Versions: 35

Compression:

Stored size: 344 Bytes

Contents

module Hyrax
  module CitationsBehaviors
    module CommonBehavior
      def persistent_url(work)
        "#{Hyrax.config.persistent_hostpath}#{work.id}"
      end

      def clean_end_punctuation(text)
        return text[0, text.length - 1] if text && ([".", ",", ":", ";", "/"].include? text[-1, 1])
        text
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.9.5 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.9.4 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.9.3 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.9.2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.9.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.9.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.8.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.7.2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.7.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.7.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.6.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-3.0.0.pre.rc1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-3.0.0.pre.beta3 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.5.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.5.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-3.0.0.pre.beta2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.4.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-3.0.0.pre.beta1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.4.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb