rdfs:comment"The resource being displayed."^^xsd:string;
spl:optional"true"^^xsd:boolean;
spl:predicatearg:resource;
spl:valueTyperdfs:Resource
];
ui:prototype
[rdf:typehtml:Div;
html:class"appHeader"^^xsd:string;
let:type
[rdf:typeapp:resourceType;
arg:resource
[sp:varName"resource"^^xsd:string
]
];
ui:child
[rdf:typehtml:Div;
html:class"appTop"^^xsd:string;
...
...
@@ -1702,11 +1711,6 @@ app:FormHeader
ui:text[sp:varName"label"^^xsd:string
]
];
ui:child
[rdf:typeui:TextNode;
ui:childIndex1;
ui:text" "^^xsd:string
];
ui:childIndex0
];
ui:childIndex0;
...
...
@@ -1716,36 +1720,6 @@ app:FormHeader
]
]
];
ui:child
[rdf:typeui:if;
ui:child
[rdf:typeui:TextNode;
ui:childIndex0;
ui:text[rdf:typeui:label;
sp:arg1[sp:varName"resource"^^xsd:string
]
]
];
ui:child
[rdf:typeui:TextNode;
ui:childIndex1;
ui:text" - "^^xsd:string
];
ui:childIndex1;
ui:condition
[rdf:typesp:bound;
sp:arg1[sp:varName"resource"^^xsd:string
]
]
];
ui:child
[rdf:typeui:TextNode;
ui:childIndex2;
ui:text[rdf:typeui:label;
sp:arg1[sp:varName"type"^^xsd:string
]
]
];
ui:childIndex0
];
ui:child
...
...
@@ -3155,7 +3129,7 @@ app:ObjectFacetRow
ui:child
[rdf:typehtml:Input;
html:name
[rdf:typefn:concat;
[rdf:typeui:concat;
sp:arg1"facet"^^xsd:string;
sp:arg2[sp:varName"uid"^^xsd:string
]
...
...
@@ -4325,6 +4299,13 @@ app:SearchForm
spl:predicatearg:resultsId;
spl:valueTypexsd:string
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"If set to true, the form will have a drop down selection in the top where users can switch to a subclass of the resource type."^^xsd:string;
spl:optional"true"^^xsd:boolean;
spl:predicatearg:typeSelectable;
spl:valueTypexsd:boolean
];
ui:prototype
[rdf:typeui:setContext;
let:fid[rdf:typesp:if;
...
...
@@ -4337,21 +4318,44 @@ app:SearchForm
sp:arg3[rdf:typeui:uniqueId
]
];
ui:child
[rdf:typeui:setContext;
ui:child
[rdf:typeui:setContext;
let:lid[rdf:typeui:uniqueId
];
ui:child
[rdf:typeapp:FormHeader;
arg:label"Search"^^xsd:string;
ui:childIndex0
];
ui:child
[rdf:typeui:if;
ui:child
[rdf:typeapp:SearchFormTypeSwitch;
arg:loadId
[sp:varName"lid"^^xsd:string
];
arg:resourceType
[sp:varName"resourceType"^^xsd:string
];
ui:childIndex0
];
ui:childIndex1;
ui:condition
[sp:varName"typeSelectable"^^xsd:string
]
];
ui:child
[rdf:typeui:loadable;
html:class"ui-layout-content"^^xsd:string;
ui:cache"true"^^xsd:boolean;
ui:child
[rdf:typeui:setContext;
ui:child
[rdf:typeui:setContext;
ui:child
[rdf:typehtml:Form;
html:autocomplete"off"^^xsd:string;
html:class
[rdf:typeui:concat;
sp:arg1"appForm ui-layout-content "^^xsd:string;
sp:arg1"appForm "^^xsd:string;
sp:arg2[rdf:typesp:if;
sp:arg1[rdf:typesp:or;
sp:arg1[rdf:typesp:not;
...
...
@@ -4479,7 +4483,22 @@ app:SearchForm
];
ui:childIndex4
];
ui:childIndex1
ui:childIndex0
];
ui:childIndex0;
ui:varName"createLinkFunction"^^xsd:string;
ui:varValueapp:createNewTabLink
];
ui:childIndex0;
ui:varName"resourceType"^^xsd:string;
ui:varValue
[sp:varName"resourceType"^^xsd:string
]
];
ui:childIndex2;
ui:loadId
[sp:varName"lid"^^xsd:string
]
];
ui:child
[rdf:typehtml:Div;
...
...
@@ -4517,20 +4536,193 @@ app:SearchForm
html:value"Reset"^^xsd:string;
ui:childIndex2
];
ui:childIndex2
ui:childIndex3
];
ui:varName"mode"^^xsd:string;
ui:varValue"search"^^xsd:string
].
app:SearchFormTypeSwitch
rdf:typeui:NodeClass;
rdfs:comment"If the given resource type has at least one subclass, then this will display a drop down box where the user can select a class. This will reload the ui:loadable (form body) with the selected type. Future versions may also display a button that opens a tree dialog."^^xsd:string;
rdfs:label"Search form type switch"^^xsd:string;
rdfs:subClassOfapp:FormElements;
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The ui:loadId of the body of the form."^^xsd:string;
spl:predicatearg:loadId;
spl:valueTypexsd:string
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The root class for the search form."^^xsd:string;