Project

General

Profile

« Previous | Next » 

Revision 60763

context property is needed for the master.st to resolve the pretty presentation elements for html

View differences:

modules/dnet-vocabulary-publisher/trunk/src/main/java/eu/dnetlib/vocabularies/publisher/controller/VocabularyPublisherController.java
31 31
	private VocabularyRetriever vocabularyRetriever;
32 32
	@Value("${vocabulary.publisher.title}")
33 33
	private String title;
34
	@Value("${container.context}")
35
	private String context;
34 36

  
35 37

  
36 38
	@RequestMapping(value = "/vocabularies", method = RequestMethod.GET, produces = { "application/json" })
......
70 72
	@RequestMapping(value = "/vocabularies", method = RequestMethod.GET, produces = { "text/html" })
71 73
	public void listVocabularies(final ModelMap map) {
72 74
		map.addAttribute("vocabularies", listVocabularies());
75
		map.addAttribute("context", context);
73 76
		map.addAttribute("title", title);
74 77
	}
75 78

  
......
79 82
			final ModelMap map) throws VocabularyNotFoundException {
80 83

  
81 84
		map.addAttribute("vocabulary", getVocabulary(code));
85
		map.addAttribute("context", context);
82 86
		return "displayVocabulary";
83 87
	}
84 88

  
......
89 93
			final ModelMap map) throws VocabularyNotFoundException {
90 94
		map.addAttribute("vocabulary", getVocabulary(code));
91 95
		map.addAttribute("term", getTermSynonyms(code, request));
96
		map.addAttribute("context", context);
92 97
		return "displaySynonyms";
93 98
	}
94 99

  

Also available in: Unified diff