aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/spine.org
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 /org/spine.org
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 'org/spine.org')
-rw-r--r--org/spine.org80
1 files changed, 40 insertions, 40 deletions
diff --git a/org/spine.org b/org/spine.org
index 14d5297..2696511 100644
--- a/org/spine.org
+++ b/org/spine.org
@@ -108,21 +108,21 @@ string program_name = "spine";
}
}
}
- if (hvst.harvests.length > 0) {
- if (_opt_action.harvest_topics) {
- spineMetaDocHarvestsTopics!()(hvst, _make_and_meta_struct, _opt_action);
+ if (hvst.curates.length > 0) {
+ if (_opt_action.curate_topics) {
+ spineMetaDocCuratesTopics!()(hvst, _make_and_meta_struct, _opt_action);
}
- if (_opt_action.harvest_authors) {
- spineMetaDocHarvestsAuthors!()(hvst.harvests, _make_and_meta_struct, _opt_action);
+ if (_opt_action.curate_authors) {
+ spineMetaDocCuratesAuthors!()(hvst.curates, _make_and_meta_struct, _opt_action);
}
if (!(_opt_action.quiet)) {
import doc_reform.io_out.paths_output;
auto out_pth = spinePathsHTML!()(_make_and_meta_struct.conf.output_path, "");
- if (_opt_action.harvest_authors) {
- writeln("- ", out_pth.harvest("authors.html"));
+ if (_opt_action.curate_authors) {
+ writeln("- ", out_pth.curate("authors.html"));
}
- if (_opt_action.harvest_topics) {
- writeln("- ", out_pth.harvest("topics.html"));
+ if (_opt_action.curate_topics) {
+ writeln("- ", out_pth.curate("topics.html"));
}
}
} else { writeln("NO HARVESTS"); }
@@ -203,9 +203,9 @@ import
doc_reform.conf.compile_time_info,
doc_reform.meta,
doc_reform.meta.metadoc,
- doc_reform.meta.metadoc_harvest,
- doc_reform.meta.metadoc_harvests_authors,
- doc_reform.meta.metadoc_harvests_topics,
+ doc_reform.meta.metadoc_curate,
+ doc_reform.meta.metadoc_curate_authors,
+ doc_reform.meta.metadoc_curate_topics,
doc_reform.meta.metadoc_from_src,
doc_reform.meta.conf_make_meta_structs,
doc_reform.meta.conf_make_meta_json,
@@ -294,7 +294,7 @@ mixin outputHub;
#+NAME: spine_init_0
#+BEGIN_SRC d
-auto hvst = spineHarvest!();
+auto hvst = spineCurateMetadata!();
#+END_SRC
**** args :args:
@@ -347,11 +347,11 @@ bool[string] opts = [
"debug" : false,
"digest" : false,
"epub" : false,
- "harvest" : false,
- "harvest-authors" : false,
- "harvest-topics" : false,
+ "curate" : false,
+ "curate-authors" : false,
+ "curate-topics" : false,
"html" : false,
- "html-link-harvest" : false,
+ "html-link-curate" : false,
"html-link-search" : false,
"html-seg" : false,
"html-scroll" : false,
@@ -444,16 +444,16 @@ auto helpInfo = getopt(args,
"cgi-url-action", "url to post to cgi-bin search form", &settings["cgi-url-action"],
"cgi-search-title", "title for cgi-bin search form", &settings["cgi-search-title"],
"concordance", "file for document", &opts["concordance"],
+ "curate", "extract info on authors & topics from document header metadata", &opts["curate"],
+ "curate-authors", "extract info on authors from document header metadata", &opts["curate-authors"],
+ "curate-topics", "extract info on topics from document header metadata", &opts["curate-topics"],
"dark", "alternative dark theme", &opts["dark"],
"debug", "debug", &opts["debug"],
"digest", "hash digest for each object", &opts["digest"],
"epub", "process epub output", &opts["epub"],
- "harvest", "extract info on authors & topics from document header metadata", &opts["harvest"],
- "harvest-authors", "extract info on authors from document header metadata", &opts["harvest-authors"],
- "harvest-topics", "extract info on topics from document header metadata", &opts["harvest-topics"],
"hide-ocn", "object cite numbers", &opts["hide-ocn"],
"html", "process html output", &opts["html"],
- "html-link-harvest", "place links back to harvest in segmented html", &opts["html-link-harvest"],
+ "html-link-curate", "place links back to curate in segmented html", &opts["html-link-curate"],
"html-link-search", "html embedded search submission", &opts["html-link-search"],
"html-seg", "process html output", &opts["html-seg"],
"html-scroll", "process html output", &opts["html-scroll"],
@@ -563,20 +563,20 @@ struct OptActions {
@trusted bool epub() {
return opts["epub"];
}
- @trusted bool html_harvest_link() {
- return (opts["html-link-harvest"]) ? true : false;
+ @trusted bool html_curate_link() {
+ return (opts["html-link-curate"]) ? true : false;
}
@trusted bool html_search_link() {
return (opts["html-link-search"]) ? true : false;
}
- @trusted bool harvest() {
- return (opts["harvest"] || opts["harvest-authors"] || opts["harvest-topics"]) ? true : false;
+ @trusted bool curate() {
+ return (opts["curate"] || opts["curate-authors"] || opts["curate-topics"]) ? true : false;
}
- @trusted bool harvest_authors() {
- return (opts["harvest"] || opts["harvest-authors"]) ? true : false;
+ @trusted bool curate_authors() {
+ return (opts["curate"] || opts["curate-authors"]) ? true : false;
}
- @trusted bool harvest_topics() {
- return (opts["harvest"] || opts["harvest-topics"]) ? true : false;
+ @trusted bool curate_topics() {
+ return (opts["curate"] || opts["curate-topics"]) ? true : false;
}
@trusted bool html() {
return (opts["html"] || opts["html-seg"] || opts["html-scroll"]) ? true : false;
@@ -769,7 +769,7 @@ struct OptActions {
} else if (
opts["abstraction"]
|| concordance
- || harvest
+ || curate
|| html
|| epub
|| odt
@@ -818,7 +818,7 @@ struct OptActions {
opts["abstraction"]
|| concordance
|| source_or_pod
- || harvest
+ || curate
|| html
|| epub
|| odt
@@ -833,7 +833,7 @@ struct OptActions {
return (
opts["abstraction"]
|| epub
- || harvest
+ || curate
|| html
|| html_seg
|| html_scroll
@@ -853,7 +853,7 @@ struct OptActions {
@trusted bool meta_processing_general() {
return (
opts["abstraction"]
- || harvest
+ || curate
|| html
|| epub
|| odt
@@ -1249,23 +1249,23 @@ if (doc_matters.opt.action.show_config) {
}
#+END_SRC
-***** abstraction harvest :abstraction:harvest:
-- abstraction harvest
+***** abstraction curate :abstraction:curate:
+- abstraction curate
#+NAME: spine_each_file_do_debugs_checkdoc_4
#+BEGIN_SRC d
-if (doc_matters.opt.action.harvest) {
- auto _hvst = spineMetaDocHarvest!()(doc_matters, hvst);
+if (doc_matters.opt.action.curate) {
+ auto _hvst = spineMetaDocCurate!()(doc_matters, hvst);
if (
_hvst.title.length > 0
&& _hvst.author_surname_fn.length > 0
) {
- hvst.harvests ~= _hvst;
+ hvst.curates ~= _hvst;
} else {
if ((doc_matters.opt.action.debug_do)
|| (doc_matters.opt.action.very_verbose)
) {
- writeln("WARNING harvest: document header yaml does not contain information related to: title or author: ", _hvst.path_html_segtoc);
+ writeln("WARNING curate: document header yaml does not contain information related to: title or author: ", _hvst.path_html_segtoc);
}
}
}
@@ -1368,7 +1368,7 @@ template spineAbstraction() {
}
#+END_SRC
-** Output & Harvest pre-processing
+** Output & Curate pre-processing
*** 1. raw file content split, doc: _header_, _content_ +(lists: subdocs? images?)
- [[./source_read_files.org][source_read_files]] return tuple: header; body; insert file list; image list