Skip to content

Commit

Permalink
#24 eml-ipt relatedProject in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-podolskiy90 committed Jul 11, 2024
1 parent d691629 commit 7b01386
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions gbif-metadata-profile-eml/src/main/resources/templates/eml-ipt.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -509,29 +509,6 @@
<role>${personnel.role!}</role>
</personnel>
</#list>
<#list (eml.project.relatedProjects)! as relatedProject>
<relatedProject>
<title>${relatedProject.title}</title>
<#list (relatedProject.personnel)! as relatedProjectPersonnel>
<personnel>
<individualName>
<#if (relatedProjectPersonnel.getFirstName())??>
<givenName>${relatedProjectPersonnel.firstName}</givenName>
</#if>
<surName>${relatedProjectPersonnel.lastName!}</surName>
</individualName>
<#if (relatedProjectPersonnel.userIds?size>0)>
<#list relatedProjectPersonnel.userIds as userId>
<#if userId.identifier?has_content && userId.directory?has_content>
<userId directory="${userId.directory}">${userId.identifier}</userId>
</#if>
</#list>
</#if>
<role>${relatedProjectPersonnel.role!}</role>
</personnel>
</#list>
</relatedProject>
</#list>
<#if eml.project.description?has_content>
<abstract>
<para>${eml.project.description}</para>
Expand Down Expand Up @@ -572,6 +549,29 @@
</description>
</designDescription>
</#if>
<#list (eml.project.relatedProjects)! as relatedProject>
<relatedProject>
<title>${relatedProject.title}</title>
<#list (relatedProject.personnel)! as relatedProjectPersonnel>
<personnel>
<individualName>
<#if (relatedProjectPersonnel.getFirstName())??>
<givenName>${relatedProjectPersonnel.firstName}</givenName>
</#if>
<surName>${relatedProjectPersonnel.lastName!}</surName>
</individualName>
<#if (relatedProjectPersonnel.userIds?size>0)>
<#list relatedProjectPersonnel.userIds as userId>
<#if userId.identifier?has_content && userId.directory?has_content>
<userId directory="${userId.directory}">${userId.identifier}</userId>
</#if>
</#list>
</#if>
<role>${relatedProjectPersonnel.role!}</role>
</personnel>
</#list>
</relatedProject>
</#list>
</project>
</#if>
</dataset>
Expand Down

0 comments on commit 7b01386

Please sign in to comment.