Revision 44602
Added by Katerina Iatropoulou over 7 years ago
VocabularyLoader.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import java.util.Locale; |
6 | 6 |
|
7 |
import org.apache.log4j.Logger; |
|
8 |
|
|
9 | 7 |
abstract class VocabularyLoader { |
10 | 8 |
|
11 | 9 |
//the local path where vocabularies are saved |
... | ... | |
13 | 11 |
|
14 | 12 |
private static final String EMPTY_FILE = "<?xml version=\"1.0\"?><RESOURCE_PROFILE></RESOURCE_PROFILE>"; |
15 | 13 |
|
16 |
private static Logger logger = Logger.getLogger(VocabularyLoader.class);
|
|
14 |
//private static final Logger logger = Logger.getLogger(VocabularyLoader.class);
|
|
17 | 15 |
|
18 | 16 |
public eu.dnetlib.domain.enabling.Vocabulary loadVocabulary(Vocabulary vocabulary, Locale locale) throws Exception { |
19 | 17 |
String xml = getVocabularyXml(vocabulary, locale); |
Also available in: Unified diff
Added methods for single solr query for search and browse. Size does not trigger extra solr query. Refine uses field queries. Pending APIs for different entities - only the genarla resources api is currently enabled. Pending handling format for both XML and JSON. All these related to #1432 and #2479