Bug 32603: Suggester category in Suggestions management

In Suggestions management, in the table displaying all suggestions, add
a column to display suggester category. This way, it is possible for
example for the librarian managing suggestions rather to prioritize
suggestions coming from teachers than those coming from students.

TEST :

1. Apply the patch.
2. Acquisition > Suggestions.
3. There is a new column 'Suggester category'. It can be
   displayed/hidden.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Frédéric Demians 2023-01-10 09:26:51 +01:00 committed by Tomas Cohen Arazi
parent 226f83cbb9
commit 09010a248b
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 6 additions and 0 deletions

View File

@ -174,6 +174,8 @@ modules:
columnname: suggestion
-
columnname: suggested_by
-
columnname: suggested_category
-
columnname: suggested_on
-

View File

@ -747,6 +747,7 @@
<th class="NoSort noExport">&nbsp;</th>
<th class="anti-the">Suggestion</th>
<th>Suggested by</th>
<th>Suggester category</th>
<th>Suggested on</th>
<th>Patron reason</th>
<th>Managed by</th>
@ -808,6 +809,9 @@
[% SET suggester = s.suggester %]
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggester.borrowernumber | uri %]">[% suggester.surname | html %][% IF suggester.firstname %], [% suggester.firstname | html %][% END %] [% IF suggester.cardnumber %]([% suggester.cardnumber | html %])[% END %]</a>
</td>
<td>
[% suggester.category.description | html %]
</td>
<td data-order="[% s.suggesteddate | html %]">
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %]
</td>