@@ -26,6 +26,7 @@ class AddProjectForm extends React.Component {
2626 formGenRepositoryUrl : '' ,
2727 serviceUrl : '' ,
2828 appRepositoryUrl : '' ,
29+ recordRecognitionSPARQL : '' ,
2930 showSuccess : false ,
3031 showError : false
3132 }
@@ -45,7 +46,8 @@ class AddProjectForm extends React.Component {
4546 projectName : this . state . projectName ,
4647 formGenRepositoryUrl : this . state . formGenRepositoryUrl ,
4748 formGenServiceUrl : this . state . serviceUrl ,
48- appRepositoryUrl : this . state . appRepositoryUrl
49+ appRepositoryUrl : this . state . appRepositoryUrl ,
50+ recordRecognitionSPARQL : this . state . recordRecognitionSPARQL
4951 } ) . then ( ( ) => {
5052 this . props . addProject ( this . state . projectName )
5153 this . messageForm . reset ( ) ;
@@ -91,6 +93,13 @@ class AddProjectForm extends React.Component {
9193 < Form . Control type = "text" placeholder = "App Repository URL" name = "appRepositoryUrl"
9294 onChange = { this . onChangeSetState } />
9395 </ Form . Group >
96+ < Form . Group controlId = "formBasicAppRecordRecognitionSPARQL" >
97+ < Form . Label > Record recognition SPARQL</ Form . Label >
98+ < Form . Control as = "textarea"
99+ placeholder = "SELECT ?recordCreateDate ?recordModifiedDate ?remoteRecordURI ?question"
100+ name = "recordRecognitionSPARQL" rows = { 5 }
101+ onChange = { this . onChangeSetState } />
102+ </ Form . Group >
94103 < Button variant = "primary" type = "submit" >
95104 Submit
96105 </ Button >
0 commit comments