aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/xmls.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/io_out/xmls.d')
-rw-r--r--src/doc_reform/io_out/xmls.d49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d
index 89180eb..fb33fd0 100644
--- a/src/doc_reform/io_out/xmls.d
+++ b/src/doc_reform/io_out/xmls.d
@@ -94,7 +94,7 @@ template outputXHTMLs() {
string _publisher="Publisher"; // TODO
string o;
o = format(q"┃<!-- spine DocReform header metadata -->
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.title" content="%s" />
<meta name="dc.author" content="%s" />
<meta name="dc.publisher" content="%s" />
@@ -152,28 +152,28 @@ template outputXHTMLs() {
@safe string inline_search_form(M)(
M doc_matters,
) {
- string _action="http://www.sisudoc.org/cgi-bin/search.cgi";
- string _db="spine.7a.manual";
string o;
string _form;
- if (doc_matters.opt.action.workon) {
+ if (doc_matters.opt.action.html_search_link) {
o = format(q"┃
<div class="flex-menu-option">
+ <!-- SiSU Spine Search -->
<a name="search"></a>
- <form method="get" action="%s" target="_top">
+ <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="search">
<font size="2">
- <input type="text" name="s1" size="24" maxlength="255" />
+ <input type="text" name="sf" size="24" maxlength="255" />
<input type="hidden" name="db" value="%s" />
- <input type="hidden" name="ltd" value="1000" />
- <input type="hidden" name="off" value="0" />
- <input type="hidden" name="doc" value="live-manual" /><br />
- <input type="submit" name="search" value="search doc" />
- <input type="submit" name="search" value="search db" />
+ <input type="hidden" name="sml" value="1000" />
+ <input type="hidden" name="ec" value="on" />
+ <input type="hidden" name="url" value="on" />
+ <button type="submit" form="search" name="fn" value="%s">doc</button>
+ <button type="submit" form="search">db</button>
</font></form>
- </div>
- ┃",
- _action,
- _db,
+ <!-- SiSU Spine Search -->
+ </div>┃",
+ doc_matters.conf_make_meta.conf.w_srv_cgi_action,
+ doc_matters.conf_make_meta.conf.w_srv_db_sqlite,
+ doc_matters.src.filename_base,
);
} else {
o = "";
@@ -185,10 +185,18 @@ template outputXHTMLs() {
string type,
) {
string o;
+ string metadata_links = ((doc_matters.opt.action.html_harvest_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,
+ (type == "seg") ? "../" : "",
+ (type == "seg") ? "../" : "",
+ )
+ : "");
o = format(q"┃<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8" />
+ <meta http-equiv="Content-Type" content="text/plain; charset=UTF-8" />
<title>
%s%s
</title>
@@ -217,14 +225,7 @@ template outputXHTMLs() {
: "../../css/html_scroll.css"),
doc_matters.src.language,
site_info_button(doc_matters),
- ((doc_matters.opt.action.harvest_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,
- (type == "seg") ? "../" : "",
- (type == "seg") ? "../" : "",
- )
- : ""),
+ metadata_links,
inline_search_form(doc_matters),
(type == "seg") ? "" : "\n</div>",
);