New Citation Style HowTo

From MPDLMediaWiki
Jump to navigation Jump to search

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 co was OK:
    $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 and save in src/test/resources/backup/CitationStyleTest_TestCollection.xml
  8. changes in src/test/java/test/TestCitationManager.java:
    1. DataSource file
    2. tests testCitManOutput() only for CS Test (optionally)
  9. start test with
$mvn -Dtest=TestCitationManager test
  1. compile citation style Test

......

  1. check console output and target/surefire-reports/test.TestCitationManager.txt for errors. Update CitationStyle

...

$mvn -Dtest=TestCitationManager test