
<t:switch prioritized="true">
<body>

<div class="wo-grid-meta-resultcount">
  {search-result-count := extract(normalize-space(), "[0-9]+$")}
</div>
  
<ul class="pagination">
  <li class="next-page"><a t:condition="string-length(@href) gt 3">{
    search-next-page-available := true(), 
    next-page := resolve-html(.)
  }</a></li>
</ul>?

<table class="wo-grid-table"> <thead>
  <tr>
    <t:siblings-header>
    <t:element t:condition="self::td or self::th"><input type="checkbox" class="wo-grid-chkall" /></t:element>
    <th><a t:condition="contains(@href,'sort=Notices.Author')"></a> 
        <a t:condition="contains(@href,'sort=Notices.Title')"></a></th>
    <th><a t:condition="contains(@href,'sort=Notices.Title')"></a>
        <a t:condition="contains(@href,'sort=Notices.Author')"></a></th>?
    <th><a t:condition="contains(@href,'sort=Notices.Date1')"></a></th>
    <th><a t:condition="contains(@href,'sort=Notices.VolumeKey')"></a></th>?
    <th><a t:condition="contains(@href,'sort=Notices.AgeKey')"></a></th>?
    <th><a t:condition="contains(@href,'sort=Notices.MediaType1Code')"></a>
        <a t:condition="contains(@href,'sort=Notices.MediaType2Code')"></a></th>
    <t:element t:condition="self::td or self::th"/>+
    </t:siblings-header>
  </tr>
 </thead>
 <tbody>
    <tr>
      {$book := {}}
      <t:siblings>
      <td></td>
      <td>{$book.author := join(br/preceding-sibling::text())}<a>{$book.title := ., $book._detailUrl := resolve-html(.)}</a></td>
      <td><a>{$book.title := ., $book._detailUrl := resolve-html(.)}</a>{$book.author := matched-text()}</td>
      <td>{$book.year}</td>
      <td></td>
      <td></td>
      <td>{$book.mediaType := inner-text()}</td>
      <td><!--<span id="wo-status-177235" class="wo-status-plc" data-noticeid="177235" data-divibibid="402284777" data-format="icon"></span>-->
      <span class="wo-disposability-icon">{
        let $state := @class return
        if (contains($state, "wo-disposability-checkedOut")) then $book.statusId := "lend"
        else if (contains($state, "wo-disposability-here")) then $book.statusId := "available"
        else ()}</span>?</td>
      <!--<td>{$book.image-url := resolve-html(img)}</td>-->
      </t:siblings>
    </tr>+
  </tbody>
</table>
</body>


<p>Ihre Abfrage hat keine Treffer erzielt<t:s>search-result-count := 0</t:s></p>
<p>Your search did not yield any results<t:s>search-result-count := 0</t:s></p>
         
</t:switch>