Revision 7487
Added by Aaron Marcuse-Kubitza almost 12 years ago
bin/redmine_synonyms | ||
---|---|---|
8 | 8 |
|
9 | 9 |
ambigTerm= |
10 | 10 |
term= |
11 |
sed -n 's/^.*<h([1-4])[^>]*><a href="#[^>]+>([^<]+).*$/\1 \2/p'\
|
|
11 |
sed -n 's/^.*<h([1-4])[^>]*>(<img [^>]*> *)?<a href="#[^>]+>([^<]+).*$/\1 \3/p'\
|
|
12 | 12 |
|while read -r line; do |
13 | 13 |
set -- $line # split using IFS |
14 | 14 |
level="$1" name="$2" |
mappings/Makefile | ||
---|---|---|
27 | 27 |
php -r 'fpassthru(fopen("https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore", "r"));' >$@ |
28 | 28 |
|
29 | 29 |
$(vocab): VegCore.htm |
30 |
(echo VegCore; $(sed) -n 's/^.*<h[24][^>]*><a href="#[^>]*>(([a-z]|[A-Z]{2})[^<]*)<\/a><a href="#[^"-]+".*$$/\1/p'\
|
|
30 |
(echo VegCore; $(sed) -n 's/^<h[24][^>]*>(<img [^>]*> *)?<a href="#[^>]*>(([a-z]|[A-Z]{2})[^<]*)<\/a>.*<a href="#[^"-]+".*$$/\2/p'\
|
|
31 | 31 |
|sort -u) <$< >$@ |
32 | 32 |
|
33 | 33 |
$(thesaurus): VegCore.htm |
Also available in: Unified diff
mappings/Makefile, redmine_synonyms: Updated for new VegCore data dictionary format, which prefixes the term type (Synonym, Alternative, etc.) to the term instead of including it as a section label. This ensures that the term type of a non-primary term is shown next to the term when it is visited via a permalink, which causes the term header to appear at the top of the screen and obscures the section header containing the type.