<?xml version="1.0" encoding="ISO-8859-1"?>
<html>
<body>
<template:switch-prioritized>
 <div class="content">
   <div class="grau">
     <form id="leserdaten"> </form>
     <p class="bezeichner">Offene Gebhren</p>
     <p class="begriff">
        <template:read source="text()" var="charge" regex="\d+,\d+"/>
        <template:read var="delete-current-books()"/>
     </p>
   </div>

       <table summary="Liste der nicht verlngerbaren Medien" template:optional="true">
         <caption>Nicht verlngerbare Ausleihen:<template:read source="text()" var="tempcount" regex="\d+$"/></caption>
         <template:if test="$tempcount!='0'">                
           <tr>
            <th>Exemplar</th>
            <th>Ausleihe</th>
            <th>Frist bis</th>
           </tr>
           <template:loop>
            <tr>
             <td>
              {book := object()}

              <template:read source="text()" var="book.id" regex="^\d+"/>
              <template:read source="text()" var="book.category" regex="^\d* - ([^ *]*( [a-z1-9])?) ." submatch="1"/>
              <template:read source="text()" var="book.author" regex="^\d* - [^ *]* ([a-z1-9] )?([^ ]*) *\*" submatch="2"/>
              <template:read source="text()" var="book.title" regex="- [^ *]* ([a-z1-9] )?(.*\*)?([^<]*)(<\d{2,4}>?)?$" submatch="3"/>
              <template:read source="text()" var="book.year" regex="<(\d{2,4})>?$" submatch="1"/>
              <template:read source="'Nicht verlngerbar'" var="book.status:problematic"/>
              <strong template:optional="true"><template:read source="text()" var="book.status:problematic"/></strong>
              </td>
              <td><template:read source="parse-date(text(),'dd.mm.yyyy')" var="book.issuedate"/></td>
              <td><template:read source="parse-date(text(),'dd.mm.yyyy')" var="book.duedate"/></td>
              <!--<template:read var="book-end()"/>-->
            </tr>
           </template:loop>
         </template:if>                    
       </table>
    
        <table summary="Liste der verlngerbaren Medien" template:optional="true">
         <caption>Verlngerbare Ausleihen:<template:read source="text()" var="tempcount" regex="\d+$"/></caption>
         <template:if test="$tempcount!='0'">
           <tr>
            <th>Exemplar</th>
            <th>Ausleihe</th>
            <th>Frist bis</th>
           </tr>

           <template:loop>
            <tr>
              <td>
                {book := object()}
                <template:read var="book.status"/>
                
                <template:read source="text()" var="book.id" regex="^\d+"/>
                <template:read source="text()" var="book.category" regex="^\d* - ([^ *]*( [A-Z1-9])?) ." submatch="1"/>
                <template:read source="text()" var="book.author" regex="^\d* - [^ *]* ([A-Z1-9] )?([^ ]*) *\*" submatch="2"/>
                <template:read source="text()" var="book.title" regex="- [^ *]* ([A-Z1-9] )?(.*\*)?([^<]*)(<\d{2,4}>?)?$" submatch="3"/>
                <template:read source="text()" var="book.year" regex="<(\d{2,4})>?$" submatch="1"/>
              </td>
              <td><template:read source="parse-date(text(),'dd.mm.yyyy')" var="book.issuedate"/></td>
              <td><template:read source="parse-date(text(),'dd.mm.yyyy')" var="book.duedate"/></td>
              <!--<template:read var="book-end()"/>-->
            </tr>
           </template:loop>
         </template:if>
        </table>
 

 
   <div class="spezial">Hinweis</div>
 </div>
 <p class="fehler"><t:read var="raise()" source="text()"/></p>
</template:switch-prioritized>
</body>
</html>
  
