...
For example, change this:
Code Block |
---|
<xs:element name="currentLocation" type="xs:string"/>
<xs:element name="currentLocationFitness" type="xs:string"/>
<xs:element name="currentLocationNote" type="xs:string"/>
|
To this:
Code Block |
---|
<!-- This declares a container element for the list of groups -->
<xs:element name="currentLocationList" type="currentLocationList"/>
<!-- And at some other point in the file: -->
<!-- This declares that there will be 0 to n groups in that list, each contained within a separator element -->
<xs:complexType name="currentLocationList">
<xs:sequence>
<xs:element name="currentLocationGroup" type="currentLocationGroup" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- This defines the fields that will now be contained in the group -->
<xs:complexType name="currentLocationGroup">
<xs:sequence>
<xs:element name="currentLocation" type="xs:string"/>
<xs:element name="currentLocationFitness" type="xs:string"/>
<xs:element name="currentLocationNote" type="xs:string"/>
</xs:sequence>
</xs:complexType>
|
These changes to the schema files result in the creation of a multivalued group in the XML payloads for Intake records, sent to and from the Intake service, that looks something like this:
...
These changes to the schema files result in the creation of a multivalued group in the XML payloads for Intake records, sent to and from the Intake service, that looks something like this:
Code Block |
---|
Add the repeatable group to the secondary (JAXB) services schema file
...
In your browser, visit:
Code Block |
---|
(e.g. http://localhost:8180/chain/intake/uispec
for an Intake record, on a CollectionSpace system running on localhost
)
...
In your browser, visit:
Code Block |
---|
(e.g. http://localhost:8180/chain/intake/uischema
for an Intake record, on a CollectionSpace system running on localhost
)
...