Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto dev
  • Loading branch information
bastiao committed Nov 4, 2015
2 parents d75ca17 + dc96ea6 commit 12fc60f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,8 @@ var Search = React.createClass({
requestedQuery: params
})
},
isKeyword: function(freetext){
for(var i=0; i<DimFields.length;i++) {
if((freetext.indexOf(DimFields[i])) != -1) {
return true;
}
}
isKeyword: function(freetext) {
return !!freetext.match(/[^\s\\]:\S/);
},
isAutocompletOpened:function(){
if($('.ui-autocomplete').css('display')==='none'){return false;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var DimFields = [
,"StudyDate"
,"PatientTelephoneNumbers"
,"SOPInstanceUID"
,"PatientName"];
,"PatientName"
,"SliceLocation"];

export {DimFields};
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"react-bootstrap": "^0.25.2",
"react-bootstrap-table": "^0.9.17",
"react-imageloader": "~2.0.0",
"react-router": "^1.0.0-rc1",
"react-router": "^1.0.0-rc4",
"react-router-bootstrap": "^0.19.3",
"reflux": "^0.2.12",
"rimraf": "latest",
Expand All @@ -77,10 +77,10 @@
"css": "sass sass/dicoogle.scss:css/dicoogle.css",
"html": "htmlprocessor index-template.html -o index.html -e dist -s",
"debug": "parallelshell \"npm run js-debug\" \"npm run html-debug\"",
"js-debug": "NODE_ENV=development DICOOGLE_BASE_URL=\"http://localhost:8080\" browserify -d -r react -r dicoogle-webcore . > js/bundle.js",
"js-debug": "NODE_ENV=development browserify -d -r react -r dicoogle-webcore . > js/bundle.js",
"html-debug": "htmlprocessor index-template.html -o index.html -e dev -s",
"css:watch": "sass --watch sass/dicoogle.scss:css/dicoogle.css",
"js:watch": "NODE_ENV=development DICOOGLE_BASE_URL=\"http://localhost:8080\" watchify -o js/bundle.js -v -d -r react -r dicoogle-webcore .",
"js:watch": "NODE_ENV=development watchify -o js/bundle.js -v -d -r react -r dicoogle-webcore .",
"test": "jest",
"clean": "rimraf js/bundle.js js/bundle.min.js css/dicoogle.css css/dicoogle.css.map index.html"
},
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/main/java/pt/ua/dicoogle/sdk/IndexerInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface IndexerInterface extends DicooglePlugin {
* @param file directory or file to index
* @return a representation of the asynchronous indexation task
*/
public Task<Report> index(StorageInputStream file);
public Task<Report> index(StorageInputStream file, Object ... parameters);

/**
* Indexes multiple file paths to the database. Indexation procedures are asynchronous, and will return
Expand All @@ -49,7 +49,7 @@ public interface IndexerInterface extends DicooglePlugin {
* @param files a collection of directories and/or files to index
* @return a representation of the asynchronous indexation task
*/
public Task<Report> index(Iterable<StorageInputStream> files);
public Task<Report> index(Iterable<StorageInputStream> files, Object ... parameters);


/**
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/main/java/pt/ua/dicoogle/sdk/StorageInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public interface StorageInterface extends DicooglePlugin {
* @param dicomObject Object to be Stored
* @return The URI of the previously stored Object.
*/
public URI store(DicomObject dicomObject);
public URI store(DicomObject dicomObject, Object ... parameters);

/**
* Stores a new element into the storage.
Expand All @@ -78,7 +78,7 @@ public interface StorageInterface extends DicooglePlugin {
* @return the URI of the stored data
* @throws IOException if an I/O error occurs
*/
public URI store(DicomInputStream inputStream) throws IOException;
public URI store(DicomInputStream inputStream, Object ... parameters) throws IOException;

/** Removes an element at the given URI.
*
Expand Down

0 comments on commit 12fc60f

Please sign in to comment.