Changeset 433:9fdf9ab98560
- Timestamp:
- 09/18/09 15:44:12 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@434
- Message:
-
fixed unset rating were considered = 0
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r432
|
r433
|
|
| 51 | 51 | $test_fail_1 |
| 52 | 52 | #end |
| 53 | | <span class="name">$unicorncall.getObserverName($observationName, $lang) #if ($observation.getRating()) ($observation.getRating()/100) #end</span> |
| | 53 | <span class="name">$unicorncall.getObserverName($observationName, $lang) #if ($observation.Rating) ($observation.Rating/100) #end</span> |
| 54 | 54 | #if ($observation.getRequestUri())<a class="direct_link" href="$observation.getRequestUri()" title="revalidate this document on the validator website">[direct link]</a> |
| 55 | 55 | #else <a class="direct_link" href="$observation.getCallingURI()" title="link to this validator website">[direct link]</a>#end |
-
|
r430
|
r433
|
|
| 23 | 23 | protected String requestUri; |
| 24 | 24 | |
| 25 | | protected int rating; |
| | 25 | protected Integer rating; |
| 26 | 26 | |
| 27 | 27 | /** |
| … |
… |
|
| 292 | 292 | } |
| 293 | 293 | |
| 294 | | public int getRating() { |
| | 294 | public Integer getRating() { |
| 295 | 295 | return rating; |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | | public void setRating(int rating) { |
| | 298 | public void setRating(Integer rating) { |
| 299 | 299 | this.rating = rating; |
| 300 | 300 | } |
-
|
r430
|
r433
|
|
| 83 | 83 | res.setUri(or.getUri()); |
| 84 | 84 | res.setVersion(or.getVersion()); |
| 85 | | res.setRating(or.getRating()); |
| | 85 | if (or.isSetRating()) |
| | 86 | res.setRating(or.getRating()); |
| 86 | 87 | |
| 87 | | org.w3.unicorn.observationresponse.ResultDocument.Result result = or |
| 88 | | .getResult(); |
| | 88 | org.w3.unicorn.observationresponse.ResultDocument.Result result = or.getResult(); |
| 89 | 89 | |
| 90 | 90 | // Fill res.result |