Bugzilla – Attachment 141030 Details for
Bug 31632
Add ability to manually link orders to suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31632: Display multiple suggestions for record in basket
Bug-31632-Display-multiple-suggestions-for-record-.patch (text/plain), 3.11 KB, created by
Nick Clemens (kidclamp)
on 2022-09-27 13:09:47 UTC
(
hide
)
Description:
Bug 31632: Display multiple suggestions for record in basket
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-09-27 13:09:47 UTC
Size:
3.11 KB
patch
obsolete
>From f7fdb496e97222105705cbe9960054b42bf036e4 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 27 Sep 2022 11:41:14 +0000 >Subject: [PATCH] Bug 31632: Display multiple suggestions for record in basket > >In case suggestions are duplicated, allow several to be attached and display them all > >To test: >1 - Follow plan in previous patch to attach 2 suggestions when adding order >2 - Confirm both suggestions display after record added to basket >--- > acqui/basket.pl | 6 ++---- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 6 +++--- > 2 files changed, 5 insertions(+), 7 deletions(-) > >diff --git a/acqui/basket.pl b/acqui/basket.pl >index c028dc0219..b1ff3610dc 100755 >--- a/acqui/basket.pl >+++ b/acqui/basket.pl >@@ -497,10 +497,8 @@ sub get_order_infos { > } > > >- my $suggestion = GetSuggestionInfoFromBiblionumber($line{biblionumber}); >- $line{suggestionid} = $$suggestion{suggestionid}; >- $line{surnamesuggestedby} = $$suggestion{surnamesuggestedby}; >- $line{firstnamesuggestedby} = $$suggestion{firstnamesuggestedby}; >+ my @suggestions = Koha::Suggestions->search({ biblionumber => $line{biblionumber} })->as_list; >+ $line{suggestions} = \@suggestions; > > foreach my $key (qw(transferred_from transferred_to)) { > if ($line{$key}) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index 9d2687881d..e6c79ed2a3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -540,10 +540,10 @@ > [%- IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear | html -%] > [%- ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate | html %][% END -%] > [%- IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END -%] >- [%- IF ( books_loo.suggestionid ) %] >+ [% FOREACH suggestion IN books_loo.suggestions %] > <br/> >- Suggested by: [% books_loo.surnamesuggestedby | html %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby | html %] [% END %] >- (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid | uri %]&op=show">suggestion #[% books_loo.suggestionid | html %]</a>) >+ Suggested by: [% suggestion.suggester.surname | html %][% IF ( suggestion.suggester.firstname ) %], [% suggestion.suggester.firstname | html %] [% END %] >+ (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show">suggestion #[% suggestion.suggestionid | html %]</a>) > [% END %] > </p> > [% IF ( books_loo.order_internalnote ) %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31632
:
141028
|
141029
|
141030
|
169391
|
170147
|
170148
|
170953
|
174393
|
174394
|
174395
|
174415
|
174416
|
174417