Minnesota Minnesota

Manual

Manual


<!-- SEARCH-RELATED INCLUDES -->

<!-- ****************************************************************** -->

<!-- This include determines the value to be used by NextRow.    -->

<!-- ****************************************************************** -->

<@dynamichtml layout_search_compute_next_row@>

  <$if NextRow$>

    <$NextRow = NextRow + ResultCount$>

  <$else$>

    <$NextRow = ResultCount + 1$>

  <$endif$>

<@end@>

<!-- ****************************************************************** -->

<!-- This include determines whether or not to show the more... link.  -->

<!-- ****************************************************************** -->

<@dynamichtml layout_search_call_self@>

  

  <$PreviousRow = NextRow - (ResultCount * 2)$>

  

  <$if PreviousRow > 0$>

    <i class="fas fa-chevron-left"></i><i class="fas fa-chevron-left"></i>&nbsp;<a href="javascript:getManualResults('1', '<$hdManualName$>')" style="font-weight:600;">Return to first page of search results</a><br><br>

    

    <i class="fas fa-chevron-left"></i>&nbsp;<a href="javascript:getManualResults('<$PreviousRow$>', '<$hdManualName$>')" style="font-weight:600;">Previous page</a>&nbsp;&nbsp;&nbsp;&nbsp;

  <$endif$>

  

  <$if NextRow <= TotalRows$>

    <a href="javascript:getManualResults('<$NextRow$>', '<$hdManualName$>')" style="font-weight:600;">Next page</a>&nbsp;<i class="fas fa-chevron-right"></i>

  <$endif$>

  

  <form name="frmGetResults" id="frmGetResults" method="post" action="">

    <input type="hidden" name="ADV" id="ADV" value="<$encodeHtml(ADV, unsafe)$>">

    <input type="hidden" name="KW" id="KW" value="<$encodeHtml(KW, unsafe)$>">

    <input type="hidden" name="DT" id="DT" value="<$encodeHtml(DT, unsafe)$>">

    <input type="hidden" name="FT" id="FT" value="<$encodeHtml(FT, unsafe)$>">

    <input type="hidden" name="hdManualName" id="hdManualName" value="<$encodeHtml(hdManualName, unsafe)$>">

  </form>

<@end@>

<@dynamichtml html5_manual_layout_build_query_and_display_results@>

  <$include html5_manual_layout_search_query$>

  <$include html5_manual_layout_search_display_results$>

<@end@>

<@dynamichtml html5_manual_layout_search_query@>

    

  <$if not QueryText$>

    

    <$QueryText = "xSearchable <substring> `True`"$>

    

    <$if hdManualName$>

      <$hdManualName = encodeHtml(hdManualName, unsafe)$>

      <$QueryText = QueryText & " <AND> xGeneralArea <substring> `" & hdManualName & "`"$>

    <$endif$>

    

    <$if KW$>

      <$Keyword = KW$>

      <$if ADV$>

        <$QueryText = QueryText & " <AND> ((xKeyword <substring> `" & encodeHtml(Keyword, unsafe) & "`) <OR> (xAbstract <substring> `" & encodeHtml(Keyword, unsafe) & "`))"$>

      <$else$>

        <$QueryText = QueryText & " <AND> ((xKeyword <substring> `" & encodeHtml(Keyword, unsafe) & "`) <OR> (xAbstract <substring> `" & encodeHtml(Keyword, unsafe) & "`) <OR> (dDocTitle <substring> `" & encodeHtml(Keyword, unsafe) & "`) <OR> (<ftx>" & encodeHtml(Keyword, usafe) & "</ftx>))"$>

      <$endif$>

    <$endif$>

    <$if DT$>

      <$DocTitle = DT$>

      <$if ADV$>

        <$QueryText = QueryText & " <AND> dDocTitle <substring> `" & encodeHtml(DocTitle, unsafe) & "`"$>

      <$endif$>

    <$endif$>

    

    <$if FT$>

      <$FullText = FT$>

      <$if ADV$>

        <$QueryText = QueryText & " <AND> <ftx>" & encodeHtml(FullText, unsafe) & "</ftx>"$>

      <$endif$>

    <$endif$>

    

    <$QueryText = strReplace(QueryText, ", ", " ")$>

    <$QueryText = strReplace(QueryText, ". ", " ")$>

    <$QueryText = strReplace(QueryText, "; ", " ")$>

    <$QueryText = strReplace(QueryText, ": ", " ")$>

    

    <$QueryText = encodeHtml(QueryText, unsafe)$>

  <$endif$>

  

  

  <$SortField="dInDate"$>

  <$SortOrder="Desc"$>

  <$ResultCount = 50$>

  

  <$executeService("GET_SEARCH_RESULTS")$>

<@end@>

<@dynamichtml html5_manual_layout_search_display_results@>

  <h1>Search Results</h1>

  <p><strong>Terminology disclaimer</strong><br>

  The terminology used to describe people with disabilities has changed over time. The Minnesota Department of Human Services ("Department") supports the use of "People First" language. Although outmoded and offensive terms might be found within documents on the Department&#039;s website, the Department does not endorse these terms.</p>

    

  

  

  

  <$if SearchResults$>

    

    <p style="font-size:110%;">A total of <$TotalRows$> items matched your search:</p>

    <ul style="margin:10px 0px; font-size:110%;">

      <$if Keyword$><li><strong>Keyword(s):</strong> <i><$encodeHtml(Keyword, unsafe)$></i></li><$endif$>

      <$if DocTitle$><li><strong>Page Title:</strong> <i><$encodeHtml(DocTitle, unsafe)$></i></li><$endif$>

      <$if FullText$><li><strong>Page Text:</strong> contains <i><$encodeHtml(FullText, unsafe)$></i></li><$endif$>

    </ul>

    

    <p style="font-size:110%">Items <strong><$if NextRow$><$NextRow$><$else$><$StartRow$><$endif$> - <$if NextRow$><$NextRow + SearchResults.#numRows -1$><$else$><$SearchResults.#numRows$><$endif$></strong> are listed below:</p>

    

    <table width="100%" cellpadding="0" cellspacing="0" border="0" id="tblResults" class="w3-table w3-bordered">

      <tr>

        <th class="w3-left-align" style="font-weight:600!important;">Document Title</th>      

        <th class="w3-right-align" style="text-align:right!important;font-weight:600!important;">Chapter</th>

      </tr>

  

    <$loop SearchResults$>

      <$thisBU = xBusinessUnit$>

      

      <tr>

        <td class="w3-left-align">

          <$if xTranslate and strEqualsIgnoreCase(xTranslate, "HTML")$>

            <a href="<$HttpCgiPath$><$callDC$><$dDocName$>" style="font-weight:600;"><$dDocTitle$>&nbsp;&nbsp;(<$xTranslate$>)</a><br>

          <$else$>

            <a href="<$HttpCgiPath$><$callDL$><$dDocName$>" style="font-weight:600;"><$dDocTitle$>&nbsp;&nbsp;(<$xTranslate$>)</a><br>

          <$endif$>

          <$if strTrimWs(xAbstract)$>

            <$myString = strTrimWs(xAbstract)$>

            <$strConfine(myString, 250)$><br>

          <$endif$>

        </td>

        <td class="w3-right-align">

          <$if xBusinessUnit$>

            <$if strIndexOf(thisBU, "None") >= 0$>

              &nbsp;

            <$else$>

              <$thisBU = strReplace(thisBU, "_", " ")$>

            <$endif$>

            <$strReplace(thisBU, "EandT", "E&amp;T")$>

          <$else$>

            &nbsp;

          <$endif$>

        </td>

      </tr>

      

    <$endloop$>

    

      <tr>

        <td colspan="2" class="w3-left-align">

          <$include layout_search_compute_next_row$>

          <$include layout_search_call_self$>

        </td>

      </tr>

    </table>

  <$else$>

  

    <p class="bodyContent bld">We&#039;re sorry, there were no items that matched your search criteria:</p>

    <ul style="margin:10px 0px">

      <$if KW$><li><strong>Keyword(s):</strong> <i><$encodeHtml(KW, unsafe)$></i></li><$endif$>

      <$if DT$><li><strong>Page Title:</strong> <i><$encodeHtml(DT, unsafe)$></i></li><$endif$>

      <$if FT$><li><strong>Page Text:</strong> contains <i><$encodeHtml(FT, unsafe)$></i></li><$endif$>

    </ul>

  <$endif$>

  <br>

  <p>Can&#039;t find what you&#039;re looking for? Try the <a href="<$HttpCgiPath$><$callDC$>manual_search&hdManualName=<$xGeneralArea$>">Advanced Search Form</a>.

<@end@>

<@dynamichtml html5_manual_layout_advanced_search_fields@>

<div id="frmSearch" class="w3-row">

  

  <h1>Advanced Search</h1>

  

  <p>Use this form to search for documents by keyword(s) or page title.<br>

  You can also search the full text of documents by entering text in the Page Text field.<br>

  Leave a field blank if you do not want to search it.</p>

  <form action="<$HttpCgiPath$><$callDC$>MANUAL_SEARCH_RESULTS&hdManualName=<$xGeneralArea$>" name="oForm" id="oForm" method="POST">

    <input type="hidden" name="ADV" id="ADV" value="1">

    

    <label for="KW">Keyword</label>

    <input class="w3-input w3-border" type="text" name="KW" id="txtKW" value="" size="50"><br>

    

    <label for="DT">Page Title</label>

    <input class="w3-input w3-border" type="text" name="DT" id="txtDT" value="" size="50"><br>

    

    <label for="FT">Page Text</label>

    <textarea class="w3-input w3-border" type="text" name="FT" id="txtFT" rows="5" cols="40"></textarea><br>

    

    <button class="w3-btn mn-white-color mn-blue-bg" onclick="sanitizeAll();">Search&nbsp;&nbsp;<i class="fas fa-search"></i></button>

    

  </form>

  <h2>Advanced Search Tips:</h2>

  <ul>

    <li>The basic search field in the upper-right corner of the page searches the most areas of the documents. In addition to searching the full text of each page, it also searches the page title and any search terms that may be in a page&#039;s keywords or description. Because it searches all these fields, you will most likely get the most search results from the basic search.</li>

    <li>If you leave a field blank on the Advanced Search form, that metadata field will not be searched. For example:

      <ul>

        <li>If you don&#039;t enter a Keyword, the Keyword and Description metadata fields of the document will not   be searched.</li>

        <li>If you don&#039;t enter a Page Title, the Page Title metadata field will not be searched.</li>

        <li>If you don&#039;t enter anything in the Page Text field, the text of the page will not be searched.</li>

        <li>If you enter text in <i>each</i> of the Advanced Search fields, you will typically get a narrower set of results, because more fields will be searched for your search term(s).</li>

      </ul>

    </li>

    <li>All searches are based on the <i>exact</i> text you enter in a field, <i>in the exact order you enter it</i>. <b>This includes punctuation marks, spaces, special characters, etc.</b> For example, if you were to search for <b>old</b>, you would get results containing not just the word <b>old</b>, but also c<b>old</b>, <b>old</b>er, househ<b>old</b>, &mdash; in other words, any results that contained the text <b>old</b>.</li>

  

    <li>Searches are not case-sensitive. For example, <b>MMIS</b> is treated the same as <b>mmis</b>.

  </ul>

</div>

<@end@>

Report this page