aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-09-01 15:40:20 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-09-09 22:03:15 -0400
commit1f8b96b650ea645c1a92b40f29c8625b6228d53a (patch)
tree8e261492e487432d42d4d24d4908b634ab87e3d3 /src/doc_reform/io_out
parentxmls, epub3 toc_nav.xhtml toc.ncx (diff)
metadata "curate" replaces "harvest"
- "curated metadata" instead of "metadata harvest" - css color change to related pages, light theme
Diffstat (limited to 'src/doc_reform/io_out')
-rw-r--r--src/doc_reform/io_out/metadata.d28
-rw-r--r--src/doc_reform/io_out/paths_output.d8
-rw-r--r--src/doc_reform/io_out/xmls.d2
3 files changed, 19 insertions, 19 deletions
diff --git a/src/doc_reform/io_out/metadata.d b/src/doc_reform/io_out/metadata.d
index 58d8b33..89e82bd 100644
--- a/src/doc_reform/io_out/metadata.d
+++ b/src/doc_reform/io_out/metadata.d
@@ -163,26 +163,26 @@ string theme_dark_1 = format(q"┃
string theme_light_1 = format(q"┃
h1 {
color : #FFFFFF;
- background : #000088;
+ background : #1A3A7A;
}
p.letter {
color : #FFFFFF;
- background : #880000;
+ background : #1A3A7A;
}
┃");
metadata_ ~= format(q"┃<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
-<title>Metadata Harvest - Topics</title>
+<title>Curated metadata - Topics</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="dc.title" content= "metadata harvest, Authors & Topics - information Structuring Universe, Structured information Serialised Units" />
+<meta name="dc.title" content= "metadata curate, Authors & Topics - information Structuring Universe, Structured information Serialised Units" />
<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="spine" />
<link rel="generator" href="https://sisudoc.org" />
-<link href="./css/harvest.css" rel="stylesheet">
+<link href="./css/curate.css" rel="stylesheet">
<style TYPE="text/css">
-/* spine harvest css default stylesheet */%s
+/* spine curate css default stylesheet */%s
.norm, .bold {
line-height : 150%%;
margin-left : 1em;
@@ -351,8 +351,8 @@ string theme_light_1 = format(q"┃
<a name="start" id="start"></a>
┃");
metadata_ ~= "<div class=\"flex-menu-bar\"><div class=\"flex-menu-option\">";
- if (doc_matters.opt.action.html_harvest_link) {
- metadata_ ~= format(q"┃<p>[<a href="../../index.html">&nbsp;HOME&nbsp;</a>] Metadata Harvest
+ if (doc_matters.opt.action.html_curate_link) {
+ metadata_ ~= format(q"┃<p>[<a href="../../index.html">&nbsp;HOME&nbsp;</a>] Curated metadata
[<a href="../../authors.html">&nbsp;Authors&nbsp;</a>]
[<a href="../../topics.html">&nbsp;Topics&nbsp;</a>]</p>
┃");
@@ -367,7 +367,7 @@ string theme_light_1 = format(q"┃
writeln("ERROR no Title information provided in document header ", doc_matters.src.filename_base);
}
if (!(doc_matters.conf_make_meta.meta.creator_author.empty)) {
- if (doc_matters.opt.action.html_harvest_link) {
+ if (doc_matters.opt.action.html_curate_link) {
metadata_ ~= "<p class=\"lev1\">Author: <b><a href=\"../../authors.html#" ~ doc_matters.conf_make_meta.meta.creator_author_surname.translate([' ' : "_"]) ~ "\">"
~ doc_matters.conf_make_meta.meta.creator_author ~ "</a></b></p>";
} else {
@@ -412,7 +412,7 @@ string theme_light_1 = format(q"┃
if (subject_tree.length > 0) {
if (subject_tree[0] != _top[0]) {
_top[0] = subject_tree[0];
- if (doc_matters.opt.action.html_harvest_link) {
+ if (doc_matters.opt.action.html_curate_link) {
metadata_ ~=
"<p class=\"lev1\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "\">"
@@ -427,7 +427,7 @@ string theme_light_1 = format(q"┃
if (subject_tree[1] != _top[1]) {
_top[1] = subject_tree[1];
_top[2] = ""; _top[3] = ""; _top[4] = "";
- if (doc_matters.opt.action.html_harvest_link) {
+ if (doc_matters.opt.action.html_curate_link) {
metadata_ ~=
"<p class=\"lev2\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -443,7 +443,7 @@ string theme_light_1 = format(q"┃
if (subject_tree[2] != _top[2]) {
_top[2] = subject_tree[2];
_top[3] = ""; _top[4] = "";
- if (doc_matters.opt.action.html_harvest_link) {
+ if (doc_matters.opt.action.html_curate_link) {
metadata_ ~=
"<p class=\"lev3\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -460,7 +460,7 @@ string theme_light_1 = format(q"┃
if (subject_tree[3] != _top[3]) {
_top[3] = subject_tree[3];
_top[4] = "";
- if (doc_matters.opt.action.html_harvest_link) {
+ if (doc_matters.opt.action.html_curate_link) {
metadata_ ~=
"<p class=\"lev4\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -477,7 +477,7 @@ string theme_light_1 = format(q"┃
if (subject_tree.length > 4) {
if (subject_tree[4] != _top[4]) {
_top[4] = subject_tree[4];
- if (doc_matters.opt.action.html_harvest_link) {
+ if (doc_matters.opt.action.html_curate_link) {
metadata_ ~=
"<p class=\"lev5\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
diff --git a/src/doc_reform/io_out/paths_output.d b/src/doc_reform/io_out/paths_output.d
index 86f418a..2fe7c50 100644
--- a/src/doc_reform/io_out/paths_output.d
+++ b/src/doc_reform/io_out/paths_output.d
@@ -222,8 +222,8 @@ template spinePathsHTML() {
string doc_root() {
return ((output_path_root.chainPath(doc_tree.doc_root)).asNormalizedPath).array;
}
- string harvest(string fn_harvest) {
- return doc_root ~ "/" ~ fn_harvest;
+ string curate(string fn_curate) {
+ return doc_root ~ "/" ~ fn_curate;
}
string internal_base() {
return ((doc_tree.base).asNormalizedPath).array;
@@ -283,10 +283,10 @@ template spineUrlsHTML() {
string doc_root() {
return url_doc_root ~ ((doc_tree.doc_root).asNormalizedPath).array;
}
- string harvest(string fn_harvest) {
+ string curate(string fn_curate) {
return format(q"┃%s/%s┃",
doc_root,
- fn_harvest,
+ fn_curate,
);
}
string base() {
diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d
index ab80a09..3857969 100644
--- a/src/doc_reform/io_out/xmls.d
+++ b/src/doc_reform/io_out/xmls.d
@@ -236,7 +236,7 @@ template outputXHTMLs() {
string type,
) {
string o;
- string metadata_links = ((doc_matters.opt.action.html_harvest_link)
+ string metadata_links = ((doc_matters.opt.action.html_curate_link)
? format(q"┃<p class="tiny">[<a href="%smetadata.%s.html">&nbsp;m&nbsp;</a>|<a href="%s../../authors.html">&nbsp;A&nbsp;</a>|<a href="%s../../topics.html">&nbsp;T&nbsp;</a>]</p>┃",
(type == "seg") ? "../" : "",
doc_matters.src.filename_base,