<html> 
<head><title><template:read source="''" var="noBooks"/></title></head>
<body> 

  <p template:optional="true"> 
    Sie haben momentan keine Exemplare ausgeliehen.
    <template:read source="'true'" var="noBooks"/>
    <template:read var="delete-current-books()"/>
  </p>



<template:if test="$noBooks!='true'">
  <table> 
   <tr> 
    <th>Autor</th> 
    <th>Titel</th> 
    <template:read var="delete-current-books()"/>
   </tr> 
   

 <template:loop>
   <tr> 
    {book := object()}
    <td><A><template:read var="book.detailLink" source="@href"/></A></td> 
    <td><template:read var="book.author" source="."/></td> 
    <td><template:read var="book.title" source="."/></td> 
    <td><template:read var="book.year" source="."/></td> 
    <td><template:read var="book.duedate" source="parse-date(.,'dd/mm/[yy]yy')"/></td> 
    <td>{$book.libraryBranch}</td>      
    <td><template:read var="book.id" source="."/>
        <template:read var="book.category" source="." regex="[a-zA-Z]*"/></td> 
    </tr> 
  </template:loop>
  </table> 
  <template:if test="empty(get('book', ()))">
  {vl:raise("Seitenlesefehler: Erwartete ausgeliehene Bücher, aber keine gefunden!")}
  </template:if>
  </template:if>
</body> 
</html> 

 
