@@ -, +, @@
ILL requests
Test Plan:
- Enable ILLModule sys pref and install any backend, or run
bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
- Verify you can place new ILL requests in OPAC and Intranet
- Apply patch
- In borrower categories, verify there's a new column for 'can place ILL in opac' and is set to 'yes' by default
- Edit your borrower's patron category and set 'can place ILL in opac' to 'No'
- Verify you can no longer place new ILL requests in OPAC
- Verify you also cannot place new ILL requests through URL:
:8080/cgi-bin/koha/opac-illrequests.pl?method=create&backend=FreeForm
---
admin/categories.pl | 3 ++
.../prog/en/modules/admin/categories.tt | 29 +++++++++++++++++++
.../bootstrap/en/modules/opac-illrequests.tt | 20 ++++++++-----
opac/opac-illrequests.pl | 11 +++++--
4 files changed, 52 insertions(+), 11 deletions(-)
--- a/admin/categories.pl
+++ a/admin/categories.pl
@@ -72,6 +72,7 @@ elsif ( $op eq 'add_validate' ) {
my $category_type = $input->param('category_type');
my $BlockExpiredPatronOpacActions = $input->param('BlockExpiredPatronOpacActions');
my $checkPrevCheckout = $input->param('checkprevcheckout');
+ my $canplaceillopac = $input->param('canplaceillopac');
my $default_privacy = $input->param('default_privacy');
my $reset_password = $input->param('reset_password');
my $change_password = $input->param('change_password');
@@ -105,6 +106,7 @@ elsif ( $op eq 'add_validate' ) {
$category->can_be_guarantee($can_be_guarantee);
$category->BlockExpiredPatronOpacActions($BlockExpiredPatronOpacActions);
$category->checkprevcheckout($checkPrevCheckout);
+ $category->canplaceillopac($canplaceillopac);
$category->default_privacy($default_privacy);
$category->reset_password($reset_password);
$category->change_password($change_password);
@@ -138,6 +140,7 @@ elsif ( $op eq 'add_validate' ) {
can_be_guarantee => $can_be_guarantee,
BlockExpiredPatronOpacActions => $BlockExpiredPatronOpacActions,
checkprevcheckout => $checkPrevCheckout,
+ canplaceillopac => $canplaceillopac,
default_privacy => $default_privacy,
reset_password => $reset_password,
change_password => $change_password,
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
@@ -384,6 +384,23 @@
[% END %]
+ [% IF ( Koha.Preference('ILLModule') ) %]
+
+
+
+
+ Choose whether patrons of this category can create new interlibrary loan requests.
+