New download posted

11 views
Skip to first unread message

anna headley

unread,
Dec 16, 2010, 10:40:50 AM12/16/10
to mobi...@googlegroups.com
Hi all,

I posted a new download at http://code.google.com/p/mobilecat/downloads/list called mobilecat 1.1.  This download reflects the current state of the svn repository, which means you can set it up to allow scoping.  It also displays fines and holds information in the "my account" area (renamed from "checked out").  Thanks to Dave Hansen for these new features!  

Best,
Anna
TriCollege Libraries



alan

unread,
Dec 22, 2010, 6:54:15 AM12/22/10
to mobilecat
I have been looking at the get_my_account_info function in
IIIParse.php. Now that you have reversed the logic of the URL check
should the else part be enclosed? i.e.

--snip--
# If renewing items, this url will be non-null
if ($url) {
$resp = http_parse_message(http_get(
"$url", array("cookies" => $login_resp['cookies'])
));

}
else { //bracket added
$url = $this->catalog_url . '/patroninfo~S' . $this-
>def_scope . "/$userid/items";
$args = array(
"sortByDueDate" => "byduedate"
);
$args_str = http_build_query($args);

$resp = http_parse_message(http_get(
"$url?$args_str", array("cookies" =>
$login_resp['cookies'])
));
} //bracket added
$html = str_get_dom($resp->body);
--snip--

The way it currently reads without the added brackets is that if you
renew you make 2 calls to the Millennium server 1 to the renew url and
the a subsequent one to the general items url before you parse the dom
to your templates. Is this what you intended?

I have to say I am looking at this function quite closely because it
does not behave properly for me.

Alan

Dave Hansen

unread,
Jan 7, 2011, 12:23:25 PM1/7/11
to mobi...@googlegroups.com
Alan, thanks for providing all this feedback and sorry for the delay in
response. Its good to hear that the renew functions are working more or
less as expected...

You are correct that the the account page lags in displaying newly
renewed books. I was hoping it was just my catalog, so getting 1.1 out
in the wild sounded like a good idea to test it. It takes maybe 4 or 5
seconds for our OPAC to process the renew before it shows up on the
user's account page, even though you can retrieve the page successfully
within that window. The first http request in get_my_account_info is an
attempt to send a renew request so Millenium might process it in and
display it time to show up in the second request. Testing all this now,
and not seeing any difference whether one or two requests are sent. It
doesn't look like the first is hurting anything though...

Since you've made the SSL and ID additions to your code again, would you
mind sending us your modifications? I'd like to release real support for
SSL and to allow for an ID field in the login form. I've known a number
of other libraries that use these as well.

Best,
Dave

--
Dave Hansen
Electronic Resources Manager
dm...@stmarys-ca.edu
Saint Mary�s College of California
1928 Saint Mary�s Road
Moraga, CA 94575-4290
(925) 631-4253 x4253


Reply all
Reply to author
Forward
0 new messages