<?xml version="1.0" encoding="UTF-8"?>
<!-- equivalent to update, but assumes all books are already known and only the status/date has changed-->
<html>

<template:read var="templateError" source="'true'"/>

<TD>Ausgeliehene Medien:</TD>


<TABLE>
<TR>
<TH></TH><TH>Fällig</TH><TH>V</TH><TH>M</TH><TH>Signatur</TH><TH></TH><TH>Status</TH>
</TR>

<template:loop>
<TR>
<input type="checkbox" template:optional="true">{newExtendId:=@name}</input>
<TD align="center"><template:read var="newLimit" source="."/></TD>
<TD><template:read var="V" source="."/><t:s test="$V = ''">V:=0</t:s></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD><template:read var="status" source="deep-text()"/></TD>
<template:if test="$newExtendId!=''">
<template:read var="book.status:curious" source="concat($V, '-mal verlängert, ', $status)"/>
</template:if>
<template:if test="$newExtendId=''">
<template:read var="book.status:problematic" source="concat($status, ', ', $V, '-mal verlängert')"/>
</template:if>
<template:read var="book.duedate" source="parse-date($newLimit,'dd.mm.yyyy')"/>
<template:read var="templateError" source="false()"/>
</tr>
</template:loop>
</table>

<template:if test="$templateError">Template Fehler! Vielleicht hat die Bücherei ihr System geändert.</template:if>
</html>
