<t:switch prioritized="true">
<form>{form:=form(., {"": {"kind": "submit"}}), loginForm := ()}
<DIV class="DnnModule-OPENSearchModule">
  <div t:condition="contains(@id, 'SearchResult_ResultArea')">
    <t:switch prioritized="true">
      <span t:condition="contains(@id, 'DataPager1')">
        <input t:condition="contains(@name, 'PreviousButton')">{prev-page := form-combine($form, .)}</input>?
        <input t:condition="contains(@name, 'NextButton')">{
          if ($current-page eq $last-visited-page) then (search-next-page-available := true()) else (), 
          next-page := form-combine($form, .)}</input>?
        <t:s>(.//span[contains(@id, "CurrentPageLabel")])[1]/(current-page:=xs:integer(.))</t:s>
      </span>
      <div>
        <a t:condition="ends-with(@id, 'searchResultPagerTop_aPrevious')">{$prev-page := resolve-html(.)}</a>?
        <span t:condition='contains(@id, "LabelPageN")'>{current-page:=xs:integer(normalize-space())}</span>?
        <a t:condition="ends-with(@id, 'searchResultPagerTop_aNext')">{
          if ($current-page eq $last-visited-page) then (search-next-page-available := true()) else (), next-page := resolve-html(.)}</a>?
        <span t:condition="contains(@id, 'TotalItemsLabel')">{search-result-count := extract(normalize-space(.), "[0-9]+")}</span>
      </div>
    </t:switch>

  </div>
</DIV>
</form>

<head t:condition="contains(join((comment(), script)), 'location.replace')">
  {loginForm := extract(join((comment(), script)), 'https?://[^"'']+')}
</head> <!-- strange redirect in comment-->

</t:switch>