Skip to content

Commit

Permalink
CST-15084 Code fix after cherrypick (5) Test fix with new test forms …
Browse files Browse the repository at this point in the history
…and relation
  • Loading branch information
Mattia Vianelli committed Sep 20, 2024
1 parent b66ac72 commit 695139d
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 380 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,30 @@
</rightCardinality>
<copyToRight>true</copyToRight>
</type>
<type>
<leftType>Product</leftType>
<rightType>Person</rightType>
<leftwardType>isCreatorOfProduct</leftwardType>
<rightwardType>isProductOfCreator</rightwardType>
<leftCardinality>
<min>0</min>
</leftCardinality>
<rightCardinality>
<min>0</min>
</rightCardinality>
<copyToLeft>true</copyToLeft>
</type>
<type>
<leftType>Patent</leftType>
<rightType>Person</rightType>
<leftwardType>isInventorOfPatent</leftwardType>
<rightwardType>isPatentOfInventor</rightwardType>
<leftCardinality>
<min>0</min>
</leftCardinality>
<rightCardinality>
<min>0</min>
</rightCardinality>
<copyToLeft>true</copyToLeft>
</type>
</relationships>
20 changes: 20 additions & 0 deletions dspace-api/src/test/data/dspaceFolder/config/item-submission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<name-map community-handle="123456789/subcommunity-test" submission-name="subcommunitytest"/>
<name-map collection-handle="123456789/collection-test" submission-name="collectiontest"/>
<name-map collection-entity-type="CustomEntityType" submission-name="entitytypetest"/>
<name-map collection-handle="123456789/test-product" submission-name="producttestform"/>
<name-map collection-handle="123456789/test-patent" submission-name="patenttestform"/>
<name-map collection-handle="123456789/test-duplicate-detection" submission-name="test-duplicate-detection"/>
</submission-map>

Expand Down Expand Up @@ -304,6 +306,24 @@
<step id="collection"/>
</submission-process>

<submission-process name="producttestform">

<step id="collection"/>
<step id="productStep"/>
<step id="upload"/>
<step id="license"/>

</submission-process>

<submission-process name="patenttestform">

<step id="collection"/>
<step id="patentStep"/>
<step id="upload"/>
<step id="license"/>

</submission-process>

<submission-process name="test-duplicate-detection">
<step id="collection"/>
<step id="duplicates"/>
Expand Down
62 changes: 62 additions & 0 deletions dspace-api/src/test/data/dspaceFolder/config/submission-forms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,68 @@ it, please enter the types and the actual numbers or codes.</hint>
</row>
</form>

<form name="patentStep">
<row>
<relation-field>
<relationship-type>isInventorOf</relationship-type>
<search-configuration>person</search-configuration>
<repeatable>true</repeatable>
<label>Inventor</label>
<hint>Select the person who invented this patent.</hint>
<linked-metadata-field>
<dc-schema>dc</dc-schema>
<dc-element>contributor</dc-element>
<dc-qualifier>author</dc-qualifier>
<input-type>onebox</input-type>
</linked-metadata-field>
<externalsources>orcid</externalsources>
</relation-field>
</row>
<row>
<field>
<dc-schema>dc</dc-schema>
<dc-element>title</dc-element>
<dc-qualifier></dc-qualifier>
<repeatable>false</repeatable>
<label>Title</label>
<input-type>onebox</input-type>
<hint>Enter the main title of the item.</hint>
<required>You must enter a main title for this item.</required>
</field>
</row>
</form>

<form name="productStep">
<row>
<relation-field>
<relationship-type>isCreatorOf</relationship-type>
<search-configuration>person</search-configuration>
<repeatable>true</repeatable>
<label>Creator</label>
<hint>Select the person who created this product.</hint>
<linked-metadata-field>
<dc-schema>dc</dc-schema>
<dc-element>contributor</dc-element>
<dc-qualifier>author</dc-qualifier>
<input-type>onebox</input-type>
</linked-metadata-field>
<externalsources>orcid</externalsources>
</relation-field>
</row>
<row>
<field>
<dc-schema>dc</dc-schema>
<dc-element>title</dc-element>
<dc-qualifier></dc-qualifier>
<repeatable>false</repeatable>
<label>Title</label>
<input-type>onebox</input-type>
<hint>Enter the main title of the item.</hint>
<required>You must enter a main title for this item.</required>
</field>
</row>
</form>

</form-definitions>


Expand Down
Loading

0 comments on commit 695139d

Please sign in to comment.