kenstir [Sun, 22 Nov 2015 14:11:41 +0000 (09:11 -0500)]
hemlock v2
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.
kenstir [Sun, 22 Nov 2015 02:23:39 +0000 (21:23 -0500)]
mlnc4 is offline, use demo.evergreencatalog.com for a demo account
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.
kenstir [Sun, 22 Nov 2015 01:20:38 +0000 (20:20 -0500)]
From the MainActivity menu, you can switch account or add account.
kenstir [Sun, 22 Nov 2015 00:48:14 +0000 (19:48 -0500)]
Factored out ActionBar subtitle setting across all activities.
kenstir [Sat, 21 Nov 2015 23:49:55 +0000 (18:49 -0500)]
Adding Hemlock app.
kenstir [Sat, 21 Nov 2015 23:29:23 +0000 (18:29 -0500)]
Added hemlock logos, removed some project-level excludes
kenstir [Sat, 21 Nov 2015 20:26:48 +0000 (15:26 -0500)]
Checking all logos I have before trimming unused.
kenstir [Sat, 21 Nov 2015 19:17:51 +0000 (14:17 -0500)]
eg_app now builds with proguard, making APK nearly 30% smaller
kenstir [Fri, 20 Nov 2015 03:47:17 +0000 (22:47 -0500)]
Put library name as title on App Bar for eg_app
kenstir [Fri, 20 Nov 2015 01:55:35 +0000 (20:55 -0500)]
Fixed up vertical spacing on cwmars_app AuthenticatorActivity
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.
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.
kenstir [Thu, 19 Nov 2015 02:13:33 +0000 (21:13 -0500)]
* 2nd half of last checkin
kenstir [Thu, 19 Nov 2015 02:13:01 +0000 (21:13 -0500)]
* added a label above signin fields
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.
kenstir [Wed, 18 Nov 2015 18:21:44 +0000 (13:21 -0500)]
Incorporated opensrf2_serialized_reg as additional source files in the core project.
kenstir [Wed, 18 Nov 2015 17:30:07 +0000 (12:30 -0500)]
* better logging for automated parsing
kenstir [Wed, 18 Nov 2015 17:23:47 +0000 (12:23 -0500)]
moved opensrf sources to fit android library project structure
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
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.
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.
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.
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
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.
kenstir [Sat, 14 Nov 2015 21:18:48 +0000 (16:18 -0500)]
Fixed bug caused by conditionalizing startTask.
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.
kenstir [Sat, 14 Nov 2015 02:52:03 +0000 (21:52 -0500)]
rebase of android-generic, using git apply because rebase did not work
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
kenstir [Fri, 13 Nov 2015 00:02:11 +0000 (19:02 -0500)]
remove unused
kenstir [Fri, 13 Nov 2015 00:01:47 +0000 (19:01 -0500)]
be a simple kind of man
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
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.
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.
kenstir [Thu, 12 Nov 2015 02:00:58 +0000 (21:00 -0500)]
removing eclipse residue
kenstir [Thu, 5 Nov 2015 16:32:38 +0000 (11:32 -0500)]
This IDL should not have been committed either.
kenstir [Thu, 5 Nov 2015 14:50:35 +0000 (09:50 -0500)]
fm_IDL.xml should not have been committed here
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.
kenstir [Wed, 4 Nov 2015 16:56:51 +0000 (11:56 -0500)]
demo_app: fixed vcs
kenstir [Wed, 4 Nov 2015 16:55:49 +0000 (11:55 -0500)]
Fixed demo_app project
kenstir [Wed, 4 Nov 2015 02:50:05 +0000 (21:50 -0500)]
updated target sdk to 19 / kitkat
kenstir [Sat, 31 Oct 2015 01:32:29 +0000 (21:32 -0400)]
Let's call it v10
kenstir [Fri, 23 Oct 2015 02:01:11 +0000 (22:01 -0400)]
PlaceHold, HoldDetails - removed superfluous "recipient", which is already on the screen in the action bar.
kenstir [Fri, 23 Oct 2015 01:57:26 +0000 (21:57 -0400)]
Fixed some more small layout and usability issues in the place hold activity.
kenstir [Fri, 23 Oct 2015 01:47:36 +0000 (21:47 -0400)]
Fixed hold details and place hold views to be left-justified instead of center-justified in column 1. Used table layout instead of linear layout.
kenstir [Fri, 23 Oct 2015 00:59:23 +0000 (20:59 -0400)]
Fixed edge case where checked out item record ID was -1 (for an item checked out from a non-member library), causing view to be mislabelled "All Formats". If we don't know the format just leave it blank.
kenstir [Tue, 20 Oct 2015 03:30:20 +0000 (23:30 -0400)]
Holds: Use format text "DVD" instead of vertically stretched
types_of_resource icon.
kenstir [Tue, 20 Oct 2015 00:18:24 +0000 (20:18 -0400)]
Simplified code in ItemsCheckOutListView.
kenstir [Mon, 19 Oct 2015 12:49:59 +0000 (08:49 -0400)]
getItemsCheckedOut: sort by due date ascending, duh
kenstir [Mon, 19 Oct 2015 03:25:36 +0000 (23:25 -0400)]
Search and Checked Out activities now show item format in the standard way:
Title
Author
Format
...
kenstir [Mon, 19 Oct 2015 02:43:47 +0000 (22:43 -0400)]
Indicate item format in Checked Out activity.
Factored out PCRUD code to be used by search results and checked out activity.
kenstir [Mon, 19 Oct 2015 01:17:45 +0000 (21:17 -0400)]
Checked Out activity: mark overdue items with "overdue" in red.
kenstir [Mon, 19 Oct 2015 00:41:47 +0000 (20:41 -0400)]
Updated min sdk to 10; 10 is still gingerbread and 9 was revoked. Soon I will put some effort into modernizing; at this point gingerbread accounts for < 4% of the play store market.
kenstir [Sun, 18 Oct 2015 02:11:06 +0000 (22:11 -0400)]
In checked out items view, print overdue items in red. Not sure I like it yet.
kenstir [Sat, 17 Oct 2015 19:37:10 +0000 (15:37 -0400)]
tried 2 different methods for creating adapters for the format spinner, but both of them had strange and different effects on the vertical size of the spinner. Stuck with the vertically squished original.
kenstir [Sat, 17 Oct 2015 19:11:43 +0000 (15:11 -0400)]
In search results list and details page, indicate format type. This
required moving the search formats out of a simple string resource and
into a JSON resource, so we could distinguish between:
* spinner label, e.g. "All Books"
* item label, e.g. "Book"
* search format text, e.g. "book"
Incremented minimum android version to Gingerbread(8) so I could use
String.isEmpty
kenstir [Sat, 17 Oct 2015 14:39:34 +0000 (10:39 -0400)]
In search results, display the icon_format (e.g. "cdmusic") in preference to search_format (e.g. "music").
kenstir [Thu, 15 Oct 2015 02:52:23 +0000 (22:52 -0400)]
* indicate item type in search results, e.g. "ebook" or "lpbook"
* this requires an extra round-trip using the PCRUD service, which
in turn requires an extra round of special-case parsing of what
looks like Data::Dumper formatted output
kenstir [Thu, 15 Oct 2015 02:50:28 +0000 (22:50 -0400)]
* style policing
kenstir [Tue, 13 Oct 2015 02:35:28 +0000 (22:35 -0400)]
better parsing of automated logging
kenstir [Tue, 13 Oct 2015 02:34:01 +0000 (22:34 -0400)]
* forgot this file
kenstir [Tue, 13 Oct 2015 02:33:20 +0000 (22:33 -0400)]
* removed useless menu entries, left Random for entertainment
kenstir [Mon, 12 Oct 2015 22:50:04 +0000 (18:50 -0400)]
* added new version of opensrf2 that has parseable log output,
and a perl script to parse it. This is for my osrf debugging.
kenstir [Mon, 12 Oct 2015 22:28:23 +0000 (18:28 -0400)]
* tone down the debug logging
kenstir [Mon, 12 Oct 2015 20:53:22 +0000 (16:53 -0400)]
minor bit of tidying
kenstir [Mon, 12 Oct 2015 20:50:41 +0000 (16:50 -0400)]
* avoid displaying the string 'null' for records missing fields like publisher
kenstir [Mon, 12 Oct 2015 20:48:47 +0000 (16:48 -0400)]
* tone down the logging from ImageDownloader
kenstir [Mon, 12 Oct 2015 02:54:08 +0000 (22:54 -0400)]
upgraded version for play store
kenstir [Mon, 12 Oct 2015 02:39:53 +0000 (22:39 -0400)]
search by format, e.g. "All Formats" or "DVD"
kenstir [Mon, 12 Oct 2015 02:04:13 +0000 (22:04 -0400)]
place hold: default email notification to true
kenstir [Sun, 11 Oct 2015 21:07:25 +0000 (17:07 -0400)]
code cleanup: removed unused code, and similar code formatting for doRequest*
kenstir [Sun, 11 Oct 2015 20:50:44 +0000 (16:50 -0400)]
* removed unnecessary duplicate search code
kenstir [Sun, 11 Oct 2015 18:11:07 +0000 (14:11 -0400)]
code cleanup:
* removed unused ConnectionManager param from calls
* changed doRequest calls to have a consistent formatting
Not sure why the 2nd overload of doRequest calls while(req.recv());
will have to dig into that later.
kenstir [Sun, 11 Oct 2015 01:03:26 +0000 (21:03 -0400)]
Upgraded to IntelliJ IDEA 14.1.5
kenstir [Sat, 10 Oct 2015 21:11:17 +0000 (17:11 -0400)]
Better caching of images, but still not great. Use a sentinel Bitmap
object so there is something non-null in the cache and we don't need to
keep retrying if there is no image. There are still a lot of unnecessary
requests here, such as when changing orientation and when flipping between
list and detail views.
kenstir [Sat, 10 Oct 2015 20:56:50 +0000 (16:56 -0400)]
The IDL is no longer packaged with the app in assets, but I am keeping
this script laying around for reference.
kenstir [Sat, 10 Oct 2015 20:55:51 +0000 (16:55 -0400)]
remove useless comments
kenstir [Tue, 6 Oct 2015 02:00:49 +0000 (22:00 -0400)]
Removing dead code
kenstir [Tue, 6 Oct 2015 01:42:25 +0000 (21:42 -0400)]
* C/W Mars -> C/W MARS per member librarian :)
* use image from /jacket/small/r/$image rather than /jacket/small/$isbn, as the web client does. There are a lot more images available that way.
* removed unused menu on "checked out" view
* fixed indenting on some lousy code
kenstir [Tue, 6 Oct 2015 01:38:58 +0000 (21:38 -0400)]
* C/W Mars -> C/W MARS per member librarian :)
* use image from /jacket/small/r/$image rather than /jacket/small/$isbn, as the web client does. There are a lot more images available that way.
* removed unused menu on "checked out" view
* fixed indenting on some lousy code
kenstir [Thu, 13 Aug 2015 02:31:51 +0000 (22:31 -0400)]
Fixed the issue that the Google Play Store sayd Supported devices 0. This turned out to be jars contained in the osrf jar being treated as requirements that no devices matched. Included the json jar directly in the cwmars app, and removed the memcached jar and the java file requiring it.
kenstir [Sun, 9 Aug 2015 21:32:47 +0000 (17:32 -0400)]
Auto download fm_IDL at run time instead of including it as an asset. Safer and slower, about 225ms as opposed to 22ms, on my Nexus 5.
kenstir [Sun, 9 Aug 2015 20:59:06 +0000 (16:59 -0400)]
removed use of permissions we do not need
kenstir [Sun, 24 Aug 2014 17:23:22 +0000 (13:23 -0400)]
Some changes due to IntelliJ IDEA 13.1.4
kenstir [Sun, 24 Aug 2014 17:22:02 +0000 (13:22 -0400)]
Updated cached fm_IDL.xml. This is the nail in the coffin for
distributing fm_IDL.xml: app crashed using the old, works using the new.
kenstir [Mon, 6 Jan 2014 01:56:13 +0000 (20:56 -0500)]
Fixed "place hold" button.
Changed demo_app manifest to match activity structure of cwmars_app.
kenstir [Mon, 6 Jan 2014 01:31:54 +0000 (20:31 -0500)]
Added class (Keyword/Title/Author/Subject/Series) spinner to search activity.
kenstir [Sun, 5 Jan 2014 20:04:05 +0000 (15:04 -0500)]
Removed some more unused code and resources. Fixed the big UI problem with using the AppCompat theme and Gingerbread, where dialog-mode spinners don't use the theme and have a white background (thus white text). Best fix I found so far is to use a different spinner layout with dark text for GB.
kenstir [Sat, 4 Jan 2014 17:07:39 +0000 (12:07 -0500)]
Garrr, just adding the v7/appcompat library to the repo will be easier.
kenstir [Sat, 4 Jan 2014 16:21:42 +0000 (11:21 -0500)]
Changed reference to appcompat module to be relative, so I can make it work on a mac too.
kenstir [Fri, 3 Jan 2014 03:17:04 +0000 (22:17 -0500)]
advanced search should for now be an item only in the search activity's menu
kenstir [Fri, 3 Jan 2014 03:13:12 +0000 (22:13 -0500)]
Advanced search working again, off of the Search activity
kenstir [Fri, 3 Jan 2014 02:13:55 +0000 (21:13 -0500)]
forgot to add the landscape layout
kenstir [Fri, 3 Jan 2014 01:29:52 +0000 (20:29 -0500)]
Fixed main activity to fit on a 480x800 screen in landscape.
kenstir [Fri, 3 Jan 2014 01:12:34 +0000 (20:12 -0500)]
added big search button because the action bar button was too hard to notice
kenstir [Fri, 3 Jan 2014 01:11:45 +0000 (20:11 -0500)]
Get the default pickup location right for holds...the home library.
kenstir [Fri, 3 Jan 2014 01:10:05 +0000 (20:10 -0500)]
Ooh I hate italic, esp. on Android where the trailing "d" in "Richard" gets lopped off because the bounding box is incorrectly calculated.
kenstir [Fri, 3 Jan 2014 01:09:39 +0000 (20:09 -0500)]
I think the android lint warnings were because I removed most of the stuff from the core manifest.
kenstir [Tue, 31 Dec 2013 04:48:57 +0000 (23:48 -0500)]
Make HoldDetails activity use the action bar