Page tree
Skip to end of metadata
Go to start of metadata

In the LUNA Viewer, if you want to make the the system default to "Catalog Data & text in Documents", You can customize the backend to do this. You will need to do this after each upgrade.

As with any customization in LUNA, these are not supported but you are welcome to make the changes 


You will need to make changes in the following file

~/LunaImaging/7.x/LUNA/tomcat/luna_apps/luna.war/WEB-INF/views/jsp/common/quickSearch.jsp

You will see a section like the following toward the bottom of the file.

            <li>
              <label><input class="searchSelectRadio" type="radio" onclick="fullTextSearch.checked = false; DateSearchCb.checked = false; updateSearchOptionText();" value="QuickSearchA" name="QuickSearchA" id="QuickSearchA" <c:if test="${searchOption == 0 }">checked</c:if> /><fmt:message key="search.select.quicksearch"/></label>
              <label><input class="searchSelectRadio" type="radio" ${fullTextSearchChecked} onclick="QuickSearchA.checked = false; DateSearchCb.checked = false; updateSearchOptionText();" value="fullTextSearch" name="fullTextSearch" id="fullTextSearch" <c:if test="${searchOption == 1 }">checked</c:if> /><fmt:message key="search.select.fulltext"/></label>
              <label <c:if test="${not hasDateFields}">style="display:none;"</c:if>><input class="searchSelectRadio" type="radio" ${dateRangeSearchChecked} onclick="QuickSearchA.checked = false; fullTextSearch.checked = false; updateSearchOptionText();" value="dateRangeSearch" name="dateRangeSearch" id="DateSearchCb" <c:if test="${searchOption == 3 }">checked</c:if> /><fmt:message key="search.select.date.range"/></label>
            </li>

Look for this exact value

<c:if test="${searchOption == 1 }">checked</c:if>

Replace that exact text with the word "checked"

It will then look like the following.

            <li>
              <label><input class="searchSelectRadio" type="radio" onclick="fullTextSearch.checked = false; DateSearchCb.checked = false; updateSearchOptionText();" value="QuickSearchA" name="QuickSearchA" id="QuickSearchA" <c:if test="${searchOption == 0 }">checked</c:if> /><fmt:message key="search.select.quicksearch"/></label>
              <label><input class="searchSelectRadio" type="radio" ${fullTextSearchChecked} onclick="QuickSearchA.checked = false; DateSearchCb.checked = false; updateSearchOptionText();" value="fullTextSearch" name="fullTextSearch" id="fullTextSearch" checked /><fmt:message key="search.select.fulltext"/></label>
              <label <c:if test="${not hasDateFields}">style="display:none;"</c:if>><input class="searchSelectRadio" type="radio" ${dateRangeSearchChecked} onclick="QuickSearchA.checked = false; fullTextSearch.checked = false; updateSearchOptionText();" value="dateRangeSearch" name="dateRangeSearch" id="DateSearchCb" <c:if test="${searchOption == 3 }">checked</c:if> /><fmt:message key="search.select.date.range"/></label>
            </li>

Save the file and that's it. No restart of LUNA's tomcat is required.

  • No labels