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

(-)a/circ/pendingreserves.pl (-1 / +1 lines)
Lines 65-71 if ( $op eq 'cancel_reserve' and $reserve_id ) { Link Here
65
    my $item = $hold->item;
65
    my $item = $hold->item;
66
    if ( $item and C4::Context->preference('CanMarkHoldsToPullAsLost') =~ m|^allow| ) {
66
    if ( $item and C4::Context->preference('CanMarkHoldsToPullAsLost') =~ m|^allow| ) {
67
        my $patron = $hold->borrower;
67
        my $patron = $hold->borrower;
68
        C4::Circulation::LostItem( $item->itemnumber );
68
        C4::Circulation::LostItem( $item->itemnumber, "pendingreserves" );
69
        if ( $op eq 'mark_as_lost_and_notify' and C4::Context->preference('CanMarkHoldsToPullAsLost') eq 'allow_and_notify' ) {
69
        if ( $op eq 'mark_as_lost_and_notify' and C4::Context->preference('CanMarkHoldsToPullAsLost') eq 'allow_and_notify' ) {
70
            my $library = $hold->branch;
70
            my $library = $hold->branch;
71
            my $letter = C4::Letters::GetPreparedLetter(
71
            my $letter = C4::Letters::GetPreparedLetter(
(-)a/installer/data/mysql/atomicupdate/bug_19287.sql (+2 lines)
Lines 3-5 INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanat Link Here
3
INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('reserves', 'CANCEL_HOLD_ON_LOST', '', 'Hold has been cancelled', 0, "Hold has been cancelled", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nWe regret to inform you that the following item cannot longer be placed on hold, it has been marked as lost\n\nTitle: [% biblio.title %]\nAuthor: [% biblio.author %]\nCopy: [% item.copynumber %]\nLocation: [% branch.branchname %]", 'email', 'default');
3
INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('reserves', 'CANCEL_HOLD_ON_LOST', '', 'Hold has been cancelled', 0, "Hold has been cancelled", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nWe regret to inform you that the following item cannot longer be placed on hold, it has been marked as lost\n\nTitle: [% biblio.title %]\nAuthor: [% biblio.author %]\nCopy: [% item.copynumber %]\nLocation: [% branch.branchname %]", 'email', 'default');
4
4
5
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('UpdateItemWhenLostFromHoldList','',NULL,'This is a list of values to update an item when it is marked as lost from the holds to pull screen','Free');
5
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('UpdateItemWhenLostFromHoldList','',NULL,'This is a list of values to update an item when it is marked as lost from the holds to pull screen','Free');
6
7
update systempreferences set options="batchmod|moredetail|cronjob|additem|pendingreserves", value="batchmod|moredetail|cronjob|additem|pendingreserves" where variable="MarkLostItemsAsReturned";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +1 lines)
Lines 420-425 Circulation: Link Here
420
                batchmod: "from the batch item modification tool"
420
                batchmod: "from the batch item modification tool"
421
                additem: "when cataloguing an item"
421
                additem: "when cataloguing an item"
422
                moredetail: "from the items tab of the catalog module"
422
                moredetail: "from the items tab of the catalog module"
423
                pendingreserves: "from the 'Holds to pull' list"
423
            - .
424
            - .
424
        -
425
        -
425
            - pref: AllowMultipleIssuesOnABiblio
426
            - pref: AllowMultipleIssuesOnABiblio
426
- 

Return to bug 19287