View | Details | Raw Unified | Return to bug 14576
Collapse All | Expand All

(-)a/C4/Circulation.pm (-8 / +4 lines)
Lines 1383-1396 sub AddIssue { Link Here
1383
                }
1383
                }
1384
              );
1384
              );
1385
1385
1386
        if ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART'  ) {
1386
            if ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART'  ) {
1387
        ## Item was moved to cart via UpdateItemLocationOnCheckin, anything issued should be taken off the cart.
1387
            ## Item was moved to cart via UpdateItemLocationOnCheckin, anything issued should be taken off the cart.
1388
            CartToShelf( $item->{'itemnumber'} );
1388
                CartToShelf( $item->{'itemnumber'} );
1389
        }
1389
            }
1390
        $item->{'issues'}++;
1391
        if ( C4::Context->preference('UpdateTotalIssuesOnCirc') ) {
1392
            UpdateTotalIssues($item->{'biblionumber'}, 1);
1393
        }
1394
1390
1395
            $item->{'issues'}++;
1391
            $item->{'issues'}++;
1396
            if ( C4::Context->preference('UpdateTotalIssuesOnCirc') ) {
1392
            if ( C4::Context->preference('UpdateTotalIssuesOnCirc') ) {
(-)a/C4/Items.pm (+1 lines)
Lines 623-628 sub ModItemTransfer { Link Here
623
    my ( $itemnumber, $frombranch, $tobranch ) = @_;
623
    my ( $itemnumber, $frombranch, $tobranch ) = @_;
624
624
625
    my $dbh = C4::Context->dbh;
625
    my $dbh = C4::Context->dbh;
626
    my $item = GetItem( $itemnumber );
626
627
627
    # Remove the 'shelving cart' location status if it is being used.
628
    # Remove the 'shelving cart' location status if it is being used.
628
    CartToShelf( $itemnumber ) if ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' );
629
    CartToShelf( $itemnumber ) if ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' );
(-)a/C4/Reserves.pm (+2 lines)
Lines 1217-1222 sub ModReserveStatus { Link Here
1217
    my $sth_set = $dbh->prepare($query);
1217
    my $sth_set = $dbh->prepare($query);
1218
    $sth_set->execute( $newstatus, $itemnumber );
1218
    $sth_set->execute( $newstatus, $itemnumber );
1219
1219
1220
    my $item = GetItem($itemnumber);
1220
    if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART'  ) && $newstatus ) {
1221
    if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART'  ) && $newstatus ) {
1221
      CartToShelf( $itemnumber );
1222
      CartToShelf( $itemnumber );
1222
    }
1223
    }
Lines 1292-1297 sub ModReserveAffect { Link Here
1292
      if ( !$transferToDo && !$already_on_shelf );
1293
      if ( !$transferToDo && !$already_on_shelf );
1293
1294
1294
    _FixPriority( { biblionumber => $biblionumber } );
1295
    _FixPriority( { biblionumber => $biblionumber } );
1296
    my $item = GetItem($itemnumber);
1295
    if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART'  ) ) {
1297
    if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART'  ) ) {
1296
      CartToShelf( $itemnumber );
1298
      CartToShelf( $itemnumber );
1297
    }
1299
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (+2 lines)
Lines 44-49 Link Here
44
    var MSG_SESSION_TIMED_OUT = _( "You need to log in again, your session has timed out" );
44
    var MSG_SESSION_TIMED_OUT = _( "You need to log in again, your session has timed out" );
45
    var MSG_DATA_NOT_SAVED = _( "Error; your data might not have been saved" );
45
    var MSG_DATA_NOT_SAVED = _( "Error; your data might not have been saved" );
46
    var MSG_LOADING = _( "Loading..." );
46
    var MSG_LOADING = _( "Loading..." );
47
    var MSG_ALL_VALUE_WARN = _("Note: _ALL_ value will override all other values");
48
    var MSG_UPD_LOC_FORMAT_WARN = _("The following values are not formatted correctly:");
47
49
48
//]]>
50
//]]>
49
</script>
51
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js (-3 / +2 lines)
Lines 141-147 $( document ).ready( function () { Link Here
141
    $("#pref_UpdateItemLocationOnCheckin").change(function(){
141
    $("#pref_UpdateItemLocationOnCheckin").change(function(){
142
        var the_text = $(this).val();
142
        var the_text = $(this).val();
143
        var alert_text = '';
143
        var alert_text = '';
144
        if ( the_text.indexOf('_ALL_:') != -1 ) alert_text= _("Note: _ALL_ value will override all other values") + '\n';
144
        if ( the_text.indexOf('_ALL_:') != -1 ) alert_text = MSG_ALL_VALUE_WARN + '\n';
145
        var split_text  =the_text.split("\n");
145
        var split_text  =the_text.split("\n");
146
        var alert_issues = '';
146
        var alert_issues = '';
147
        var issue_count = 0;
147
        var issue_count = 0;
Lines 152-158 $( document ).ready( function () { Link Here
152
                issue_count++;
152
                issue_count++;
153
            }
153
            }
154
        }
154
        }
155
        if (issue_count) alert_text += "\n"+_("The following values are not formatted correctly:")+"\n"+alert_issues;
155
        if (issue_count) alert_text += "\n"+ MSG_UPD_LOC_FORMAT_WARN  +"\n"+alert_issues;
156
        if ( alert_text.length )  alert(alert_text);
156
        if ( alert_text.length )  alert(alert_text);
157
    });
157
    });
158
158
159
- 

Return to bug 14576