Skip to content

Commit 345f614

Browse files
committed
Revert removing unused author-bulletin and add author-minutes
1 parent 354187e commit 345f614

File tree

3 files changed

+86
-59
lines changed

3 files changed

+86
-59
lines changed

dspace/config/entities/sistedes-relationship.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,31 @@
4242
</rightCardinality>
4343
<copyToLeft>true</copyToLeft>
4444
</type>
45+
<!-- Relationships below are not really used, but are required since DSpace expects entities with relationships -->
46+
<type>
47+
<leftType>Boletín</leftType>
48+
<rightType>Autor</rightType>
49+
<leftwardType>isAuthorOfBulletin</leftwardType>
50+
<rightwardType>isBulletinOfAuthor</rightwardType>
51+
<leftCardinality>
52+
<min>0</min>
53+
</leftCardinality>
54+
<rightCardinality>
55+
<min>0</min>
56+
</rightCardinality>
57+
<copyToLeft>true</copyToLeft>
58+
</type>
59+
<type>
60+
<leftType>Acta</leftType>
61+
<rightType>Autor</rightType>
62+
<leftwardType>isAuthorOfMinutes</leftwardType>
63+
<rightwardType>isMinutesOfAuthor</rightwardType>
64+
<leftCardinality>
65+
<min>0</min>
66+
</leftCardinality>
67+
<rightCardinality>
68+
<min>0</min>
69+
</rightCardinality>
70+
<copyToLeft>true</copyToLeft>
71+
</type>
4572
</relationships>

dspace/config/registries/sistedes-types.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,56 @@
183183
<scope_note>(Sistedes specific) Contains all uuids of SEMINARS which link to the current AUTHOR via a "latest" relationship. In other words, this stores all relationships pointing to the current AUTHOR from a SEMINAR, implying that the AUTHOR is marked as "latest". Internally used by DSpace to support versioning. Do not manually add, remove or edit values.</scope_note>
184184
</dc-type>
185185

186+
<dc-type>
187+
<schema>relation</schema>
188+
<element>isAuthorOfBulletin</element>
189+
<scope_note>(Sistedes specific) Contains all uuids of the "latest" AUTHORS that the current BULLETIN links to via a relationship. In other words, this stores all relationships pointing from the current BULLETIN to any AUTHOR where the AUTHOR is marked as "latest". Internally used by DSpace. Do not manually add, remove or edit values.</scope_note>
190+
</dc-type>
191+
192+
<dc-type>
193+
<schema>relation</schema>
194+
<element>isAuthorOfBulletin</element>
195+
<qualifier>latestForDiscovery</qualifier>
196+
<scope_note>(Sistedes specific) Contains all uuids of AUTHORS which link to the current BULLETIN via a "latest" relationship. In other words, this stores all relationships pointing to the current BULLETIN from an AUTHOR, implying that the BULLETIN is marked as "latest". Internally used by DSpace to support versioning. Do not manually add, remove or edit values.</scope_note>
197+
</dc-type>
198+
199+
<dc-type>
200+
<schema>relation</schema>
201+
<element>isBulletinOfAuthor</element>
202+
<scope_note>(Sistedes specific) Contains all uuids of the "latest" BULLETINS that the current AUTHOR links to via a relationship. In other words, this stores all relationships pointing from the current AUTHOR to any BULLETIN where the BULLETIN is marked as "latest". Internally used by DSpace. Do not manually add, remove or edit values.</scope_note>
203+
</dc-type>
204+
205+
<dc-type>
206+
<schema>relation</schema>
207+
<element>isBulletinOfAuthor</element>
208+
<qualifier>latestForDiscovery</qualifier>
209+
<scope_note>(Sistedes specific) Contains all uuids of BULLETINS which link to the current AUTHOR via a "latest" relationship. In other words, this stores all relationships pointing to the current AUTHOR from a BULLETIN, implying that the AUTHOR is marked as "latest". Internally used by DSpace to support versioning. Do not manually add, remove or edit values.</scope_note>
210+
</dc-type>
211+
212+
<dc-type>
213+
<schema>relation</schema>
214+
<element>isAuthorOfMinutes</element>
215+
<scope_note>(Sistedes specific) Contains all uuids of the "latest" AUTHORS that the current MINUTES links to via a relationship. In other words, this stores all relationships pointing from the current MINUTES to any AUTHOR where the AUTHOR is marked as "latest". Internally used by DSpace. Do not manually add, remove or edit values.</scope_note>
216+
</dc-type>
217+
218+
<dc-type>
219+
<schema>relation</schema>
220+
<element>isAuthorOfMinutes</element>
221+
<qualifier>latestForDiscovery</qualifier>
222+
<scope_note>(Sistedes specific) Contains all uuids of AUTHORS which link to the current MINUTES via a "latest" relationship. In other words, this stores all relationships pointing to the current MINUTES from an AUTHOR, implying that the MINUTES is marked as "latest". Internally used by DSpace to support versioning. Do not manually add, remove or edit values.</scope_note>
223+
</dc-type>
224+
225+
<dc-type>
226+
<schema>relation</schema>
227+
<element>isMinutesOfAuthor</element>
228+
<scope_note>(Sistedes specific) Contains all uuids of the "latest" MINUTES that the current AUTHOR links to via a relationship. In other words, this stores all relationships pointing from the current AUTHOR to any MINUTES where the MINUTES is marked as "latest". Internally used by DSpace. Do not manually add, remove or edit values.</scope_note>
229+
</dc-type>
230+
231+
<dc-type>
232+
<schema>relation</schema>
233+
<element>isMinutesOfAuthor</element>
234+
<qualifier>latestForDiscovery</qualifier>
235+
<scope_note>(Sistedes specific) Contains all uuids of MINUTES which link to the current AUTHOR via a "latest" relationship. In other words, this stores all relationships pointing to the current AUTHOR from a MINUTES, implying that the AUTHOR is marked as "latest". Internally used by DSpace to support versioning. Do not manually add, remove or edit values.</scope_note>
236+
</dc-type>
237+
186238
</dspace-dc-types>

dspace/config/spring/api/virtual-metadata.xml

Lines changed: 7 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
<entry key="isIssueOfJournalVolume" value-ref="isIssueOfJournalVolumeMap"/>
2323
<entry key="isJournalIssueOfPublication" value-ref="isJournalIssueOfPublicationMap"/>
2424
<!-- BEGIN: Sistedes -->
25-
<entry key="isAuthorOfPaper" value-ref="isAuthorOfPaperMap"/>
26-
<entry key="isAuthorOfAbstract" value-ref="isAuthorOfAbstractMap"/>
27-
<entry key="isAuthorOfSeminar" value-ref="isAuthorOfSeminarMap"/>
25+
<entry key="isAuthorOfPaper" value-ref="isAuthorOfPublicationMap"/>
26+
<entry key="isAuthorOfAbstract" value-ref="isAuthorOfPublicationMap"/>
27+
<entry key="isAuthorOfSeminar" value-ref="isAuthorOfPublicationMap"/>
28+
<entry key="isAuthorOfBulletin" value-ref="isAuthorOfPublicationMap"/>
29+
<entry key="isAuthorOfMinutes" value-ref="isAuthorOfPublicationMap"/>
2830
<!-- END: Sistedes -->
2931
</map>
3032
</property>
@@ -40,6 +42,8 @@
4042
<entry key="Paper" value="f.entityType=Artículo,equals"/>
4143
<entry key="Abstract" value="f.entityType=Resumen,equals"/>
4244
<entry key="Seminar" value="f.entityType=Seminario,equals"/>
45+
<entry key="Bulletin" value="f.entityType=Boletín,equals"/>
46+
<entry key="Minutes" value="f.entityType=Acta,equals"/>
4347
<!-- END: Sistedes -->
4448
</map>
4549
</property>
@@ -264,60 +268,4 @@
264268
<property name="virtualMetadataConfiguration" ref="volumeJournal_uuid"/>
265269
</bean>
266270
<bean class="org.dspace.content.virtual.UUIDValue" id="volumeJournal_uuid"/>
267-
268-
<!-- BEGIN: Sistedes -->
269-
<util:map id="isAuthorOfPaperMap">
270-
<entry key="dc.contributor.author" value-ref="paperAuthor_author"/>
271-
</util:map>
272-
<bean class="org.dspace.content.virtual.Concatenate" id="paperAuthor_author">
273-
<property name="fields">
274-
<util:list>
275-
<value>person.familyName</value>
276-
<value>person.givenName</value>
277-
<value>organization.legalName</value>
278-
</util:list>
279-
</property>
280-
<property name="separator">
281-
<value>, </value>
282-
</property>
283-
<property name="useForPlace" value="true"/>
284-
<property name="populateWithNameVariant" value="true"/>
285-
</bean>
286-
287-
<util:map id="isAuthorOfAbstractMap">
288-
<entry key="dc.contributor.author" value-ref="abstractAuthor_author"/>
289-
</util:map>
290-
<bean class="org.dspace.content.virtual.Concatenate" id="abstractAuthor_author">
291-
<property name="fields">
292-
<util:list>
293-
<value>person.familyName</value>
294-
<value>person.givenName</value>
295-
<value>organization.legalName</value>
296-
</util:list>
297-
</property>
298-
<property name="separator">
299-
<value>, </value>
300-
</property>
301-
<property name="useForPlace" value="true"/>
302-
<property name="populateWithNameVariant" value="true"/>
303-
</bean>
304-
305-
<util:map id="isAuthorOfSeminarMap">
306-
<entry key="dc.contributor.author" value-ref="seminarAuthor_author"/>
307-
</util:map>
308-
<bean class="org.dspace.content.virtual.Concatenate" id="seminarAuthor_author">
309-
<property name="fields">
310-
<util:list>
311-
<value>person.familyName</value>
312-
<value>person.givenName</value>
313-
<value>organization.legalName</value>
314-
</util:list>
315-
</property>
316-
<property name="separator">
317-
<value>, </value>
318-
</property>
319-
<property name="useForPlace" value="true"/>
320-
<property name="populateWithNameVariant" value="true"/>
321-
</bean>
322-
<!-- END: Sistedes -->
323271
</beans>

0 commit comments

Comments
 (0)