From: Demian K. <dem...@vi...> - 2010-02-02 21:04:29
|
I'm moving this thread to the vufind-tech list since it is getting fairly technical. Basically, here is how this should work: 1.) The MyResearch base class creates a CatalogConnection object, which contains an instance of the Aleph driver. 2.) CheckedOut.php calls the patronLogin() method of the CatalogConnection object, which in turn calls the patronLogin() method of the Aleph driver. 3.) CheckedOut.php sends the return value from patronLogin() to the getMyTransactions() method of CatalogConnection, which again should go directly to the Aleph driver from there. If the patron array is valid at the last line of the Aleph driver's patronLogin method, I don't understand why it should fail to be valid when it gets sent back outside. The best test is probably to echo the value at the line of patronLogin right before the return statement, again inside the patronLogin method of CatalogConnection, and again right after the call in CheckedOut.php. If it's not the same in all three places, something very odd is going on! - Demian > -----Original Message----- > From: KUN LIN [mailto:dn...@li...] > Sent: Tuesday, February 02, 2010 3:57 PM > To: Demian Katz > Subject: RE: [VuFind-General] Vufind and ALEPH get checkout item issue > > I have tried dumping $patron['id'] in checkout.php. It is NULL. And I > am not quit understand how checkout.php is calling these functions. > Thanks > > -----Original Message----- > From: Demian Katz [mailto:dem...@vi...] > Sent: Tuesday, February 02, 2010 3:30 PM > To: KUN LIN > Subject: RE: [VuFind-General] Vufind and ALEPH get checkout item issue > > The main place to look is web/services/MyResearch/CheckedOut.php. This > is where patronLogin gets called and the return value is passed on to > getMyTransactions. Might be worth dumping out $patron in between there > to see if that gives you any clues. > > Another place to look if this doesn't help is in > web/CatalogConnection.php, the wrapper around the ILS driver. However, > this code is so trivial I can't imagine something going wrong in there. > > - Demian > > > -----Original Message----- > > From: KUN LIN [mailto:dn...@li...] > > Sent: Tuesday, February 02, 2010 3:25 PM > > To: Demian Katz > > Subject: RE: [VuFind-General] Vufind and ALEPH get checkout item > issue > > > > Hi, I dump the $xml and everything is fine. I just not sure why the > > whole user array is empty in every function while I do able to view > > $patron array at the end of PatronLogin(). > > Would you be able to give me some hints on how you passing values > > between functions? > > Thanks > > Kun > > > > -----Original Message----- > > From: Demian Katz [mailto:dem...@vi...] > > Sent: Tuesday, February 02, 2010 2:49 PM > > To: dn...@ny...; vuf...@li... > > Cc: vuf...@li... > > Subject: RE: [VuFind-General] Vufind and ALEPH get checkout item > issue > > > > Have you done a dump of the $xml variable within patronLogin()? > > Perhaps the code that is supposed to extract details from the x- > server > > response is making assumptions that are incorrect for your system. > > Looking at the XML data might help you figure out what's going on. > > > > I'm not sure how it's possible for $user['id'] to be null in > > getMyTransactions() when $patron['id'] is not null at the end of > > patronLogin(). getMyTransactions should be receiving the return > value > > from patronLogin, and there doesn't seem to be much opportunity for > > that value to get corrupted in the meantime. > > > > - Demian > > > > > -----Original Message----- > > > From: dn...@ny... [mailto:dn...@ny...] > > > Sent: Tuesday, February 02, 2010 2:26 PM > > > To: vuf...@li... > > > Cc: vuf...@li... > > > Subject: [VuFind-General] Vufind and ALEPH get checkout item issue > > > > > > Hi everyone > > > After user login, when I try to get the check out item, it does not > > > work. The system will return no check out item. > > > I check the log (error_log($request);error_log($answer);)The > > following > > > URL showed > > > > > > http://host:8991/X?op=bor- > > > > > > info&library=ALB50&bor_id=&verification=&user_name=XXXXXX&user_password > > > =XXXXX > > > > > > The bor_id info and verification value did not get passed to the > > > function getMyTransactions($user). > > > I did a var_dump in patronLogin and I saw $patron['id'] do have > > values. > > > While in getMyTransactions, the $user['cat_username'] or > $user['id'] > > is > > > NULL. > > > I am not sure where is the problem. > > > Does anyone have some ideas? > > > Thanks a lot. > > > Kun > > > > > > > > > ------------------------------------------------------------------- > -- > > -- > > > ------- > > > The Planet: dedicated and managed hosting, cloud storage, > colocation > > > Stay online with enterprise data centers and the best network in > the > > > business > > > Choose flexible plans and management services without long-term > > > contracts > > > Personal 24x7 support from experience hosting pros just a phone > call > > > away. > > > http://p.sf.net/sfu/theplanet-com > > > _______________________________________________ > > > VuFind-General mailing list > > > VuF...@li... > > > https://lists.sourceforge.net/lists/listinfo/vufind-general |