aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-04-20 19:22:17 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-04-20 19:22:20 -0400
commitcff8fea1ee232fcb751b2d6d3e7bfe4ef4060247 (patch)
tree60e09ffea451a51396e4115b96bf115f30ba9e3d
parentnix org cleaning (diff)
html search form action (for index & text results)
- obstinately avoiding scripting, even javascript result far from an ideal compromise, (two submission forms (for text & for index))
-rw-r--r--flake.lock12
-rw-r--r--org/out_xmls.org34
-rw-r--r--src/doc_reform/io_out/xmls.d34
3 files changed, 64 insertions, 16 deletions
diff --git a/flake.lock b/flake.lock
index c1ec5fc..5027d90 100644
--- a/flake.lock
+++ b/flake.lock
@@ -5,11 +5,11 @@
"systems": "systems"
},
"locked": {
- "lastModified": 1681037374,
- "narHash": "sha256-XL6X3VGbEFJZDUouv2xpKg2Aljzu/etPLv5e1FPt1q0=",
+ "lastModified": 1681202837,
+ "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide",
"repo": "flake-utils",
- "rev": "033b9f258ca96a10e543d4442071f614dc3f8412",
+ "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github"
},
"original": {
@@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1681092589,
- "narHash": "sha256-I11GYL+6yD6dX89H0WaMiptE52NZ2Tmx+rA23TUyfH8=",
+ "lastModified": 1681956304,
+ "narHash": "sha256-unQAkIwasSPc51R+CHF+r+58WM4bU/lEnXPSpi6yAxg=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "83ca2cd74539fb8e79d46e233f6bb1d978c36f32",
+ "rev": "5b7bbca14c3627153bd305bec9a71f98b56c140c",
"type": "github"
},
"original": {
diff --git a/org/out_xmls.org b/org/out_xmls.org
index adeecfc..eb3f87a 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -375,14 +375,28 @@ import
o = format(q"┃
<div class="flex-menu-option">
<!-- SiSU Spine Search -->
- <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="search">
- <font size="2">
+ <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="searchtxt">
+ &nbsp;&nbsp;<font size="2">
<input type="text" name="sf" size="24" maxlength="255">%s
<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>
+ <input type="hidden" name="rt" value="txt">
+ <button type="submit" form="searchtxt" name="fn" value="%s">&nbsp;• txt&nbsp;</button>
+ </font></form>
+ <!-- SiSU Spine Search -->
+ </div>
+ <div class="flex-menu-option">
+ <!-- SiSU Spine Search -->
+ <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="searchidx">
+ &nbsp;&nbsp;<font size="2">
+ <input type="text" name="sf" size="24" maxlength="255">%s
+ <input type="hidden" name="sml" value="1000">
+ <input type="hidden" name="ec" value="on">
+ <input type="hidden" name="url" value="on">
+ <input type="hidden" name="rt" value="idx">
+ <button type="submit" form="searchidx">※ db</button>
+ <button type="submit" form="searchidx" name="fn" value="%s">&nbsp;• idx&nbsp;</button>
</font></form>
<!-- SiSU Spine Search -->
</div>┃",
@@ -393,6 +407,13 @@ import
~ doc_matters.conf_make_meta.conf.w_srv_db_sqlite_filename
~ "\">",
doc_matters.src.filename_base,
+ doc_matters.conf_make_meta.conf.w_srv_cgi_action,
+ (doc_matters.conf_make_meta.conf.w_srv_db_sqlite_filename.empty)
+ ? ""
+ : "\n <input type=\"hidden\" name=\"db\" value=\""
+ ~ doc_matters.conf_make_meta.conf.w_srv_db_sqlite_filename
+ ~ "\">",
+ doc_matters.src.filename_base,
);
} else {
o = "";
@@ -595,7 +616,10 @@ import
<hr />
<div class="generator">
<p class="small_center" id="sisu_spine"><a name="sisu_spine"></a>
- <a href="https://sisudoc.org">SiSU Spine</a> (object numbering &amp; object search) (in sisu 2002 ...) <<year>>
+ <a href="https://sisudoc.org">≅ SiSU Spine</a> (object numbering &amp; object search)
+ </p>
+ <p class="small_center" id="sisu_spine"><a name="sisu_spine"></a>
+ (web 1993, object numbering 1997, object search 2002 ...) <<year>>
</p>
</div>
<a name="bottom" id="bottom"></a>
diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d
index 7a35967..2b67978 100644
--- a/src/doc_reform/io_out/xmls.d
+++ b/src/doc_reform/io_out/xmls.d
@@ -264,14 +264,28 @@ template outputXHTMLs() {
o = format(q"┃
<div class="flex-menu-option">
<!-- SiSU Spine Search -->
- <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="search">
- <font size="2">
+ <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="searchtxt">
+ &nbsp;&nbsp;<font size="2">
<input type="text" name="sf" size="24" maxlength="255">%s
<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>
+ <input type="hidden" name="rt" value="txt">
+ <button type="submit" form="searchtxt" name="fn" value="%s">&nbsp;• txt&nbsp;</button>
+ </font></form>
+ <!-- SiSU Spine Search -->
+ </div>
+ <div class="flex-menu-option">
+ <!-- SiSU Spine Search -->
+ <form action="%s" target="_top" method="POST" accept-charset="UTF-8" id="searchidx">
+ &nbsp;&nbsp;<font size="2">
+ <input type="text" name="sf" size="24" maxlength="255">%s
+ <input type="hidden" name="sml" value="1000">
+ <input type="hidden" name="ec" value="on">
+ <input type="hidden" name="url" value="on">
+ <input type="hidden" name="rt" value="idx">
+ <button type="submit" form="searchidx">※ db</button>
+ <button type="submit" form="searchidx" name="fn" value="%s">&nbsp;• idx&nbsp;</button>
</font></form>
<!-- SiSU Spine Search -->
</div>┃",
@@ -282,6 +296,13 @@ template outputXHTMLs() {
~ doc_matters.conf_make_meta.conf.w_srv_db_sqlite_filename
~ "\">",
doc_matters.src.filename_base,
+ doc_matters.conf_make_meta.conf.w_srv_cgi_action,
+ (doc_matters.conf_make_meta.conf.w_srv_db_sqlite_filename.empty)
+ ? ""
+ : "\n <input type=\"hidden\" name=\"db\" value=\""
+ ~ doc_matters.conf_make_meta.conf.w_srv_db_sqlite_filename
+ ~ "\">",
+ doc_matters.src.filename_base,
);
} else {
o = "";
@@ -459,7 +480,10 @@ template outputXHTMLs() {
<hr />
<div class="generator">
<p class="small_center" id="sisu_spine"><a name="sisu_spine"></a>
- <a href="https://sisudoc.org">SiSU Spine</a> (object numbering &amp; object search) (in sisu 2002 ...) 2023
+ <a href="https://sisudoc.org">≅ SiSU Spine</a> (object numbering &amp; object search)
+ </p>
+ <p class="small_center" id="sisu_spine"><a name="sisu_spine"></a>
+ (web 1993, object numbering 1997, object search 2002 ...) 2023
</p>
</div>
<a name="bottom" id="bottom"></a>