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

(-)a/circ/view_holdsqueue.pl (-13 lines)
Lines 62-80 if ( $run_report ) { Link Here
62
    );
62
    );
63
}
63
}
64
64
65
# getting all itemtypes
66
my $itemtypes = Koha::ItemTypes->search({}, {order_by => 'itemtype'});;
67
my @itemtypesloop;
68
while ( my $itemtype = $itemtypes->next ) {
69
    push @itemtypesloop, {
70
        value       => $itemtype->itemtype,
71
    };
72
}
73
74
$template->param( # FIXME Could be improved passing the $itemtypes iterator directly to the template
75
   itemtypeloop => \@itemtypesloop,
76
);
77
78
# Checking if there is a Fast Cataloging Framework
65
# Checking if there is a Fast Cataloging Framework
79
$template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' );
66
$template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' );
80
67
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt (-12 lines)
Lines 209-225 $(document).ready(function() { Link Here
209
                [% PROCESS options_for_libraries libraries => Branches.all() %]
209
                [% PROCESS options_for_libraries libraries => Branches.all() %]
210
            </select>
210
            </select>
211
        </li>
211
        </li>
212
			<!-- FIXME Not working yet
213
			<li><label for="itemtypeslimit">Item Type: </label><select name="itemtypeslimit" id="itemtypeslimit">
214
                <option value="">All</option>
215
                [% FOREACH itemtypeloo IN itemtypeloop %]
216
                [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
217
				[% ELSE %]
218
				<option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
219
				[% END %]
220
                [% END %]
221
            </select></li>
222
			-->
223
    </ol></fieldset>
212
    </ol></fieldset>
224
    <fieldset class="action">    <input type="submit" value="Submit" />
213
    <fieldset class="action">    <input type="submit" value="Submit" />
225
        <input type="hidden" name="run_report" value="1" /></fieldset>
214
        <input type="hidden" name="run_report" value="1" /></fieldset>
226
- 

Return to bug 18881