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 /src/doc_reform/io_out/xmls.d | |
parent | meson using dub (diff) |
0.10.0 search sqlite & cgi
Diffstat (limited to 'src/doc_reform/io_out/xmls.d')
-rw-r--r-- | src/doc_reform/io_out/xmls.d | 49 |
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"> 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> @@ -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"> 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>", ); |