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

(-)a/C4/Auth.pm (-2 / +12 lines)
Lines 29-34 use C4::Koha; Link Here
29
use C4::Branch; # GetBranches
29
use C4::Branch; # GetBranches
30
use C4::VirtualShelves;
30
use C4::VirtualShelves;
31
31
32
#use Smart::Comments '####';
33
32
# use utf8;
34
# use utf8;
33
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $debug $ldap);
35
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $debug $ldap);
34
36
Lines 308-313 sub get_template_and_user { Link Here
308
        } elsif($mylibraryfirst){
310
        } elsif($mylibraryfirst){
309
            $opac_name = C4::Branch::GetBranchName($mylibraryfirst);
311
            $opac_name = C4::Branch::GetBranchName($mylibraryfirst);
310
        }
312
        }
313
314
311
        $template->param(
315
        $template->param(
312
            OPACAmazonContent             => "" . C4::Context->preference("OPACAmazonContent"),
316
            OPACAmazonContent             => "" . C4::Context->preference("OPACAmazonContent"),
313
            OPACAmazonCoverImages         => "" . C4::Context->preference("OPACAmazonCoverImages"),
317
            OPACAmazonCoverImages         => "" . C4::Context->preference("OPACAmazonCoverImages"),
Lines 361-366 sub get_template_and_user { Link Here
361
            suggestion                => "" . C4::Context->preference("suggestion"),
365
            suggestion                => "" . C4::Context->preference("suggestion"),
362
            virtualshelves            => "" . C4::Context->preference("virtualshelves"),
366
            virtualshelves            => "" . C4::Context->preference("virtualshelves"),
363
        );
367
        );
368
369
        $template->param(  OpacNotPublic   => C4::Context->preference("OpacNotPublic") )  
370
            unless (  $template->param( 'loggedinusername'  ) );
371
364
    }
372
    }
365
    return ( $template, $borrowernumber, $cookie, $flags);
373
    return ( $template, $borrowernumber, $cookie, $flags);
366
}
374
}
Lines 493-498 sub _session_log { Link Here
493
    close L;
501
    close L;
494
}
502
}
495
503
504
505
496
sub checkauth {
506
sub checkauth {
497
    my $query = shift;
507
    my $query = shift;
498
	$debug and warn "Checking Auth";
508
	$debug and warn "Checking Auth";
Lines 821-828 sub checkauth { Link Here
821
        OpacAuthorities      => C4::Context->preference("OpacAuthorities"),
831
        OpacAuthorities      => C4::Context->preference("OpacAuthorities"),
822
        OpacBrowser          => C4::Context->preference("OpacBrowser"),
832
        OpacBrowser          => C4::Context->preference("OpacBrowser"),
823
        opacheader           => C4::Context->preference("opacheader"),
833
        opacheader           => C4::Context->preference("opacheader"),
824
        TagsEnabled                  => C4::Context->preference("TagsEnabled"),
834
        OpacNotPublic        => C4::Context->preference("OpacNotPublic"),
825
        OPACUserCSS           => C4::Context->preference("OPACUserCSS"),
835
        OPACUserCSS          => C4::Context->preference("OPACUserCSS"),
826
        intranetcolorstylesheet =>
836
        intranetcolorstylesheet =>
827
								C4::Context->preference("intranetcolorstylesheet"),
837
								C4::Context->preference("intranetcolorstylesheet"),
828
        intranetstylesheet => C4::Context->preference("intranetstylesheet"),
838
        intranetstylesheet => C4::Context->preference("intranetstylesheet"),
(-)a/installer/data/mysql/updatedatabase30.pl (-1 / +7 lines)
Lines 26-32 use C4::Installer; Link Here
26
26
27
use MARC::Record;
27
use MARC::Record;
28
use MARC::File::XML ( BinaryEncoding => 'utf8' );
28
use MARC::File::XML ( BinaryEncoding => 'utf8' );
29
 
29
30
# FIXME - The user might be installing a new database, so can't rely
30
# FIXME - The user might be installing a new database, so can't rely
31
# on /etc/koha.conf anyway.
31
# on /etc/koha.conf anyway.
32
32
Lines 688-693 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
688
    SetVersion ($DBversion);
688
    SetVersion ($DBversion);
689
}
689
}
690
690
691
$DBversion = "3.00.05.004";
692
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
693
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacNotPublic','0','If set, all OPAC pages require authentication, and OPAC-searchbar is hidden - if user is not logged in','','YesNo')");
694
    print "Upgrade to $DBversion done (added 'OpacNotPublic' syspref)\n";
695
    SetVersion ($DBversion);
696
}
691
697
692
=item DropAllForeignKeys($table)
698
=item DropAllForeignKeys($table)
693
699
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc (-1 / +12 lines)
Lines 7-12 Link Here
7
  <!-- TMPL_IF NAME="opacheader" -->
7
  <!-- TMPL_IF NAME="opacheader" -->
8
	<!-- TMPL_VAR NAME="opacheader" -->
8
	<!-- TMPL_VAR NAME="opacheader" -->
9
  <!-- /TMPL_IF -->
9
  <!-- /TMPL_IF -->
10
11
12
10
<div id="opac-main-search" class="yui-g">
13
<div id="opac-main-search" class="yui-g">
11
   <!-- TMPL_IF NAME="opacsmallimage" -->
14
   <!-- TMPL_IF NAME="opacsmallimage" -->
12
   <h1 id="libraryname" style="background-image: url('<!-- TMPL_VAR NAME="opacsmallimage" -->');">
15
   <h1 id="libraryname" style="background-image: url('<!-- TMPL_VAR NAME="opacsmallimage" -->');">
Lines 15-20 Link Here
15
   <!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-main.pl"><!-- TMPL_IF NAME="LibraryName" --><!-- TMPL_VAR NAME="LibraryName" --><!-- TMPL_ELSE -->Koha Online Catalog<!-- /TMPL_IF --></a></h1>
18
   <!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-main.pl"><!-- TMPL_IF NAME="LibraryName" --><!-- TMPL_VAR NAME="LibraryName" --><!-- TMPL_ELSE -->Koha Online Catalog<!-- /TMPL_IF --></a></h1>
16
19
17
<div id="fluid">
20
<div id="fluid">
21
22
<!-- TMPL_UNLESS NAME="OpacNotPublic" -->
23
24
18
<div id="fluid-offset">
25
<div id="fluid-offset">
19
<!-- TMPL_UNLESS NAME="advsearch" --><form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
26
<!-- TMPL_UNLESS NAME="advsearch" --><form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
20
    <label for="masthead_search" class="left"> Search <!-- TMPL_IF name="mylibraryfirst" --> (in <!-- TMPL_VAR name="mylibraryfirst" --> only)<!-- /TMPL_IF --></label>
27
    <label for="masthead_search" class="left"> Search <!-- TMPL_IF name="mylibraryfirst" --> (in <!-- TMPL_VAR name="mylibraryfirst" --> only)<!-- /TMPL_IF --></label>
Lines 88-96 Link Here
88
  <!-- /TMPL_IF -->
95
  <!-- /TMPL_IF -->
89
<!-- /TMPL_IF -->
96
<!-- /TMPL_IF -->
90
</div>
97
</div>
91
 </div>
98
99
</div>
92
</div>
100
</div>
93
101
102
<!-- /TMPL_UNLESS -->
103
104
94
<!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your cart is empty.</div><!-- /TMPL_IF -->
105
<!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your cart is empty.</div><!-- /TMPL_IF -->
95
106
96
<!-- TMPL_IF NAME="virtualshelves" -->
107
<!-- TMPL_IF NAME="virtualshelves" -->
(-)a/kohaversion.pl (-1 / +1 lines)
Lines 10-16 Link Here
10
use strict;
10
use strict;
11
11
12
sub kohaversion {
12
sub kohaversion {
13
    our $VERSION = '3.00.05.003';
13
    our $VERSION = '3.00.05.004';
14
    # version needs to be set this way
14
    # version needs to be set this way
15
    # so that it can be picked up by Makefile.PL
15
    # so that it can be picked up by Makefile.PL
16
    # during install
16
    # during install
(-)a/opac/opac-ISBDdetail.pl (-1 / +1 lines)
Lines 64-70 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
64
        template_name   => "opac-ISBDdetail.tmpl",
64
        template_name   => "opac-ISBDdetail.tmpl",
65
        query           => $query,
65
        query           => $query,
66
        type            => "opac",
66
        type            => "opac",
67
        authnotrequired => 1,
67
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
68
        debug           => 1,
68
        debug           => 1,
69
    }
69
    }
70
);
70
);
(-)a/opac/opac-MARCdetail.pl (-1 / +1 lines)
Lines 66-72 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
66
        template_name   => "opac-MARCdetail.tmpl",
66
        template_name   => "opac-MARCdetail.tmpl",
67
        query           => $query,
67
        query           => $query,
68
        type            => "opac",
68
        type            => "opac",
69
        authnotrequired => 1,
69
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
70
        debug           => 1,
70
        debug           => 1,
71
    }
71
    }
72
);
72
);
(-)a/opac/opac-addbybiblionumber.pl (-1 / +1 lines)
Lines 59-65 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
59
        template_name   => "opac-addbybiblionumber.tmpl",
59
        template_name   => "opac-addbybiblionumber.tmpl",
60
        query           => $query,
60
        query           => $query,
61
        type            => "opac",
61
        type            => "opac",
62
        authnotrequired => 1,
62
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
63
    }
63
    }
64
);
64
);
65
65
(-)a/opac/opac-alert-subscribe.pl (-1 / +1 lines)
Lines 46-52 my $biblionumber = $query->param('biblionumber'); Link Here
46
        template_name   => "opac-alert-subscribe.tmpl",
46
        template_name   => "opac-alert-subscribe.tmpl",
47
        query           => $query,
47
        query           => $query,
48
        type            => "opac",
48
        type            => "opac",
49
        authnotrequired => 1,
49
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
50
        debug           => 1,
50
        debug           => 1,
51
    }
51
    }
52
);
52
);
(-)a/opac/opac-authorities-home.pl (-2 / +2 lines)
Lines 75-81 if ( $op eq "do_search" ) { Link Here
75
            template_name   => "opac-authoritiessearchresultlist.tmpl",
75
            template_name   => "opac-authoritiessearchresultlist.tmpl",
76
            query           => $query,
76
            query           => $query,
77
            type            => 'opac',
77
            type            => 'opac',
78
            authnotrequired => 1,
78
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
79
            debug           => 1,
79
            debug           => 1,
80
        }
80
        }
81
    );
81
    );
Lines 150-156 else { Link Here
150
            template_name   => "opac-authorities-home.tmpl",
150
            template_name   => "opac-authorities-home.tmpl",
151
            query           => $query,
151
            query           => $query,
152
            type            => 'opac',
152
            type            => 'opac',
153
            authnotrequired => 1,
153
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
154
            debug           => 1,
154
            debug           => 1,
155
        }
155
        }
156
    );
156
    );
(-)a/opac/opac-authoritiesdetail.pl (-1 / +1 lines)
Lines 61-67 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
61
        template_name   => "opac-authoritiesdetail.tmpl",
61
        template_name   => "opac-authoritiesdetail.tmpl",
62
        query           => $query,
62
        query           => $query,
63
        type            => "opac",
63
        type            => "opac",
64
        authnotrequired => 1,
64
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
65
        debug           => 1,
65
        debug           => 1,
66
    }
66
    }
67
);
67
);
(-)a/opac/opac-basket.pl (-1 / +1 lines)
Lines 32-38 my ( $template, $borrowernumber, $cookie ) = get_template_and_user ( Link Here
32
        template_name   => "opac-basket.tmpl",
32
        template_name   => "opac-basket.tmpl",
33
        query           => $query,
33
        query           => $query,
34
        type            => "opac",
34
        type            => "opac",
35
        authnotrequired => 1,
35
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
36
        flagsrequired   => { borrow => 1 },
36
        flagsrequired   => { borrow => 1 },
37
    }
37
    }
38
);
38
);
(-)a/opac/opac-browser.pl (-1 / +1 lines)
Lines 42-48 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
42
        template_name   => "opac-browser.tmpl",
42
        template_name   => "opac-browser.tmpl",
43
        query           => $query,
43
        query           => $query,
44
        type            => "opac",
44
        type            => "opac",
45
        authnotrequired => 1,
45
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
46
        debug           => 1,
46
        debug           => 1,
47
    }
47
    }
48
);
48
);
(-)a/opac/opac-detail.pl (-1 / +1 lines)
Lines 51-57 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
51
        template_name   => "opac-detail.tmpl",
51
        template_name   => "opac-detail.tmpl",
52
        query           => $query,
52
        query           => $query,
53
        type            => "opac",
53
        type            => "opac",
54
        authnotrequired => 1,
54
        authnotrequired => (  C4::Context->preference("OpacNotPublic") ? 0 :     1 ),
55
        flagsrequired   => { borrow => 1 },
55
        flagsrequired   => { borrow => 1 },
56
    }
56
    }
57
);
57
);
(-)a/opac/opac-detailprint.pl (-1 / +1 lines)
Lines 69-75 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
69
        template_name   => ('opac-detailprint.tmpl'),
69
        template_name   => ('opac-detailprint.tmpl'),
70
        query           => $query,
70
        query           => $query,
71
        type            => "opac",
71
        type            => "opac",
72
        authnotrequired => 1,
72
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
73
    }
73
    }
74
);
74
);
75
75
(-)a/opac/opac-main.pl (-1 / +1 lines)
Lines 36-42 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
36
        template_name   => "opac-main.tmpl",
36
        template_name   => "opac-main.tmpl",
37
        type            => "opac",
37
        type            => "opac",
38
        query           => $input,
38
        query           => $input,
39
        authnotrequired => 1,
39
        authnotrequired => (  C4::Context->preference("OpacNotPublic") ? 0 : 1 ), 
40
        flagsrequired   => { borrow => 1 },
40
        flagsrequired   => { borrow => 1 },
41
    }
41
    }
42
);
42
);
(-)a/opac/opac-recentacquisitions.pl (-1 / +1 lines)
Lines 23-29 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
23
        template_name   => "opac-recentacquisitions.tmpl",
23
        template_name   => "opac-recentacquisitions.tmpl",
24
        query           => $query,
24
        query           => $query,
25
        type            => "opac",
25
        type            => "opac",
26
        authnotrequired => 1,
26
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
27
        flagsrequired   => {},
27
        flagsrequired   => {},
28
        debug           => 1,
28
        debug           => 1,
29
    }
29
    }
(-)a/opac/opac-review.pl (-1 / +1 lines)
Lines 36-42 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
36
        template_name   => "opac-review.tmpl",
36
        template_name   => "opac-review.tmpl",
37
        query           => $query,
37
        query           => $query,
38
        type            => "opac",
38
        type            => "opac",
39
        authnotrequired => 1,
39
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
40
    }
40
    }
41
);
41
);
42
42
(-)a/opac/opac-search.pl (-1 / +1 lines)
Lines 56-62 else { Link Here
56
    template_name => $template_name,
56
    template_name => $template_name,
57
    query => $cgi,
57
    query => $cgi,
58
    type => "opac",
58
    type => "opac",
59
    authnotrequired => 1,
59
    authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
60
    }
60
    }
61
);
61
);
62
62
(-)a/opac/opac-sendbasket.pl (-1 / +1 lines)
Lines 61-67 if ( $email_add ) { Link Here
61
            template_name   => "opac-sendbasket.tmpl",
61
            template_name   => "opac-sendbasket.tmpl",
62
            query           => $query,
62
            query           => $query,
63
            type            => "opac",
63
            type            => "opac",
64
            authnotrequired => 1,
64
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
65
            flagsrequired   => { borrow => 1 },
65
            flagsrequired   => { borrow => 1 },
66
        }
66
        }
67
    );
67
    );
(-)a/opac/opac-sendshelf.pl (-2 / +2 lines)
Lines 40-46 my ( $template, $borrowernumber, $cookie ) = get_template_and_user ( Link Here
40
        template_name   => "opac-sendshelfform.tmpl",
40
        template_name   => "opac-sendshelfform.tmpl",
41
        query           => $query,
41
        query           => $query,
42
        type            => "opac",
42
        type            => "opac",
43
        authnotrequired => 1,
43
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
44
        flagsrequired   => { borrow => 1 },
44
        flagsrequired   => { borrow => 1 },
45
    }
45
    }
46
);
46
);
Lines 64-70 if ( $email ) { Link Here
64
            template_name   => "opac-sendshelf.tmpl",
64
            template_name   => "opac-sendshelf.tmpl",
65
            query           => $query,
65
            query           => $query,
66
            type            => "opac",
66
            type            => "opac",
67
            authnotrequired => 1,
67
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
68
            flagsrequired   => { borrow => 1 },
68
            flagsrequired   => { borrow => 1 },
69
        }
69
        }
70
    );
70
    );
(-)a/opac/opac-serial-issues.pl (-2 / +2 lines)
Lines 48-54 if ( $selectview eq "full" ) { Link Here
48
            template_name   => "opac-full-serial-issues.tmpl",
48
            template_name   => "opac-full-serial-issues.tmpl",
49
            query           => $query,
49
            query           => $query,
50
            type            => "opac",
50
            type            => "opac",
51
            authnotrequired => 1,
51
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
52
            debug           => 1,
52
            debug           => 1,
53
        }
53
        }
54
    );
54
    );
Lines 86-92 else { Link Here
86
            template_name   => "opac-serial-issues.tmpl",
86
            template_name   => "opac-serial-issues.tmpl",
87
            query           => $query,
87
            query           => $query,
88
            type            => "opac",
88
            type            => "opac",
89
            authnotrequired => 1,
89
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
90
            debug           => 1,
90
            debug           => 1,
91
        }
91
        }
92
    );
92
    );
(-)a/opac/opac-shelves.pl (-1 / +1 lines)
Lines 29-35 my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ Link Here
29
        template_name   => "opac-shelves.tmpl",
29
        template_name   => "opac-shelves.tmpl",
30
        query           => $query,
30
        query           => $query,
31
        type            => "opac",
31
        type            => "opac",
32
        authnotrequired => 1,
32
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
33
    });
33
    });
34
$template->param(listsview => 1);
34
$template->param(listsview => 1);
35
# if $loggedinuser is not defined, set it to -1, which should
35
# if $loggedinuser is not defined, set it to -1, which should
(-)a/opac/opac-showmarc.pl (-1 / +1 lines)
Lines 48-54 my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ Link Here
48
        template_name   => "opac-showmarc.tmpl",
48
        template_name   => "opac-showmarc.tmpl",
49
        query           => $input,
49
        query           => $input,
50
        type            => "opac",
50
        type            => "opac",
51
        authnotrequired => 1,
51
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
52
        debug           => 1,
52
        debug           => 1,
53
});
53
});
54
54
(-)a/opac/opac-showreviews.pl (-1 / +1 lines)
Lines 34-40 my ( $template, $borrowernumber, $cookie ) = &get_template_and_user( Link Here
34
        template_name   => "opac-showreviews.tmpl",
34
        template_name   => "opac-showreviews.tmpl",
35
        query           => $query,
35
        query           => $query,
36
        type            => "opac",
36
        type            => "opac",
37
        authnotrequired => 1,
37
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
38
    }
38
    }
39
);
39
);
40
40
(-)a/opac/opac-suggestions.pl (-1 / +1 lines)
Lines 49-55 if ( C4::Context->preference("AnonSuggestions") ) { Link Here
49
            template_name   => "opac-suggestions.tmpl",
49
            template_name   => "opac-suggestions.tmpl",
50
            query           => $input,
50
            query           => $input,
51
            type            => "opac",
51
            type            => "opac",
52
            authnotrequired => 1,
52
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
53
        }
53
        }
54
    );
54
    );
55
    if ( !$borrowernumber ) {
55
    if ( !$borrowernumber ) {
(-)a/opac/opac-tags_subject.pl (-1 / +1 lines)
Lines 44-50 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
44
        template_name   => "opac-tags_subject.tmpl",
44
        template_name   => "opac-tags_subject.tmpl",
45
        query           => $query,
45
        query           => $query,
46
        type            => "opac",
46
        type            => "opac",
47
        authnotrequired => 1,
47
        authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
48
        debug           => 1,
48
        debug           => 1,
49
    }
49
    }
50
);
50
);
(-)a/opac/opac-topissues.pl (-1 / +1 lines)
Lines 48-54 my ($template, $borrowernumber, $cookie) Link Here
48
	= get_template_and_user({template_name => 'opac-topissues.tmpl',
48
	= get_template_and_user({template_name => 'opac-topissues.tmpl',
49
				query => $input,
49
				query => $input,
50
				type => "opac",
50
				type => "opac",
51
				authnotrequired => 1,
51
				authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
52
				debug => 1,
52
				debug => 1,
53
				});
53
				});
54
my $dbh = C4::Context->dbh;
54
my $dbh = C4::Context->dbh;
(-)a/opac/opac-userupdate.pl (-2 / +1 lines)
Lines 66-72 if ( $updateemailaddress eq '' ) { Link Here
66
            template_name   => "kohaerror.tmpl",
66
            template_name   => "kohaerror.tmpl",
67
            query           => $query,
67
            query           => $query,
68
            type            => "opac",
68
            type            => "opac",
69
            authnotrequired => 1,
69
            authnotrequired => (C4::Context->preference("OpacNotPublic") ? 0 : 1),
70
            flagsrequired   => { borrow => 1 },
70
            flagsrequired   => { borrow => 1 },
71
            debug           => 1,
71
            debug           => 1,
72
        }
72
        }
73
- 

Return to bug 4289