[Koha-bugs] [Bug 32551] API requests don't carry language related information

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 23 10:48:11 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32551

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.rooy at rijksmuseum.nl,
                   |                            |martin.renvoize at ptfs-europe
                   |                            |.com

--- Comment #1 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
As part of our work on an ILL backend we have implemented this solution in 
Koha/REST/V1/Illrequests.pm. It works really well, but of course only for this
small part. 

Is there way the solution could be generalized?


Koha/REST/V1/Illrequests.pm
sub list {
    my $c = shift->openapi->valid_input or return;

    eval { $ENV{HTTP_ACCEPT_LANGUAGE} =
$c->req->cookie('KohaOpacLanguage')->value; };

    return try {

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list