minor bit of tidying
authorkenstir <kenstir@gmail.com>
Mon, 12 Oct 2015 20:53:22 +0000 (16:53 -0400)
committerkenstir <kenstir@gmail.com>
Mon, 12 Oct 2015 20:53:22 +0000 (16:53 -0400)
Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalog.java
Open-ILS/src/Android/core/src/org/evergreen_ils/searchCatalog/SearchCatalogListView.java

index b5e7426..264bc5c 100644 (file)
@@ -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<Object>> list = (List<List<Object>>) 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;
index b1065bd..c476c6c 100644 (file)
@@ -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();