Sha256: 4ee5a70332d4664a6641c09178d92f0777b7aae034bd2ec43b60455887eef211

Contents?: true

Size: 366 Bytes

Versions: 23

Compression:

Stored size: 366 Bytes

Contents

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

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

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.3 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-1.1.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.1.0.beta1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.rc3 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.rc2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.rc1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-1.0.5 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.beta5 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.beta4 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.beta3 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.beta2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-2.0.0.beta1 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-1.0.4 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-1.0.3 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-1.0.2 app/helpers/hyrax/citations_behaviors/common_behavior.rb
hyrax-1.0.1 app/helpers/hyrax/citations_behaviors/common_behavior.rb