Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
173 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ddi:Fragment xmlns:r="ddi:reusable:3_2"> | ||
<Category isUniversallyUnique="true" versionDate="2016-08-31T11:22:22.6042781Z" isMissing="false" xmlns="ddi:logicalproduct:3_2"> | ||
<%= render 'exports/exploded_urn', object: category %> | ||
<r:Label> | ||
<r:Content xml:lang="en-GB"><%= category.label %></r:Content> | ||
</r:Label> | ||
</Category> | ||
</ddi:Fragment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<ddi:Fragment> | ||
<CodeList isUniversallyUnique="true" versionDate="<%= code_list.updated_at.iso8601 %>"> | ||
<%= render 'exports/exploded_urn', object: code_list %> | ||
<r:Label><r:Content xml:lang="en-GB"><%= code_list.label %></r:Content></r:Label> | ||
<% code_list.codes.each do | code | %> | ||
<%= render 'codes/item', code: code %> | ||
<% end %> | ||
<r:ResponseCardinality minimumResponses="<%= response_domain.min_responses || 1 %>" maximumResponses="<%= response_domain.max_responses || 1 %>"/> | ||
</CodeList> | ||
</ddi:Fragment> | ||
|
||
<% code_list.categories.each do | category | %> | ||
<%= render "categories/fragment", category: category %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Code isUniversallyUnique="true"> | ||
<%= render 'exports/exploded_urn', object: code %> | ||
<% if code.category %> | ||
<r:CategoryReference> | ||
<%= render 'exports/exploded_urn', object: code.category %> | ||
</r:CategoryReference> | ||
<% end %> | ||
<r:Value><%= code.value %></r:Value> | ||
</Code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<r:URN><%= object.urn %></r:URN> | ||
<r:Agency><%= object.exploded_urn.agency %></r:Agency> | ||
<r:ID><%= object.exploded_urn.id %></r:ID> | ||
<r:Version><%= object.exploded_urn.version %></r:Version> | ||
<r:TypeOfObject><%= object.exploded_urn.type_of_object %></r:TypeOfObject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ddi:FragmentInstance xmlns:r="ddi:reusable:3_2" xmlns:ddi="ddi:instance:3_2"> | ||
<ddi:Fragment> | ||
<QuestionItem isUniversallyUnique="true" versionDate="<%= @question_item.updated_at.iso8601 %>"> | ||
<%= render 'exports/exploded_urn', object: @question_item %> | ||
<QuestionItemName> | ||
<r:String xml:lang="en-GB"><%= @question_item.label %></r:String> | ||
</QuestionItemName> | ||
<QuestionText audienceLanguage="en-GB"> | ||
<LiteralText> | ||
<Text><%= @question_item.literal %></Text> | ||
</LiteralText> | ||
</QuestionText> | ||
<% if @question_item.response_domains.count > 1 %> | ||
<StructuredMixedResponseDomain> | ||
<% @question_item.response_domains.each do | rd | %> | ||
<ResponseDomainInMixed> | ||
<%= render "response_domains/#{rd.model_name.param_key}", response_domain: rd %> | ||
</ResponseDomainInMixed> | ||
<% end %> | ||
</StructuredMixedResponseDomain> | ||
<% else %> | ||
<%= render "response_domains/#{@question_item.response_domains.first.model_name.param_key}", response_domain: @question_item.response_domains.first %> | ||
<% end %> | ||
</QuestionItem> | ||
</ddi:Fragment> | ||
<% @question_item.response_domain_codes.each do | rd | %> | ||
<%= render "code_lists/fragment", code_list: rd.code_list, response_domain: rd %> | ||
<% end %> | ||
</ddi:FragmentInstance> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<CodeDomain blankIsMissingValue="false"> | ||
<r:CodeListReference> | ||
<%= render 'exports/exploded_urn', object: response_domain.code_list %> | ||
</r:CodeListReference> | ||
<r:ResponseCardinality minimumResponses="<%= response_domain.min_responses || 1 %>" maximumResponses="<%= response_domain.max_responses || 1 %>"/> | ||
</CodeDomain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<DateTimeDomain blankIsMissingValue="false"> | ||
<r:DateTypeCode>Date</r:DateTypeCode> | ||
</DateTimeDomain> |
10 changes: 10 additions & 0 deletions
10
app/views/response_domains/_response_domain_numeric.xml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<NumericDomain blankIsMissingValue="false"> | ||
<r:Label><%= response_domain.label %></r:Label> | ||
<r:NumberRange> | ||
<r:Low isInclusive="false"><%= response_domain.min %></r:Low> | ||
<% if response_domain.max %> | ||
<r:High isInclusive="false"><%= response_domain.max %></r:High> | ||
<% end %> | ||
</r:NumberRange> | ||
<r:NumericTypeCode><%= response_domain.numeric_type %></r:NumericTypeCode> | ||
</NumericDomain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<TextDomain blankIsMissingValue="false" <% if response_domain.maxlen %>maxLength="<%= response_domain.maxlen %>"<%end%> minLength="0"> | ||
<r:Label><%= response_domain.label %></r:Label> | ||
</TextDomain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...est-3e34aab618d758e4a4d1742987632931.json → ...est-56bbbf237927aadfafad20c8c21696da.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+853 KB
...d703f70a2200eaab00ced462c244e7c2b05.js.gz → ...2e0761fa219fe20b4deb3e172ed30614adb.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+12.8 KB
...ets/sections/index-79ee564bdb0260a453f2deffa91208bac20e875ea7e552790b81095d563e791e.js.gz
Binary file not shown.
Binary file removed
BIN
-12.8 KB
...ets/sections/index-820bc7129cf332a0db79325b8d10ef06c3eaabb60e7f1ed4500c3018ae74c94d.js.gz
Binary file not shown.
Binary file removed
BIN
-7.64 KB
.../instruments/index-21dac8c4df87252be44a270b0eb876c78422d0ab788496d379930b53476fc678.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+7.7 KB
.../instruments/index-ea8571646cc410bcad35430d2741966b7dae257a412aa6a6aba184dec8f64e1d.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1015 Bytes
...d/controllers/base-5e097bfa7f8a307e54369cfe3dbd3fb55795275ce9b110c41a59811646af40f7.js.gz
Binary file not shown.
Binary file removed
BIN
-949 Bytes
...d/controllers/base-c09776660bd8fb67dd5ebfdf1d056b19098caa0b72f1134b6cb92a2ebb7ab764.js.gz
Binary file not shown.
Binary file removed
BIN
-6.21 KB
...odules/build/index-110c8d83f555d05c9c985480b5bd0519d0eebb09e969dad449960d6b09e28f59.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+6.26 KB
...odules/build/index-45b46d11fd165d6f539655a89d6d7fee85154f2d7f651fc4ad1f9302b8da299b.js.gz
Binary file not shown.
Binary file removed
BIN
-6.69 KB
...ents/modules/index-6b74aa5d527cbcaff7bbfde9226c468832f4ea32ac5fdb24887ea6ed7bc6f02f.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+6.74 KB
...ents/modules/index-db44807862a70a18ed6f76105eb85f6def2b479af01f7d133fadcf6882cfb071.js.gz
Binary file not shown.
Binary file removed
BIN
-603 Bytes
...als/build/editor-231c48e88cb0b8201b3572943c240c65a21f1328b065daa39684518d60b8d0b0.html.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+666 Bytes
...als/build/editor-599e64000333a04a6a0aeda3d817f6ab191461cf1969a6c56a20deb8f04d6712.html.gz
Binary file not shown.