aboutsummaryrefslogtreecommitdiffhomepage
path: root/sundry/spine_search_cgi/src/spine_search.d_
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-08-12 13:14:49 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-08-20 12:03:17 -0400
commit24269204508d8cf8f963eb9c7d149d18840e4dad (patch)
treec94ac0fdab5496fa4969098604ffcfaa87c18678 /sundry/spine_search_cgi/src/spine_search.d_
parentconfiguration reorganized into config files (diff)
config, clean up and make a bit more consistent
- check version settings with: rg -A2 _version_set$ org
Diffstat (limited to 'sundry/spine_search_cgi/src/spine_search.d_')
-rwxr-xr-xsundry/spine_search_cgi/src/spine_search.d_32
1 files changed, 22 insertions, 10 deletions
diff --git a/sundry/spine_search_cgi/src/spine_search.d_ b/sundry/spine_search_cgi/src/spine_search.d_
index fca2b2b..b22c959 100755
--- a/sundry/spine_search_cgi/src/spine_search.d_
+++ b/sundry/spine_search_cgi/src/spine_search.d_
@@ -73,6 +73,8 @@ void cgi_function_intro(Cgi cgi) {
string doc_collection_sub_root;
string cgi_root;
string cgi_script_name;
+ string cgi_search_form_title;
+ string cgi_search_form_html_title;
string data_path_html;
string http_url;
string query_base_url;
@@ -81,13 +83,20 @@ void cgi_function_intro(Cgi cgi) {
string db_path;
}
auto conf = Config();
- conf.http_request_type = environment.get("REQUEST_SCHEME", _cfg.http_request_type);
- conf.http_host = environment.get("SERVER_NAME", _cfg.http_host);
- // conf.http_host = environment.get("HTTP_HOST", _cfg.http_host);
- conf.web_doc_root_path = environment.get("DOCUMENT_ROOT", _cfg.www_doc_root);
- conf.doc_collection_sub_root = "/spine/static"; // (output_path - web_doc_root_path)
- conf.cgi_root = environment.get("CONTEXT_DOCUMENT_ROOT", _cfg.cgi_bin_subpath);
- conf.cgi_script_name = environment.get("SCRIPT_NAME", _cfg.cgi_filename);
+ conf.http_request_type = environment.get("REQUEST_SCHEME", _cfg.http_request_type);
+ conf.http_host = environment.get("SERVER_NAME", _cfg.http_host);
+ // conf.http_host = environment.get("HTTP_HOST", _cfg.http_host);
+ conf.web_doc_root_path = environment.get("DOCUMENT_ROOT", _cfg.www_doc_root);
+ conf.doc_collection_sub_root = "/spine/static"; // (output_path - web_doc_root_path)
+ conf.cgi_root = environment.get("CONTEXT_DOCUMENT_ROOT", _cfg.cgi_bin_subpath);
+ conf.cgi_script_name = environment.get("SCRIPT_NAME", _cfg.cgi_filename);
+ conf.cgi_search_form_title = _cfg.cgi_search_form_title; // ≅ SiSU spine search form
+ conf.cgi_search_form_html_title = "<a href=\""
+ ~ conf.http_request_type ~ "://"
+ ~ conf.http_host
+ ~ "\">"
+ ~ _cfg.cgi_search_form_title
+ ~ "</a>";
conf.query_base_url = conf.http_request_type ~ "://" ~ conf.http_host ~ "/" ~ conf.cgi_script_name ~ "?";
conf.query_string = environment.get("QUERY_STRING", "");
conf.http_url = environment.get("HTTP_REFERER", conf.query_base_url ~ conf.query_string);
@@ -549,7 +558,7 @@ void cgi_function_intro(Cgi cgi) {
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
- ≅ SiSU spine search form
+ %s
</title>
<meta name="sourcefile" content="SiSU.sst">
<link rel="generator" href="sisudoc.org">
@@ -1353,6 +1362,7 @@ void cgi_function_intro(Cgi cgi) {
</head>
<body lang="en" xml:lang="en">
┃",
+ conf.cgi_search_form_title,
conf.http_request_type,
conf.http_host,
);
@@ -1363,14 +1373,16 @@ void cgi_function_intro(Cgi cgi) {
<tr><td width="20%%">
<table summary="home button / home information" border="0" cellpadding="2" cellspacing="0">
<tr><td align="left">
- ≅ SiSU spine search form
+ %s
</td></tr>
</table>
</td>
<td>
</td></tr>
</table>
- ┃");
+ ┃",
+ conf.cgi_search_form_html_title,
+ );
}
{
string post_value(string field_name, string type="box", string set="on") {