Changeset 2988
- Timestamp:
- 06/05/13 06:40:05 (11 years ago)
- Location:
- vlo/trunk/vlo_web_app/src
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.java
r2978 r2988 218 218 topLeftImage = "Images/topleft-clarin-d.png"; 219 219 topRightImage = "Images/topright-clarin-d.png"; 220 cssFile = "css/ main.css";220 cssFile = "css/clarin-d.css"; 221 221 partnerLinkMap = getClarinDPartnerLinkMap(); 222 222 name = "CLARIN-D"; -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.html
r2969 r2988 16 16 <wicket:extend> 17 17 <div class="endgame"><br> 18 <div><a wicket:id="backLink" href="#"><wicket:message key="backToResult">[back]</wicket:message></a> | <a wicket:id="openBrowserLink"></a> 19 <div align="right" style="float:right"> 20 <a wicket:id="feedbackLink"href="#"><img wicket:id="feedbackImage" height="32" width="32"/></a> 21 <span wicket:id="feedbackLabel"></span></div> 22 <p /> 18 <div><a wicket:id="backLink" href="#"><wicket:message key="backToResult">[back]</wicket:message></a> | <a wicket:id="openBrowserLink"></a> | <a wicket:id="feedbackLink"></a> 23 19 </div> 24 20 <br> -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.java
r2970 r2988 395 395 } 396 396 397 Image resourceImg = new Image("feedbackImage", FEEDBACK_IMAGE.getResource());398 String title = "Report an error";399 resourceImg.add(new SimpleAttributeModifier("title", title));400 resourceImg.add(new SimpleAttributeModifier("alt", title));397 // Image resourceImg = new Image("feedbackImage", FEEDBACK_IMAGE.getResource()); 398 // String title = "Report an error"; 399 // resourceImg.add(new SimpleAttributeModifier("title", title)); 400 // resourceImg.add(new SimpleAttributeModifier("alt", title)); 401 401 String href = getHref(feedbackfromURL+thisURL); 402 402 String name = feedbackfromURL+thisURL; 403 ExternalLink link = new ExternalLink("feedbackLink", href );404 link.add(resourceImg);405 add(new Label("feedbackLabel", "Found an error?"));403 ExternalLink link = new ExternalLink("feedbackLink", href, "found an error?"); 404 // link.add(resourceImg); 405 // add(new Label("feedbackLabel", "Found an error?")); 406 406 add(link); 407 407 } -
vlo/trunk/vlo_web_app/src/main/webapp/css/clarin-d.css
r2979 r2988 12 12 display: block; 13 13 } 14 15 /* banner definitions */ 16 17 /* picture on the left */ 18 #topleft{ 19 position: absolute; 20 left:0px; 21 } 22 23 /* picture on the right */ 24 #topright{ 25 position: absolute; 26 left:497px; 27 } 28 29 /* extend the banner to the right, take color from the right side of the png */ 14 30 .top{ 15 background-color: # d4deef;31 background-color: #88a1b9; 16 32 width: 100%; 17 33 height: 176px; 18 34 border: none; 19 35 } 20 #topleft{ 21 position: absolute; 22 left:0px; 23 } 24 #topright{ 25 position: absolute; 26 left:497px; 27 } 36 37 /* end banner definitions */ 38 39 /* facet matrix related definitions */ 40 28 41 .opening .matrix{ 29 42 border:0px; 30 width: 66%; 31 } 32 33 .opening .resulttable{ 34 width: 33%; 35 margin-left: 11px; 36 } 37 .opening .resulttable .headers{ 38 background-color: #6b824a; 39 } 40 41 .resulttable tbody{ 42 background-color:#BCCEE8; 43 width: 54%; 43 44 } 44 45 … … 55 56 padding: 0; 56 57 } 58 59 /* end facet matrix related definitions */ 60 61 /* definitions for result table on search page */ 62 63 .opening .resulttable{ 64 width: 45%; /* the facet matrix will take 54 % */ 65 66 } 67 /* for the table header, use the red from the banner */ 68 .opening .resulttable .headers{ 69 background-color: #801418; 70 text-align: center; 71 opacity:0.8; 72 color:#FFFFFF; 73 } 74 75 .resulttable tbody tr.even { 76 background-color: #e7ebf0; /* color of background in odd table position */ 77 } 78 79 .resulttable tbody tr.odd { 80 background-color: #ffffff; /* color of background in odd table position */ 81 color: #000000; 82 opacity: 1.0 83 } 84 85 /* for the table header, take the red from the banner */ 86 .headers{ 87 background-color: #801418; 88 opacity:0.8; 89 text-align: left; /* changed this myself */ 90 } 91 /* end definitions for result table on search page */ 92 93 /* facet box related definitions */ 57 94 .facetbox { 58 95 font-size: 14px; 59 96 padding: 2px 5px; 60 97 } 98 99 /* end facet box related definitions */ 100 101 /* search box related definitions */ 102 103 /* take color from the right side of the banner */ 61 104 .middlegame .search { 62 background-color: # BCCEE8;105 background-color: #88a1b9; 63 106 padding-top: 11px; 64 107 padding-bottom: 11px; 65 } 66 108 opacity: 0.9 109 } 67 110 .middlegame .searchmodule { 68 111 margin-left:20%; 69 112 display:inline 70 113 } 71 72 114 .middlegame .homeLink { 73 115 margin-left: 11px; 74 116 display:inline 75 117 } 76 118 /* end search box related definitions */ 119 120 /* facet box header, continue the banner and search box color */ 77 121 .facet_facetOrigin .facetbox { 78 background-color: # 2E6B99;122 background-color: #88a1b9; 79 123 color:#FFFFFF; 80 124 padding: 3px 5px; 125 opacity: 0.9 81 126 } 82 127 .facet { … … 86 131 } 87 132 .facet_facetOrigin .valuebox { 88 background-color: # BCCEE8;133 background-color: #e7ebf0; /* facet box background */ 89 134 padding: 5px; 90 135 } 91 136 .value { 92 color: #4040ff; 137 color: #4040ff; 93 138 } 94 139 .value.sel { 95 color: # FFFFFF;140 color: #e7ebf0; 96 141 } 97 142 .barlink{ 98 color: #BCCEE8; 99 } 100 .headers{ 101 background-color: #2E6B99; 102 color:#FFFFFF; 103 } 143 color: #801418; /* when the value in the bar turns into a link was BCCEE8 */ 144 } 145 146 /* definitions for result table on results page */ 104 147 105 148 .endgame div{ … … 108 151 padding: 0; 109 152 } 153 .endgame .headers{ 154 text-align: left; 155 color:#FFFFFF; 156 } 157 158 .endgame .headers .attribute{ 159 background-color: #801418; 160 opacity: 1.0; 161 } 162 163 .endgame .headers .attributeValue{ 164 background-color: #801418; 165 } 166 110 167 .endgame .resultAttributes{ 111 168 margin: 0px; 112 169 padding-left: 5px; 113 border: none; 114 } 115 116 .endgame .headers{ 117 text-align: left; 118 } 170 border: none;} 171 119 172 .endgame .attribute { 120 173 font-weight: bold; 121 background-color: #BCCEE8; 174 background-color: #88a1b9; 175 opacity: 0.7; 122 176 text-align: right; 123 177 padding-right: 8px; … … 125 179 126 180 .endgame .attributeValue{ 181 background-color: #e7ebf0; 127 182 padding-left: 8px; 128 183 } 129 184 130 .endgame .headers .attribute{ 131 background-color: #2E6B99; 132 } 185 /* end definitions for result table on results page */ 186 187 188 /* not sure what this is for */ 133 189 .endgame .attributesTbody { 134 190 vertical-align: top; 135 191 background-color:#d4deef; 136 192 } 193 194 /* not sure where this is for*/ 137 195 .anchorpanel{ 138 196 padding:5px; 139 197 margin-top: 20px; 140 background-color: # 2E6B99;198 background-color: #801418; 141 199 color: #FFFFFF; 200 opacity: 0.9 142 201 } 143 202 .alphaNavigation{ … … 190 249 } 191 250 192 .resulttable tbody tr.odd {193 background-color: #CEDCEF;194 }195 251 196 252 div.wicket-aa {background-color:white; -
vlo/trunk/vlo_web_app/src/test/java/eu/clarin/cmdi/vlo/pages/ResourceLinkPanelTest.java
r2949 r2988 5 5 import eu.clarin.cmdi.vlo.config.VloConfig; 6 6 import org.apache.wicket.util.tester.WicketTester; 7 import org.junit.Assert; 7 8 import org.junit.Before; 8 import org.junit.Assert;9 9 import org.junit.Test; 10 10 … … 33 33 ResourceLinkPanel totest = new ResourceLinkPanel("a", FacetConstants.RESOURCE_TYPE_AUDIO, "a"); 34 34 String uit = totest.getNameFromLink(_SAME_STRING); 35 //Assert.assertTrue("Returns the same string if it does not start with the handle-prefix",uit.equals(_SAME_STRING));35 Assert.assertTrue("Returns the same string if it does not start with the handle-prefix",uit.equals(_SAME_STRING)); 36 36 37 37 uit = totest.getNameFromLink(_RESOLVE_STRING); 38 // from at least 29.05.2013 this was not working 38 39 // Assert.assertTrue("Returns the resolved url of the handle pid", uit.equals(_RESOLVE_OUT)); 39 40 }
Note: See TracChangeset
for help on using the changeset viewer.