1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <document name="collectionobjects">
4 <ns2:collectionobjects_common
5 xmlns:ns2="http://collectionspace.org/services/collectionobject">
6 <objectNumber>${objectNumber}</objectNumber>
7 </ns2:collectionobjects_common>
9 <ns3:relations-common-list xmlns:ns3="http://collectionspace.org/services/relation"
10 xmlns:ns2="http://collectionspace.org/services/jaxb">
12 <!-- Create a hierarchical relationship between an item, -->
13 <!-- its parent, and one child -->
16 ${itemCSID} is a convention understood by the Relations service,
17 which is replaced by the CSID of the item being created. (This
18 applies to all items, including object and procedural records,
19 not just to authority item records).
21 As such, ${itemCSID} does NOT get expanded by XmlReplay.
22 It passes through, and then the service deals with it.
25 <!-- Create a relationship between this item and its parent -->
27 <!-- The item being created, above ... -->
29 <csid>${itemCSID}</csid>
30 <documentType>CollectionObject</documentType>
32 <!-- ... has a hasBroader relationship to ... -->
33 <predicate>hasBroader</predicate>
34 <!-- ... its parent item -->
36 <csid>${parentCSID}</csid>
37 <documentType>CollectionObject</documentType>
41 <!-- Create a relationship between this item and a child -->
43 <!-- A child item ... -->
45 <csid>${childCSID}</csid>
46 <documentType>CollectionObject</documentType>
48 <!-- ... has a hasBroader relationship to ... -->
49 <predicate>hasBroader</predicate>
50 <!-- ... its parent item: the item being created above -->
52 <csid>${itemCSID}</csid>
53 <documentType>CollectionObject</documentType>
57 </ns3:relations-common-list>