Bug 9573: Lost items report - Add a new itemlost_on column
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 5 Oct 2017 19:44:38 +0000 (16:44 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 17 Feb 2018 21:32:14 +0000 (18:32 -0300)
This patch adds a new "Lost on" column to the result table

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt

index 7011052..a5047e7 100644 (file)
@@ -292,6 +292,8 @@ modules:
         -
           columnname: lostcode
         -
+          columnname: itemlost_on
+        -
           columnname: barcode
         -
           columnname: callnumber
index e5e3866..912dba5 100644 (file)
                 <tr>
                     <th>Title</th>
                     <th>Author</th>
-                    <th>Lost code</th>
+                    <th>Lost status</th>
+                    <th class="title-string">Lost on</th>
                     <th>Barcode</th>
                     <th>Call number</th>
-                    <th>Date last seen</th>
+                    <th class="title-string">Date last seen</th>
                     <th>Price</th>
                     <th>Rep.price</th>
                     <th>Library</th>
                         </td>
                         <td>[% item.biblio.author %]</td>
                         <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
+                        <td><span title="[% item.itemlost_on %]"</span>[% item.itemlost_on | $KohaDates %]</span></td>
                         <td>
                             <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.barcode %]</a>
                         </td>
                         <td>[% item.itemcallnumber %]</td>
-                        <td>[% item.datelastseen | $KohaDates %]</td>
+                        <td><span title="[% item.datelastseen %]">[% item.datelastseen | $KohaDates %]</span></td>
                         <td>[% item.price %]</td>
                         <td>[% item.replacementprice %]</td>
                         <td>[% Branches.GetName(item.homebranch) %]</td>