Revision 6685
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/dict2redmine | ||
---|---|---|
50 | 50 |
|
51 | 51 |
def redmine_add_links(page_name, text): |
52 | 52 |
# Link citations to entry in sources list |
53 |
text = re.sub(r'(?<=\[)(.*?)(?=\])', sp+'[['+page_name+r'#\g<0>]]'+sp, text)
|
|
54 |
# sp prevents [[[, which Redmine would parse incorrectly |
|
53 |
text = re.sub(r'(?<=\[)(.*?)(?=\])', sp+'[['+page_name+r'#\g<0>|\g<0>]]'+sp,
|
|
54 |
text) # sp prevents [[[, which Redmine would parse incorrectly
|
|
55 | 55 |
return text |
56 | 56 |
|
57 | 57 |
class RedmineTableWriter: |
mappings/VegCore.redmine | ||
---|---|---|
4 | 4 |
|
5 | 5 |
h3. "dcterms:modified":http://rs.tdwg.org/dwc/terms/#dcterms:modified |
6 | 6 |
|
7 |
I think is this merely an internal timestamp indicated when record last modified, not necessarily when determination (taxon name) last modified [ [[VegCore#Brad Boyle]] ] |
|
7 |
I think is this merely an internal timestamp indicated when record last modified, not necessarily when determination (taxon name) last modified [ [[VegCore#Brad Boyle|Brad Boyle]] ]
|
|
8 | 8 |
|
9 | 9 |
|*Sources*|"DwC:dcterms:modified":http://rs.tdwg.org/dwc/terms/#dcterms:modified| |
10 | 10 |
|
... | ... | |
602 | 602 |
|
603 | 603 |
h3. "typeStatus":http://rs.tdwg.org/dwc/terms/#typeStatus |
604 | 604 |
|
605 |
Indicates whether this specimen served as type for taxon name [ [[VegCore#Brad Boyle]] ] |
|
605 |
Indicates whether this specimen served as type for taxon name [ [[VegCore#Brad Boyle|Brad Boyle]] ]
|
|
606 | 606 |
|
607 | 607 |
|*Sources*|"DwC:typeStatus":http://rs.tdwg.org/dwc/terms/#typeStatus| |
608 | 608 |
|
... | ... | |
1023 | 1023 |
|
1024 | 1024 |
h3. "accordingTo":http://www.tdwg.org/standards/117/download/#/v101.xsd#/TaxonConcepts/TaxonConcept/AccordingTo |
1025 | 1025 |
|
1026 |
Information about the authorship of this concept which uses the Name in their sense (i.e. secundum, sensu) [ [[VegCore#TCS]] ] |
|
1026 |
Information about the authorship of this concept which uses the Name in their sense (i.e. secundum, sensu) [ [[VegCore#TCS|TCS]] ]
|
|
1027 | 1027 |
|
1028 | 1028 |
|*Sources*|"TCS:AccordingTo":http://www.tdwg.org/standards/117/download/#/v101.xsd#/TaxonConcepts/TaxonConcept/AccordingTo| |
1029 | 1029 |
|
Also available in: Unified diff
dict2redmine: redmine_add_links(): Fixed bug where need to explicitly specify the source name as the link text