diff --git a/idr_gallery/static/idr_gallery/css/search_form_styles.css b/idr_gallery/static/idr_gallery/css/search_form_styles.css index 55446563..ddf99816 100644 --- a/idr_gallery/static/idr_gallery/css/search_form_styles.css +++ b/idr_gallery/static/idr_gallery/css/search_form_styles.css @@ -147,6 +147,12 @@ position: relative; background-color: #ddd; } + .studyThumb img:hover { + border: solid 3px #64a3e1; + } + .studyThumb .selected img { + border: solid 5px #64a3e1; + } .imgLinks { position: absolute; background: transparent; diff --git a/idr_gallery/static/idr_gallery/omero_search_form.js b/idr_gallery/static/idr_gallery/omero_search_form.js index 17001593..1566223a 100644 --- a/idr_gallery/static/idr_gallery/omero_search_form.js +++ b/idr_gallery/static/idr_gallery/omero_search_form.js @@ -168,14 +168,15 @@ async function getAutoCompleteResults(key, query, knownKeys, operator) { let kvp_url = `${SEARCH_ENGINE_URL}resources/all/searchvalues/?` + params; let urls = [kvp_url]; - // We always check for Names... - // Need to load data from 2 end-points - let names_url = `${SEARCH_ENGINE_URL}resources/all/names/?value=${query}`; - // NB: Don't show auto-complete for Description yet - issues with 'equals' search - // if (key == "Any" || key == "description") { - // names_url += `&use_description=true`; - // } - urls.push(names_url); + // We check for Names if "Any" + if (key == "Any") { + let names_url = `${SEARCH_ENGINE_URL}resources/all/names/?value=${query}`; + // NB: Don't show auto-complete for Description yet - issues with 'equals' search + // if (key == "Any" || key == "description") { + // names_url += `&use_description=true`; + // } + urls.push(names_url); + } const promises = urls.map((p) => fetch(p).then((rsp) => rsp.json())); const responses = await Promise.all(promises); @@ -783,6 +784,7 @@ class OmeroSearchForm { submitSearch() { console.log("Submit search..."); let query = this.getCurrentQuery(); + console.log(JSON.stringify(query)); if (!this.validateQuery(query)) { console.log("Form not valid"); return; @@ -855,12 +857,15 @@ class OmeroSearchForm { return `
  • - +
    ${studyId}
    ${count}
    ${title}
    +
    + Images from study: + ${studyName} +
    ${SPINNER_SVG} @@ -938,8 +943,8 @@ class OmeroSearchForm { .map((img) => { // Each thumbnail links to image viewer. Hover menu links to viewer (eye) and webclient (i) return `
  • - - + +