slims / slims9_bulian

SLiMS 9 Bulian official source code repository.
https://slims.web.id
GNU General Public License v3.0
176 stars 156 forks source link

Can't load MARC Source on remote instance #200

Open Manfred-Ogbu opened 1 year ago

Manfred-Ogbu commented 1 year ago

Describe the bug System keep reporting "Can't load MARC Source" when using the cataloguing servers

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Biblography'
  2. Click on 'Marc SRU or z3950'
  3. enter a subject in the search field and click on search '....'
  4. See error

Expected behavior Its supposed to load results from the cataloguing server, which it does on localhost systems, but fails on web servers

drajathasan commented 1 year ago

Marc SRU or Z3950 need internet connection and special http port. If your server is not connect to internet this feature is not work, make sure your server can connect internet first and can connect to some custom http port.

Manfred-Ogbu commented 1 year ago

Hi the remote instance is a web hosting server, so the internet connection is not an issue. What special http port can I connect to? Also the Marc import and export works fine. However if I setup my system as localhost, connecting to the Marc sru and z3950 server works fine

On Sat, Aug 19, 2023, 01:23 Drajat Hasan @.***> wrote:

Marc SRU or Z3950 need internet connection and special http port. If your server is not connect to internet this feature is not work, make sure your server can connect internet first and can connect to some custom http port.

— Reply to this email directly, view it on GitHub https://github.com/slims/slims9_bulian/issues/200#issuecomment-1684577439, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNUTC36BY6NNDM4V3CVWY3XWABO3ANCNFSM6AAAAAA2XUQLFI . You are receiving this because you authored the thread.Message ID: @.***>

drajathasan commented 1 year ago

Z3950 uses http port 7090, and many web hosts do not allow http ports except 80 and 443. For Marc SRU, by default it relies on the services of the Indonesian national library. For SLiMS before 9.6.1 it doesn't work because they changed their service base url.

drajathasan commented 1 year ago

For import or export marc is need some extension, e.g. SimpleXML etc. Make sure your hosting is support it.

Manfred-Ogbu commented 1 year ago

The Marc import and export works perfectly. However, can a report for single item Marc export in xml form be created? Right now, what it does is that it shows all books in xml format at once

On Sat, Aug 19, 2023, 08:49 Drajat Hasan @.***> wrote:

For import or export marc is need some extension, e.g. SimpleXML etc. Make sure your hosting is support it.

— Reply to this email directly, view it on GitHub https://github.com/slims/slims9_bulian/issues/200#issuecomment-1684884151, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNUTC73BNMNBNR2M6HUAR3XWBVZNANCNFSM6AAAAAA2XUQLFI . You are receiving this because you authored the thread.Message ID: @.***>

Manfred-Ogbu commented 1 year ago

Thank you for your email. I shall see to it

On Sat, Aug 19, 2023, 08:48 Drajat Hasan @.***> wrote:

Z3950 uses http port 7090, and many web hosts do not allow http ports except 80 and 443. For Marc SRU, by default it relies on the services of the Indonesian national library. For SLiMS before 9.6.1 it doesn't work because they changed their service base url.

— Reply to this email directly, view it on GitHub https://github.com/slims/slims9_bulian/issues/200#issuecomment-1684883871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNUTCZ32YQKG6G6DDL476LXWBVT7ANCNFSM6AAAAAA2XUQLFI . You are receiving this because you authored the thread.Message ID: @.***>

ricoAf13 commented 1 year ago

In case anyone face this issue on live web server, i think this issue is caused by opac.perpusnas.go.id SSL certificate.

I've tested this on a multiple indonesia's web hosting provider, and the problem is always curl: (60) SSL certificate problem: unable to get local issuer certificate.

A quick fix is to edit lib/guzzlehttp/guzzle/src/Handler/CurlFactory.php and change :

$conf[CURLOPT_SSL_VERIFYHOST] = 2; $conf[CURLOPT_SSL_VERIFYPEER] = true;

to :

$conf[CURLOPT_SSL_VERIFYHOST] = 0; $conf[CURLOPT_SSL_VERIFYPEER] = false;

junedie87 commented 4 months ago

I have the same problem and "A quick fix is to edit lib/guzzlehttp/guzzle/src/Handler/CurlFactory.php and change :" doesn't work for me. and the problem is still there.

Marc SRU, Z3950 SRU, and P2P Service can't search the data. warning appears: Can’t load MARC

Warning appears when I search in Z3950 SRU 500 error Please contact system admin or change system environment to development at system module for more information about this error. URL : /admin/modules/bibliography/z3950sru.php

what should I do to solve this problem. if I need my hosting provider to solve it. what questions should I ask them? what problems they need to solve.?