module TulOhist

  module Datastreams
  
    class GeographicDatastream < ActiveFedora::OmDatastream

      set_terminology do |t|
        t.root(path: "fields")
        t.geographic_subject(:index_as=>[:facetable, :stored_searchable], :type=>:string) 
        t.organization_building(:index_as=>[:facetable, :stored_searchable], :type=>:string) 
      end 

      def self.xml_template
        Nokogiri::XML.parse("<fields/>")
      end

      def prefix
        ""
      end
    
    end

  end
end
