Skip to content

Commit

Permalink
[MODORDERS-1017] - Add displaySummary field
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzmitry_Butramyou committed Feb 12, 2024
1 parent a1f7766 commit 8baf285
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private static JsonObject buildItemContext(FeeFineNoticeContext ctx) {
.put("enumeration", item.getEnumeration())
.put("volume", item.getVolume())
.put("chronology", item.getChronology())
.put("displaySummary", item.getDisplaySummary())
.put("yearCaption", String.join(LIST_VALUES_SEPARATOR, item.getYearCaption()))
.put("copy", getCopyNumber(item, holdingsRecord))
.put("numberOfPieces", item.getNumberOfPieces())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ public void postActionWithPatronNotice() {
.put("enumeration", item.getEnumeration())
.put("volume", item.getVolume())
.put("chronology", item.getChronology())
.put("displaySummary", item.getDisplaySummary())
.put("yearCaption", "2000")
.put("copy", item.getCopyNumber())
.put("numberOfPieces", item.getNumberOfPieces())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public void createContextWithAllAvailableFields() {
assertEquals(item.getEnumeration(), itemContext.getString("enumeration"));
assertEquals(item.getVolume(), itemContext.getString("volume"));
assertEquals(item.getChronology(), itemContext.getString("chronology"));
assertEquals(item.getDisplaySummary(), itemContext.getString("displaySummary"));
assertEquals("2001; 2000", itemContext.getString("yearCaption"));
assertEquals(item.getCopyNumber(), itemContext.getString("copy"));
assertEquals(item.getNumberOfPieces(), itemContext.getString("numberOfPieces"));
Expand Down

0 comments on commit 8baf285

Please sign in to comment.