diff src/main/java/de/mpiwg/gazetteer/rest/GetSectionMetadata.java @ 10:5610250d021a default tip

SectionsIndex, we added a method to print the setting of the VM
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 19 Mar 2015 11:46:33 +0100
parents 7682c04c63a8
children
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/gazetteer/rest/GetSectionMetadata.java	Wed Mar 18 17:23:45 2015 +0100
+++ b/src/main/java/de/mpiwg/gazetteer/rest/GetSectionMetadata.java	Thu Mar 19 11:46:33 2015 +0100
@@ -22,7 +22,7 @@
 		if(sectionId != null){
 			DBSection section = DBService.getSectionWithContent(sectionId);
 			if(section != null){
-				DBBook book = DBService.getBook(section.getBookId());
+				DBBook book = DBService.getBookFromDB(section.getBookId());
 				
 				response.setContentType("application/json");
 				JSONObject json = new JSONObject();