Permalink
Browse files

WL-1709 Always return availability information even no URL.

It's better to display the libraries that the book is in without links
to them, than to display nothing.
  • Loading branch information...
1 parent 9cd06e0 commit 25df063af22f1c31b220b879aa94775242cfae82 @buckett buckett committed Sep 22, 2011
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/main/java/uk/ac/ox/oucs/sirlouie/daia/Document.java
View
9 src/main/java/uk/ac/ox/oucs/sirlouie/daia/Document.java
@@ -60,12 +60,9 @@ public void addItems(Collection<SearObject> beans) {
item.setHref(library.getURL());
item.setLabel(library.getLabel());
item.setStorage(library.getCollection());
-
- if (null != library.getAvailableURL()) {
- Available service = new Available("loan");
- service.setHref(library.getAvailableURL());
- item.addAvailableService(service);
- }
+ Available service = new Available("loan");
+ service.setHref(library.getAvailableURL());
+ item.addAvailableService(service);
if (null != library.getLibrary()) {
item.setDepartment(new Department(library.getLibrary()));
}

0 comments on commit 25df063

Please sign in to comment.