"Last Few Circulations" total circulation count does not include aged circulations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.6 |
Fix Released
|
Medium
|
Unassigned | ||
2.7 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The "Show Last Few Circulations" interface, available from several access points with the staff client, has a "Total Circs" column in its display that does not count archived circulations.
Following the thread from the interface's XUL file:
Open-ILS/
Open-ILS/
Open-ILS/
__PACKAGE_
method => "circ_count",
api_name => "open-ils.
notes => q/
/);
sub circ_count {
my( $self, $client, $copyid, $range ) = @_;
my $e = OpenILS:
return $e->request(
}
Open-ILS/
sub circ_count {
my $self = shift;
my $client = shift;
my $copy = shift;
my $granularity = shift;
my $c_table = action:
if (lc($granularity) eq 'year') {
} elsif (lc($granularity) eq 'month') {
} elsif (lc($granularity) eq 'day') {
} else {
}
my $SQL = <<" SQL";
SQL
if ($granularity !~ /total/o) {
}
return action:
}
__PACKAGE_
method => 'circ_count',
api_name => 'open-ils.
argc => 1,
);
"my $c_table = action:
Evergreen 2.3.6
OpenSRF 2.1.2
PostgreSQL 9.1.9
Ubuntu 12.04
tags: | added: bitesize staffclient |
Changed in evergreen: | |
milestone: | 2.5.1 → 2.5.2 |
tags: | added: pullrequest |
Changed in evergreen: | |
milestone: | 2.5.2 → 2.6.0-alpha1 |
Changed in evergreen: | |
milestone: | 2.6.0-alpha1 → 2.6.0-beta1 |
Changed in evergreen: | |
milestone: | 2.6.0-beta1 → 2.6.0-rc1 |
Changed in evergreen: | |
milestone: | 2.6.0-rc1 → 2.next |
Changed in evergreen: | |
milestone: | 2.next → 2.7.2 |
milestone: | 2.7.2 → 2.next |
Changed in evergreen: | |
milestone: | 2.7.2 → 2.next |
My attempt at a fix:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ csharp/ fix_show_ last_few_ circulations_ circ_count
Dan Wells mentioned in IRC that we should try and leverage extend_ reporter. full_circ_ count here, which includes any entries to extend_ reporter. legacy_ circ_count in the totals. My fix here doesn't do that yet.