Add Collection code limit to issues_stats report.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Ryan Higgins 2008-06-05 12:15:06 -05:00 committed by Joshua Ferraro
parent fc99bfcbb1
commit 98bc024609
2 changed files with 31 additions and 12 deletions

View File

@ -185,18 +185,6 @@
</select>
</td>
</tr>
<tr>
<td>Patron Category</td>
<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
<td><!-- TMPL_VAR NAME="CGIBorCat" --></td>
</tr>
<tr class="hilighted">
<td>Item Type</td>
<td><input type="radio" name="Line" value="itemtype" /></td>
<td><input type="radio" name="Column" value="itemtype" /></td>
<td><!-- TMPL_VAR NAME="CGIItemType" --></td>
</tr>
<tr>
<td>Library</td>
<td><input type="radio" name="Line" value="branch" /></td>
@ -209,6 +197,30 @@
</select>
</td>
</tr>
<tr>
<td>Patron Category</td>
<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
<td><!-- TMPL_VAR NAME="CGIBorCat" --></td>
</tr>
<tr class="hilighted">
<td>Item Type</td>
<td><input type="radio" name="Line" value="itemtype" /></td>
<td><input type="radio" name="Column" value="itemtype" /></td>
<td><!-- TMPL_VAR NAME="CGIItemType" --></td>
</tr>
<tr>
<td>Collection</td>
<td><input type="radio" name="Line" value="items.ccode" /></td>
<td><input type="radio" name="Column" value="items.ccode" /></td>
<td><select name="Filter" id="ccode">
<option value=""> </option>
<!-- TMPL_LOOP NAME="ccodeloop" -->
<option value="<!-- TMPL_VAR NAME='code' -->" <!-- TMPL_IF NAME='selected' -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="description" --></option>
<!-- /TMPL_LOOP -->
</select>
</td>
</tr>
<tr>
<td>Shelving Location</td>
<td><input type="radio" name="Line" value="location" /></td>

View File

@ -202,6 +202,12 @@ if ($do_it) {
foreach (sort keys %$locations) {
push @locations, { code => $_, description => "$_ - " . $locations->{$_} };
}
my $ccodes = GetKohaAuthorisedValues("items.ccode");
my @ccodes;
foreach (keys %$ccodes) {
push @ccodes, { code => $_, description => $ccodes->{$_} };
}
# various
my @mime = ( C4::Context->preference("MIME") );
@ -232,6 +238,7 @@ if ($do_it) {
CGIextChoice => $CGIextChoice,
CGIsepChoice => $CGIsepChoice,
locationloop => \@locations,
ccodeloop => \@ccodes,
branchloop => \@branchloop,
);
output_html_with_http_headers $input, $cookie, $template->output;