From 0985e975894a82c1aa675a21f6bd70d146a11241 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 16 Apr 2023 14:01:10 +0000 Subject: [PATCH] Bug 33541: Add document type to list of suggestions when ordering This adds the document type (suggestions.itemtype) to the list of accepted suggestions when creating an order from a suggestion. To test: * Add some suggestions and make sure to pick different document types. * Accept those suggestions in the staff interface. * Go to acquisitions * Create a basket * Add an 'order from a suggestion' * Verify that the list shows the 'document type' nicely and correctly * Order one, all good? sign off. Signed-off-by: Juliet Signed-off-by: Katrin Fischer Removed IS_OPAC param from AuthorisedValues.GetByCode Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt index 817e0eddd2..631698a61a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt @@ -2,6 +2,7 @@ [% USE Branches %] [% USE Price %] [% USE Asset %] +[% USE AuthorisedValues %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -46,6 +47,7 @@ Mine Suggestion + Document type Suggested by Accepted by Library @@ -72,6 +74,7 @@ [% IF ( suggestion.note ) %]

([% suggestion.note | html %])

[% END %]

+ [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype ) | html %] [% INCLUDE 'patron-title.inc' patron => suggestion.suggester %] [% INCLUDE 'patron-title.inc' patron => suggestion.manager %] -- 2.39.5