Revision 27696
Added by Alessia Bardi over 10 years ago
modules/dnet-vocabulary-publisher/trunk/src/main/java/eu/dnetlib/vocabularies/publisher/model/VocabularyTerm.java | ||
---|---|---|
46 | 46 |
super(); |
47 | 47 |
} |
48 | 48 |
|
49 |
/** |
|
50 |
* This constructor is used by the SplittedQueryExecutor for the retrieval of terms from the IS when called by Vocabularyretriever. |
|
51 |
* |
|
52 |
* @param englishName |
|
53 |
* @param nativeName |
|
54 |
* @param encoding |
|
55 |
* @param code |
|
56 |
*/ |
|
49 | 57 |
public VocabularyTerm(final String englishName, final String nativeName, final String encoding, final String code) { |
50 | 58 |
super(); |
51 | 59 |
this.englishName = englishName; |
modules/dnet-vocabulary-publisher/trunk/src/main/resources/eu/dnetlib/vocabularies/views/displayVocabulary.st | ||
---|---|---|
10 | 10 |
<a class="navbar-brand" href="$baseURL$/$vocabulary.id$">$vocabulary.name$</a> |
11 | 11 |
}, |
12 | 12 |
content = { |
13 |
<div><h4>Description: $vocabulary.description$</h4></div> |
|
14 |
|
|
13 | 15 |
<hr> |
14 |
<div>$vocabulary.terms:{ term | <p>$term.englishName$</p>}$</div> |
|
16 |
<div class="table-responsive"> |
|
17 |
<table class="table table-condensed"> |
|
18 |
<thead> |
|
19 |
<tr><th>Terms</th></tr> |
|
20 |
</thead> |
|
21 |
<tbody> |
|
22 |
$vocabulary.terms:{ term | |
|
23 |
<tr><td>$term.englishName$</td></tr> |
|
24 |
}$ |
|
25 |
</tbody> |
|
26 |
</table> |
|
27 |
</div> |
|
15 | 28 |
<hr> |
16 | 29 |
})$ |
17 | 30 |
|
modules/dnet-vocabulary-publisher/trunk/src/main/resources/eu/dnetlib/vocabularies/views/vocabularies.st | ||
---|---|---|
7 | 7 |
}, |
8 | 8 |
bootstrapJS={<script src="resources/js/bootstrap.min.js"></script>}, |
9 | 9 |
content = { |
10 |
<div class="row"> |
|
11 |
$vocabularies:{ voc | |
|
12 |
<div> |
|
13 |
<h4>$voc.name$ <a class="btn btn-link" href="$baseURL$/$voc.id$" role="button">View terms »</a></h4> |
|
14 |
</div> |
|
15 |
}$ |
|
16 |
</div> |
|
17 |
<hr> |
|
10 |
|
|
11 |
<div class="table-responsive"> |
|
12 |
<table class="table table-condensed"> |
|
13 |
<thead> |
|
14 |
<tr><th>Vocabulary name</th><th>Description</th></tr> |
|
15 |
</thead> |
|
16 |
<tbody> |
|
17 |
$vocabularies:{ voc | |
|
18 |
<tr><td>$voc.name$</br><a class="btn btn-link" href="$baseURL$/$voc.id$" role="button">View terms »</a></td> |
|
19 |
<td>$voc.description$</td> |
|
20 |
</tr> |
|
21 |
}$ |
|
22 |
</tbody> |
|
23 |
</table> |
|
24 |
</div> |
|
18 | 25 |
})$ |
19 | 26 |
|
20 | 27 |
|
28 |
|
|
29 |
|
Also available in: Unified diff
Using tables in st views, javadoc.