Bug 16742: Remove unused template subject.tt
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 <hector.hecaxmmx@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit cf441013a5)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
cc31338f26
commit
a6843caa70
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,46 +0,0 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Catalog › Subject search results</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
<body id="catalog_subject" class="catalog">
|
||||
|
||||
[% INCLUDE 'header.inc' %]
|
||||
[% INCLUDE 'cat-search.inc' %]
|
||||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › Subject search results</div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
|
||||
<div id="catalogue_detail_biblio">
|
||||
|
||||
<h1>Subject search results</h1>
|
||||
|
||||
<div id="resultnumber"><p>Results <b>[% startfrom %]</b> through <b>[% endat %] of [% numrecords %]</b> records.<br /></p></div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Subject headings</th>
|
||||
</tr>
|
||||
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/cgi-bin/koha/search.pl?type=[% IF ( SEARCH_RESULT.opac ) %]opac[% ELSE %]intra[% END %]&subjectitems=[% SEARCH_RESULT.subject2 |html %]">[% SEARCH_RESULT.subject %]</a>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</table>
|
||||
<p><a class="button" href="search.pl?[% FOREACH FORMINPUT IN FORMINPUTS %][% FORMINPUT.line |url %]&[% END %]startfrom=[% prevstartfrom %]">Previous records</a> <a class="button" href="search.pl?[% FOREACH FORMINPUT IN FORMINPUTS %][% FORMINPUT.line %]&[% END %]startfrom=[% nextstartfrom %]">Next records</a></p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="yui-b">
|
||||
[% INCLUDE 'cat-menu.inc' %]
|
||||
</div>
|
||||
</div>
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
Loading…
Reference in New Issue