<% unless pedigree.source_documents.empty? && pedigree.source_documents.empty?%> <% pedigree.source_documents.each do |source| %> <% if source.author %> <%== render :partial => "author", locals: {author: source.author }%> <% end %> <%= source.organization %> <% end %> <% pedigree.source_documents.each do |doc|%> targetExtension="<%=doc.extension%>" <% end %>><%= doc.uri %> <% end %> <% end %> <% if pedigree.author %> <%== render :partial => "author", locals: {author: pedigree.author }%> <% end %> <% if pedigree.organization %> <%= pedigree.organization %> <% end %>