Difference between revisions of "New Citation Style HowTo"
Jump to navigation
Jump to search
m (→Steps) |
m (→Steps) |
||
Line 17: | Line 17: | ||
# get nice items-list.xml from [http://pubman.mpdl.mpg.de/search/SearchAndExport?cqlQuery=escidoc.objid=escidoc:420912%20or%20%20escidoc.objid=escidoc:417665%20or%20escidoc.objid=escidoc:277899%20or%20escidoc.objid=escidoc:408415%20or%20escidoc.objid=escidoc:357855%20or%20escidoc.objid=escidoc:236884%20or%20escidoc.objid=escidoc:399942%20or%20escidoc.objid=escidoc:66205%20or%20escidoc.objid=escidoc:67079%20or%20escidoc.objid=escidoc:64657&exportFormat=ESCIDOC_XML PubMan live] and save in <code>src/test/resources/backup/CitationStyleTest_TestCollection.xml</code> | # get nice items-list.xml from [http://pubman.mpdl.mpg.de/search/SearchAndExport?cqlQuery=escidoc.objid=escidoc:420912%20or%20%20escidoc.objid=escidoc:417665%20or%20escidoc.objid=escidoc:277899%20or%20escidoc.objid=escidoc:408415%20or%20escidoc.objid=escidoc:357855%20or%20escidoc.objid=escidoc:236884%20or%20escidoc.objid=escidoc:399942%20or%20escidoc.objid=escidoc:66205%20or%20escidoc.objid=escidoc:67079%20or%20escidoc.objid=escidoc:64657&exportFormat=ESCIDOC_XML PubMan live] and save in <code>src/test/resources/backup/CitationStyleTest_TestCollection.xml</code> | ||
# changes in <code>src/test/java/test/TestCitationManager.java</code>: | # changes in <code>src/test/java/test/TestCitationManager.java</code>: | ||
## DataSource file | |||
## tests testCitManOutput() only for CS Test (optionally) | |||
# start test with | |||
:<pre>$mvn -Dtest=TestCitationManager test</pre> | |||
# check console output and <code>target/surefire-reports/test.TestCitationManager.txt</code> | |||
... | ... | ||
<pre>$mvn -Dtest=TestCitationManager test</pre> | <pre>$mvn -Dtest=TestCitationManager test</pre> |
Revision as of 14:51, 5 May 2010
This is a protected page.
Prerequisites[edit]
- java SDK 6
- svn
- maven
- jEdit
Steps[edit]
$svn co https://zim02.gwdg.de/repos/common/trunk/common_services
$cd common_services/citationmanager
- check whether co was OK:
$mvn clean install
$cd src/main/resources/CitationStyles
$cp rm Default Test; rm -rf Test/.svn
- add new citation style
Test
in thesrc/main/resources/Schemas/explain-styles.xml
, defineoutput-formats
- get nice items-list.xml from PubMan live and save in
src/test/resources/backup/CitationStyleTest_TestCollection.xml
- changes in
src/test/java/test/TestCitationManager.java
:- DataSource file
- tests testCitManOutput() only for CS Test (optionally)
- start test with
$mvn -Dtest=TestCitationManager test
- check console output and
target/surefire-reports/test.TestCitationManager.txt
...
$mvn -Dtest=TestCitationManager test