View | Details | Raw Unified | Return to bug 33080
Collapse All | Expand All

(-)a/Koha/REST/V1/Acquisitions/Orders.pm (-3 / +5 lines)
Lines 183-191 sub list { Link Here
183
183
184
        $c->add_pagination_headers(
184
        $c->add_pagination_headers(
185
            {
185
            {
186
                total      => ($orders->is_paged ? $orders->pager->total_entries : $orders->count),
186
                base_total   => $total,
187
                base_total => $total,
187
                page         => $reserved_params->{_page},
188
                params     => $args,
188
                per_page     => $reserved_params->{_per_page},
189
                query_params => $args,
190
                total        => ( $orders->is_paged ? $orders->pager->total_entries : $orders->count ),
189
            }
191
            }
190
        );
192
        );
191
193
(-)a/Koha/REST/V1/ERM/EHoldings/Packages/EBSCO.pm (-3 / +5 lines)
Lines 60-68 sub list { Link Here
60
60
61
        $c->add_pagination_headers(
61
        $c->add_pagination_headers(
62
            {
62
            {
63
                base_total => $base_total,
63
                base_total   => $base_total,
64
                total      => $total,
64
                page         => $args->{_page},
65
                params     => $args,
65
                per_page     => $args->{_per_page},
66
                query_params => $args,
67
                total        => $total,
66
            }
68
            }
67
        );
69
        );
68
        return $c->render( status => 200, openapi => \@packages );
70
        return $c->render( status => 200, openapi => \@packages );
(-)a/Koha/REST/V1/ERM/EHoldings/Resources/EBSCO.pm (-3 / +5 lines)
Lines 104-112 sub list { Link Here
104
        $total = 10000 if $total > 10000;
104
        $total = 10000 if $total > 10000;
105
        $c->add_pagination_headers(
105
        $c->add_pagination_headers(
106
            {
106
            {
107
                base_total => $base_total,
107
                base_total   => $base_total,
108
                total      => $total,
108
                page         => $page,
109
                params     => $args,
109
                per_page     => $per_page,
110
                query_params => $args,
111
                total        => $total,
110
            }
112
            }
111
        );
113
        );
112
        return $c->render( status => 200, openapi => \@resources );
114
        return $c->render( status => 200, openapi => \@resources );
(-)a/Koha/REST/V1/ERM/EHoldings/Titles/EBSCO.pm (-4 / +5 lines)
Lines 83-91 sub list { Link Here
83
83
84
        $c->add_pagination_headers(
84
        $c->add_pagination_headers(
85
            {
85
            {
86
                #base_total => $base_total,
86
               #base_total   => $base_total,
87
                total  => $total,
87
                page         => $page,
88
                params => $args,
88
                per_page     => $per_page,
89
                query_params => $args,
90
                total        => $total,
89
            }
91
            }
90
        );
92
        );
91
        return $c->render( status => 200, openapi => \@titles );
93
        return $c->render( status => 200, openapi => \@titles );
92
- 

Return to bug 33080