From a6843caa705493c81360647bddfe6a024bc0ae8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Wed, 15 Jun 2016 14:28:31 +0200 Subject: [PATCH] Bug 16742: Remove unused template subject.tt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The template koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/subject.tt is not used and can be removed. To test: - Apply patch - Verify that catalogue/moredetail.pl works as before (go to a biblio with items and click 'Items' in left hand menu) Signed-off-by: Hector Castro Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit cf441013a5b1f525c9be38e5f3a76e47925a3703) Signed-off-by: Frédéric Demians --- catalogue/moredetail.pl | 8 +--- .../prog/en/modules/catalogue/subject.tt | 46 ------------------- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/subject.tt diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index f94c1ff0e2..b0ed6549c3 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -30,7 +30,6 @@ use C4::Acquisition; use C4::Output; use C4::Auth; use C4::Serials; -use C4::Circulation; # to use itemissues use C4::Members; # to use GetMember use C4::Search; # enabled_staff_search_views use C4::Members qw/GetHideLostItemsPreference/; @@ -42,15 +41,10 @@ use Koha::Items; my $query=new CGI; -# FIXME subject is not exported to the template? -my $subject=$query->param('subject'); - # if its a subject we need to use the subject.tt my ($template, $loggedinuser, $cookie) = get_template_and_user( { - template_name => ( $subject - ? 'catalogue/subject.tt' - : 'catalogue/moredetail.tt'), + template_name => 'catalogue/moredetail.tt', query => $query, type => "intranet", authnotrequired => 0, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/subject.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/subject.tt deleted file mode 100644 index 3bf55a93af..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/subject.tt +++ /dev/null @@ -1,46 +0,0 @@ -[% INCLUDE 'doc-head-open.inc' %] -Koha › Catalog › Subject search results -[% INCLUDE 'doc-head-close.inc' %] - - - -[% INCLUDE 'header.inc' %] -[% INCLUDE 'cat-search.inc' %] - - - -
- -
-
-
- -
- -

Subject search results

- -

Results [% startfrom %] through [% endat %] of [% numrecords %] records.

- - - - - -[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] - - - -[% END %] -
Subject headings
- [% SEARCH_RESULT.subject %] -
-

Previous records Next records

- -
- -
-
-
-[% INCLUDE 'cat-menu.inc' %] -
-
-[% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5