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:
Marcel de Rooy 2025-04-14 08:03:58 +00:00 committed by Katrin Fischer
parent 663830d9ed
commit ea73b35cf2
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 6 additions and 2 deletions

View File

@ -984,13 +984,16 @@
<th>&nbsp;</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 %]