OpsAdminAddStylesheet

Introduction

Currently OPS Admin provides 4 different report styles:
  • basic: a chronological list of all timesheet entries
  • project: detailed project report
  • projects-total: shows time spent per project
  • servicedesk: shows (for each project) the timesheet entries and the expenses (time and money) per month.

Roll Your Own

Ops Admin simply applies a user selected stylesheet to a raw-xml xml report. If you add your own stylesheet(s) you will be able to select and use them. The raw report is described here: ReportSchema

Where to add your stylesheets:

  • stylesheet - src/main/webapp/WEB-INF/xsl/
  • helper stylesheet - called from main stylesheet - src/main/webapp/WEB-INF/xsl/inc
  • locale - src/main/webapp/WEB-INF/xsl/locale/locales and src/main/webapp/WEB-INF/xsl/locale/decimal-formats.xsl

File Structure

src/main/webapp/WEB-INF/xsl/
     \ inc
          \convert-time.xsl
          \other helper stylesheets
     \ locale
          \ locales
               \en_US.xml
               \nl_NL.xml
          \decimal-formats.xsl
     \basic.xsl
     \ ...
     \your stylesheet

-- IvanaCace - 24 Dec 2008

Topic revision: r1 - 24 Dec 2008 - 16:24:50 - IvanaCace

tip TWiki Tip of the Day
Linking to a file attachment
One can create a link to a file attachment using one of the following TWikiVariables, % nop ATTACHURL ... Read on Read more

 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback