Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest fixes from Rob #710

Merged
merged 17 commits into from
Oct 22, 2020
Merged
7 changes: 6 additions & 1 deletion components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,9 @@ class VFBMain extends React.Component {
}}
focusTermRef={this.focusTermReference}
exclude={["ClassQueriesFrom", "Debug"]}
order={['Name',
order={['Symbol',
'Title',
'Name',
'Label',
'Alternative Names',
'Types',
Expand Down Expand Up @@ -1238,6 +1239,10 @@ class VFBMain extends React.Component {
idsList = idList[list].replace("i=","") + idsList;
} else if (idList[list].indexOf("q=") > -1) {
this.urlQueryLoader = idList[list].replace("q=","").replace("%20", " ").split(",");
// if no other ids are loaded the query target is added.
if (idsList.length == 0 && this.urlQueryLoader.length > 1) {
idsList = this.urlQueryLoader[0];
}
}
}

Expand Down
34 changes: 26 additions & 8 deletions components/configuration/VFBMain/queryBuilderConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ var queryResultsColMeta = [
"sortDirectionCycle": ['asc', 'desc', null]
},
{
"columnName": "type",
"columnName": "gross_type",
"order": 6,
"locked": false,
"visible": true,
"displayName": "Type",
"cssClassName": "query-results-type-column",
"displayName": "Gross_Type",
"cssClassName": "query-results-grosstype-column",
"sortDirectionCycle": ['asc', 'desc', null]
},
{
Expand All @@ -106,9 +106,27 @@ var queryResultsColMeta = [
"sortDirectionCycle": ['asc', 'desc', null]
},
{
"columnName": "controls",
"columnName": "template",
"order": 9,
"locked": false,
"visible": true,
"displayName": "Template_Space",
"cssClassName": "query-results-template-column",
"sortDirectionCycle": ['asc', 'desc', null]
},
{
"columnName": "technique",
"order": 10,
"locked": false,
"visible": true,
"displayName": "Imaging_Technique",
"cssClassName": "query-results-technique-column",
"sortDirectionCycle": ['asc', 'desc', null]
},
{
"columnName": "controls",
"order": 11,
"locked": false,
"visible": false,
"customComponent": QueryResultsControlsComponent,
"displayName": "Controls",
Expand All @@ -118,7 +136,7 @@ var queryResultsColMeta = [
},
{
"columnName": "images",
"order": 10,
"order": 12,
"locked": false,
"visible": true,
"customComponent": SlideshowImageComponent,
Expand All @@ -129,7 +147,7 @@ var queryResultsColMeta = [
},
{
"columnName": "score",
"order": 11,
"order": 13,
"locked": false,
"visible": true,
"displayName": "Score",
Expand All @@ -138,7 +156,7 @@ var queryResultsColMeta = [
},
{
"columnName": "image_count",
"order": 12,
"order": 14,
"locked": false,
"visible": true,
"displayName": "Image_count",
Expand All @@ -148,7 +166,7 @@ var queryResultsColMeta = [
];

// which columns to display in the results
var queryResultsColumns = ['name', 'expressed_in', 'description', 'reference', 'type', 'stage', 'license', 'images', 'score','image_count'];
var queryResultsColumns = ['name', 'type', 'expressed_in', 'description', 'reference', 'gross_type', 'stage', 'license', 'template', 'technique', 'controls', 'images', 'score','image_count'];

var queryResultsControlConfig = {
"Common": {
Expand Down
10 changes: 5 additions & 5 deletions components/configuration/VFBOverview/quickHelp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"height": "575",
"width": "900",
"steps": [{
"title": "This is the Slice Viewer frame",
"title": "This is the Slice Viewer tab",
"image" : "geppetto/build/slice-viewer.png",
"instructions": [{
"icon" : "",
Expand All @@ -28,7 +28,7 @@
"label" : "Toggles the slice position on the 3D Viewer on/off"
}]
},{
"title": "This is the 3D Viewer frame",
"title": "This is the 3D Viewer tab",
"image" : "geppetto/build/3d-viewer.png",
"instructions": [{
"icon" : "",
Expand All @@ -47,17 +47,17 @@
"label" : "Home resets your view"
},{
"icon" : "fa fa-video-camera",
"label" : "The camera icon starts/stops a rotation animation the scene"
"label" : "The camera icon starts/stops a rotation animation of the scene"
},{
"icon" : "gpt-sphere_wireframe-jpg",
"label" : "The sphere icon toggles wireframes on/off"
}]
},{
"title": "This is the Term Info frame",
"title": "This is the Term Info tab",
"image" : "geppetto/build/term-info.png",
"instructions": [{
"icon" : "",
"label" : "Term Info displays information on the currently selected painted anatomy region, neuron or expression pattern"
"label" : "Term Info displays information on the currently selected painted anatomy region, neuron, expression pattern or non-image term definitions"
},{
"icon" : "fa fa-hand-pointer-o",
"label" : "Click on thumbnails to add that image to the viewer"
Expand Down
4 changes: 2 additions & 2 deletions components/configuration/VFBToolbar/vfbtoolbarHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ var feedback
+ "[<a href='https://github.com/VirtualFlyBrain/VFB2' target='_blank'>VirtualFlyBrain/VFB2</a>].</p>"
+ "<p>If you have a GitHub account you can easily raise a new issue: "
+ "<form id='GitHubIssue' method='get' action='https://github.com/VirtualFlyBrain/VFB2/issues/new' target='_blank'>"
+ "<input type='hidden' name='body' value=%0A%0A%0A%0A%0A%0ASupport%20info%3A%0A$DATE$%0A$BROWSER$%20$VERSION$%20%5B$SCREEN$%5D%0A$URL$%0A%0A%60%60%60diff%0A$LOG$%0A%60%60%60%0A' />"
+ "<input type='submit' value='Create GitHub Issue'></form>"
+ "<input type='hidden' name='body' value='%0A%0A%0A%0A%0A%0ASupport%20info%3A%0A$DATE$%0A$BROWSER$%20$VERSION$%20%5B$SCREEN$%5D%0A$URL$%0A%0A%60%60%60diff%0A$LOG$%0A%60%60%60%0A' />"
+ "<input type='submit' value='Create GitHub Issue' style='color: black; border-color: darkcyan;'></form>"
+ "</p>"
+ "<p> This could simply be a question or a new feature request, but if you have found a bug we missed please copy in "
+ "the page address and system details listed below to help us resolve any issue as quickly as possible."
Expand Down
Loading