aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/cgi_sqlite_search_form.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-04-04 21:57:11 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-04-08 19:46:35 -0400
commit5588bc15c6df5eb225c315ed82e2a8239ef26d36 (patch)
treee6cdd554aa7ae86ee3db233452516518c01cde89 /src/doc_reform/io_out/cgi_sqlite_search_form.d
parentfix issues raised by dmd2.095.1 ldc2 1.25.0 (diff)
headers: copyright, license, year; also https
Diffstat (limited to 'src/doc_reform/io_out/cgi_sqlite_search_form.d')
-rw-r--r--src/doc_reform/io_out/cgi_sqlite_search_form.d68
1 files changed, 59 insertions, 9 deletions
diff --git a/src/doc_reform/io_out/cgi_sqlite_search_form.d b/src/doc_reform/io_out/cgi_sqlite_search_form.d
index 71e8d5d..362d02c 100644
--- a/src/doc_reform/io_out/cgi_sqlite_search_form.d
+++ b/src/doc_reform/io_out/cgi_sqlite_search_form.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]
+
++/
module doc_reform.io_out.cgi_sqlite_search_form;
template CGIsearchSQLite() {
void CGIsearchSQLite(E,O,M)(E env, O opt_action, M make_and_meta_struct) {
@@ -520,7 +570,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;
@@ -1686,7 +1736,7 @@ LIMIT %%s OFFSET %%s
_close_para
~ "<hr><div class=\"publication\">"
~ "<p class=\"publication\"><a href=\""
- ~ "http://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
+ ~ "https://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ "toc.html"
@@ -1708,7 +1758,7 @@ LIMIT %%s OFFSET %%s
"<div class=\"flex-container\">"
~ "<div class=\"textview_ocn\" style=\"flex: 0 0 1.2em\">"
~ "<p class=\"ocn_is\"><a href=\""
- ~ "http://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
+ ~ "https://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ row["seg_name"].as!string ~ ".html#" ~ row["ocn"].as!string
@@ -1726,7 +1776,7 @@ LIMIT %%s OFFSET %%s
"<div class=\"flex-container\">"
~ "<div class=\"textview_ocn\" style=\"flex: 0 0 1.2em\">"
~ "<p class=\"ocn_is\"><a href=\""
- ~ "http://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
+ ~ "https://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/toc.html"
~ "\">"
@@ -1744,7 +1794,7 @@ LIMIT %%s OFFSET %%s
cgi.write(
_matched_ocn_open
~ "<a href=\""
- ~ "http://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
+ ~ "https://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ row["seg_name"].as!string ~ ".html#" ~ row["ocn"].as!string
@@ -1756,7 +1806,7 @@ LIMIT %%s OFFSET %%s
cgi.write(
_matched_ocn_open
~ "<a href=\""
- ~ "http://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
+ ~ "https://" ~ conf.http_host ~ conf.doc_collection_sub_root ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/toc.html"
~ "\">"
@@ -1772,10 +1822,10 @@ LIMIT %%s OFFSET %%s
} else { // offset_not_beyond_limit = false;
cgi.write("select_query_results empty<p>\n");
}
- cgi.write("<br><p class=\"center\"><a href=\"http://sisudoc.org/\" target=\"_top\">
+ cgi.write("<br><p class=\"center\"><a href=\"https://sisudoc.org/\" target=\"_top\">
<label for=\"find\"><b>≅ SiSU spine</b></label>
</a> <label for=\"find\">(generated) search form</label>
-<br><a href=\"http://git.sisudoc.org/\" target=\"_top\">
+<br><a href=\"https://git.sisudoc.org/\" target=\"_top\">
git</a>
</p>
");
@@ -1854,7 +1904,7 @@ mixin GenericMain!cgi_function_intro;
name "spine_cgi_sqlite_search"
description "spine cgi sqlite search"
authors "Ralph Amissah"
-copyright "Copyright © 2020, Ralph Amissah"
+copyright "Copyright © 2021, Ralph Amissah"
license "GPL-3.0+"
dependency "d2sqlite3" version="%s"
dependency "arsd-official:cgi" version="%s"