Bugzilla – Attachment 176032 Details for
Bug 37334
Cannot filter holdings table by status
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37334: Add POD
0010-Bug-37334-Add-POD.patch (text/plain), 2.63 KB, created by
Emmi Takkinen
on 2024-12-31 08:11:02 UTC
(
hide
)
Description:
Bug 37334: Add POD
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2024-12-31 08:11:02 UTC
Size:
2.63 KB
patch
obsolete
>From 11833fb8264d412a6cf7ae050947a1d56e6095bd Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 21 Nov 2024 17:59:54 +0000 >Subject: [PATCH 10/13] Bug 37334: Add POD > >Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >--- > Koha/Items.pm | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 47 insertions(+), 2 deletions(-) > >diff --git a/Koha/Items.pm b/Koha/Items.pm >index c7288e2414..43dfebb678 100644 >--- a/Koha/Items.pm >+++ b/Koha/Items.pm >@@ -222,6 +222,14 @@ sub filter_by_bookable { > ); > } > >+=head3 filter_by_checked_out >+ >+ my $checked_out_items = $items->filter_by_checked_out; >+ >+Returns a new resultset, containing only those items that are currently checked out. >+ >+=cut >+ > sub filter_by_checked_out { > my ( $self, $params ) = @_; > >@@ -237,6 +245,14 @@ sub filter_by_checked_out { > return $self->search( { 'me.itemnumber' => { '-in' => $checkouts } } ); > } > >+=head3 filter_by_in_transit >+ >+ my $in_tranist_items = $items->filter_by_in_transit; >+ >+Returns a new resultset, containing only those items that are currently in transit. >+ >+=cut >+ > sub filter_by_in_transit { > my ( $self, $params ) = @_; > >@@ -252,9 +268,13 @@ sub filter_by_in_transit { > return $self->search( { 'me.itemnumber' => { '-in' => $transfers } } ); > } > >-sub filter_by_for_loan { >+=head3 filter_by_has_holds > >-} >+ my $has_hold_items = $items->filter_by_has_holds; >+ >+Returns a new resultset, containing only those items that currently have holds. >+ >+=cut > > sub filter_by_has_holds { > my ( $self, $params ) = @_; >@@ -271,6 +291,14 @@ sub filter_by_has_holds { > return $self->search( { 'me.itemnumber' => { '-in' => $holds } } ); > } > >+=head3 filter_by_has_recalls >+ >+ my $has_recalls_items = $items->filter_by_has_recalls; >+ >+Returns a new resultset, containing only those items that currently have recalls. >+ >+=cut >+ > sub filter_by_has_recalls { > my ( $self, $params ) = @_; > >@@ -286,6 +314,14 @@ sub filter_by_has_recalls { > return $self->search( { 'me.itemnumber' => { '-in' => $recalls } } ); > } > >+=head3 filter_by_available >+ >+ my $available_items = $items->filter_by_available; >+ >+Returns a new resultset, containing only those items that are currently available. >+ >+=cut >+ > sub filter_by_available { > my ($self) = @_; > >@@ -575,6 +611,15 @@ sub apply_regex { > return $value; > } > >+ >+=head3 search >+ >+ my $search_result = $object->search( $params, $attributes ); >+ >+Filters items based on the specified status. >+ >+=cut >+ > sub search { > my ( $self, $params, $attributes ) = @_; > my $status = ( $params && ref($params) eq 'HASH' ) ? delete $params->{_status} : undef; >-- >2.34.1 >
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 37334
:
172300
|
172301
|
172302
|
173499
|
173500
|
173501
|
173949
|
173950
|
173951
|
173982
|
174310
|
174798
|
174799
|
174800
|
174801
|
174802
|
174803
|
174804
|
174813
|
174814
|
174901
|
174902
|
174903
|
174955
|
175859
|
175860
|
175861
|
175862
|
175863
|
175864
|
175865
|
175866
|
175867
|
175868
|
175869
|
175870
|
175871
|
175999
|
176000
|
176001
|
176002
|
176003
|
176004
|
176005
|
176006
|
176007
|
176008
|
176009
|
176010
|
176011
|
176023
|
176024
|
176025
|
176026
|
176027
|
176028
|
176029
|
176030
|
176031
|
176032
|
176033
|
176034
|
176035
|
176475
|
176477
|
176480
|
176481
|
177321
|
177415
|
177416
|
177417
|
177418
|
177419
|
177420
|
177421
|
177422
|
177423
|
177424
|
177425
|
177426
|
177427
|
177428
|
177429
|
177430
|
177431
|
177432