Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
WL-1709 Always return availability information even no URL.
Browse files Browse the repository at this point in the history
It's better to display the libraries that the book is in without links
to them, than to display nothing.
  • Loading branch information
buckett committed Sep 22, 2011
1 parent 9cd06e0 commit 25df063
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/uk/ac/ox/oucs/sirlouie/daia/Document.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit 25df063

Please sign in to comment.