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

            Bug ID: 42582
           Summary: Uncaught TypeError when no z39.50 service is set
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: ILL
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected],
                    [email protected], [email protected]

to recreate:
- start a ktd instance with a plugin that offers an ill_availability_services
hook f.e. https://github.com/openfifth/koha-plugin-ill-avail-z3950
 ktd --proxy --name main --single-plugin
~/git/koha-plugins/koha-plugin-ill-avail-z3950-master/ up -d
 ktd --name main --shell
 restart_all
- login and configure plugin
 open http://main-intra.localhost/cgi-bin/koha/plugins/plugins-home.pl
 check one of the z39.50 targets and 
 do not check 'Display results when making partner requests: ' <- this is where
the bug is triggered
 enter partner id: 16
- edit a ILL patron and set an Primary email adress:

http://main-intra.localhost/cgi-bin/koha/members/moremember.pl?borrowernumber=16
- enable  ILLModule  and ILLCheckAvailability

http://main-intra.localhost/cgi-bin/koha/admin/preferences.pl?tab=interlibrary_loans
 ILLModule: 'enable'
 ILLCheckAvailability: 'check'
- create an ILL request:

http://main-intra.localhost/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard
- on the following page 
 open dev tools (F12 on Firefox)
 click 'Place request with partner libraries'
- check error in console
 Uncaught TypeError: can't access property "enabled", services[0] is undefined

The reason is a call for a property on a none existant services object in
koha-tmpl/intranet-tmpl/prog/js/ill-availability-partner.js in function
isEnabled

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to