Sha256: 5db7b71c2033d3ba5fc62ae4fc34e6b019396f2bfcea61c2221d85afd08c94b1

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

# Copyright © 2012 The Pennsylvania State University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'active_fedora'

module Hydra
  class CollectionRdfDatastream < ActiveFedora::NtriplesRDFDatastream
    map_predicates do |map|
      map.title(:in => RDF::DC) do |index|
        index.as :stored_searchable
      end
      map.description(:in => RDF::DC) do |index|
        index.type :text
        index.as :stored_searchable
      end
      map.date_uploaded(:to => "dateSubmitted", :in => RDF::DC) do |index|
        index.type :date
        index.as :stored_sortable
      end
      map.date_modified(:to => "modified", :in => RDF::DC) do |index|
        index.type :date
        index.as :stored_sortable
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-collections-0.0.2 lib/hydra/datastreams/collection_rdf_datastream.rb
hydra-collections-0.0.1 lib/hydra/datastreams/collection_rdf_datastream.rb