Bugzilla – Attachment 97350 Details for
Bug 24418
Add Koha::Biblio->suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24418: Add Koha::Biblio->suggestions
Bug-24418-Add-KohaBiblio-suggestions.patch (text/plain), 1.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-01-14 13:11:24 UTC
(
hide
)
Description:
Bug 24418: Add Koha::Biblio->suggestions
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-01-14 13:11:24 UTC
Size:
1.25 KB
patch
obsolete
>From 210aea50a40e722ef1132e5f8f4f4b0468f0184f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 14 Jan 2020 10:09:40 -0300 >Subject: [PATCH] Bug 24418: Add Koha::Biblio->suggestions > >This patch adds the mentioned accessor. To test: > >1. Apply this patch >2. Run: > $ kshell > k$ prove t/db_dependent/Koha/Biblio.t >=> SUCCESS: Tests pass >3. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Biblio.pm | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index a37330801f..9ee4192e03 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -40,6 +40,7 @@ use Koha::IssuingRules; > use Koha::Item::Transfer::Limits; > use Koha::Items; > use Koha::Libraries; >+use Koha::Suggestions; > use Koha::Subscriptions; > > =head1 NAME >@@ -439,6 +440,21 @@ sub biblioitem { > return $self->{_biblioitem}; > } > >+=head3 suggestions >+ >+my $suggestions = $self->suggestions >+ >+Returns the related Koha::Suggestions object for this Biblio object >+ >+=cut >+ >+sub suggestions { >+ my ($self) = @_; >+ >+ my $suggestions_rs = $self->_result->suggestions; >+ return Koha::Suggestions->_new_from_dbic( $suggestions_rs ); >+} >+ > =head3 subscriptions > > my $subscriptions = $self->subscriptions >-- >2.25.0
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 24418
:
97349
|
97350
|
97351
|
97353
|
97365
|
97366
|
97367
|
97382
|
97383
|
97384