Yoel Kortick

Displaying the XML which Aleph sends to SFX via the Web OPAC

Introduction

Often when checking links from Aleph to SFX on a demo server, test server, or even in a “production” library we need investigate what XML Aleph is sending to SFX from the web OPAC. This may be done by putting the following line in $alephe_root/www_server.conf:

setenv check_sfx_service Y

After doing so the web server should be restarted.

ONE

We have this record in Aleph:

TWO

We view the record in the web OPAC and from the full view click on the link to SFX:

THREE

The link to SFX opens:

FOUR

The following will appear in the web server log file. The xml of the record which is sent to SFX begins at the line url_ctx_val=<?xml version = "1.0" encoding = "UTF-8"?>

check_sfx_service debug mode is on

Handling docx (check_sfx_service) :

[USM01.000051397 (BIB)]

FMT LSE

LDR L00000nas^a22^^^^^^a^4500

001 L000051397

005 L20081006104859.0

008 L070409c19929999||||||||r|||||0|||||ita^d

022 L$$a1120-9879

041 L$$aita

24500L$$aHigh blood pressure and cardiovascular prevention.

260 L$$aMilano :$$bEditrice Kurtis s.r.l.,$$cc1992-.

590 L$$aMARC

650 2L$$aCardiovascular Diseases$$xprevention & control$$xperiodicals.

653 L$$aScience, Technology & Medicine

650 2L$$aHypertension$$xperiodicals.

7102 L$$aItalian Society of Hypertension

85640L$$uhttp://search.ebscohost.com/direct.asp?db=a9h&jid=%221WYI%22&scope=site$$z(Ebsco Academic Search Complete: EMY; IDC; MTA)$$4x

OWN L$$aGLOBAL

CAT L$$aMASTER$$b99$$c20081005$$lUSM01$$h1333

CAT L$$aMASTER$$b99$$c20081006$$lUSM01$$h1048

DRL L$$ahttp://aleph3.libnet.ac.il:80/F/?func=direct&doc_number=001086265&local_base=ULS01

N TYP L$$aSerial

N TYP L$$aGV

N TYP L$$aON

SID L$$bUSM01$$c000051397

Sending POST request:

======

POST http://demo.exlibrisgroup.com:9003/demo HTTP/1.0

Connection: close

Content-Type: application/x-www-form-urlencoded

Accept: text/plain

Host: demo.exlibrisgroup.com:9003

User-Agent: libwww-perl/5.65

UserAgent: megaBrowser/1.0

Content-Length: 1779

url_ctx_val=<?xml version = "1.0" encoding = "UTF-8"?>

<ctx:context-objects xmlns:ctx="info:ofi/fmt:xml:xsd:ctx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:ofi/fmt:xml:xsd:ctx http://www.openurl.info/registry/docs/info:ofi/fmt:xml:xsd:ctx">

<ctx:context-object timestamp="2008-10-06T10:51:49Z" version="Z39.88-2004">

<ctx:requester>

<ctx:metadata-by-val>

<ctx:metadata>

<req:ip xmlns:req="info:ofi/req">010.001.235.176</req:ip>

</ctx:metadata>

</ctx:metadata-by-val>

</ctx:requester>

<ctx:service-type>

<ctx:metadata-by-val>

<ctx:metadata>

<fulltext>yes</fulltext>

</ctx:metadata>

</ctx:metadata-by-val>

</ctx:service-type>

<ctx:referent>

<ctx:metadata-by-val>

<ctx:format>info:ofi/fmt:xml:xsd:journal</ctx:format>

<ctx:metadata>

<rft:journal xmlns:rft="info:ofi/fmt:xml:xsd:journal" xsi:schemaLocation="info:ofi/fmt:xml:xsd:journal http://www.openurl.info/registry/docs/info:ofi/fmt:xml:xsd:journal">

<rft:jtitle>High blood pressure and cardiovascular prevention.</rft:jtitle>

<rft:issn>1120-9879</rft:issn>

<rft:genre>journal</rft:genre>

<rft:aulast>Italian Society of Hypertension</rft:aulast>

<sfx.response_type>service_exist</sfx.response_type>

</rft:journal>

</ctx:metadata>

</ctx:metadata-by-val>

</ctx:referent>

<ctx:referrer>

<ctx:identifier>info:sid/ALEPH:USM01</ctx:identifier>

</ctx:referrer>

</ctx:context-object>

</ctx:context-objects>

&sfx.response_type=service_exist&url_ver=Z39.88-2004&url_ctx_fmt=info:ofi/fmt:xml:xsd:ctx

======

Recieving response:

======

HTTP/1.1 200 OK^M

Date: Mon, 06 Oct 2008 08:51:49 GMT^M

Server: Apache^M

Content-Type: application/xml^M

Connection: close^M

^M

<?xml version="1.0" encoding="UTF-8"?>

<ctx_obj_set>

<ctx_obj index="" id="110978979595637">

<service_exist>

<services>yes</services>

</service_exist>

</ctx_obj>

</ctx_obj_set>