From 3e76b542ee7ec66b528a7a7b39d6bf02e118bb7a Mon Sep 17 00:00:00 2001
From: Lucas Gass <lucas@bywatersolutions.com>
Date: Thu, 25 Jul 2024 21:09:42 +0000
Subject: [PATCH] Bug 37484: Add data-order attribute to housebound delivery
 table

To test:
0. APPLY PATCH
1. Enable the HouseboundModule and set at least one staff person a Chooser and and Deliverer.
2. From a patron account go to the "Housebound" tab and schedule some deliveries.
3. See that each <td> in the Date column now includes a 'data-order' attribute in an ISO date format ( 2024-07-01 ) for better sorting.
---
 koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt
index b304ea4d4d..ab85fd8e6e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt
@@ -402,7 +402,7 @@
                                 [% FOREACH entry IN housebound_visits %]
                                     <tr>
                                         <td>[% entry.id | html %]</td>
-                                        <td>[% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %])</td>
+                                        <td data-order="[% entry.appointment_date | html %]">[% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %])</td>
                                         <td>
                                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.chooser.borrowernumber | uri %]">
                                             [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %]
-- 
2.39.2