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

(-)a/C4/CourseReserves.pm (-9 / +9 lines)
Lines 1026-1032 sub SearchCourses { Link Here
1026
1026
1027
    my $term = $params{'term'};
1027
    my $term = $params{'term'};
1028
1028
1029
    my $enabled = $params{'enabled'} || '%';
1029
    my $enabled      = $params{'enabled'}      || '%';
1030
    my $thesis_table = $params{'thesis_table'} || 'no';
1030
    my $thesis_table = $params{'thesis_table'} || 'no';
1031
1031
1032
    my @params;
1032
    my @params;
Lines 1059-1073 sub SearchCourses { Link Here
1059
    ";
1059
    ";
1060
1060
1061
    if ( $thesis_table eq 'no' ) {
1061
    if ( $thesis_table eq 'no' ) {
1062
	$query .= "
1062
        $query .= "
1063
	    AND
1063
        AND
1064
	    c.department != 'TT'
1064
        c.department != 'TT'
1065
	";
1065
    ";
1066
    } else {
1066
    } else {
1067
	$query .= "
1067
        $query .= "
1068
	    AND
1068
        AND
1069
	    c.department = 'TT'
1069
        c.department = 'TT'
1070
	";
1070
    ";
1071
    }
1071
    }
1072
1072
1073
    $query .= "
1073
    $query .= "
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-3 / +3 lines)
Lines 431-439 Link Here
431
                        <li class="nav-item">
431
                        <li class="nav-item">
432
                            <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a>
432
                            <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a>
433
                        </li>
433
                        </li>
434
			<li class="nav-item">
434
                        <li class="nav-item">
435
			    <a href="/cgi-bin/koha/opac-thesis-tables.pl">Research tables</a>
435
                            <a href="/cgi-bin/koha/opac-thesis-tables.pl">Research tables</a>
436
			</li>
436
                        </li>
437
                    [% END %]
437
                    [% END %]
438
                [% END %]
438
                [% END %]
439
                [% IF ( Koha.Preference('OPACShowLibraries') && AllPublicBranches.size > 0 ) %]
439
                [% IF ( Koha.Preference('OPACShowLibraries') && AllPublicBranches.size > 0 ) %]
(-)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