Archived / Obsolete Documentation

Documentation in this space is no longer accurate.
Looking for official DSpace documentation? See all documentation

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

We installed the Cantaloupe Image Server on one of our test boxes.

We configured the image server to use an HttpResolver to retrieve bitstream assets from DSpace.  This was configured through the delegates.rb file of the server.

delegates.rb
 module HttpResolver

    ##
    # @param identifier [String] Image identifier: [Handle Prefix]_[Handle Suffix]_[Bitstream Sequence]
    # @return [String,nil] URL of the image corresponding to the given
    #                      identifier, or nil if not found.
    #
    def self.get_url(identifier)
		identifier.gsub(/^([0-9]+)_([0-9]+)_([0-9]+).*/, "https://repository-dev.library.georgetown.edu/bitstream/handle/\\1/\\2/?sequence=\\3")
    end



  • No labels