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 <jheltibridle@rcplib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Removed IS_OPAC param from AuthorisedValues.GetByCode

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-04-16 14:01:10 +00:00 committed by Tomas Cohen Arazi
parent 30475943d7
commit 0985e97589
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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 @@
<tr>
<th>Mine</th>
<th>Suggestion</th>
<th>Document type</th>
<th>Suggested by</th>
<th>Accepted by</th>
<th>Library</th>
@ -72,6 +74,7 @@
[% IF ( suggestion.note ) %]<p><em>([% suggestion.note | html %])</em></p> [% END %]
</p>
</td>
<td>[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype ) | html %]</td>
<td>[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</td>
<td>[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</td>
<td>