@@ -, +, @@
my $bor_messages_loop = GetMessages( $borrowernumber, 'B', $branch );
if($bor_messages_loop){ $template->param(flagged => 1 ); }
---
circ/circulation.pl | 7 -------
.../intranet-tmpl/prog/en/modules/circ/circulation.tt | 13 ++-----------
2 files changed, 2 insertions(+), 18 deletions(-)
--- a/circ/circulation.pl
+++ a/circ/circulation.pl
@@ -288,7 +288,6 @@ if ($borrowernumber) {
{
#borrowercard expired, no issues
$template->param(
- flagged => "1",
noissues => ($force_allow_issue) ? 0 : "1",
forceallow => $force_allow_issue,
expired => "1",
@@ -301,7 +300,6 @@ if ($borrowernumber) {
{
# borrower card soon to expire warn librarian
$template->param( "warndeparture" => $borrower->{dateexpiry} ,
- flagged => "1"
);
if (C4::Context->preference('ReturnBeforeExpiry')){
$template->param("returnbeforeexpiry" => 1);
@@ -470,7 +468,6 @@ if ($borrowernumber) {
#title
my $flags = $borrower->{'flags'};
foreach my $flag ( sort keys %$flags ) {
- $template->param( flagged=> 1);
$flags->{$flag}->{'message'} =~ s#\n#
#g;
if ( $flags->{$flag}->{'noissues'} ) {
$template->param(
@@ -563,10 +560,6 @@ my $patron_messages = Koha::Patron::Messages->search(
}
);
-if( $librarian_messages->count or $patron_messages->count ) {
- $template->param(flagged => 1)
-}
-
my $fast_cataloging = 0;
if (defined getframeworkinfo('FA')) {
$fast_cataloging = 1
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -409,7 +409,7 @@ $(document).ready(function() {
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
- [% UNLESS flagged && noissues %]
+ [% UNLESS noissues %]
[% END %]
[% END %]
@@ -607,12 +607,7 @@ No patron matched [% message %]
[% END %]
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
-[% IF ( flagged ) %]