Project

General

Profile

« Previous | Next » 

Revision 6691

dict2redmine: redmine_add_links(): Include the [] in the link text, to avoid the need for redmine_pad(), etc.

View differences:

bin/dict2redmine
53 53

  
54 54
def redmine_add_links(page_name, text):
55 55
    # Link citations to entry in sources list
56
    text = re.sub(r'(?<=\[)(.*?)(?=\])',
57
        redmine_pad(redmine_bold(redmine_url('\g<0>', page_name+r'#\g<0>'))),
58
        text) # redmine_pad() avoids [[[, which Redmine would parse incorrectly
56
    text = re.sub(r'\[(.*?)\]',
57
        redmine_bold(redmine_url('\g<0>', page_name+r'#\1')), text)
59 58
    return text
60 59

  
61 60
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|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 *[[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 [&#x2009;*[[VegCore#Brad Boyle|Brad Boyle]]*&#x2009;]
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) [&#x2009;*[[VegCore#TCS|TCS]]*&#x2009;]
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