Revision 6690
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/dict2redmine | ||
---|---|---|
54 | 54 |
def redmine_add_links(page_name, text): |
55 | 55 |
# Link citations to entry in sources list |
56 | 56 |
text = re.sub(r'(?<=\[)(.*?)(?=\])', |
57 |
redmine_pad(redmine_url('\g<0>', page_name+r'#\g<0>')), text)
|
|
58 |
# redmine_pad() prevents [[[, which Redmine would parse incorrectly
|
|
57 |
redmine_pad(redmine_bold(redmine_url('\g<0>', page_name+r'#\g<0>'))),
|
|
58 |
text) # redmine_pad() avoids [[[, which Redmine would parse incorrectly
|
|
59 | 59 |
return text |
60 | 60 |
|
61 | 61 |
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|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|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|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(): Make the link bold so it stands out as a link