working/Evergreen.git
10 years agobetter commentary user/kenstir/android-generic
kenstir [Wed, 11 Nov 2015 23:22:46 +0000 (18:22 -0500)]
better commentary

10 years agoMore changes to AppPrefs for generic app.
kenstir [Wed, 11 Nov 2015 23:22:04 +0000 (18:22 -0500)]
More changes to AppPrefs for generic app.

10 years agoMostly working version of generic EG app.
kenstir [Mon, 9 Nov 2015 02:55:33 +0000 (21:55 -0500)]
Mostly working version of generic EG app.

Main points are:
* eg_app main activity is ChooseLibraryActivity, whereas cwmars_app main
  activity is SplashActivity (need a better name for that).
* there is a little bit of weirdness when you create an account using
  eg_app and then restart and then hit Back.
* there is a bug when you add a 2nd account using the eg_app
* in general the app prefs are stored in the new class AppPrefs, though
  there are still some references to GlobalConfigs.httpAddress

10 years agoSeems like startactivity and pref storage is working, but now
kenstir [Sat, 7 Nov 2015 03:33:48 +0000 (22:33 -0500)]
Seems like startactivity and pref storage is working, but now
AuthenticatorActivity is getting the url from the wrong place.

10 years agoRenamed consortium -> library
kenstir [Sat, 7 Nov 2015 02:27:51 +0000 (21:27 -0500)]
Renamed consortium -> library

10 years agocheckpoint: slightly better UI for selecting a library
kenstir [Sat, 7 Nov 2015 02:18:29 +0000 (21:18 -0500)]
checkpoint: slightly better UI for selecting a library

10 years agocheckpoint: Now downloads json async and populates spinner.
kenstir [Sat, 7 Nov 2015 02:03:35 +0000 (21:03 -0500)]
checkpoint: Now downloads json async and populates spinner.

10 years agocheckpoint: this is the commit with the asynctask
kenstir [Sat, 7 Nov 2015 00:40:49 +0000 (19:40 -0500)]
checkpoint: this is the commit with the asynctask

10 years agocheckpoint: starting with ChooseConsortium and an asynctask to load the json
kenstir [Sat, 7 Nov 2015 00:31:43 +0000 (19:31 -0500)]
checkpoint: starting with ChooseConsortium and an asynctask to load the json

10 years agocheckpoint. Splash activity is not correctly launching choose library activity.
kenstir [Thu, 5 Nov 2015 19:15:26 +0000 (14:15 -0500)]
checkpoint.  Splash activity is not correctly launching choose library activity.

10 years agostashing non-working progress. SplashActivity will redirect to a new choose library...
kenstir [Thu, 5 Nov 2015 14:37:55 +0000 (09:37 -0500)]
stashing non-working progress.  SplashActivity will redirect to a new choose library activity if the preference and library url strings are empty.

10 years agoFixed permissions for demo_app, eg_app
kenstir [Wed, 4 Nov 2015 20:59:02 +0000 (15:59 -0500)]
Fixed permissions for demo_app, eg_app

10 years agoNew eg_app - generic app
kenstir [Wed, 4 Nov 2015 20:49:26 +0000 (15:49 -0500)]
New eg_app - generic app
Old demo_app - app that targets demo.evergreencatalog.com.  Still useful
to show how to create a customized app a la cwmars_app.

10 years agoRevert "start of generic app, achieved by renaming demo_app. Will revert this"
kenstir [Wed, 4 Nov 2015 20:46:16 +0000 (15:46 -0500)]
Revert "start of generic app, achieved by renaming demo_app.  Will revert this"

This reverts commit e83ef1ab3bbc9ec6ffd9cf9b1af64e3a657f6074.

10 years agostart of generic app, achieved by renaming demo_app. Will revert this
kenstir [Wed, 4 Nov 2015 20:30:02 +0000 (15:30 -0500)]
start of generic app, achieved by renaming demo_app.  Will revert this

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

10 years agoPlaceHold, HoldDetails - removed superfluous "recipient", which is already on the...
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.

10 years agoFixed some more small layout and usability issues in the place hold activity.
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.

10 years agoFixed hold details and place hold views to be left-justified instead of center-justif...
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.

10 years agoFixed edge case where checked out item record ID was -1 (for an item checked out...
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.

10 years agoHolds: Use format text "DVD" instead of vertically stretched
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.

10 years agoSimplified code in ItemsCheckOutListView.
kenstir [Tue, 20 Oct 2015 00:18:24 +0000 (20:18 -0400)]
Simplified code in ItemsCheckOutListView.

10 years agogetItemsCheckedOut: sort by due date ascending, duh
kenstir [Mon, 19 Oct 2015 12:49:59 +0000 (08:49 -0400)]
getItemsCheckedOut: sort by due date ascending, duh

10 years agoSearch and Checked Out activities now show item format in the standard way:
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
...

10 years agoIndicate item format in Checked Out activity.
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.

10 years agoChecked Out activity: mark overdue items with "overdue" in red.
kenstir [Mon, 19 Oct 2015 01:17:45 +0000 (21:17 -0400)]
Checked Out activity: mark overdue items with "overdue" in red.

10 years agoUpdated min sdk to 10; 10 is still gingerbread and 9 was revoked. Soon I will put...
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.

10 years agoIn checked out items view, print overdue items in red. Not sure I like it yet.
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.

10 years agotried 2 different methods for creating adapters for the format spinner, but both... user/kenstir/android-action-bar
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.

10 years agoIn search results list and details page, indicate format type. This
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

10 years agoIn search results, display the icon_format (e.g. "cdmusic") in preference to search_f...
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").

10 years ago* indicate item type in search results, e.g. "ebook" or "lpbook"
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

10 years ago* style policing
kenstir [Thu, 15 Oct 2015 02:50:28 +0000 (22:50 -0400)]
* style policing

10 years agobetter parsing of automated logging
kenstir [Tue, 13 Oct 2015 02:35:28 +0000 (22:35 -0400)]
better parsing of automated logging

10 years ago* forgot this file
kenstir [Tue, 13 Oct 2015 02:34:01 +0000 (22:34 -0400)]
* forgot this file

10 years ago* removed useless menu entries, left Random for entertainment
kenstir [Tue, 13 Oct 2015 02:33:20 +0000 (22:33 -0400)]
* removed useless menu entries, left Random for entertainment

10 years ago* added new version of opensrf2 that has parseable log output,
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.

10 years ago* tone down the debug logging
kenstir [Mon, 12 Oct 2015 22:28:23 +0000 (18:28 -0400)]
* tone down the debug logging

10 years agominor bit of tidying
kenstir [Mon, 12 Oct 2015 20:53:22 +0000 (16:53 -0400)]
minor bit of tidying

10 years ago* avoid displaying the string 'null' for records missing fields like publisher
kenstir [Mon, 12 Oct 2015 20:50:41 +0000 (16:50 -0400)]
* avoid displaying the string 'null' for records missing fields like publisher

10 years ago* tone down the logging from ImageDownloader
kenstir [Mon, 12 Oct 2015 20:48:47 +0000 (16:48 -0400)]
* tone down the logging from ImageDownloader

10 years agoupgraded version for play store
kenstir [Mon, 12 Oct 2015 02:54:08 +0000 (22:54 -0400)]
upgraded version for play store

10 years agosearch by format, e.g. "All Formats" or "DVD"
kenstir [Mon, 12 Oct 2015 02:39:53 +0000 (22:39 -0400)]
search by format, e.g. "All Formats" or "DVD"

10 years agoplace hold: default email notification to true
kenstir [Mon, 12 Oct 2015 02:04:13 +0000 (22:04 -0400)]
place hold: default email notification to true

10 years agocode cleanup: removed unused code, and similar code formatting for doRequest*
kenstir [Sun, 11 Oct 2015 21:07:25 +0000 (17:07 -0400)]
code cleanup: removed unused code, and similar code formatting for doRequest*

10 years ago* removed unnecessary duplicate search code
kenstir [Sun, 11 Oct 2015 20:50:44 +0000 (16:50 -0400)]
* removed unnecessary duplicate search code

10 years agocode cleanup:
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.

10 years agoUpgraded to IntelliJ IDEA 14.1.5
kenstir [Sun, 11 Oct 2015 01:03:26 +0000 (21:03 -0400)]
Upgraded to IntelliJ IDEA 14.1.5

10 years agoBetter caching of images, but still not great. Use a sentinel Bitmap
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.

10 years agoThe IDL is no longer packaged with the app in assets, but I am keeping
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.

10 years agoremove useless comments
kenstir [Sat, 10 Oct 2015 20:55:51 +0000 (16:55 -0400)]
remove useless comments

10 years agoRemoving dead code
kenstir [Tue, 6 Oct 2015 02:00:49 +0000 (22:00 -0400)]
Removing dead code

10 years ago* C/W Mars -> C/W MARS per member librarian :)
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

10 years ago* C/W Mars -> C/W MARS per member librarian :)
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

10 years agoFixed the issue that the Google Play Store sayd Supported devices 0. This turned...
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.

10 years agoAuto download fm_IDL at run time instead of including it as an asset. Safer and...
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.

10 years agoremoved use of permissions we do not need
kenstir [Sun, 9 Aug 2015 20:59:06 +0000 (16:59 -0400)]
removed use of permissions we do not need

11 years agoSome changes due to IntelliJ IDEA 13.1.4
kenstir [Sun, 24 Aug 2014 17:23:22 +0000 (13:23 -0400)]
Some changes due to IntelliJ IDEA 13.1.4

11 years agoUpdated cached fm_IDL.xml. This is the nail in the coffin for
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.

11 years agoFixed "place hold" button.
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.

11 years agoAdded class (Keyword/Title/Author/Subject/Series) spinner to search activity.
kenstir [Mon, 6 Jan 2014 01:31:54 +0000 (20:31 -0500)]
Added class (Keyword/Title/Author/Subject/Series) spinner to search activity.

11 years agoRemoved some more unused code and resources. Fixed the big UI problem with using...
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.

11 years agoGarrr, just adding the v7/appcompat library to the repo will be easier.
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.

11 years agoChanged reference to appcompat module to be relative, so I can make it work on a...
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.

11 years agoadvanced search should for now be an item only in the search activity's menu
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

11 years agoAdvanced search working again, off of the Search activity
kenstir [Fri, 3 Jan 2014 03:13:12 +0000 (22:13 -0500)]
Advanced search working again, off of the Search activity

11 years agoforgot to add the landscape layout
kenstir [Fri, 3 Jan 2014 02:13:55 +0000 (21:13 -0500)]
forgot to add the landscape layout

11 years agoFixed main activity to fit on a 480x800 screen in landscape.
kenstir [Fri, 3 Jan 2014 01:29:52 +0000 (20:29 -0500)]
Fixed main activity to fit on a 480x800 screen in landscape.

11 years agoadded big search button because the action bar button was too hard to notice
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

11 years agoGet the default pickup location right for holds...the home library.
kenstir [Fri, 3 Jan 2014 01:11:45 +0000 (20:11 -0500)]
Get the default pickup location right for holds...the home library.

11 years agoOoh I hate italic, esp. on Android where the trailing "d" in "Richard" gets lopped...
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.

11 years agoI think the android lint warnings were because I removed most of the stuff from the...
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.

11 years agoMake HoldDetails activity use the action bar
kenstir [Tue, 31 Dec 2013 04:48:57 +0000 (23:48 -0500)]
Make HoldDetails activity use the action bar

11 years agoFixed action bar in Place Hold activity to return to Search Details (back,
kenstir [Tue, 31 Dec 2013 04:41:20 +0000 (23:41 -0500)]
Fixed action bar in Place Hold activity to return to Search Details (back,
not up).  Fixed action bar in Search Details to return to Search (back,
not up).

11 years agoFixed crash on horizontal swipe past end of search results.
kenstir [Tue, 31 Dec 2013 04:16:55 +0000 (23:16 -0500)]
Fixed crash on horizontal swipe past end of search results.
Changed inexplicable "1 / 1" text to "1 of 1 copy available" in search results.

11 years agouse grey image background for search results
kenstir [Tue, 31 Dec 2013 04:16:21 +0000 (23:16 -0500)]
use grey image background for search results

11 years agosearch details (SampleUnderlinesNoFade?@!) now uses action bar
kenstir [Tue, 31 Dec 2013 02:57:48 +0000 (21:57 -0500)]
search details (SampleUnderlinesNoFade?@!) now uses action bar

11 years agoFixed searching in landscape mode.
kenstir [Tue, 31 Dec 2013 02:30:51 +0000 (21:30 -0500)]
Fixed searching in landscape mode.

11 years agoSearch icon in action bar now starts SearchCatalogListView activity. Searching works...
kenstir [Mon, 30 Dec 2013 04:17:06 +0000 (23:17 -0500)]
Search icon in action bar now starts SearchCatalogListView activity.  Searching works, but only in portrait mode; landscape is broken.

11 years agoMore activities now have the standard action bar: checkouts, holds, fines
kenstir [Sun, 29 Dec 2013 19:39:42 +0000 (14:39 -0500)]
More activities now have the standard action bar: checkouts, holds, fines

11 years agoMain and items-checked-out activities now using action bar.
kenstir [Sun, 29 Dec 2013 04:20:53 +0000 (23:20 -0500)]
Main and items-checked-out activities now using action bar.

11 years agoChanged SearchCatalogListView to use the ActionBar with subtitle of account name.
kenstir [Sat, 28 Dec 2013 23:41:12 +0000 (18:41 -0500)]
Changed SearchCatalogListView to use the ActionBar with subtitle of account name.

11 years agoimported project appcompat
kenstir [Sat, 28 Dec 2013 22:10:05 +0000 (17:10 -0500)]
imported project appcompat

11 years agoGlobal rename of misnamed org.evergreen.android -> org.evergreen_ils user/kenstir/android-custom-org
kenstir [Sat, 28 Dec 2013 22:49:56 +0000 (17:49 -0500)]
Global rename of misnamed org.evergreen.android -> org.evergreen_ils
evergreen.org is a church, evergreen-ils.org is library software

11 years agoattempt to fix crash seen once in dialog.dismiss()
kenstir [Sat, 28 Dec 2013 16:07:00 +0000 (11:07 -0500)]
attempt to fix crash seen once in dialog.dismiss()

11 years agoremoved unused method
kenstir [Sat, 28 Dec 2013 16:05:58 +0000 (11:05 -0500)]
removed unused method

11 years agoRemoved "Please wait" from progress dialogs everywhere.
kenstir [Wed, 18 Dec 2013 02:17:41 +0000 (21:17 -0500)]
Removed "Please wait" from progress dialogs everywhere.

11 years agoStandardizing ou.xml elements, removing unused ones. Removing unpleasant red bold...
kenstir [Wed, 18 Dec 2013 01:53:08 +0000 (20:53 -0500)]
Standardizing ou.xml elements, removing unused ones.  Removing unpleasant red bold text for fines and and gradient separators.

11 years agoChecked Out view:
kenstir [Tue, 17 Dec 2013 03:21:26 +0000 (22:21 -0500)]
Checked Out view:
* checked out / overdue headers cleaner
* fixed up one-sided rounded corner
* only show "Renew" button if there are renewals left
* show brief toast when renewal successful

Fixed NPE due to lack of IDL for class 'bmp'

11 years ago* Fixed a NPE seen once when coercing results of getItemsCheckedOut().
kenstir [Tue, 17 Dec 2013 01:43:59 +0000 (20:43 -0500)]
* Fixed a NPE seen once when coercing results of getItemsCheckedOut().
* Make getItemsCheckedOut() sort by due date.
* Fixed a situation where session was non-null but was not valid; force reload
  of session in LoadingTask

11 years agoAdd activity title in "actionbar" area instead of a static logo/string. Removed...
kenstir [Sat, 14 Dec 2013 23:21:56 +0000 (18:21 -0500)]
Add activity title in "actionbar" area instead of a static logo/string.  Removed the "subtitle" which did nothing but take up precious vertical space.  Removed "My account" button from "My account" page.

11 years agoStandardized on logging using TAG = CurrentClass.class.getName() rather than ad hoc...
kenstir [Sat, 14 Dec 2013 21:56:54 +0000 (16:56 -0500)]
Standardized on logging using TAG = CurrentClass.class.getName() rather than ad hoc tag strings or System.out.println.  The class.getName() approach allows refactoring the class without having to edit strings.

11 years ago2nd custom app is working now that it has its own fm_IDL.xml downloaded from its...
kenstir [Wed, 11 Dec 2013 03:34:15 +0000 (22:34 -0500)]
2nd custom app is working now that it has its own fm_IDL.xml downloaded from its own site.  It differs subtly between installations (dang).

12 years agocheckpoint: 2nd custom app using evergreen app core. This required customizing the...
kenstir [Tue, 10 Dec 2013 03:40:29 +0000 (22:40 -0500)]
checkpoint: 2nd custom app using evergreen app core.  This required customizing the accountType used by the AccountManager.

12 years agoframework for demo app at demo.evergreencatalog.com
kenstir [Tue, 10 Dec 2013 02:58:07 +0000 (21:58 -0500)]
framework for demo app at demo.evergreencatalog.com

12 years agoremoved unused images added by intellij
kenstir [Tue, 10 Dec 2013 02:05:00 +0000 (21:05 -0500)]
removed unused images added by intellij