ActiveFedora >= v7.0

You do have to override the existing predicate behavior.


On Tue, Jul 15, 2014 at 10:54 AM, Adam Wead <notifications@github.com>
wrote:

> In lib/active_fedora_relsint/rdf_xml_writer.rb:
>
> > +      #   Predicate to serialize
> > +      # @param [Array<RDF::Resource>] objects
> > +      #   Objects to serialize
> > +      # @return [String]
> > +      def predicate(predicate, objects)
> > +        add_debug {"predicate: #{predicate.inspect}, objects: #{objects}"}
> > +
> > +        return if objects.to_a.empty?
> > +
> > +        add_debug {"predicate: #{get_curie(predicate)}"}
> > +        render_property(predicate, objects) do |o, inlist=nil|
> > +          # Yields each object, for potential recursive definition.
> > +          # If nil is returned, a leaf is produced
> > +          #depth {subject(o, :rel => get_curie(predicate), :inlist => inlist, :element => (:li if objects.length > 1 || inlist))} if !is_done?(o) && @subjects.include?(o)
> > +          # we don't ever want to recurse, so nil it all
> > +          nil
>
> This doesn't seem to be doing anything, so why not remove? Or does it need
> to be there for explanation?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/projecthydra-labs/active_fedora_relsint/pull/3/files#r14938931>
> .
>