my @itypes;
for ( @{$dbh->selectall_arrayref(
- "SELECT * FROM itemtypes ORDER BY description", { Slice => {} })} )
+ "SELECT * FROM itemtypes ORDER BY description -- C4::ItemType", { Slice => {} })} )
{
utf8::encode($_->{description});
push @itypes, $class->new($_);
my $dbh = C4::Context->dbh;
my $query = qq|
SELECT *
- FROM itemtypes
+ FROM itemtypes -- memoize
|;
my $sth = $dbh->prepare($query);
$sth->execute;
my ($frameworkcode) = @_;
my $dbh = C4::Context->dbh;
my $sth =
- $dbh->prepare("select * from biblio_framework where frameworkcode=?");
+ $dbh->prepare("select * from biblio_framework where frameworkcode=? -- getframeworkinfo");
$sth->execute($frameworkcode);
my $res = $sth->fetchrow_hashref;
return $res;
sub getitemtypeinfo {
my ($itemtype) = @_;
my $dbh = C4::Context->dbh;
- my $sth = $dbh->prepare("select * from itemtypes where itemtype=?");
+ my $sth = $dbh->prepare("select * from itemtypes where itemtype=? -- getitemtypeinfo");
$sth->execute($itemtype);
my $res = $sth->fetchrow_hashref;
my %itemtypes;
$bsth =
$dbh->prepare(
- "SELECT itemtype,description,imageurl,summary,notforloan FROM itemtypes"
+ "SELECT itemtype,description,imageurl,summary,notforloan FROM itemtypes -- C4::Search"
);
$bsth->execute();
while ( my $bdata = $bsth->fetchrow_hashref ) {