Default search in OE2

Is there a way to have a default search in OE2? Having it empty by default is not very useful, but having it show all most-recent is slow. I’d love to be able to show today’s studies only.

  1. open OE2 and bookmark the page
  2. edit the bookmark and replace the url by the following JS:
javascript:(function() {     var currentDate = new Date();     var formattedDate = currentDate.toISOString().slice(0, 10).replace(/-/g, '');     var url = "http://localhost:8042/ui/app/#/filtered-studies?StudyDate="%20+%20formattedDate;%20%20%20%20%20window.open(url,%20'_blank');%20})();
1 Like

It would be really nice if the default search could be controlled by a configuration item. We have >100k studies, and the default search is very slow.

We have many, many users. Telling them all to use a javascript bookmarklet is not a great solution.

Specifically, what I’d love is to be able to limit the initial search to, say, the last n days.

Daniel

Ha, I figured out how to do this with no change to OE2 after all.

Since our Orthanc is behind a SAML proxy, all I had to do was tell the proxy to redirect after auth to the URL-containing-prefilled-search of my choice!