Project

General

Profile

« Previous | Next » 

Revision 6685

dict2redmine: redmine_add_links(): Fixed bug where need to explicitly specify the source name as the link text

View differences:

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 [&#x2009;[[VegCore#Brad Boyle]]&#x2009;]
7
I think is this merely an internal timestamp indicated when record last modified, not necessarily when determination (taxon name) last modified [&#x2009;[[VegCore#Brad Boyle|Brad Boyle]]&#x2009;]
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 [&#x2009;[[VegCore#Brad Boyle]]&#x2009;]
605
Indicates whether this specimen served as type for taxon name [&#x2009;[[VegCore#Brad Boyle|Brad Boyle]]&#x2009;]
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) [&#x2009;[[VegCore#TCS]]&#x2009;]
1026
Information about the authorship of this concept which uses the Name in their sense (i.e. secundum, sensu) [&#x2009;[[VegCore#TCS|TCS]]&#x2009;]
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