File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
dicoogle/src/main/resources/webapp/js Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import * as PropTypes from "prop-types" ;
3
3
import { ResultsSelected } from "../../stores/resultSelected" ;
4
+ import { SearchStore } from "../../stores/searchStore" ;
4
5
import Webcore from "dicoogle-webcore" ;
5
6
6
7
export default class PluginForm extends React . Component {
@@ -39,9 +40,12 @@ export default class PluginForm extends React.Component {
39
40
node . addEventListener ( "hide" , this . handleHideSignal ) ;
40
41
41
42
Webcore . emitSlotSignal (
42
- node ,
43
- "result-selection-ready" ,
44
- ResultsSelected . get ( )
43
+ node ,
44
+ "result-selection-ready" ,
45
+ {
46
+ "selected" : ResultsSelected . get ( ) ,
47
+ "search" : SearchStore . get ( )
48
+ }
45
49
) ;
46
50
}
47
51
}
Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ const SearchStore = Reflux.createStore({
92
92
data : this . _contents ,
93
93
success : true
94
94
} ) ;
95
+ } ,
96
+
97
+ get : function ( ) {
98
+ return {
99
+ data : this . _contents
100
+ } ;
95
101
}
96
102
} ) ;
97
103
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ This section documents each possible type of web UI plugin. Note that not all of
181
181
- ** result-option** : Result option plugins are used to provide advanced operations to a result entry. If the user activates
182
182
_ "Advanced Options"_ in the search results view, these plugins will be attached into a new column, one for each visible result entry.
183
183
- ** result-batch** : Result batch plugins are used to provide advanced operations over an existing list of results. These plugins will
184
- attach a button (named with the plugin's caption property), which will pop-up a division below the search result view.
184
+ attach a button (named with the plugin's caption property), which appear in a division below the search result view.
185
185
- ** settings** : Settings plugins can be used to provide addition management information and control. These plugins will be attached to
186
186
the _ "Plugins & Services"_ tab in the _ Management_ menu.
187
187
- ** query** : _ (currently unsupported)_ Create different query user interfaces. Once supported, they will be
@@ -257,6 +257,7 @@ Full list of events that can be used by plugins and the webapp. _(Work in Progre
257
257
258
258
- "load" : Emitted when a plugin package is retrieved.
259
259
- "result" : Emitted when a list of search results is obtained from the search interface.
260
+ - "result-selection-ready" : Emitted on plugin mount for "result-batch" plugins. Provides current list of search results and selected entries.
260
261
261
262
## Installing Plugins
262
263
You can’t perform that action at this time.
0 commit comments