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

(-)a/C4/CourseReserves.pm (-9 / +9 lines)
Lines 1013-1019 sub SearchCourses { Link Here
1013
1013
1014
    my $term = $params{'term'};
1014
    my $term = $params{'term'};
1015
1015
1016
    my $enabled = $params{'enabled'} || '%';
1016
    my $enabled      = $params{'enabled'}      || '%';
1017
    my $thesis_table = $params{'thesis_table'} || 'no';
1017
    my $thesis_table = $params{'thesis_table'} || 'no';
1018
1018
1019
    my @params;
1019
    my @params;
Lines 1046-1060 sub SearchCourses { Link Here
1046
    ";
1046
    ";
1047
1047
1048
    if ( $thesis_table eq 'no' ) {
1048
    if ( $thesis_table eq 'no' ) {
1049
	$query .= "
1049
        $query .= "
1050
	    AND
1050
        AND
1051
	    c.department != 'TT'
1051
        c.department != 'TT'
1052
	";
1052
    ";
1053
    } else {
1053
    } else {
1054
	$query .= "
1054
        $query .= "
1055
	    AND
1055
        AND
1056
	    c.department = 'TT'
1056
        c.department = 'TT'
1057
	";
1057
    ";
1058
    }
1058
    }
1059
1059
1060
    $query .= "
1060
    $query .= "
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-3 / +3 lines)
Lines 320-328 Link Here
320
                        <li class="nav-item">
320
                        <li class="nav-item">
321
                            <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
321
                            <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
322
                        </li>
322
                        </li>
323
			<li class="nav-item">
323
                        <li class="nav-item">
324
			    <a href="/cgi-bin/koha/opac-thesis-tables.pl">Research tables</a>
324
                            <a href="/cgi-bin/koha/opac-thesis-tables.pl">Research tables</a>
325
			</li>
325
                        </li>
326
                    [% END %]
326
                    [% END %]
327
                    [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]
327
                    [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]
328
                        <li class="nav-item">
328
                        <li class="nav-item">
(-)a/opac/opac-thesis-table-details.pl (-3 / +4 lines)
Lines 22-28 use Modern::Perl; Link Here
22
22
23
use CGI qw ( -utf8 );
23
use CGI qw ( -utf8 );
24
24
25
use C4::Auth qw( get_template_and_user );
25
use C4::Auth   qw( get_template_and_user );
26
use C4::Output qw( output_html_with_http_headers );
26
use C4::Output qw( output_html_with_http_headers );
27
use C4::Koha;
27
use C4::Koha;
28
28
Lines 31-37 use C4::CourseReserves qw(GetCourse GetCourseReserves); Link Here
31
my $cgi = CGI->new;
31
my $cgi = CGI->new;
32
32
33
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
33
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
34
    {   template_name   => "opac-thesis-table-details.tt",
34
    {
35
        template_name   => "opac-thesis-table-details.tt",
35
        query           => $cgi,
36
        query           => $cgi,
36
        type            => "opac",
37
        type            => "opac",
37
        authnotrequired => 1,
38
        authnotrequired => 1,
Lines 43-49 my $table_id = $cgi->param('table_id'); Link Here
43
44
44
die("No table_id given") unless ($table_id);
45
die("No table_id given") unless ($table_id);
45
46
46
my $course = GetCourse($table_id);
47
my $course          = GetCourse($table_id);
47
my $course_reserves = GetCourseReserves( course_id => $table_id, include_items => 1, include_count => 1 );
48
my $course_reserves = GetCourseReserves( course_id => $table_id, include_items => 1, include_count => 1 );
48
49
49
$template->param(
50
$template->param(
(-)a/opac/opac-thesis-tables.pl (-3 / +3 lines)
Lines 22-28 use Modern::Perl; Link Here
22
22
23
use CGI qw ( -utf8 );
23
use CGI qw ( -utf8 );
24
24
25
use C4::Auth qw( get_template_and_user );
25
use C4::Auth   qw( get_template_and_user );
26
use C4::Output qw( output_html_with_http_headers );
26
use C4::Output qw( output_html_with_http_headers );
27
27
28
use C4::CourseReserves qw(SearchCourses);
28
use C4::CourseReserves qw(SearchCourses);
Lines 30-36 use C4::CourseReserves qw(SearchCourses); Link Here
30
my $cgi = CGI->new;
30
my $cgi = CGI->new;
31
31
32
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
32
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
33
    {   template_name   => "opac-thesis-tables.tt",
33
    {
34
        template_name   => "opac-thesis-tables.tt",
34
        query           => $cgi,
35
        query           => $cgi,
35
        type            => "opac",
36
        type            => "opac",
36
        authnotrequired => 1,
37
        authnotrequired => 1,
37
- 

Return to bug 35972