Bug 32603: Suggester category in Suggestions management
authorFrédéric Demians <f.demians@tamil.fr>
Tue, 10 Jan 2023 08:26:51 +0000 (09:26 +0100)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Wed, 8 Feb 2023 16:49:18 +0000 (16:49 +0000)
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>
(cherry picked from commit 09010a248b65c7a47973c208809c1915dac3fe0e)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

index d4da6b0..38a5f19 100644 (file)
@@ -175,6 +175,8 @@ modules:
             -
               columnname: suggested_by
             -
+              columnname: suggested_category
+            -
               columnname: suggested_on
             -
               columnname: patron_reason
index bfaef57..4bed26c 100644 (file)
                                             <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>
                                                     [% 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>