en:user:gs3_sample_interface_modifications
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:user:gs3_sample_interface_modifications [2019/10/21 20:58] – [Changing the collection description] kjdon | en:user:gs3_sample_interface_modifications [2019/10/21 22:18] – [Changing the collection description] kjdon | ||
---|---|---|---|
Line 20: | Line 20: | ||
< | < | ||
- | Lets leave the collection description displayed as is, but output "This collection contains X documents, and was last built on Y". | + | Lets leave the collection description displayed as is, but also output "This collection contains X documents, and was last built on Y". |
We can redefine the template as: | We can redefine the template as: | ||
Line 36: | Line 36: | ||
The buildDate metadata element is a timestamp, so is not user friendly. We can use one of our utility functions to format it. | The buildDate metadata element is a timestamp, so is not user friendly. We can use one of our utility functions to format it. | ||
Utility functions are defined in src/ | Utility functions are defined in src/ | ||
+ | In this case, we are formatting the timestamp as a date (the second 0). We could also format it as 'days ago' (using 3 instead of 0): | ||
+ | < | ||
+ | The collection contains < | ||
+ | built < | ||
+ | </ | ||
+ | |||
+ | If we want this text to be displayed in a language dependent manner, then we need to define it in the properties file, (and translate it in the appropriate language properties file), and retrieve it from there. | ||
+ | |||
+ | |||
==== Total documents in library ==== | ==== Total documents in library ==== |
en/user/gs3_sample_interface_modifications.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1