public/models/aeon_record_mapper.rb
# Pulls data from AppConfig and ASpace System
Pulls data from AppConfig and ASpace System
Pulls data from AppConfig and ASpace System
def system_information
        mappings = {}
        mappings['SystemID'] =
            if (!self.repo_settings[:aeon_external_system_id].blank?)
                self.repo_settings[:aeon_external_system_id]
            else
                "ArchivesSpace"
            end
        return_url =
            if (!AppConfig[:public_proxy_url].blank?)
                AppConfig[:public_proxy_url]
            elsif (!AppConfig[:public_url].blank?)
                AppConfig[:public_url]
            else
                ""
            end
        mappings['ReturnLinkURL'] = "#{return_url}#{self.record['uri']}"
        mappings['ReturnLinkSystemName'] =
            if (!self.repo_settings[:aeon_return_link_label].blank?)
                self.repo_settings[:aeon_return_link_label]
            else
                "ArchivesSpace"
            end
        mappings['Site'] = self.repo_settings[:aeon_site_code] if self.repo_settings.has_key?(:aeon_site_code)
        return mappings
    end
def system_information mappings = { } mappings [ 'SystemID' ] = if ( ! self . repo_settings [ :aeon_external_system_id ] . blank? ) self . repo_settings [ :aeon_external_system_id ] else "ArchivesSpace" end return_url = if ( ! AppConfig [ :public_proxy_url ] . blank? ) AppConfig [ :public_proxy_url ] elsif ( ! AppConfig [ :public_url ] . blank? ) AppConfig [ :public_url ] else "" end mappings [ 'ReturnLinkURL' ] = "#{return_url}#{self.record['uri']}" mappings [ 'ReturnLinkSystemName' ] = if ( ! self . repo_settings [ :aeon_return_link_label ] . blank? ) self . repo_settings [ :aeon_return_link_label ] else "ArchivesSpace" end mappings [ 'Site' ] = self . repo_settings [ :aeon_site_code ] if self . repo_settings . has_key? ( :aeon_site_code ) return mappings end
Pulls data from AppConfig and ASpace System
Pulls data from AppConfig and ASpace System