From ea0c76af7f5e6018674c2d79715e7fe6167aa071 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 30 Mar 2010 14:58:50 -0600 Subject: [PATCH] on checkout ask for confirmation if borrower from different branch With IndependantBranches on check that the borrower is from the same branch as the librarian. If not then ask for confirmation. This check is skipped for SuperLibrarians. Signed-off-by: Galen Charlton --- C4/Circulation.pm | 4 +++- .../intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 66c4080262..780a7ee497 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -805,8 +805,10 @@ sub CanBookBeIssued { if ( C4::Context->preference("IndependantBranches") ) { my $userenv = C4::Context->userenv; if ( ($userenv) && ( $userenv->{flags} % 2 != 1 ) ) { - $issuingimpossible{NOTSAMEBRANCH} = 1 + $issuingimpossible{ITEMNOTSAMEBRANCH} = 1 if ( $item->{C4::Context->preference("HomeOrHoldingBranch")} ne $userenv->{branch} ); + $needsconfirmation{BORRNOTSAMEBRANCH} = GetBranchName( $borrower->{'branchcode'} ) + if ( $borrower->{'branchcode'} ne $userenv->{branch} ); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 7515deef97..2635e83dc7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -235,6 +235,10 @@ function refocus(calendar) {
  • Too many checked out (already checked out / max : )
  • + +
  • This patrons is from a different library ()
  • + +
  • This patron can't check out this item per library circulation policy @@ -337,7 +341,7 @@ function refocus(calendar) {
  • Patron's card is expired
  • - +
  • This item belongs to and cannot be issued from this location.
  • -- 2.39.5