Skip to content

Commit

Permalink
Console.log search query to aid debugging etc
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Nov 20, 2024
1 parent db4b8b3 commit 9cf5e69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions idr_gallery/static/idr_gallery/omero_search_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,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;
Expand Down
4 changes: 3 additions & 1 deletion idr_gallery/templates/idr_gallery/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ <h2 id="popover_imagename">Image Name</h2>
return `<tr>
<td>${v[0]}</td>
<td>
<a href="/search/?key=${encodeURIComponent(v[0])}&value=${encodeURIComponent(v[1])}&operator=equals&resource=image">${v[1]}</a>
<a title="Search for images with ${v[0]}: ${v[1]}" href="/search/?key=${encodeURIComponent(v[0])}&value=${encodeURIComponent(v[1])}&operator=equals&resource=image">
${v[1]}
</a>
${v[2] ? `<span class='favicon'><a href="${v[2]}" target="_blank">
<img src="/mapr/favicon/?u=${v[2]}">
</a></span>` : ""}
Expand Down

0 comments on commit 9cf5e69

Please sign in to comment.