@@ -, +, @@
title
- Login at the OPAC and go to the detail of a bibliographic record.
- Note that there is a new link "New purchase suggestion for this title"
- Please suggest an other icon if that one is not appropriated
- Click on it and submit your new suggestion
- Login staff side and order from this suggestion.
- Receive items and confirm that a new bibliographic record is not
---
acqui/neworderempty.pl | 2 +-
.../bootstrap/en/includes/opac-detail-sidebar.inc | 4 ++++
.../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 13 +++++++++----
opac/opac-suggestions.pl | 16 +++++++++++++++-
4 files changed, 29 insertions(+), 6 deletions(-)
--- a/acqui/neworderempty.pl
+++ a/acqui/neworderempty.pl
@@ -255,7 +255,6 @@ if ( not $ordernumber ) { # create order
}
else { #modify order
$data = GetOrder($ordernumber);
- $biblionumber = $data->{'biblionumber'};
$budget_id = $data->{'budget_id'};
$template->param(
@@ -272,6 +271,7 @@ else { #modify order
push @order_users, $order_patron if $order_patron;
}
}
+$biblionumber = $data->{biblionumber};
# We can have:
# - no ordernumber but a biblionumber: from a subscription, from an existing record
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc
@@ -33,6 +33,10 @@
[% END %]
[% END %]
+ [% IF Koha.Preference('suggestion') %]
+