@@ -, +, @@ in the OPAC --- .../bootstrap/en/modules/opac-course-details.tt | 15 ++++++++++++-- .../bootstrap/en/modules/opac-course-reserves.tt | 23 +++++++++++----------- opac/opac-course-reserves.pl | 12 +++-------- 3 files changed, 28 insertions(+), 22 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt @@ -6,7 +6,10 @@ [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Course reserves for [% course.course_name %] [% INCLUDE 'doc-head-close.inc' %] -[% BLOCK cssinclude %][% END %] +[% BLOCK cssinclude %] + +[% END %] + [% INCLUDE 'bodytag.inc' bodyid='opac-main' %] [% INCLUDE 'masthead.inc' %] @@ -43,7 +46,7 @@ [% IF ( course_reserves ) %] - +
@@ -86,4 +89,12 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] + [% INCLUDE 'datatables.inc' %] + [% END %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt @@ -4,7 +4,10 @@ [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Courses [% INCLUDE 'doc-head-close.inc' %] -[% BLOCK cssinclude %][% END %] +[% BLOCK cssinclude %] + +[% END %] + [% INCLUDE 'bodytag.inc' bodyid='opac-main' %] [% INCLUDE 'masthead.inc' %] @@ -20,16 +23,6 @@

Courses

-
-
- -
- - -
- - -
Title
@@ -67,4 +60,12 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] + [% INCLUDE 'datatables.inc' %] + [% END %] --- a/opac/opac-course-reserves.pl +++ a/opac/opac-course-reserves.pl @@ -38,13 +38,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); -my $search_on = $cgi->param('search_on'); +my $courses = SearchCourses( enabled => 'yes' ); -my $courses = SearchCourses( term => $search_on, enabled => 'yes' ); - -if ( @$courses == 1 ) { - print $cgi->redirect( "/cgi-bin/koha/opac-course-details.pl?course_id=" . $courses->[0]->{'course_id'} ); -} else { - $template->param( courses => $courses ); - output_html_with_http_headers $cgi, $cookie, $template->output; -} +$template->param( courses => $courses ); +output_html_with_http_headers $cgi, $cookie, $template->output; --