From a42523fb03b8d618863653086a6ede8b7bf54601 Mon Sep 17 00:00:00 2001 From: kenstir Date: Mon, 12 Oct 2015 16:53:22 -0400 Subject: [PATCH] minor bit of tidying --- .../org/evergreen_ils/searchCatalog/SearchCatalog.java | 15 +++++---------- .../searchCatalog/SearchCatalogListView.java | 5 ++++- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalog.java b/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalog.java index b5e74260dc..264bc5c2ea 100644 --- a/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalog.java +++ b/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalog.java @@ -223,29 +223,24 @@ public class SearchCatalog { for (int i = 0; i < ids.size(); i++) { - RecordInfo record = new RecordInfo( - getItemShortInfo(Integer.parseInt(ids.get(i)))); - // get copy information + RecordInfo record = new RecordInfo(getItemShortInfo(Integer.parseInt(ids.get(i)))); resultsRecordInfo.add(record); record.copyCountListInfo = getCopyCount( Integer.parseInt(ids.get(i)), this.selectedOrganization.id); - - // get copy count List> list = (List>) getLocationCount( Integer.parseInt(ids.get(i)), this.selectedOrganization.id, this.selectedOrganization.level - 1); - if (list != null) for (int j = 0; j < list.size(); j++) { CopyInformation copyInfo = new CopyInformation(list.get(j)); - record.copyInformationList.add(copyInfo); } - Log.d(TAG, "Title " + record.title + " Author " - + record.author + " Pub date" + record.pubdate - + " Publisher" + record.publisher); + Log.d(TAG, "Title:" + record.title + + " Author:" + record.author + + " Pubdate:" + record.pubdate + + " Publisher:" + record.publisher); } return resultsRecordInfo; diff --git a/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalogListView.java b/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalogListView.java index b1065bd5fa..c476c6c2e9 100644 --- a/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalogListView.java +++ b/Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalogListView.java @@ -119,7 +119,10 @@ public class SearchCatalogListView extends ActionBarActivity { return searchClassSpinner.getSelectedItem().toString().toLowerCase(); } - // todo: find a way to get these programmatically. C/W MARS has an extended set of search formats. + // Sadly there is currently no way to get these programmatically. + // todo: instead of raw strings in the search_format_options string-array, + // store an array of search_key:printable_strings, e.g. "book:All Books", + // and dynamically construct the spinner. private String getSearchFormat() { String value = ""; String s = searchFormatSpinner.getSelectedItem().toString(); -- 2.11.0