Skip to content

Commit

Permalink
Merge pull request #1810 from K-Alette/24.05.01
Browse files Browse the repository at this point in the history
Assabet Indexing Fix
  • Loading branch information
mdnoble73 committed May 18, 2024
2 parents b64d319 + 84721c5 commit 8342395
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@ void indexEvents() {

solrDocument.addField("program_type", getStringsForKey(curEvent, "program_type"));

String cancelled = getStringForKey(curEvent, "canceled");
assert cancelled != null;
if (cancelled.equals("1")){
boost -= 10;
}

if (curEvent.get("image") instanceof JSONObject) {
JSONObject imageForCurEvent = curEvent.getJSONObject("image");
if (!imageForCurEvent.isEmpty()) {
Expand Down Expand Up @@ -397,7 +391,7 @@ private JSONArray getRSSFeed() {
JSONArray eventArray = responseArray.getJSONArray(i);
for (int j = 0; j < eventArray.length(); j++) {
JSONObject event1 = eventArray.getJSONObject(j);
if ((!event1.getString("canceled").equals("1"))) {
if ((event1.getInt("canceled") != 1)) {
events.put(eventArray.get(j));
}
}
Expand Down
3 changes: 3 additions & 0 deletions code/web/release_notes/24.05.01.MD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
### Koha Updates
- Allow determination of format to take into account both Collection Code and the translated Collection. (Tickets 132079, 130358) (*MDN*)

### Assabet Updates
- Fix indexing error when "canceled" value is an integer instead of string (Ticket 132242) (*KL*)

## This release includes code contributions from
- ByWater Solutions
- Mark Noble (MDN)

0 comments on commit 8342395

Please sign in to comment.