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

(-)a/circ/overdue.pl (+12 lines)
Lines 40-45 my $borcatfilter = $input->param('borcat') || ''; Link Here
40
my $itemtypefilter  = $input->param('itemtype') || '';
40
my $itemtypefilter  = $input->param('itemtype') || '';
41
my $borflagsfilter  = $input->param('borflag') || '';
41
my $borflagsfilter  = $input->param('borflag') || '';
42
my $branchfilter    = $input->param('branch') || '';
42
my $branchfilter    = $input->param('branch') || '';
43
my $homebranchfilter    = $input->param('homebranch') || '';
44
my $holdingbranchfilter = $input->param('holdingbranch') || '';
43
my $op              = $input->param('op') || '';
45
my $op              = $input->param('op') || '';
44
my $dateduefrom = format_date_in_iso($input->param( 'dateduefrom' )) || '';
46
my $dateduefrom = format_date_in_iso($input->param( 'dateduefrom' )) || '';
45
my $datedueto   = format_date_in_iso($input->param( 'datedueto' )) || '';
47
my $datedueto   = format_date_in_iso($input->param( 'datedueto' )) || '';
Lines 214-220 if (@patron_attr_filter_loop) { Link Here
214
$template->param(
216
$template->param(
215
    patron_attr_header_loop => [ map { { header => $_->{description} } } grep { ! $_->{isclone} } @patron_attr_filter_loop ],
217
    patron_attr_header_loop => [ map { { header => $_->{description} } } grep { ! $_->{isclone} } @patron_attr_filter_loop ],
216
    branchloop   => GetBranchesLoop($branchfilter, $onlymine),
218
    branchloop   => GetBranchesLoop($branchfilter, $onlymine),
219
    homebranchloop => GetBranchesLoop( $homebranchfilter, $onlymine ),
220
    holdingbranchloop => GetBranchesLoop( $holdingbranchfilter, $onlymine ),
217
    branchfilter => $branchfilter,
221
    branchfilter => $branchfilter,
222
    homebranchfilter => $homebranchfilter,
223
    holdingbranchfilter => $homebranchfilter,
218
    borcatloop=> \@borcatloop,
224
    borcatloop=> \@borcatloop,
219
    itemtypeloop => \@itemtypeloop,
225
    itemtypeloop => \@itemtypeloop,
220
    patron_attr_filter_loop => \@patron_attr_filter_loop,
226
    patron_attr_filter_loop => \@patron_attr_filter_loop,
Lines 260-265 if ($noreport) { Link Here
260
        issues.itemnumber,
266
        issues.itemnumber,
261
        issues.issuedate,
267
        issues.issuedate,
262
        items.barcode,
268
        items.barcode,
269
        items.homebranch,
270
        items.holdingbranch,
263
        biblio.title,
271
        biblio.title,
264
        biblio.author,
272
        biblio.author,
265
        borrowers.borrowernumber,
273
        borrowers.borrowernumber,
Lines 295-300 if ($noreport) { Link Here
295
        $strsth .= " AND borrowers.lost <> 0";
303
        $strsth .= " AND borrowers.lost <> 0";
296
    }
304
    }
297
    $strsth.=" AND borrowers.branchcode   = '" . $branchfilter   . "' " if $branchfilter;
305
    $strsth.=" AND borrowers.branchcode   = '" . $branchfilter   . "' " if $branchfilter;
306
    $strsth.=" AND items.homebranch       = '" . $homebranchfilter . "' " if $homebranchfilter;
307
    $strsth.=" AND items.holdingbranch    = '" . $holdingbranchfilter . "' " if $holdingbranchfilter;
298
    $strsth.=" AND date_due < '" . $datedueto . "' "  if $datedueto;
308
    $strsth.=" AND date_due < '" . $datedueto . "' "  if $datedueto;
299
    $strsth.=" AND date_due > '" . $dateduefrom . "' " if $dateduefrom;
309
    $strsth.=" AND date_due > '" . $dateduefrom . "' " if $dateduefrom;
300
    # restrict patrons (borrowers) to those matching the patron attribute filter(s), if any
310
    # restrict patrons (borrowers) to those matching the patron attribute filter(s), if any
Lines 352-357 if ($noreport) { Link Here
352
            title                  => $data->{title},
362
            title                  => $data->{title},
353
            author                 => $data->{author},
363
            author                 => $data->{author},
354
            branchcode             => $data->{branchcode},
364
            branchcode             => $data->{branchcode},
365
            homebranchcode         => $data->{homebranchcode},
366
            holdingbranchcode      => $data->{holdingbranchcode},
355
            itemcallnumber         => $data->{itemcallnumber},
367
            itemcallnumber         => $data->{itemcallnumber},
356
            replacementprice       => $data->{replacementprice},
368
            replacementprice       => $data->{replacementprice},
357
            enumchron              => $data->{enumchron},
369
            enumchron              => $data->{enumchron},
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt (-1 / +22 lines)
Lines 194-199 overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70% Link Here
194
    </li>
194
    </li>
195
195
196
    <li>
196
    <li>
197
        <label>Item home branch:</label>
198
        <select name="homebranch" id="homebranch">
199
            <option value="">Any</option>
200
            [% FOREACH homebranchloo IN homebranchloop %][% IF ( homebranchloo.selected ) %]
201
            <option value="[% homebranchloo.value |html %]" selected="selected">[% homebranchloo.branchname %]</option>[% ELSE %]
202
            <option value="[% homebranchloo.value |html %]">[% homebranchloo.branchname %]</option>[% END %]
203
            [% END %]
204
        </select>
205
    </li>
206
207
    <li>
208
        <label>Item holding branch:</label>
209
            <select name="holdingbranch" id="holdingbranch">
210
            <option value="">Any</option>
211
            [% FOREACH holdingbranchloo IN holdingbranchloop %][% IF ( holdingbranchloo.selected ) %]
212
            <option value="[% holdingbranchloo.value |html %]" selected="selected">[% holdingbranchloo.branchname %]</option>[% ELSE %]
213
            <option value="[% holdingbranchloo.value |html %]">[% holdingbranchloo.branchname %]</option>[% END %]
214
            [% END %]
215
        </select>
216
    </li>
217
218
    <li>
197
    <label>Library of the patron:</label><select name="branch" id="branch">
219
    <label>Library of the patron:</label><select name="branch" id="branch">
198
        <option value="">Any</option>
220
        <option value="">Any</option>
199
      [% FOREACH branchloo IN branchloop %]
221
      [% FOREACH branchloo IN branchloop %]
200
- 

Return to bug 9604