aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/output_harvest_metadata.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/output_harvest_metadata.org')
-rw-r--r--org/output_harvest_metadata.org68
1 files changed, 49 insertions, 19 deletions
diff --git a/org/output_harvest_metadata.org b/org/output_harvest_metadata.org
index a25ab61..a7ce40f 100644
--- a/org/output_harvest_metadata.org
+++ b/org/output_harvest_metadata.org
@@ -252,8 +252,8 @@ foreach(k0;
_prev_k = k0.toUpper.to!(char[])[0];
}
if (k0 != "_a") {
- topics ~= format(q"┃<p class="lev0"><a name="%s">%s</a></p>┃",
- k0, k0,) ~ "\n";
+ topics ~= format(q"┃<p class="lev0"><a name="%s" class="lev0">%s</a></p>┃",
+ k0.translate([' ' : "_"]), k0,) ~ "\n";
if (_opt_action.very_verbose) {
writeln("", k0);
}
@@ -265,13 +265,13 @@ foreach(k0;
_auth = [];
if (t_a_.author_arr.length < 2) {
_auth = format(q"┃ <a href="authors.html#%s">%s</a>┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
t_a_.author,
);
} else {
foreach (a; t_a_.author_arr) {
_auth ~= format(q"┃ <a href="authors.html#%s">%s</a>,┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
a,
);
}
@@ -291,8 +291,8 @@ foreach(k0;
.sort!("toUpper(a) < toUpper(b)", SwapStrategy.unstable)
) {
if (k1 != "_a") {
- topics ~= format(q"┃<p class="lev1"><a name="%s">%s</a></p>┃",
- k1, k1,) ~ "\n";
+ topics ~= format(q"┃<p class="lev1"><a name="%s" class="lev1">%s</a></p>┃",
+ k1.translate([' ' : "_"]), k1,) ~ "\n";
if (_opt_action.very_verbose) {
writeln(" ", k1);
}
@@ -304,13 +304,13 @@ foreach(k0;
_auth = [];
if (t_a_.author_arr.length < 2) {
_auth = format(q"┃ <a href="authors.html#%s">%s</a>┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
t_a_.author,
);
} else {
foreach (a; t_a_.author_arr) {
_auth ~= format(q"┃ <a href="authors.html#%s">%s</a>,┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
a,
);
}
@@ -331,8 +331,8 @@ foreach(k0;
.sort!("toUpper(a) < toUpper(b)", SwapStrategy.unstable)
) {
if (k2 != "_a") {
- topics ~= format(q"┃<p class="lev2"><a name="%s">%s</a></p>┃",
- k2, k2,) ~ "\n";
+ topics ~= format(q"┃<p class="lev2"><a name="%s" class="lev2">%s</a></p>┃",
+ k2.translate([' ' : "_"]), k2,) ~ "\n";
if (_opt_action.very_verbose) {
writeln(" ", k2);
}
@@ -344,13 +344,13 @@ foreach(k0;
_auth = [];
if (t_a_.author_arr.length < 2) {
_auth = format(q"┃ <a href="authors.html#%s">%s</a>┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
t_a_.author,
);
} else {
foreach (a; t_a_.author_arr) {
_auth ~= format(q"┃ <a href="authors.html#%s">%s</a>,┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
a,
);
}
@@ -371,8 +371,8 @@ foreach(k0;
.sort!("toUpper(a) < toUpper(b)", SwapStrategy.unstable)
) {
if (k3 != "_a") {
- topics ~= format(q"┃<p class="lev3"><a name="%s">%s</a></p>┃",
- k3, k3,) ~ "\n";
+ topics ~= format(q"┃<p class="lev3"><a name="%s" class="lev3">%s</a></p>┃",
+ k3.translate([' ' : "_"]), k3,) ~ "\n";
if (_opt_action.very_verbose) {
writeln(" ", k3);
}
@@ -384,13 +384,13 @@ foreach(k0;
_auth = [];
if (t_a_.author_arr.length < 2) {
_auth = format(q"┃<a href="authors.html#%s">%s</a>┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
t_a_.author,
);
} else {
foreach (a; t_a_.author_arr) {
_auth ~= format(q"┃ <a href="authors.html#%s">%s</a>,┃",
- t_a_.author_surname,
+ t_a_.author_surname.translate([' ' : "_"]),
a,
);
}
@@ -521,8 +521,8 @@ template DocReformMetaDocHarvestsAuthors() {
) {
if (doc_harvest.author_surname_fn != _prev_auth) {
_au[doc_harvest.author_surname_fn]
- = format(q"┃<p class="author"><a name="%s">%s</a></p> <p class="publication">%s "<a href="%s">%s</a>" [%s]</p>┃",
- doc_harvest.author_surname,
+ = format(q"┃<p class="author"><a name="%s" class="lev0">%s</a></p> <p class="publication">%s "<a href="%s">%s</a>" [%s]</p>┃",
+ doc_harvest.author_surname.translate([' ' : "_"]),
doc_harvest.author_surname_fn,
(doc_harvest.date_published.length > 0)
? doc_harvest.date_published : "",
@@ -616,6 +616,22 @@ string theme_dark_0 = format(q"┃
color : #888888;
text-decoration : underline;
}
+ a.lev0:hover {
+ color : #FFFFFF;
+ background-color : #000000;
+ }
+ a.lev1:hover {
+ color : #FFFFFF;
+ background : #333333;
+ }
+ a.lev2:hover {
+ color : #FFFFFF;
+ background : #555555;
+ }
+ a.lev3:hover {
+ color : #FFFFFF;
+ background : #777777;
+ }
┃");
string theme_light_0 = format(q"┃
body {
@@ -642,6 +658,20 @@ string theme_light_0 = format(q"┃
color : #003399;
text-decoration : underline;
}
+ a.lev0:hover {
+ color : #000000;
+ background-color : #FFFFFF;
+ }
+ a.lev1:hover {
+ color : #FFFFFF;
+ background : #444444;
+ }
+ a.lev2:hover {
+ background : #888888;
+ }
+ a.lev3:hover {
+ background : #BBBBBB;
+ }
┃");
#+END_SRC
@@ -718,7 +748,7 @@ string theme_light_1 = format(q"┃
<meta name="dc.subject" content= "document structuring, ebook, publishing, PDF, LaTeX, XML, ODF, SQL, postgresql, sqlite, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, granular search, digital library" />
<meta name="generator" content="doc_reform" />
<link rel="generator" href="http://sisudoc.org" />
-<link href="../../_sisu/css/harvest.css" rel="stylesheet">
+<link href="./css/harvest.css" rel="stylesheet">
<style TYPE="text/css">
/* DocReform harvest css default stylesheet */%s
.norm, .bold {