Sha256: 45641d3e564213ed498db31eb71f4e321cf0efacbf47dd03c7b6ed7ce4b32b6e

Contents?: true

Size: 366 Bytes

Versions: 16

Compression:

Stored size: 366 Bytes

Contents

module Sufia
  module CitationsBehaviors
    module CommonBehavior
      def persistent_url(work)
        "#{Sufia.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

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.4.0 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.3.1 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.3.0 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.3.0.rc3 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.3.0.rc2 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.3.0.rc1 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.2.0 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.1.0 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0.rc2 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0.rc1 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0.beta4 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0.beta3 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0.beta2 app/helpers/sufia/citations_behaviors/common_behavior.rb
sufia-7.0.0.beta1 app/helpers/sufia/citations_behaviors/common_behavior.rb