Skip to content

Commit

Permalink
Collection Areas - add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
min2ha committed Jun 21, 2022
1 parent e5dde37 commit 6eba803
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public ModelAndView rootCategoriesPagev2(HttpServletRequest request) {
indx_deep++;
} else
iterator.next();
log.info("mapCollectionDTO size = "+mapCollectionDTO.size());
}
//add all collections that belong to category
// && TODO: sub-collections? - Need to concentrate on lists from ACT in JSON
Expand All @@ -151,8 +152,7 @@ public ModelAndView rootCategoriesPagev2(HttpServletRequest request) {
Map.Entry::getKey, Map.Entry::getValue, (a, b) -> a, LinkedHashMap::new)));

listOfMapsOfItemsOfCategories3.add(map3);




//collection areas
for (Map.Entry<String, List<PivotField>> pivotEntry : pivotEntryList) {
Expand Down Expand Up @@ -190,9 +190,6 @@ public ModelAndView rootCategoriesPagev2(HttpServletRequest request) {
// log.info("matcher : index = " + k++ +", group = " + m.group(2));
// log.info("matcher : index = " + k++ +", group = " + m.group(3));




mapCollectionDTO.put(
//add only collectionArea ID, title cannot be extracted from SOLR query
pivotEntry.getValue().get(y).getPivot().get(indx_deep).getValue().toString(),
Expand Down Expand Up @@ -228,6 +225,7 @@ public ModelAndView rootCategoriesPagev2(HttpServletRequest request) {
.collect(Collectors.toMap(
Map.Entry::getKey, Map.Entry::getValue, (a, b) -> a, LinkedHashMap::new)));

log.info("count [" + pivotEntry.getValue().get(y).getValue().toString() + "]" + mapCollectionDTO.entrySet().stream().count());
//Final add map of
listOfMapsOfItemsOfCategories3.add(map3);
listOfAlphabetical.add(charSet);
Expand Down

0 comments on commit 6eba803

Please sign in to comment.