Difference between revisions of "New Citation Style HowTo"

From MPDLMediaWiki
Jump to navigation Jump to search
Line 10: Line 10:
# <pre>$svn co https://zim02.gwdg.de/repos/common/trunk/common_services</pre>
# <pre>$svn co https://zim02.gwdg.de/repos/common/trunk/common_services</pre>
# <pre>$cd common_services/citationmanager</pre>
# <pre>$cd common_services/citationmanager</pre>
# check whether co was OK:
# check whether checkout can be compiled:
#: <pre>$mvn clean install</pre>
#: <pre>$mvn clean install</pre>
# <pre>$cd src/main/resources/CitationStyles</pre>
# <pre>$cd src/main/resources/CitationStyles</pre>

Revision as of 00:12, 12 May 2010

This is a protected page.

Prerequisites[edit]

  • java SDK 6
  • svn
  • maven
  • jEdit

Steps[edit]

  1. $svn co https://zim02.gwdg.de/repos/common/trunk/common_services
  2. $cd common_services/citationmanager
  3. check whether checkout can be compiled:
    $mvn clean install
  4. $cd src/main/resources/CitationStyles
  5. $cp rm Default Test; rm -rf Test/.svn
  6. add new citation style Test in the src/main/resources/Schemas/explain-styles.xml, define output-formats
  7. get nice items-list XML from PubMan live, create src/test/resources/testFiles/Test directory, and save the XML into it.
  8. changes in src/test/java/test/TestCitationManager.java:
    1. define path to the new item list in the itemListsFIleNames hash
      put("Test", "target/test-classes/testFiles/Test/TestCollection.xml");
    2. create new JUnit test: testCitationStyleTest specific for new ctation style test. Life circle: validation, compilation, output.
    3. set testCitationStyles to @Ignore
  9. start test with
    $mvn -Dtest=TestCitationManager test
    1. check console output and target/surefire-reports/test.TestCitationManager.txt for errors.
    2. check generated outputs in formats: pdf and escidoc_snippet in target/ directory. The outputs should not be empty.
  10. Substantial tests