public class ItemsCheckOutListView extends ActionBarActivity {
- private final String TAG = ItemsCheckOutListView.class.getName();
+ private final String TAG = ItemsCheckOutListView.class.getSimpleName();
private AccountAccess accountAccess = null;
@Override
public void run() {
boolean refresh = true;
- AccountAccess ac = AccountAccess
- .getAccountAccess();
+ AccountAccess ac = AccountAccess.getAccountAccess();
runOnUiThread(new Runnable() {
@Override
try {
ac.renewCirc(record.getTargetCopy());
+ } catch (SessionNotFoundException e1) {
+ try {
+ if (accountAccess.reauthenticate(ItemsCheckOutListView.this))
+ ac.renewCirc(record.getTargetCopy());
+ } catch (Exception eauth) {
+ Log.d(TAG, "Exception in reauth", eauth);
+ }
} catch (MaxRenewalsException e1) {
runOnUiThread(new Runnable() {
Toast.LENGTH_LONG).show();
}
});
- } catch (SessionNotFoundException e1) {
- try {
- if (accountAccess.reauthenticate(ItemsCheckOutListView.this))
- ac.renewCirc(record.getTargetCopy());
- } catch (Exception eauth) {
- Log.d(TAG, "Exception in reauth", eauth);
- }
}
runOnUiThread(new Runnable() {
@Override
recordDueDate.setText(getString(R.string.due) + " " + record.getDueDate());
recordIsOverdue.setText(record.isOverdue() ? getString(R.string.overdue) : "");
Log.d(TAG, "title: \"" + record.getTitle() + "\""
- + "due: " + record.getDueDate()
- + "renewals: " + record.getRenewals());
+ + " due: " + record.getDueDate()
+ + " renewals: " + record.getRenewals());
return row;
}
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
+import org.evergreen_ils.auth.Const;
import org.evergreen_ils.searchCatalog.Organisation;
import org.evergreen_ils.searchCatalog.SearchCatalog;
import org.open_ils.idl.IDLParser;
private boolean initialize(String library_url) {
if (!TextUtils.equals(library_url, httpAddress)) {
httpAddress = library_url;
+ conn = null; // must come before loadXXX()
loadIDL();
loadOrganizations();
loadCopyStatusesAvailable();
<string name="ou_account_label">Evergreen Library</string>
<string name="ou_account_sign_in_message">Sign in to your library account</string>
<string name="ou_choose_library_label">Location:</string>
+ <string name="ou_sign_in_label">Login:</string>
<string name="ou_account_type">org.evergreen-ils.eg_app</string>
<string name="ou_app_label">Evergreen</string>
<string name="ou_library_name"></string>
my @lines = split(/\r\n/, $logcat);
foreach my $line (@lines) {
print "line: $line\n" if $debug;
- if ($line =~ /org.opensrf.net.http.GatewayRequest: ([^:]+):(.+)/) {
+ if ($line =~ /GatewayRequest: ([^:]+):(.+)/) {
my($key,$val) = ($1,$2);
if ($key eq 'result') {
my $obj = decode_json($val);
public class GatewayRequest extends HttpRequest {
private boolean readComplete;
- private String TAG = GatewayRequest.class.getName();
+ private String TAG = GatewayRequest.class.getSimpleName();
public GatewayRequest(HttpConnection conn, String service, Method method) {
super(conn, service, method);