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

(-)a/opac/opac-topissues.pl (-2 / +9 lines)
Lines 2-7 Link Here
2
2
3
3
4
# Copyright 2000-2002 Katipo Communications
4
# Copyright 2000-2002 Katipo Communications
5
# Parts Copyright Catalyst IT 2011
5
#
6
#
6
# This file is part of Koha.
7
# This file is part of Koha.
7
#
8
#
Lines 83-89 if($advanced_search_types eq 'ccode'){ Link Here
83
                    ";
84
                    ";
84
    $template->param(ccodesearch => 1);
85
    $template->param(ccodesearch => 1);
85
}else{
86
}else{
86
    $whereclause .= ' AND biblioitems.itemtype='.$dbh->quote($itemtype) if $itemtype;
87
    if ($itemtype){
88
	if (C4::Context->preference('item-level_itypes')){
89
	    $whereclause .= ' AND items.itype = ' . $dbh->quote($itemtype);
90
	}
91
	else {
92
	    $whereclause .= ' AND biblioitems.itemtype='.$dbh->quote($itemtype);
93
        }
94
    }
87
    $query = "SELECT datecreated, biblio.biblionumber, title,
95
    $query = "SELECT datecreated, biblio.biblionumber, title,
88
                    author, sum( items.issues ) AS tot, biblioitems.itemtype,
96
                    author, sum( items.issues ) AS tot, biblioitems.itemtype,
89
                    biblioitems.publishercode,biblioitems.publicationyear,
97
                    biblioitems.publishercode,biblioitems.publicationyear,
90
- 

Return to bug 6947