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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/request.tt (-1 / +1 lines)
Lines 53-59 Link Here
53
        [% END %]
53
        [% END %]
54
54
55
        [% IF patron_holds_count %]
55
        [% IF patron_holds_count %]
56
            <div class="dialog alert alert-info"> Patron has placed one or more record-level holds. <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | html %]">Convert a hold to a recall</a>. </div>
56
            <div class="dialog alert alert-info"> Patron has placed one or more record-level holds. <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | uri %]">Convert a hold to a recall</a>. </div>
57
        [% END %]
57
        [% END %]
58
58
59
        <fieldset class="rows">
59
        <fieldset class="rows">
(-)a/t/db_dependent/Holds.t (-4 / +6 lines)
Lines 7-13 use t::lib::TestBuilder; Link Here
7
7
8
use C4::Context;
8
use C4::Context;
9
9
10
use Test::More tests => 74;
10
use Test::More tests => 75;
11
use Test::NoWarnings;
11
use Test::NoWarnings;
12
use Test::Exception;
12
use Test::Exception;
13
13
Lines 2153-2159 subtest 'ModReserve to convert a hold to a recall' => sub { Link Here
2153
    my $category = $builder->build( { source => 'Category' } );
2153
    my $category = $builder->build( { source => 'Category' } );
2154
    my $branch   = $builder->build( { source => 'Branch' } )->{branchcode};
2154
    my $branch   = $builder->build( { source => 'Branch' } )->{branchcode};
2155
    my $biblio   = $builder->build_sample_biblio( { itemtype => 'DUMMY' } );
2155
    my $biblio   = $builder->build_sample_biblio( { itemtype => 'DUMMY' } );
2156
    my $item     = $builder->build_sample_item( { library => $branch, biblionumber => $biblio->biblionumber } );
2156
    my $itype    = $builder->build( { source => 'Itemtype' } );
2157
    my $item =
2158
        $builder->build_sample_item(
2159
        { library => $branch, biblionumber => $biblio->biblionumber, itype => $itype->{itemtype} } );
2157
2160
2158
    my $patron = Koha::Patron->new(
2161
    my $patron = Koha::Patron->new(
2159
        {
2162
        {
Lines 2179-2185 subtest 'ModReserve to convert a hold to a recall' => sub { Link Here
2179
    t::lib::Mocks::mock_preference( "UseRecalls", 1 );
2182
    t::lib::Mocks::mock_preference( "UseRecalls", 1 );
2180
    t::lib::Mocks::mock_userenv( { branchcode => $branch } );
2183
    t::lib::Mocks::mock_userenv( { branchcode => $branch } );
2181
2184
2182
    C4::Circulation::AddIssue( $patron2->unblessed, $item->barcode );
2185
    C4::Circulation::AddIssue( $patron2, $item->barcode );
2183
2186
2184
    Koha::CirculationRules->set_rules(
2187
    Koha::CirculationRules->set_rules(
2185
        {
2188
        {
2186
- 

Return to bug 31391