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

(-)a/C4/SIP/ILS/Item.pm (-1 / +5 lines)
Lines 85-91 sub new { Link Here
85
    my $self = $item->unblessed;
85
    my $self = $item->unblessed;
86
    $self->{_object}            = $item;
86
    $self->{_object}            = $item;
87
    $self->{id}                 = $item->barcode; # to SIP, the barcode IS the id.
87
    $self->{id}                 = $item->barcode; # to SIP, the barcode IS the id.
88
    $self->{permanent_location} = $item->homebranch;
88
    if (C4::Context->preference('UseLocationAsAQInSIP')) {
89
        $self->{permanent_location} = $item->permanent_location;
90
    } else {
91
        $self->{permanent_location} = $item->homebranch;
92
    }
89
    $self->{collection_code}    = $item->ccode;
93
    $self->{collection_code}    = $item->ccode;
90
    $self->{call_number}        = $item->itemcallnumber;
94
    $self->{call_number}        = $item->itemcallnumber;
91
    $self->{'shelving_location'}           = $item->location;
95
    $self->{'shelving_location'}           = $item->location;
(-)a/installer/data/mysql/atomicupdate/bug_20058_add_UseLocationAsAQInSIP_syspref.pl (+13 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "20058",
5
    description => "Option to use shelving location instead of homebranch for sorting",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES
10
('UseLocationAsAQInSIP', '0', '', 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo')});
11
        say $out "Syspref UseLocationAsAQInSIP has been added";
12
    },
13
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 719-724 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
719
('useDischarge','0','','Allows librarians to discharge borrowers and borrowers to request a discharge','YesNo'),
719
('useDischarge','0','','Allows librarians to discharge borrowers and borrowers to request a discharge','YesNo'),
720
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
720
('UseEmailReceipts','0','','Send email receipts for payments and write-offs','YesNo'),
721
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
721
('UseICUStyleQuotes','0','1','Tell Koha whether to use ICU style quotes ({) or default (") when tracing subjects .','YesNo'),
722
('UseLocationAsAQInSIP', '0', '', 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo'),
722
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
723
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
723
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
724
('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
724
('viewISBD','1','','Allow display of ISBD view of bibiographic records','YesNo'),
725
('viewISBD','1','','Allow display of ISBD view of bibiographic records','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +9 lines)
Lines 655-664 Circulation: Link Here
655
            - pref: StoreLastBorrower
655
            - pref: StoreLastBorrower
656
              default: 0
656
              default: 0
657
              choices:
657
              choices:
658
        -
658
                  1: Store
659
                  1: Store
659
                  0: "Don't store"
660
                  0: "Don't store"
660
            - 'the last patron to return an item. This setting is independent of the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=opacreadinghistory">opacreadinghistory</a> and <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AnonymousPatron">AnonymousPatron</a> system preferences.'
661
            - 'the last patron to return an item. This setting is independent of the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=opacreadinghistory">opacreadinghistory</a> and <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AnonymousPatron">AnonymousPatron</a> system preferences.'
661
    Holds policy:
662
    Holds policy:
663
        -
664
            - Use
665
            - pref: UseLocationAsAQInSIP
666
              choices:
667
                  yes: permanent_location
668
                  no: homebranch
669
            - for AQ field in SIP protocol.
670
    Holds Policy:
662
        -
671
        -
663
            - In the staff interface, split the holds queue into separate tables by
672
            - In the staff interface, split the holds queue into separate tables by
664
            - pref: HoldsSplitQueue
673
            - pref: HoldsSplitQueue
665
- 

Return to bug 20058