Bug 36499: Added datelastborrowed column to item search results
Test plan:
1. Apply patch
2. Checkout an item to a patron
3. Perform an item search and either search as is, or add a “Last checkout date:” of today’s date for a more refined search.
1. Notice that there is now a date last borrowed column by the date due column
2. Export the table into a CSV and notice that there is also a date last borrowed column there
4. Sign off and have an amazing day :D
Signed-off-by: Michelle Spinney <mspinney@clamsnet.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
cca7ede28c
commit
6cade0f566
|
|
@ -41,4 +41,6 @@
|
|||
[%- delimiter | $raw -%]
|
||||
"[% (item.issues || 0) | $raw %]"
|
||||
[%- delimiter | $raw -%]
|
||||
"[% item.datelastborrowed | $KohaDates | $raw %]"
|
||||
[%- delimiter | $raw -%]
|
||||
"[% IF item.checkout %][% item.checkout.date_due | $KohaDates | $raw %][% END %]"
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
"[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | html %]",
|
||||
"[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) || "" | html %]",
|
||||
"[% (item.issues || 0) | html %]",
|
||||
"[% item.datelastborrowed | $KohaDates %]",
|
||||
"[% IF item.checkout %][% item.checkout.date_due | $KohaDates %][% END %]",
|
||||
"[% FILTER escape_quotes ~%]
|
||||
<div class="btn-group dropup"><button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit <span class="caret"></span> </button> <ul class="dropdown-menu pull-right"> [% IF user.can_edit_items_from( item.homebranch ) %]<li><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | uri %]&itemnumber=[% item.itemnumber | uri %]">Edit item</a></li>[% END %] <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% item.biblionumber | html %]">Edit record</a></li> </ul> </div>
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
[%- PROCESS 'i18n.inc' -%]
|
||||
[%- SET delimiter = Koha.CSVDelimiter() -%]
|
||||
[%- BLOCK -%]
|
||||
"[% t("Title") | html %]"[%- delimiter | $raw -%]"[% t("Publication date") | html %]"[%- delimiter | $raw -%]"[% t("Publisher") | html %]"[%- delimiter | $raw -%]"[% t("Collection") | html %]"[%- delimiter | $raw -%]"[% t("Barcode") | html %]"[%- delimiter | $raw -%]"[% t("Serial enumeration") | html %]"[%- delimiter | $raw -%]"[% t("Call number") | html %]"[%- delimiter | $raw -%]"[% t("Home library") | html %]"[%- delimiter | $raw -%]"[% t("Current library") | html %]"[%- delimiter | $raw -%]"[% t("Shelving location") | html %]"[%- delimiter | $raw -%]"[% t("Item type") | html %]"[%- delimiter | $raw -%]"[% t("Inventory number") | html %]"[%- delimiter | $raw -%]"[% t("Not for loan status") | html %]"[%- delimiter | $raw -%]"[% t("Lost status") | html %]"[%- delimiter | $raw -%]"[% t("Withdrawn status") | html %]"[%- delimiter | $raw -%]"[% t("Damaged status") | html %]"[%- delimiter | $raw -%]"[% t("Checkouts") | html %]"[%- delimiter | $raw -%]"[% t("Due date") | html %]"
|
||||
"[% t("Title") | html %]"[%- delimiter | $raw -%]"[% t("Publication date") | html %]"[%- delimiter | $raw -%]"[% t("Publisher") | html %]"[%- delimiter | $raw -%]"[% t("Collection") | html %]"[%- delimiter | $raw -%]"[% t("Barcode") | html %]"[%- delimiter | $raw -%]"[% t("Serial enumeration") | html %]"[%- delimiter | $raw -%]"[% t("Call number") | html %]"[%- delimiter | $raw -%]"[% t("Home library") | html %]"[%- delimiter | $raw -%]"[% t("Current library") | html %]"[%- delimiter | $raw -%]"[% t("Shelving location") | html %]"[%- delimiter | $raw -%]"[% t("Item type") | html %]"[%- delimiter | $raw -%]"[% t("Inventory number") | html %]"[%- delimiter | $raw -%]"[% t("Not for loan status") | html %]"[%- delimiter | $raw -%]"[% t("Lost status") | html %]"[%- delimiter | $raw -%]"[% t("Withdrawn status") | html %]"[%- delimiter | $raw -%]"[% t("Damaged status") | html %]"[%- delimiter | $raw -%]"[% t("Checkouts") | html %]"[%- delimiter | $raw -%]"[% t("Date last borrowed") | html %]"[%- delimiter | $raw -%]"[% t("Due date") | html %]"
|
||||
[%- END -%]
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@
|
|||
+ ' <th id="items_widthdrawn">' + _("Withdrawn status") + '</th>'
|
||||
+ ' <th id="items_damaged">' + _("Damaged status") + '</th>'
|
||||
+ ' <th id="items_checkouts">' + _("Checkouts") + '</th>'
|
||||
+ ' <th id="items_datelastborrowed">' + _("Date last borrowed") + '</th>'
|
||||
+ ' <th id="items_date_due">' + _("Due date") + '</th>'
|
||||
+ ' <th id=""></th>'
|
||||
+ ' </tr>';
|
||||
|
|
@ -511,6 +512,7 @@
|
|||
{ 'name': 'withdrawn' },
|
||||
{ 'name': 'damaged' },
|
||||
{ 'name': 'issues' },
|
||||
{ 'name': 'datelastborrowed' },
|
||||
{ 'name': 'date_due' },
|
||||
{ 'name': 'actions', 'orderable': false }
|
||||
],
|
||||
|
|
@ -569,6 +571,7 @@
|
|||
[% END %]
|
||||
{ 'type': 'text' },
|
||||
{ 'type': 'text' },
|
||||
{ 'type': 'text' },
|
||||
null
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue