PDS Configuration in Production Server
- Article Type: General
- Product: Aleph
- Product Version: 20
Description:
When we launch http://production.library.edu/ (Production)
it is slower than http://test.library.edu/ (Test)
For some reason, when launching http://production.library.edu/,the system is consulting PDS.
This does not appear to happen when we launch http://test.library.edu/.
Also, http://production.library.edu/ is defaulting to local_base=ABC01, even though the ALEPH profile says it should default to ABC01PUB.
My testing shows sometimes it goes to:
http://production.library.edu/F?func=find-b-0&local_base=ABC01
with no session information.
And sometimes it goes to
http://production.library.edu/pds?func=sso&calling_system=aleph&institute=USM50&pds_con_lng=ENG&url=http://production.library.edu:80/F/T5P7XJ8732JU4CSDFSNNBAFCUDLH7FNYXSPAKKKNN5SDP35SXT-00129?func=find-b-0&local_base=ABC01
But eventually that resolves to
http://production.library.edu/F/T5P7XJ8732JU4CSDFSNNBAFCUDLH7FNYXSPAKKKNN5SDP35SXT-00129?func=find-b-0&local_base=ABC01&pds_handle=GUEST
Test resolves correctly to
http://test.library.edu/F/M94LRSG3N8XA9BYLHF672SQ1EKYX9UXMS2H67DDGD5R53UENEJ-00184?func=find-b-0&local_base=ABC01PUB&pds_handle=GUEST
Why is there a difference?
Resolution:
The problem was in the ./alephe/apache/htdocs/.index.html file.
When the URL of web OPAC is entered without the /F then this file is used to redirect the page.
In production.library.edu, the incorrect base was hardcoded in the re-directed URL:
<html> <head> <title> Aleph main menu</title> <script language="Javascript">
<!--
function doLoad ()
{
var session = Math.round(Math.random()*1000000000);
var loc = "http://production.library.edu:80/F?func=find-b-0&local_base=ABC01";
window.location.href = loc;
}
// -->
</script>
</head>
<body onLoad= "javascript:doLoad();">
</body>
</html>
It should be the same as in test.library.edu:
<html> <head> <title> Aleph main menu</title> <script language="Javascript">
<!--
function doLoad ()
{
var session = Math.round(Math.random()*1000000000);
var loc = "http://test.library.edu:80/F?func=find-b-0&local_base=ABC01PUB";
window.location.href = loc;
}
// -->
</script>
</head>
<body onLoad= "javascript:doLoad();">
</body>
</html>
- Article last edited: 10/8/2013