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

(-)a/circ/circulation.pl (-3 lines)
Lines 207-215 my $message; Link Here
207
if ($findborrower) {
207
if ($findborrower) {
208
    my $borrowers = Search($findborrower, 'cardnumber') || [];
208
    my $borrowers = Search($findborrower, 'cardnumber') || [];
209
    if (C4::Context->preference("AddPatronLists")) {
209
    if (C4::Context->preference("AddPatronLists")) {
210
        $template->param(
211
            "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
212
        );
213
        if (C4::Context->preference("AddPatronLists")=~/code/){
210
        if (C4::Context->preference("AddPatronLists")=~/code/){
214
            my $categories = GetBorrowercategoryList;
211
            my $categories = GetBorrowercategoryList;
215
            $categories->[0]->{'first'} = 1;
212
            $categories->[0]->{'first'} = 1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc (-1 / +1 lines)
Lines 3-9 Link Here
3
    <div class="btn-group">
3
    <div class="btn-group">
4
        <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New patron <span class="caret"></span></button>
4
        <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New patron <span class="caret"></span></button>
5
            <ul class="dropdown-menu">
5
            <ul class="dropdown-menu">
6
                [% IF ( AddPatronLists_categorycode ) %]
6
                [% IF Koha.Preference('AddPatronLists') == 'categorycode' %]
7
                    [% FOREACH categorie IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=[% categorie.categorycode %]">[% categorie.description | html_entity %]</a></li>[% END %]
7
                    [% FOREACH categorie IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=[% categorie.categorycode %]">[% categorie.description | html_entity %]</a></li>[% END %]
8
                [% ELSE %]
8
                [% ELSE %]
9
                    <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A">Adult patron</a></li>
9
                    <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A">Adult patron</a></li>
(-)a/members/members-home.pl (-2 lines)
Lines 95-101 my $pending_borrower_modifications = Link Here
95
  Koha::Borrower::Modifications->GetPendingModificationsCount( $branch );
95
  Koha::Borrower::Modifications->GetPendingModificationsCount( $branch );
96
96
97
$template->param( 
97
$template->param( 
98
        "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
99
        no_add => $no_add,
98
        no_add => $no_add,
100
        pending_borrower_modifications => $pending_borrower_modifications,
99
        pending_borrower_modifications => $pending_borrower_modifications,
101
            );
100
            );
102
- 

Return to bug 13458