Commit 7aa8b8b2 authored by Emilien Bondu's avatar Emilien Bondu
Browse files

Changing CSS, language bundle and jsp. Change pom to verison 1.0-SNAPSHOT.

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabServices/Portlets/metadata-portlet@1671 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent 3297a295
......@@ -17,7 +17,7 @@
<groupId>org.ow2.weblab.portlets</groupId>
<artifactId>${service.name}</artifactId>
<packaging>war</packaging>
<version>2.0-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version>
<name>${service.name}</name>
<dependencies>
......
......@@ -43,4 +43,21 @@ portlet.not_sortable_results = Warning, results are not sortable but are display
portlet.meta.configuration = Displayed meta-data
meta.save_config = Save
portlet.no_meta = No meta-data to display
\ No newline at end of file
portlet.no_meta = No meta-data to display
meta.language.en = English
meta.language.fr = French
meta.language.de = German
meta.language.ar = Arabic
meta.language.es = Spanish
meta.language.gr = Greek
meta.language.ir = Iranian
meta.language.in = Indian
meta.language.hr = Croate
meta.language.it = Italian
meta.language.jp = Japanese
meta.language.ko = Korea
meta.language.nl = Nederland
meta.language.pt = Portugais
meta.language.ru = Russian
meta.language.ch = Chinese
\ No newline at end of file
......@@ -50,4 +50,21 @@ portlet.meta.configuration = Affichage des m
meta.save_config = Enregister
thumbnail.image.alt = Aperçu de
portlet.no_meta = Aucune métadonnée à afficher
\ No newline at end of file
portlet.no_meta = Aucune métadonnée à afficher
meta.language.en = Anglais
meta.language.fr = Français
meta.language.de = Allemand
meta.language.ar = Arabe
meta.language.es = Espagnol
meta.language.gr = Grec
meta.language.ir = Iranien
meta.language.in = Indien
meta.language.hr = Croate
meta.language.it = Italien
meta.language.jp = Japonais
meta.language.ko = Coréen
meta.language.nl = Néerlandais
meta.language.pt = Portugais
meta.language.ru = Russe
meta.language.ch = Chinois
\ No newline at end of file
<?xml version="1.0"?>
<liferay-portlet-app>
<portlet>
<portlet-name>MetaDataPortlet</portlet-name>
<portlet-name>weblab-metaview</portlet-name>
<instanceable>false</instanceable>
<header-portlet-css>/css/metadata_portlet.css</header-portlet-css>
</portlet>
......
.meta_link {
color:#1A4FA7;
font-size:12px;
font-weight:bold;
text-decoration:underline;
.meta_data_table {
border: 1px solid #AAAAAA;
margin-bottom: 10px;
margin-top: 1px;
padding: 5px;
width: 100%;
background: white;
}
.meta_data_table td {
background: white;
border: 1px solid #AAAAAA;
padding: 8px;
width: 100%;
}
.meta_data_table th {
background: #D1D6DC;
color: #7B7C7F;
font-size: 1.1em;
font-weight: bold;
padding: 8px;
}
\ No newline at end of file
......@@ -11,11 +11,6 @@
<portlet:resourceURL var="resourceURL" escapeXml="false" />
<div class='contenu_portlet'>
<c:choose>
<c:when test="${user_media_unit==null}">
<div class="portlet-msg-info"><fmt:message
......@@ -39,9 +34,4 @@
});
</script>
</c:otherwise>
</c:choose>
</div>
</c:choose>
\ No newline at end of file
......@@ -21,14 +21,14 @@
<!-- meta-data -->
<div>
<table><tbody>
<table class="meta_data_table"><tbody>
<!--<tr><th class="titre_ligne premier_titre"><fmt:message key="meta.meta_name" /></th><th class="titre_ligne premier_titre"><fmt:message key="meta.meta_value" /></th></tr>-->
<c:if
test="${meta_conf_bean.properties['title'] && ! empty resource_desc.value[rdfProperties['title']][0]}">
<tr>
<th>
<u><fmt:message key="meta.title" /> :</u>
<fmt:message key="meta.title" />&nbsp;:
</th>
<td>
<b><i>${resource_desc[rdfProperties['title']][0]}</i></b>
......@@ -38,7 +38,7 @@
test="${meta_conf_bean.properties['hasScore'] && ! empty resource_desc[rdfProperties['hasScore']][0]}">
<tr>
<th>
<u><fmt:message key="meta.hasScore" /> :</u>
<fmt:message key="meta.hasScore" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['hasScore']][0]}</i>
......@@ -48,7 +48,7 @@
test="${meta_conf_bean.properties['hasNativeContent'] && ! empty resource_desc[rdfProperties['hasNativeContent']][0]}">
<tr>
<th>
<u><fmt:message key="meta.hasNativeContent" /> :</u>
<fmt:message key="meta.hasNativeContent" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['hasNativeContent']][0]}</i>
......@@ -58,14 +58,14 @@
test="${meta_conf_bean.properties['hasNormalisedContent'] && ! empty resource_desc[rdfProperties['hasNormalisedContent']][0]}">
<tr>
<th>
<u><fmt:message key="meta.hasNormalisedContent" /> :</u>
<fmt:message key="meta.hasNormalisedContent" />&nbsp;:
<i>${resource_desc[rdfProperties['hasNormalisedContent']][0]}</i>
<br>
</c:if> <c:if
test="${meta_conf_bean.properties['isExposedAs'] && ! empty resource_desc[rdfProperties['isExposedAs']][0]}">
<tr>
<th>
<u><fmt:message key="meta.isExposedAs" /> :</u>
<fmt:message key="meta.isExposedAs" />&nbsp;:
</th>
<td>
<a class="meta_link" target="_blank"
......@@ -77,7 +77,7 @@
test="${meta_conf_bean.properties['isGeneratedFrom'] && ! empty resource_desc[rdfProperties['isGeneratedFrom']][0]}">
<tr>
<th>
<u><fmt:message key="meta.isGeneratedFrom" /> :</u>
<fmt:message key="meta.isGeneratedFrom" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['isGeneratedFrom']][0]}</i>
......@@ -87,7 +87,7 @@
test="${meta_conf_bean.properties['abstract'] && ! empty resource_desc[rdfProperties['abstract']][0]}">
<tr>
<th>
<u><fmt:message key="meta.abstract" /> :</u>
<fmt:message key="meta.abstract" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['abstract']][0]}</i>
......@@ -97,7 +97,7 @@
test="${meta_conf_bean.properties['isResultOf'] && ! empty resource_desc[rdfProperties['isResultOf']][0]}">
<tr>
<th>
<u><fmt:message key="meta.isResultOf" /> :</u>
<fmt:message key="meta.isResultOf" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['isResultOf']][0]}</i>
......@@ -107,7 +107,7 @@
test="${meta_conf_bean.properties['isProducedFrom'] && ! empty resource_desc[rdfProperties['isProducedFrom']][0]}">
<tr>
<th>
<u><fmt:message key="meta.isProducedFrom" /> :</u>
<fmt:message key="meta.isProducedFrom" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['isProducedFrom']][0]}</i>
......@@ -117,7 +117,7 @@
test="${meta_conf_bean.properties['creator'] && ! empty resource_desc[rdfProperties['creator']][0]}">
<tr>
<th>
<u><fmt:message key="meta.creator" /> :</u>
<fmt:message key="meta.creator" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['creator']][0]}</i>
......@@ -127,7 +127,7 @@
test="${meta_conf_bean.properties['date'] && ! empty resource_desc[rdfProperties['date']][0]}">
<tr>
<th>
<u><fmt:message key="meta.date" /> :</u>
<fmt:message key="meta.date" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['date']][0]}</i>
......@@ -137,7 +137,7 @@
test="${meta_conf_bean.properties['description'] && ! empty resource_desc[rdfProperties['description']][0]}">
<tr>
<th>
<u><fmt:message key="meta.description" /> :</u>
<fmt:message key="meta.description" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['description']][0]}</i>
......@@ -147,7 +147,7 @@
test="${meta_conf_bean.properties['format'] && ! empty resource_desc[rdfProperties['format']][0]}">
<tr>
<th>
<u><fmt:message key="meta.format" /> :</u>
<fmt:message key="meta.format" />&nbsp;:
</th>
<td>
<c:choose>
......@@ -264,7 +264,7 @@
test="${meta_conf_bean.properties['identifier'] && ! empty resource_desc[rdfProperties['identifier']][0]}">
<tr>
<th>
<u><fmt:message key="meta.identifier" /> :</u>
<fmt:message key="meta.identifier" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['identifier']][0]}</i>
......@@ -274,76 +274,74 @@
test="${meta_conf_bean.properties['language'] && ! empty resource_desc[rdfProperties['language']][0]}">
<tr>
<th>
<u><fmt:message key="meta.language" /> :</u>
<fmt:message key="meta.language" />&nbsp;:
</th>
<td>
<c:choose>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='eng'}">
<img src="${baseURL}en_US.png" />
test="${resource_desc[rdfProperties['language']][0]=='en'}">
<img src="${baseURL}en_US.png" />&nbsp;<fmt:message key="meta.language.en" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='fre'}">
<img src="${baseURL}fr_FR.png" />
test="${resource_desc[rdfProperties['language']][0]=='fr'}">
<img src="${baseURL}fr_FR.png" />&nbsp;<fmt:message key="meta.language.fr" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='ger'}">
<img src="${baseURL}de_DE.png" />
test="${resource_desc[rdfProperties['language']][0]=='de'}">
<img src="${baseURL}de_DE.png" />&nbsp;<fmt:message key="meta.language.de" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='ara'}">
<img src="${baseURL}ar_SA.png" />
test="${resource_desc[rdfProperties['language']][0]=='ar'}">
<img src="${baseURL}ar_SA.png" />&nbsp;<fmt:message key="meta.language.ar" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='spa'}">
<img src="${baseURL}es_ES.png" />
test="${resource_desc[rdfProperties['language']][0]=='es'}">
<img src="${baseURL}es_ES.png" />&nbsp;<fmt:message key="meta.language.es" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='gre'}">
<img src="${baseURL}el_GR.png" />
test="${resource_desc[rdfProperties['language']][0]=='gr'}">
<img src="${baseURL}el_GR.png" />&nbsp;<fmt:message key="meta.language.gr" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='per'}">
<img src="${baseURL}fa_IR.png" />
test="${resource_desc[rdfProperties['language']][0]=='ir'}">
<img src="${baseURL}fa_IR.png" />&nbsp;<fmt:message key="meta.language.ir" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='hin'}">
<img src="${baseURL}ind.png" />
test="${resource_desc[rdfProperties['language']][0]=='in'}">
<img src="${baseURL}ind.png" />&nbsp;<fmt:message key="meta.language.in" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='scr'}">
<img src="${baseURL}croa.png" />
test="${resource_desc[rdfProperties['language']][0]=='hr'}">
<img src="${baseURL}croa.png" />&nbsp;<fmt:message key="meta.language.hr" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='ita'}">
<img src="${baseURL}it_IT.png" />
test="${resource_desc[rdfProperties['language']][0]=='it'}">
<img src="${baseURL}it_IT.png" />&nbsp;<fmt:message key="meta.language.it" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='jpn'}">
<img src="${baseURL}ja_JP.png" />
test="${resource_desc[rdfProperties['language']][0]=='jp'}">
<img src="${baseURL}ja_JP.png" />&nbsp;<fmt:message key="meta.language.jp" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='kor'}">
<img src="${baseURL}ko_KR.png" />
test="${resource_desc[rdfProperties['language']][0]=='kr'}">
<img src="${baseURL}ko_KR.png" />&nbsp;<fmt:message key="meta.language.ko" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='dut'}">
<img src="${baseURL}nl_NL.png" />
test="${resource_desc[rdfProperties['language']][0]=='nl'}">
<img src="${baseURL}nl_NL.png" />&nbsp;<fmt:message key="meta.language.nl" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='por'}">
<img src="${baseURL}pt_PT.png" />
test="${resource_desc[rdfProperties['language']][0]=='pt'}">
<img src="${baseURL}pt_PT.png" />&nbsp;<fmt:message key="meta.language.pt" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='rus'}">
<img src="${baseURL}ru_RU.png" />
test="${resource_desc[rdfProperties['language']][0]=='ru'}">
<img src="${baseURL}ru_RU.png" />&nbsp;<fmt:message key="meta.language.ru" />
</c:when>
<c:when
test="${resource_desc[rdfProperties['language']][0]=='chi'}">
<img src="${baseURL}chi.png" />
test="${resource_desc[rdfProperties['language']][0]=='ch'}">
<img src="${baseURL}chi.png" />&nbsp;<fmt:message key="meta.language.ch" />
</c:when>
<c:otherwise>
<i>${resource_desc[rdfProperties['language']][0]}</i>
......@@ -355,7 +353,7 @@
test="${meta_conf_bean.properties['source'] && ! empty resource_desc[rdfProperties['source']][0]}">
<tr>
<th>
<u><fmt:message key="meta.source" /> :</u>
<fmt:message key="meta.source" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['source']][0]}</i>
......@@ -365,7 +363,7 @@
test="${meta_conf_bean.properties['subject'] && ! empty resource_desc[rdfProperties['subject']]}">
<tr>
<th>
<u><fmt:message key="meta.subject" /> :</u>
<fmt:message key="meta.subject" />&nbsp;:
</th>
<td>
<i>
......@@ -382,7 +380,7 @@
test="${meta_conf_bean.properties['catego'] && ! empty resource_desc[rdfProperties['catego']]}">
<tr>
<th>
<u><fmt:message key="meta.catego" /> :</u>
<fmt:message key="meta.catego" />&nbsp;:
</th>
<td>
<i>
......@@ -399,7 +397,7 @@
test="${meta_conf_bean.properties['type'] && ! empty resource_desc[rdfProperties['type']][0]}">
<tr>
<th>
<u><fmt:message key="meta.type" /> :</u>
<fmt:message key="meta.type" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['type']][0]}</i>
......@@ -409,7 +407,7 @@
test="${meta_conf_bean.properties['coverage'] && ! empty resource_desc[rdfProperties['coverage']][0]}">
<tr>
<th>
<u><fmt:message key="meta.coverage" /> :</u>
<fmt:message key="meta.coverage" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['coverage']][0]}</i>
......@@ -419,7 +417,7 @@
test="${meta_conf_bean.properties['extent'] && ! empty resource_desc[rdfProperties['extent']][0]}">
<tr>
<th>
<u><fmt:message key="meta.extent" /> :</u>
<fmt:message key="meta.extent" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['extent']][0]}</i>
......@@ -429,7 +427,7 @@
test="${meta_conf_bean.properties['created'] && ! empty resource_desc[rdfProperties['created']][0]}">
<tr>
<th>
<u><fmt:message key="meta.created" /> :</u>
<fmt:message key="meta.created" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['created']][0]}</i>
......@@ -439,7 +437,7 @@
test="${meta_conf_bean.properties['gatheringDate'] && ! empty resource_desc[rdfProperties['gatheringDate']][0]}">
<tr>
<th>
<u><fmt:message key="meta.gatheringDate" /> :</u>
<fmt:message key="meta.gatheringDate" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['gatheringDate']][0]}</i>
......@@ -449,7 +447,7 @@
test="${meta_conf_bean.properties['projectName'] && ! empty resource_desc[rdfProperties['projectName']][0]}">
<tr>
<th>
<u><fmt:message key="meta.projectName" /> :</u>
<fmt:message key="meta.projectName" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['projectName']][0]}</i>
......@@ -459,7 +457,7 @@
test="${meta_conf_bean.properties['hasOriginalFileSize'] && ! empty resource_desc[rdfProperties['hasOriginalFileSize']][0]}">
<tr>
<th>
<u><fmt:message key="meta.hasOriginalFileSize" /> :</u>
<fmt:message key="meta.hasOriginalFileSize" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['hasOriginalFileSize']][0]}</i>
......@@ -469,7 +467,7 @@
test="${meta_conf_bean.properties['refersTo'] && ! empty resource_desc[rdfProperties['refersTo']][0]}">
<tr>
<th>
<u><fmt:message key="meta.refersTo" /> :</u>
<fmt:message key="meta.refersTo" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['refersTo']][0]}</i>
......@@ -479,7 +477,7 @@
test="${meta_conf_bean.properties['seeAlso'] && ! empty resource_desc[rdfProperties['seeAlso']][0]}">
<tr>
<th>
<u><fmt:message key="meta.seeAlso" /> :</u>
<fmt:message key="meta.seeAlso" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['seeAlso']][0]}</i>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment