working/Evergreen.git
9 years agohemlock_v14 (1.6.1) user/kenstir/android-master
kenstir [Fri, 11 Dec 2015 01:28:33 +0000 (20:28 -0500)]
hemlock_v14 (1.6.1)

9 years agoReplaced Log class with a ring buffer implementation, so that I can debug an issue...
kenstir [Fri, 11 Dec 2015 00:59:17 +0000 (19:59 -0500)]
Replaced Log class with a ring buffer implementation, so that I can debug an issue in the field.

* Splash activity has a share button that is hidden until a failure.
* That creates a text intent with the app Log.  Probably I should spawn logcat like others do, but that will require the app to have an extra permission "read sensitive log data" which sounds like I'm doing something scary.

10 years agohemlock_v12 (1.5)
kenstir [Tue, 8 Dec 2015 03:12:07 +0000 (22:12 -0500)]
hemlock_v12 (1.5)

10 years agocwmars_v15 (1.7)
kenstir [Tue, 8 Dec 2015 02:03:19 +0000 (21:03 -0500)]
cwmars_v15 (1.7)

10 years agohemlock_v11 (1.5)
kenstir [Tue, 8 Dec 2015 02:00:04 +0000 (21:00 -0500)]
hemlock_v11 (1.5)

10 years agoFixed bug where you would not be able to login once you changed your password.
kenstir [Tue, 8 Dec 2015 01:45:15 +0000 (20:45 -0500)]
Fixed bug where you would not be able to login once you changed your password.

* On LOGIN_FAILED, remove the account password.  Still the auth fails but
  when you retry we forward to the authenticator with the correct
  username/password.
* Slight cleanup to SplashActivity.

10 years agohemlock_v10 (1.5)
kenstir [Mon, 7 Dec 2015 03:31:31 +0000 (22:31 -0500)]
hemlock_v10 (1.5)

10 years agocwmars_v14 (1.7)
kenstir [Mon, 7 Dec 2015 03:25:24 +0000 (22:25 -0500)]
cwmars_v14 (1.7)

10 years agoReverted change to volley IDL loading. The IDL loading has to be synchronous because...
kenstir [Mon, 7 Dec 2015 03:10:14 +0000 (22:10 -0500)]
Reverted change to volley IDL loading.  The IDL loading has to be synchronous because everything after it depends on the IDL, e.g. loadOrganizations.

10 years agodunno why this keeps changing
kenstir [Mon, 7 Dec 2015 01:18:27 +0000 (20:18 -0500)]
dunno why this keeps changing

10 years agodon't mark test activity with LAUNCHER
kenstir [Mon, 7 Dec 2015 01:16:05 +0000 (20:16 -0500)]
don't mark test activity with LAUNCHER

10 years agoRemoved some unused code
kenstir [Sun, 6 Dec 2015 18:26:58 +0000 (13:26 -0500)]
Removed some unused code

10 years agoDon't bother to load bookbags since we ain't using them for now.
kenstir [Sun, 6 Dec 2015 18:25:38 +0000 (13:25 -0500)]
Don't bother to load bookbags since we ain't using them for now.

10 years agolittle bit better now
kenstir [Sun, 6 Dec 2015 04:57:21 +0000 (23:57 -0500)]
little bit better now

10 years agoNew test trying out parsing of basic json osrf response
kenstir [Sun, 6 Dec 2015 04:16:18 +0000 (23:16 -0500)]
New test trying out parsing of basic json osrf response

10 years agoNow with two tests.
kenstir [Sun, 6 Dec 2015 02:25:12 +0000 (21:25 -0500)]
Now with two tests.

10 years agoFirst android unit test
kenstir [Sun, 6 Dec 2015 01:24:47 +0000 (20:24 -0500)]
First android unit test

Under Intellij you need a new android test module, and it would not create one under core/ so it went under cwmars_app/tests/.  The first test exercises volley to fetch a json resource.

10 years agoRemoved more old osrf tests that are n/a for android
kenstir [Sun, 6 Dec 2015 01:24:11 +0000 (20:24 -0500)]
Removed more old osrf tests that are n/a for android

10 years agoDo log NPE but do not eat it...it'll come through as an app crash.
kenstir [Sat, 5 Dec 2015 22:58:28 +0000 (17:58 -0500)]
Do log NPE but do not eat it...it'll come through as an app crash.

10 years agoRemoved some debug logging
kenstir [Sat, 5 Dec 2015 20:18:58 +0000 (15:18 -0500)]
Removed some debug logging

10 years agoCleanup of Search Details and Copy Information activities
kenstir [Sat, 5 Dec 2015 20:13:22 +0000 (15:13 -0500)]
Cleanup of Search Details and Copy Information activities

* Do not show any copy info on Search Details; show it only on Copy Information
* Copy Information page cleaned up.  Not beautiful but at least readable now.
* Replaced "add to bookbag" button with "show copies" button.  I never used bookbags and they are not visible anywhere else in the app.  We'll see if there are any complaints.

10 years agoDon't ignore osrf test directory, removed test sources that will never compile under...
kenstir [Sat, 5 Dec 2015 20:12:42 +0000 (15:12 -0500)]
Don't ignore osrf test directory, removed test sources that will never compile under Android.

10 years agoNot yet successful attempt to move biblio.record.copy_count out of main search.
kenstir [Sat, 5 Dec 2015 02:44:47 +0000 (21:44 -0500)]
Not yet successful attempt to move biblio.record.copy_count out of main search.

That call is taking 30% of the total search time, and it is not even necessary until you look at the item details.  Made sure that the orgID is properly passed from SearchCatalog through to BasicDetailsFragment.  Not working yet because my first attempt was to call getCopyCount on the main thread.  End goal: volley-based OSRF response handler.

10 years agoRemoved extraneous param to open-ils.search.biblio.record.copy_count
kenstir [Fri, 4 Dec 2015 23:33:17 +0000 (18:33 -0500)]
Removed extraneous param to open-ils.search.biblio.record.copy_count

10 years agoFixed bug in Advanced Search reported by Geoff Sams
kenstir [Fri, 4 Dec 2015 23:08:52 +0000 (18:08 -0500)]
Fixed bug in Advanced Search reported by Geoff Sams

* query string returned was missing space separator
* code was unnecessarily verbose
* names of variables and views were strange

10 years agocwmars_v13 (1.6)
kenstir [Fri, 4 Dec 2015 23:07:21 +0000 (18:07 -0500)]
cwmars_v13 (1.6)

10 years agohemlock_v9 (1.4)
kenstir [Fri, 4 Dec 2015 02:05:17 +0000 (21:05 -0500)]
hemlock_v9 (1.4)

10 years agoUse volley for search results and record details. OMG is it faster. Way faster.
kenstir [Fri, 4 Dec 2015 01:58:36 +0000 (20:58 -0500)]
Use volley for search results and record details.  OMG is it faster.  Way faster.

10 years agoMoved Library value obj to more reasonable home
kenstir [Fri, 4 Dec 2015 01:57:34 +0000 (20:57 -0500)]
Moved Library value obj to more reasonable home

10 years agoUse volley to load IDL.
kenstir [Thu, 3 Dec 2015 04:43:10 +0000 (23:43 -0500)]
Use volley to load IDL.

10 years agoFirst use of volley library to fetch libraries JSON
kenstir [Thu, 3 Dec 2015 03:45:15 +0000 (22:45 -0500)]
First use of volley library to fetch libraries JSON

10 years agohemlock_v8 (1.3)
kenstir [Thu, 3 Dec 2015 01:32:21 +0000 (20:32 -0500)]
hemlock_v8 (1.3)

10 years agoInsert assertion that the doc_id returned from open-ils.search.biblio.record.mods_sli...
kenstir [Wed, 2 Dec 2015 14:50:02 +0000 (09:50 -0500)]
Insert assertion that the doc_id returned from open-ils.search.biblio.record.mods_slim.retrieve is the same id passed in.  We are now using RecordInfo.doc_id to load jacket images.

10 years agoBetter exception handling and more concise string handling.
kenstir [Wed, 2 Dec 2015 14:47:55 +0000 (09:47 -0500)]
Better exception handling and more concise string handling.

10 years agoHedge for org unit display: for big consortiums (>25 ou), display the org tree sorted...
kenstir [Wed, 2 Dec 2015 03:12:43 +0000 (22:12 -0500)]
Hedge for org unit display: for big consortiums (>25 ou), display the org tree sorted with level=0 on top.  For smaller consortiums, display the org tree using an indented spinner.

10 years agobackground for missing images should not be white
kenstir [Wed, 2 Dec 2015 03:11:20 +0000 (22:11 -0500)]
background for missing images should not be white

10 years agodo not display orgs if they are marked opac_visible=f
kenstir [Wed, 2 Dec 2015 01:40:22 +0000 (20:40 -0500)]
do not display orgs if they are marked opac_visible=f

10 years agoFixed org spinner for NTLC at least
kenstir [Tue, 1 Dec 2015 03:57:52 +0000 (22:57 -0500)]
Fixed org spinner for NTLC at least

* search depth = org level, not level-1
* org spinners for search and hold left-justified and indented
* org spinner for hold does not allow hold if orgType < BRANCH
  (is there a better way?)

10 years agoSome progress toward a more generic org chooser / library spinner
kenstir [Tue, 1 Dec 2015 02:39:43 +0000 (21:39 -0500)]
Some progress toward a more generic org chooser / library spinner

* parse org tree from open-ils.actor.org_tree.retrieve not orgTree.js
* display orgs with left padding like the OPAC does

10 years agoMore log output trying to debug the NTLC missing jacket images.
kenstir [Sat, 28 Nov 2015 01:16:39 +0000 (20:16 -0500)]
More log output trying to debug the NTLC missing jacket images.

10 years agohemlock_v7 1.2
kenstir [Thu, 26 Nov 2015 02:46:14 +0000 (21:46 -0500)]
hemlock_v7 1.2

10 years agoFixed crashes reported by Geoff Sams
kenstir [Thu, 26 Nov 2015 02:41:06 +0000 (21:41 -0500)]
Fixed crashes reported by Geoff Sams

* pcrud on NTLC did not accept "ANONYMOUS" and required a valid auth token
* some unrelated work toward fetching the org tree via OSRF

10 years agoReinstated some useful log stmts.
kenstir [Thu, 26 Nov 2015 01:50:39 +0000 (20:50 -0500)]
Reinstated some useful log stmts.

10 years agoremoved dup static var
kenstir [Thu, 26 Nov 2015 01:49:01 +0000 (20:49 -0500)]
removed dup static var

10 years agomaking isDebuggable more generic
kenstir [Thu, 26 Nov 2015 01:48:09 +0000 (20:48 -0500)]
making isDebuggable more generic

10 years agohemlock 1.1
kenstir [Wed, 25 Nov 2015 22:21:23 +0000 (17:21 -0500)]
hemlock 1.1

10 years agoSpinner.setSelected(false) did not have any useful effect so remove it as extraneous.
kenstir [Wed, 25 Nov 2015 17:23:46 +0000 (12:23 -0500)]
Spinner.setSelected(false) did not have any useful effect so remove it as extraneous.

10 years agoFixed search results label for catalog item of type music
kenstir [Wed, 25 Nov 2015 17:22:49 +0000 (12:22 -0500)]
Fixed search results label for catalog item of type music

10 years agoUse SSL for libraries.json as well, why not
kenstir [Wed, 25 Nov 2015 17:22:17 +0000 (12:22 -0500)]
Use SSL for libraries.json as well, why not

10 years agoRemoved http hack
kenstir [Wed, 25 Nov 2015 16:24:25 +0000 (11:24 -0500)]
Removed http hack

10 years agoHack to disable SSL for gapines and mlnc4.mvlcstaff.org. This issue is described...
kenstir [Wed, 25 Nov 2015 03:15:52 +0000 (22:15 -0500)]
Hack to disable SSL for gapines and mlnc4.mvlcstaff.org.  This issue is described in detail at developer.android.com/training/articles/security-ssl.html and the real workaround is more android code or changes to the site cert.

10 years agobump cwmars_app to v12
kenstir [Wed, 25 Nov 2015 01:41:39 +0000 (20:41 -0500)]
bump cwmars_app to v12

10 years agov5
kenstir [Tue, 24 Nov 2015 23:32:18 +0000 (18:32 -0500)]
v5

* updated library url for libraries json
* mark location features not required

10 years agoImproved UX of brand new user.
kenstir [Tue, 24 Nov 2015 02:38:47 +0000 (21:38 -0500)]
Improved UX of brand new user.

* In main menu, dynamically invalidate options menu when adding an account.
* In auth activity, default to library of first existing account.  If there
  are no existing accounts, then default to closest library by course GPS.

10 years agohemlock v3
kenstir [Mon, 23 Nov 2015 02:03:07 +0000 (21:03 -0500)]
hemlock v3

10 years agoFixed bug: only enable "Switch account" menu on MainActivity if there exists more...
kenstir [Mon, 23 Nov 2015 01:58:16 +0000 (20:58 -0500)]
Fixed bug: only enable "Switch account" menu on MainActivity if there exists more than one account.

10 years agoStarting the LoadingTask from SplashActivity.onCreate rather than SplashActivity...
kenstir [Mon, 23 Nov 2015 01:44:47 +0000 (20:44 -0500)]
Starting the LoadingTask from SplashActivity.onCreate rather than SplashActivity.onStart seems to fix the issue where the background is half black during the Choose Account dialog.

10 years agohemlock v2
kenstir [Sun, 22 Nov 2015 14:11:41 +0000 (09:11 -0500)]
hemlock v2

10 years agoUse string formatter to compose AppBar subtitle: "username" for cwmars_app (because...
kenstir [Sun, 22 Nov 2015 02:24:14 +0000 (21:24 -0500)]
Use string formatter to compose AppBar subtitle: "username" for cwmars_app (because C/W MARS is in the title) and "C/W MARS - username" for hemlock_app.

10 years agomlnc4 is offline, use demo.evergreencatalog.com for a demo account
kenstir [Sun, 22 Nov 2015 02:23:39 +0000 (21:23 -0500)]
mlnc4 is offline, use demo.evergreencatalog.com for a demo account

10 years agoFinally just removed all the code that doesn't compile under Android. Excluding...
kenstir [Sun, 22 Nov 2015 01:30:55 +0000 (20:30 -0500)]
Finally just removed all the code that doesn't compile under Android.  Excluding it from compilation has to be done on each project's settings and is tedious.  This app is not going to use opensrf over XMPP.

10 years agoFrom the MainActivity menu, you can switch account or add account.
kenstir [Sun, 22 Nov 2015 01:20:38 +0000 (20:20 -0500)]
From the MainActivity menu, you can switch account or add account.

10 years agoFactored out ActionBar subtitle setting across all activities.
kenstir [Sun, 22 Nov 2015 00:48:14 +0000 (19:48 -0500)]
Factored out ActionBar subtitle setting across all activities.

10 years agoAdding Hemlock app.
kenstir [Sat, 21 Nov 2015 23:49:55 +0000 (18:49 -0500)]
Adding Hemlock app.

10 years agoAdded hemlock logos, removed some project-level excludes
kenstir [Sat, 21 Nov 2015 23:29:23 +0000 (18:29 -0500)]
Added hemlock logos, removed some project-level excludes

10 years agoChecking all logos I have before trimming unused.
kenstir [Sat, 21 Nov 2015 20:26:48 +0000 (15:26 -0500)]
Checking all logos I have before trimming unused.

10 years agoeg_app now builds with proguard, making APK nearly 30% smaller
kenstir [Sat, 21 Nov 2015 19:17:51 +0000 (14:17 -0500)]
eg_app now builds with proguard, making APK nearly 30% smaller

10 years agoPut library name as title on App Bar for eg_app
kenstir [Fri, 20 Nov 2015 03:47:17 +0000 (22:47 -0500)]
Put library name as title on App Bar for eg_app

10 years agoFixed up vertical spacing on cwmars_app AuthenticatorActivity
kenstir [Fri, 20 Nov 2015 01:55:35 +0000 (20:55 -0500)]
Fixed up vertical spacing on cwmars_app AuthenticatorActivity

10 years agoChanges for eg_app and cwmars_app to peacefully coexist.
kenstir [Fri, 20 Nov 2015 01:46:37 +0000 (20:46 -0500)]
Changes for eg_app and cwmars_app to peacefully coexist.

* AuthenticatorActivity only displays/downloads library list in eg_app
  (that is if it doesn't have a library_url).
* export the AuthenticatorService.  Not sure that this is the Right Thing.

10 years ago* Fixed bug switching between accounts at different libraries; you need a new HTTP...
kenstir [Thu, 19 Nov 2015 02:14:09 +0000 (21:14 -0500)]
* Fixed bug switching between accounts at different libraries; you need a new HTTP connection when you switch URLs.  Duh.

10 years ago* 2nd half of last checkin
kenstir [Thu, 19 Nov 2015 02:13:33 +0000 (21:13 -0500)]
* 2nd half of last checkin

10 years ago* added a label above signin fields
kenstir [Thu, 19 Nov 2015 02:13:01 +0000 (21:13 -0500)]
* added a label above signin fields

10 years agoMade embedded opensrf work for the eg_app too. Also, Android Marshmallow
kenstir [Wed, 18 Nov 2015 18:44:38 +0000 (13:44 -0500)]
Made embedded opensrf work for the eg_app too.  Also, Android Marshmallow
won't let me do SSL to mlnc4.mvlcstaff.org, even though SSL works in
Chrome on Windows.  So we'll go http.

10 years agoIncorporated opensrf2_serialized_reg as additional source files in the core project.
kenstir [Wed, 18 Nov 2015 18:21:44 +0000 (13:21 -0500)]
Incorporated opensrf2_serialized_reg as additional source files in the core project.

10 years ago* better logging for automated parsing
kenstir [Wed, 18 Nov 2015 17:30:07 +0000 (12:30 -0500)]
* better logging for automated parsing

10 years agomoved opensrf sources to fit android library project structure
kenstir [Wed, 18 Nov 2015 17:23:47 +0000 (12:23 -0500)]
moved opensrf sources to fit android library project structure

10 years ago* parseable Log output of OSRF gateway requests, to help me learn my way around the API
kenstir [Wed, 18 Nov 2015 17:18:53 +0000 (12:18 -0500)]
* parseable Log output of OSRF gateway requests, to help me learn my way around the API

10 years agoThese are the OpenSRF sources exactly as I got them, checked into the Evergreen app...
kenstir [Wed, 18 Nov 2015 17:12:48 +0000 (12:12 -0500)]
These are the OpenSRF sources exactly as I got them, checked into the Evergreen app as Open-ILS/src/Android/libs/org.opensrf2_serialized_reg.jar

I don't know the exact history of this copy but it is clear that the registry was made serializeable.  For now I want these sources inside the app build so I can debug them.

10 years agoImproved auth flow for generic app.
kenstir [Wed, 18 Nov 2015 15:52:24 +0000 (10:52 -0500)]
Improved auth flow for generic app.

* factored AccountManager interaction out into AccountUtils
* switching back and forth between c/w mars accounts works, but not switching
  to admin@demo.evergreencatalog.com or admin@mlnc4.mvlcstaff.org.
  Will debug further.

10 years agoFurther refactoring: do not allow globally setting httpaddr w/out
kenstir [Tue, 17 Nov 2015 03:31:40 +0000 (22:31 -0500)]
Further refactoring: do not allow globally setting httpaddr w/out
reloading IDL and all that jazz.

10 years agoRefactoring
kenstir [Tue, 17 Nov 2015 01:32:48 +0000 (20:32 -0500)]
Refactoring

* http address and http connection for osrf moved to GlobalConfigs
* dead code cleanup

10 years agoProgress toward a generic authenticator which stores the library url as userdata...
kenstir [Sat, 14 Nov 2015 23:01:31 +0000 (18:01 -0500)]
Progress toward a generic authenticator which stores the library url as userdata on the account.

10 years agoFixed bug caused by conditionalizing startTask.
kenstir [Sat, 14 Nov 2015 21:18:48 +0000 (16:18 -0500)]
Fixed bug caused by conditionalizing startTask.

10 years agoInterestingly, you can sign in before downloading the IDL. This will make implemting...
kenstir [Sat, 14 Nov 2015 21:17:42 +0000 (16:17 -0500)]
Interestingly, you can sign in before downloading the IDL.  This will make implemting the generic AuthenticatorActivity easier.

10 years agorebase of android-generic, using git apply because rebase did not work
kenstir [Sat, 14 Nov 2015 02:52:03 +0000 (21:52 -0500)]
rebase of android-generic, using git apply because rebase did not work

10 years agoAdded TestAuthActivity to do some experimentation with auth tokens in the
kenstir [Fri, 13 Nov 2015 00:02:49 +0000 (19:02 -0500)]
Added TestAuthActivity to do some experimentation with auth tokens in the
generic app.

This activity came from https://github.com/Udinic/AccountAuthenticator

10 years agoremove unused
kenstir [Fri, 13 Nov 2015 00:02:11 +0000 (19:02 -0500)]
remove unused

10 years agobe a simple kind of man
kenstir [Fri, 13 Nov 2015 00:01:47 +0000 (19:01 -0500)]
be a simple kind of man

10 years agocore app does not require permissions in the manifest but IDEA warns without them
kenstir [Fri, 13 Nov 2015 00:01:23 +0000 (19:01 -0500)]
core app does not require permissions in the manifest but IDEA warns without them

10 years agoAdded each jar explicitly as part of the core android library project
kenstir [Thu, 12 Nov 2015 02:02:10 +0000 (21:02 -0500)]
Added each jar explicitly as part of the core android library project
and as exported, so that other projects that reuse the core inherit these jars.

10 years agopermissions on this library project manifest are not important,
kenstir [Thu, 12 Nov 2015 02:01:23 +0000 (21:01 -0500)]
permissions on this library project manifest are not important,
except that IDEA warns if it does not have them.

10 years agoremoving eclipse residue
kenstir [Thu, 12 Nov 2015 02:00:58 +0000 (21:00 -0500)]
removing eclipse residue

10 years agoThis IDL should not have been committed either.
kenstir [Thu, 5 Nov 2015 16:32:38 +0000 (11:32 -0500)]
This IDL should not have been committed either.

10 years agofm_IDL.xml should not have been committed here
kenstir [Thu, 5 Nov 2015 14:50:35 +0000 (09:50 -0500)]
fm_IDL.xml should not have been committed here

10 years agoSuccessfully built using IntelliJ IDEA Community Edition 15.0
kenstir [Wed, 4 Nov 2015 17:21:48 +0000 (12:21 -0500)]
Successfully built using IntelliJ IDEA Community Edition 15.0
Do not attempt to build this using Android Studio; the projects
build but most of the assets are missing from the UI.

10 years agodemo_app: fixed vcs
kenstir [Wed, 4 Nov 2015 16:56:51 +0000 (11:56 -0500)]
demo_app: fixed vcs

10 years agoFixed demo_app project
kenstir [Wed, 4 Nov 2015 16:55:49 +0000 (11:55 -0500)]
Fixed demo_app project

10 years agoupdated target sdk to 19 / kitkat
kenstir [Wed, 4 Nov 2015 02:50:05 +0000 (21:50 -0500)]
updated target sdk to 19 / kitkat

10 years agoLet's call it v10
kenstir [Sat, 31 Oct 2015 01:32:29 +0000 (21:32 -0400)]
Let's call it v10