Bug 39624: Add patron category * (All) to open_article_requests limit
Test plan: Go to smart rules. Add a limit for All. Refresh and check if it is still there. Enable ArticleRequests and verify if the limit is working. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
663830d9ed
commit
ea73b35cf2
|
|
@ -984,13 +984,16 @@
|
|||
<th> </th>
|
||||
</tr>
|
||||
[% FOREACH c IN categorycodes %]
|
||||
[% NEXT UNLESS c %]
|
||||
[% SET i = undef %]
|
||||
[% SET open_article_requests_limit = all_rules.$c.$i.open_article_requests_limit %]
|
||||
|
||||
[% IF ( open_article_requests_limit.defined && open_article_requests_limit != '' ) %]
|
||||
<tr>
|
||||
<td> [% Categories.GetName(c) | html %] </td>
|
||||
[% IF c == undef %]
|
||||
<td><em>All</em></td>
|
||||
[% ELSE %]
|
||||
<td> [% Categories.GetName(c) | html %] </td>
|
||||
[% END %]
|
||||
<td>
|
||||
[% IF open_article_requests_limit.defined && open_article_requests_limit != '' %]
|
||||
[% open_article_requests_limit | html %]
|
||||
|
|
@ -1008,6 +1011,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<select name="categorycode">
|
||||
<option value="*">All</option>
|
||||
[% FOREACH patron_category IN patron_categories %]
|
||||
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue