aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/util/d/cgi/search/src
diff options
context:
space:
mode:
Diffstat (limited to 'misc/util/d/cgi/search/src')
-rw-r--r--misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d62
1 files changed, 56 insertions, 6 deletions
diff --git a/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d b/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d
index 1460643..987c319 100644
--- a/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d
+++ b/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d
@@ -1,3 +1,53 @@
+/+
+- Name: Spine, Doc Reform [a part of]
+ - Description: documents, structuring, processing, publishing, search
+ - static content generator
+
+ - Author: Ralph Amissah
+ [ralph.amissah@gmail.com]
+
+ - Copyright: (C) 2015 - 2021 Ralph Amissah, All Rights
+ Reserved.
+
+ - License: AGPL 3 or later:
+
+ Spine (SiSU), a framework for document structuring, publishing and
+ search
+
+ Copyright (C) Ralph Amissah
+
+ This program is free software: you can redistribute it and/or modify it
+ under the terms of the GNU AFERO General Public License as published by the
+ Free Software Foundation, either version 3 of the License, or (at your
+ option) any later version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ more details.
+
+ You should have received a copy of the GNU General Public License along with
+ this program. If not, see [https://www.gnu.org/licenses/].
+
+ If you have Internet connection, the latest version of the AGPL should be
+ available at these locations:
+ [https://www.fsf.org/licensing/licenses/agpl.html]
+ [https://www.gnu.org/licenses/agpl.html]
+
+ - Spine (by Doc Reform, related to SiSU) uses standard:
+ - docReform markup syntax
+ - standard SiSU markup syntax with modified headers and minor modifications
+ - docReform object numbering
+ - standard SiSU object citation numbering & system
+
+ - Hompages:
+ [https://www.doc_reform.org]
+ [https://www.sisudoc.org]
+
+ - Git
+ [https://git.sisudoc.org/projects/?p=software/spine.git;a=summary]
+
++/
/+ dub.sdl
name "spine search"
description "spine cgi search"
@@ -463,7 +513,7 @@ void cgi_function_intro(Cgi cgi) {
</title>
<meta name="sourcefile" content="SiSU.sst" />
<link rel="generator" href="sisudoc.org" />
- <link rel="shortcut icon" href="http://%s/image_sys/spine.ico" />
+ <link rel="shortcut icon" href="https://%s/image_sys/spine.ico" />
<style media = "all">
*{
padding : 0px;
@@ -529,10 +579,10 @@ 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">
- <br /><a href="http://sisudoc.org/" target="_top">
+ <br /><a href="https://sisudoc.org/" target="_top">
<b>SiSU</b>
</a>
- <br /><a href="http://git.sisudoc.org/" target="_top">
+ <br /><a href="https://git.sisudoc.org/" target="_top">
git
</a>
</td></tr>
@@ -851,7 +901,7 @@ LIMIT %s OFFSET %s
auto m = (row["date_published"].as!string).match(regex(r"^([0-9]{4})")); // breaks if row missing or no match?
cgi.write(
"<hr><a href=\""
- ~ "http://" ~ conf.http_host ~ "/"
+ ~ "https://" ~ conf.http_host ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ "toc.html"
@@ -870,7 +920,7 @@ LIMIT %s OFFSET %s
if (cv.results_type == "txt") {
cgi.write(
"<hr><a href=\""
- ~ "http://" ~ conf.http_host ~ "/"
+ ~ "https://" ~ conf.http_host ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ row["seg_name"].as!string ~ ".html#" ~ row["ocn"].as!string
@@ -883,7 +933,7 @@ LIMIT %s OFFSET %s
} else {
cgi.write(
"<a href=\""
- ~ "http://" ~ conf.http_host ~ "/"
+ ~ "https://" ~ conf.http_host ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ row["seg_name"].as!string ~ ".html#" ~ row["ocn"].as!string