Browse Source

Bug 24585: Add 'Managed on' and 'Suggested on' columns to pat_purchase_suggestions.tt

This patch adds 2 new columns on the suggestions table on purchase-suggestions.tt. These use the data-order attribute to allow for sorting.
TEST PLAN:
1. Have a patron with some suggestions that have been managed by staff. (accept or reject the request).
2. View that patrons suggestions from purchase-suggestions.pl.
3. No suggested on or managaed on columns.
4. Apply patch and reload the page.
5. The new columns are there, have multiple suggestions and make sure sorting by the date works.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Lucas Gass 3 years ago
committed by Martin Renvoize
parent
commit
b4f7dd50de
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt

9
koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt

@ -1,6 +1,7 @@
[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% SET footerjs = 1 %]
@ -37,6 +38,8 @@
<th>Summary</th>
<th>Note</th>
<th>Managed by</th>
<th>Managed on</th>
<th>Suggested on</th>
<th>Status</th>
</tr>
</thead>
@ -73,6 +76,12 @@
&nbsp;
[% END %]
</td>
<td data-order="[% s.manageddate | html %]">
[% s.manageddate | $KohaDates %]
</td>
<td data-order="[% s.suggesteddate | html %]">
[% s.suggesteddate | $KohaDates %]
</td>
<td>
[% SWITCH s.STATUS %]
[% CASE "ASKED" %]<span>Requested</span>

Loading…
Cancel
Save