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

(-)a/catalogue/moredetail.pl (-7 / +1 lines)
Lines 30-36 use C4::Acquisition; Link Here
30
use C4::Output;
30
use C4::Output;
31
use C4::Auth;
31
use C4::Auth;
32
use C4::Serials;
32
use C4::Serials;
33
use C4::Circulation;  # to use itemissues
34
use C4::Members; # to use GetMember
33
use C4::Members; # to use GetMember
35
use C4::Search;		# enabled_staff_search_views
34
use C4::Search;		# enabled_staff_search_views
36
use C4::Members qw/GetHideLostItemsPreference/;
35
use C4::Members qw/GetHideLostItemsPreference/;
Lines 42-56 use Koha::Items; Link Here
42
41
43
my $query=new CGI;
42
my $query=new CGI;
44
43
45
# FIXME  subject is not exported to the template?
46
my $subject=$query->param('subject');
47
48
# if its a subject we need to use the subject.tt
44
# if its a subject we need to use the subject.tt
49
my ($template, $loggedinuser, $cookie) = get_template_and_user(
45
my ($template, $loggedinuser, $cookie) = get_template_and_user(
50
    {
46
    {
51
        template_name   => ( $subject
47
        template_name   => 'catalogue/moredetail.tt',
52
                                ? 'catalogue/subject.tt'
53
                                : 'catalogue/moredetail.tt'),
54
        query           => $query,
48
        query           => $query,
55
        type            => "intranet",
49
        type            => "intranet",
56
        authnotrequired => 0,
50
        authnotrequired => 0,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/subject.tt (-47 lines)
Lines 1-46 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Catalog &rsaquo; Subject search results</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
<body id="catalog_subject" class="catalog">
6
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'cat-search.inc' %]
9
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Subject search results</div>
11
12
<div id="doc3" class="yui-t2">
13
   
14
   <div id="bd">
15
	<div id="yui-main">
16
	<div class="yui-b">
17
18
<div id="catalogue_detail_biblio">
19
20
<h1>Subject search results</h1>
21
22
<div id="resultnumber"><p>Results <b>[% startfrom %]</b> through <b>[% endat %] of [% numrecords %]</b> records.<br /></p></div>
23
24
<table>
25
<tr>
26
		<th>Subject headings</th>
27
	</tr>
28
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
29
    <tr>
30
		<td>
31
			<a href="/cgi-bin/koha/search.pl?type=[% IF ( SEARCH_RESULT.opac ) %]opac[% ELSE %]intra[% END %]&amp;subjectitems=[% SEARCH_RESULT.subject2 |html %]">[% SEARCH_RESULT.subject %]</a>
32
		</td>
33
	</tr>
34
[% END %]
35
</table>
36
<p><a  class="button" href="search.pl?[% FOREACH FORMINPUT IN FORMINPUTS %][% FORMINPUT.line |url %]&amp;[% END %]startfrom=[% prevstartfrom %]">Previous records</a> <a class="button" href="search.pl?[% FOREACH FORMINPUT IN FORMINPUTS %][% FORMINPUT.line %]&amp;[% END %]startfrom=[% nextstartfrom %]">Next records</a></p>
37
38
</div>
39
40
</div>
41
</div>
42
<div class="yui-b">
43
[% INCLUDE 'cat-menu.inc' %]
44
</div>
45
</div>
46
[% INCLUDE 'intranet-bottom.inc' %]
47
- 

Return to bug 16742