Commit 28389dca authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1311: Refactor search javascript

Task-Url: https://pm.winseda.de/issues/1311
parent 96ecedb0
......@@ -38,7 +38,7 @@
<tr>
<td>
<input type="checkbox" onchange="sourceSelection.handleSelectionDialogSelect();" class="chk-provider"${preselected} name="dpId" value="${collection.id}" />
<input type="checkbox" onchange="search.sourceSelection.handleSelectionDialogSelect();" class="chk-provider"${preselected} name="dpId" value="${collection.id}" />
</td>
<td><c:out value="${collection.name}" /></td>
</tr>
......
......@@ -24,6 +24,7 @@
</h2>
<div class="search-result-objects" id="search-result-objects-~{index}"></div>
<div class="search-result-highlights">~{highlights}</div>
<div class="search-result-explanation">Explanation: ~{explanation}</div>
</div>
</div>
......
......@@ -16,15 +16,15 @@
<ul id="search-available-collections" class="hide">
<c:forEach items="${datasources}" var="ds">
<li class="search-available-collection" id="search-available-collection-${ds.id}">${ds.name} <span style="font-weight: bold;" class="search-available-collection-doccount"></span></li>
<li class="search-available-collection" id="search-available-collection-${ds.id}"><span class="search-available-collection-doccount"></span> ${ds.name}</li>
</c:forEach>
</ul>
<div id="search-more-available-collections" class="hide text-center">
<span id="search-more-available-collections-count"></span> <s:message code="~eu.dariah.de.minfba.search.options.n_more" />
</div>
<div class="text-right">
<button class="btn btn-link" onclick="sourceSelection.getSelectionDialog();"><s:message code="~eu.dariah.de.minfba.search.options.actions.select_collections" /></button>
<button class="btn btn-link" onclick="sourceSelection.selectAll();"><s:message code="~eu.dariah.de.minfba.search.options.actions.select_all_collections" /></button>
<button class="btn btn-link" onclick="search.sourceSelection.getSelectionDialog();"><s:message code="~eu.dariah.de.minfba.search.options.actions.select_collections" /></button>
<button class="btn btn-link" onclick="search.sourceSelection.selectAll();"><s:message code="~eu.dariah.de.minfba.search.options.actions.select_all_collections" /></button>
<input type="hidden" id="selected-datasources" name="selected-datasources" value="[]" />
</div>
</nav>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment