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

(-)a/catalogue/ISBDdetail.pl (-3 / +2 lines)
Lines 108-116 my $res = GetISBDView({ Link Here
108
if($query->cookie("holdfor")){ 
108
if($query->cookie("holdfor")){ 
109
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
109
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
110
    $template->param(
110
    $template->param(
111
        holdfor            => $query->cookie("holdfor"),
111
        holdfor        => $query->cookie("holdfor"),
112
        holdfor_patron     => $holdfor_patron,
112
        holdfor_patron => $holdfor_patron,
113
        holdfor_cardnumber => $holdfor_patron->cardnumber,
114
    );
113
    );
115
}
114
}
116
115
(-)a/catalogue/MARCdetail.pl (-3 / +2 lines)
Lines 110-118 my $biblio = GetBiblioData($biblionumber); Link Here
110
if($query->cookie("holdfor")){ 
110
if($query->cookie("holdfor")){ 
111
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
111
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
112
    $template->param(
112
    $template->param(
113
        holdfor            => $query->cookie("holdfor"),
113
        holdfor        => $query->cookie("holdfor"),
114
        holdfor_patron     => $holdfor_patron,
114
        holdfor_patron => $holdfor_patron,
115
        holdfor_cardnumber => $holdfor_patron->cardnumber,
116
    );
115
    );
117
}
116
}
118
117
(-)a/catalogue/detail.pl (-2 / +1 lines)
Lines 103-111 if($query->cookie("holdfor")){ Link Here
103
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
103
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
104
    if ( $holdfor_patron ) {
104
    if ( $holdfor_patron ) {
105
        $template->param(
105
        $template->param(
106
            holdfor => $query->cookie("holdfor"),
106
            holdfor        => $query->cookie("holdfor"),
107
            holdfor_patron => $holdfor_patron,
107
            holdfor_patron => $holdfor_patron,
108
            holdfor_cardnumber => $holdfor_patron->cardnumber,
109
        );
108
        );
110
    }
109
    }
111
}
110
}
(-)a/catalogue/imageviewer.pl (-3 / +2 lines)
Lines 49-57 my @items = GetItemsInfo($biblionumber); Link Here
49
if ( $query->cookie("holdfor") ) {
49
if ( $query->cookie("holdfor") ) {
50
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
50
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
51
    $template->param(
51
    $template->param(
52
        holdfor            => $query->cookie("holdfor"),
52
        holdfor        => $query->cookie("holdfor"),
53
        holdfor_patron     => $holdfor_patron,
53
        holdfor_patron => $holdfor_patron,
54
        holdfor_cardnumber => $holdfor_patron->cardnumber,
55
    );
54
    );
56
}
55
}
57
56
(-)a/catalogue/labeledMARCdetail.pl (-3 / +2 lines)
Lines 73-81 my $biblio = GetBiblioData($biblionumber); Link Here
73
if($query->cookie("holdfor")){ 
73
if($query->cookie("holdfor")){ 
74
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
74
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
75
    $template->param(
75
    $template->param(
76
        holdfor            => $query->cookie("holdfor"),
76
        holdfor        => $query->cookie("holdfor"),
77
        holdfor_patron     => $holdfor_patron,
77
        holdfor_patron => $holdfor_patron,
78
        holdfor_cardnumber => $holdfor_patron->cardnumber,
79
    );
78
    );
80
}
79
}
81
80
(-)a/catalogue/moredetail.pl (-3 / +2 lines)
Lines 55-63 $template->param( Link Here
55
if($query->cookie("holdfor")){ 
55
if($query->cookie("holdfor")){ 
56
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
56
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
57
    $template->param(
57
    $template->param(
58
        holdfor            => $query->cookie("holdfor"),
58
        holdfor        => $query->cookie("holdfor"),
59
        holdfor_patron     => $holdfor_patron,
59
        holdfor_patron => $holdfor_patron,
60
        holdfor_cardnumber => $holdfor_patron->cardnumber,
61
    );
60
    );
62
}
61
}
63
62
(-)a/catalogue/search.pl (-3 / +2 lines)
Lines 203-211 if($cgi->cookie("holdfor")){ Link Here
203
    my $holdfor_patron = Koha::Patrons->find( $cgi->cookie("holdfor") );
203
    my $holdfor_patron = Koha::Patrons->find( $cgi->cookie("holdfor") );
204
    if ( $holdfor_patron ) { # may have been deleted in the meanwhile
204
    if ( $holdfor_patron ) { # may have been deleted in the meanwhile
205
        $template->param(
205
        $template->param(
206
            holdfor            => $cgi->cookie("holdfor"),
206
            holdfor        => $cgi->cookie("holdfor"),
207
            holdfor_patron     => $holdfor_patron,
207
            holdfor_patron => $holdfor_patron,
208
            holdfor_cardnumber => $holdfor_patron->cardnumber,
209
        );
208
        );
210
    }
209
    }
211
}
210
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-1 / +1 lines)
Lines 182-188 Link Here
182
                </button>
182
                </button>
183
                <ul class="dropdown-menu">
183
                <ul class="dropdown-menu">
184
                    <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">Place hold</a></li>
184
                    <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">Place hold</a></li>
185
                    <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]&amp;findborrower=[% holdfor_cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></li>
185
                    <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></li>
186
                </ul>
186
                </ul>
187
            </div>
187
            </div>
188
        [% ELSE %]
188
        [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +2 lines)
Lines 519-525 Link Here
519
                                                    [% ELSE %]
519
                                                    [% ELSE %]
520
                                                        [% IF CAN_user_reserveforothers_place_holds %]
520
                                                        [% IF CAN_user_reserveforothers_place_holds %]
521
                                                            <a id="reserve_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) | html %])</a>
521
                                                            <a id="reserve_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) | html %])</a>
522
                                                            [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;findborrower=[% holdfor_cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></span>[% END %]
522
                                                            [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></span>[% END %]
523
                                                            [% IF ( holdforclub ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;club=[% holdforclub | uri %]">Place hold for [% holdforclub_name | html %]</a></span>[% END %]
523
                                                            [% IF ( holdforclub ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;club=[% holdforclub | uri %]">Place hold for [% holdforclub_name | html %]</a></span>[% END %]
524
                                                        [% ELSE %]
524
                                                        [% ELSE %]
525
                                                            <span>Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) | html %])</span>
525
                                                            <span>Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) | html %])</span>
Lines 724-730 Link Here
724
        var PREF_StaffHighlightedWords = "[% Koha.Preference('StaffHighlightedWords') | html %]";
724
        var PREF_StaffHighlightedWords = "[% Koha.Preference('StaffHighlightedWords') | html %]";
725
        var PREF_NotHighlightedWords = "[% Koha.Preference('NotHighlightedWords') | html %]";
725
        var PREF_NotHighlightedWords = "[% Koha.Preference('NotHighlightedWords') | html %]";
726
        var biblionumber = "[% biblionumber | html %]";
726
        var biblionumber = "[% biblionumber | html %]";
727
        var holdfor_cardnumber = "[% holdfor_cardnumber | html %]";
727
        var holdfor_cardnumber = "[% holdfor_patron.cardnumber | html %]";
728
        var holdforclub = "[% holdforclub | html %]";
728
        var holdforclub = "[% holdforclub | html %]";
729
        [% IF SEARCH_RESULTS %]
729
        [% IF SEARCH_RESULTS %]
730
            var SEARCH_RESULTS = 1;
730
            var SEARCH_RESULTS = 1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +1 lines)
Lines 276-282 Link Here
276
                        [% ELSE %]
276
                        [% ELSE %]
277
                            [% IF ( itemsloo.ITEM_RESULTS.size ) %]
277
                            [% IF ( itemsloo.ITEM_RESULTS.size ) %]
278
                                <a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
278
                                <a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
279
                                [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&amp;findborrower=[% holdfor_cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>[% END %]
279
                                [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>[% END %]
280
                            [% ELSE %]
280
                            [% ELSE %]
281
                                <span class="noholdstext">No holds allowed</span>
281
                                <span class="noholdstext">No holds allowed</span>
282
                            [% END %]
282
                            [% END %]
283
- 

Return to bug 21978