diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-03-29 18:29:44 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-20 11:27:23 -0400 |
commit | eed0938b23d13ec4f2ef4588ccdb2e7abc0c1552 (patch) | |
tree | 4e015ce076795100792412b76156330e80440c37 /org/out_xmls.org | |
parent | meson using dub (diff) |
0.10.0 search sqlite & cgi
Diffstat (limited to 'org/out_xmls.org')
-rw-r--r-- | org/out_xmls.org | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org index c76d6ab..db3f0e5 100644 --- a/org/out_xmls.org +++ b/org/out_xmls.org @@ -185,7 +185,7 @@ import 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" /> @@ -255,28 +255,28 @@ import @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 = ""; @@ -294,10 +294,18 @@ import string type, ) { string o; + string metadata_links = ((doc_matters.opt.action.html_harvest_link) + ? format(q"┃<p class="tiny">[<a href="%smetadata.%s.html"> m </a>|<a href="%s../../authors.html"> A </a>|<a href="%s../../topics.html"> T </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> @@ -326,14 +334,7 @@ import : "../../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"> m </a>|<a href="%s../../authors.html"> A </a>|<a href="%s../../topics.html"> T </a>]</p>┃", - (type == "seg") ? "../" : "", - doc_matters.src.filename_base, - (type == "seg") ? "../" : "", - (type == "seg") ? "../" : "", - ) - : ""), + metadata_links, inline_search_form(doc_matters), (type == "seg") ? "" : "\n</div>", ); |