diff options
| author | fuchsi <fuchsi@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-10-24 21:38:19 +0000 |
|---|---|---|
| committer | fuchsi <fuchsi@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-10-24 21:38:19 +0000 |
| commit | 0e1738899f81ea70ded21f164c627946b69bb9fe (patch) | |
| tree | 59e28414234029f2e68a52167793ef56af3740a3 /htroot/ViewFile.html | |
| parent | f8318436a1c2fc2b00890728748c5d1019a1947c (diff) | |
* Complete number localization and provide a more reasonable interface to serverObjects:
- put(key, value) methods are now used if a value added to the map should be kept as it is. Numbers are transformed (but not formatted) to an equivalent String representation.
- putASIS(...) have been removed, now done with simple put(...) (see above).
- puNum(...) can be used for number values which should be stored in a formatted way, either depending on the current locale setting for yacy (default) or in a "none" locale (see javadocs and setLocalize()).
- putHTML(...) escapes special characters into corresponding HTML enities ('<' => '<') which was done with put(...) before and so was called too often, becauses it is necessary only for very few cases. Additionally there is a "forXML" mode which only replaces < > & ".
In short: Use put(...) for almost everything, use putXY(...) if you need some special transformation of the value.
A few bugs have been fixed as well, and there should be a small performance improvement for complex pages with a lot of values.
* added additional Sum/Avg rows to access tracker pages, see http://forum.yacy-websuche.de/viewtopic.php?f=5&t=456
* removed duplicate code (mostly related to the big changes above).
TODO:
- make sure, number formats work as expected _everywhere_, report overseen stuff http://forum.yacy-websuche.de/viewtopic.php?f=5&t=437
- probably a good idea to add special putDate() methods as they are used in many pages and create duplicated formatting code + maybe some centralized handling for memory value formatting.
- further improve the speed of page creation for the WatchCrawler.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4178 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/ViewFile.html')
| -rw-r--r-- | htroot/ViewFile.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htroot/ViewFile.html b/htroot/ViewFile.html index 6db33bec0..76e30e53c 100644 --- a/htroot/ViewFile.html +++ b/htroot/ViewFile.html @@ -16,7 +16,7 @@ <dt>Hash:</dt> <dd>#[hash]#</dd>
<dt>Word Count:</dt> <dd>#[wordCount]#</dd>
<dt>Description:</dt><dd>#[desc]#</dd>
- <dt>Size:</dt> <dd>#[size]#</dd>#(mimeTypeAvailable)#::
+ <dt>Size:</dt> <dd>#[size]# Bytes</dd>#(mimeTypeAvailable)#::
<dt>MimeType:</dt> <dd>#[mimeType]#</dd>#(/mimeTypeAvailable)#
<dt><label for="viewMode">View as</label>:</dt>
<dd>
|
