Sha256: 29309a2eff8749130f3239d59f6ceafb1be5045993cfdf674e46338a5dda4fac
Contents?: true
Size: 374 Bytes
Versions: 25
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true 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
25 entries across 25 versions & 1 rubygems