<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sisudoc-spine-search-cgi, branch main</title>
<subtitle>SiSU Spine: document publishing and search (in D) 2015</subtitle>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/'/>
<entry>
<title>update stylesheet for current table markup</title>
<updated>2026-09-14T16:55:34+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-09-14T15:03:21+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=56adb721f244d26f1f416b57634a00601f7eddf0'/>
<id>56adb721f244d26f1f416b57634a00601f7eddf0</id>
<content type='text'>
The stylesheet gains the rules that reproduce what the attributes did,
so a table in a search result renders as it did before.

(Tables written into the search database lost their obsolete
presentational attributes: no summary, width, border, cellpadding or
align, a &lt;div class="table"&gt; around a &lt;table class="table"&gt;, column
widths in a &lt;colgroup&gt;, &lt;thead&gt;/&lt;tbody&gt;, scope on the header cells,
and alignment by class).

(assisted by Claude-Code)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The stylesheet gains the rules that reproduce what the attributes did,
so a table in a search result renders as it did before.

(Tables written into the search database lost their obsolete
presentational attributes: no summary, width, border, cellpadding or
align, a &lt;div class="table"&gt; around a &lt;table class="table"&gt;, column
widths in a &lt;colgroup&gt;, &lt;thead&gt;/&lt;tbody&gt;, scope on the header cells,
and alignment by class).

(assisted by Claude-Code)
</pre>
</div>
</content>
</entry>
<entry>
<title>search cgi: follow the search database's attribute and element</title>
<updated>2026-09-14T16:30:45+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-09-14T14:56:12+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=72ebc37d2783f9ab01fc8a166d8e8944cbb10b10'/>
<id>72ebc37d2783f9ab01fc8a166d8e8944cbb10b10</id>
<content type='text'>
The database's rows now carry data-indent= rather than a bare indent=,
and &lt;code&gt; rather than the obsolete &lt;tt&gt;, because the cgi renders those
rows into html where neither of the old forms is valid. The stylesheet
here holds its own copy of the rule, so it follows:
  p[indent="h0i0"]  -&gt;  p[data-indent="h0i0"]   (100 selectors)
  tt { ... }        -&gt;  code { ... }

This is paired with the sisudoc-spine commit "epub, html, db: use of
elements &amp; attributes, fix". Either alone loses the indent styling of
search results.

(assisted by Claude-Code)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The database's rows now carry data-indent= rather than a bare indent=,
and &lt;code&gt; rather than the obsolete &lt;tt&gt;, because the cgi renders those
rows into html where neither of the old forms is valid. The stylesheet
here holds its own copy of the rule, so it follows:
  p[indent="h0i0"]  -&gt;  p[data-indent="h0i0"]   (100 selectors)
  tt { ... }        -&gt;  code { ... }

This is paired with the sisudoc-spine commit "epub, html, db: use of
elements &amp; attributes, fix". Either alone loses the indent styling of
search results.

(assisted by Claude-Code)
</pre>
</div>
</content>
</entry>
<entry>
<title>search: allow a db path from the environment</title>
<updated>2026-09-14T16:30:43+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-09-14T14:44:22+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=cd8a98300440418d31ac9222a53c25602cc100de'/>
<id>cd8a98300440418d31ac9222a53c25602cc100de</id>
<content type='text'>
Allow a db path from the environment, and refuse what it cannot read

Three changes related to opening the database:

- provide an environment override for the db path: SPINE_SEARCH_DB_PATH
  overrides the compiled-in db_sqlite_path, beside the other
  environment.get calls. Path was the one setting without an override,
  (SERVER_NAME, REQUEST_SCHEME, SCRIPT_NAME, QUERY_STRING could come
  from the environment). This adds consistency and makes testing the
  search form database builds easier (as it no longer requires
  rebuilding the binary with a patched configuration for readily
  accessible db path)

- selected_db is required to be a plain filename within the configured
  directory, the database is opened read only, and a database that is
  not there is named rather than created.

- The form now reads PRAGMA user_version, as stamped by spine, and
  refuses a database built to another schema version, naming both
  versions and the two commands that rebuild it. A database carrying
  neither of the tables it joins is refused the same way.

sqlite_db_schema_version_- is expected and has to be in sync/step with
the sqlite_db_schema_version in
sisudoc-spine src/sisudoc/outputs/io_out/sqlite.d; the two tests added
there under test/ check that they agree.

(assisted by Claude-Code)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow a db path from the environment, and refuse what it cannot read

Three changes related to opening the database:

- provide an environment override for the db path: SPINE_SEARCH_DB_PATH
  overrides the compiled-in db_sqlite_path, beside the other
  environment.get calls. Path was the one setting without an override,
  (SERVER_NAME, REQUEST_SCHEME, SCRIPT_NAME, QUERY_STRING could come
  from the environment). This adds consistency and makes testing the
  search form database builds easier (as it no longer requires
  rebuilding the binary with a patched configuration for readily
  accessible db path)

- selected_db is required to be a plain filename within the configured
  directory, the database is opened read only, and a database that is
  not there is named rather than created.

- The form now reads PRAGMA user_version, as stamped by spine, and
  refuses a database built to another schema version, naming both
  versions and the two commands that rebuild it. A database carrying
  neither of the tables it joins is refused the same way.

sqlite_db_schema_version_- is expected and has to be in sync/step with
the sqlite_db_schema_version in
sisudoc-spine src/sisudoc/outputs/io_out/sqlite.d; the two tests added
there under test/ check that they agree.

(assisted by Claude-Code)
</pre>
</div>
</content>
</entry>
<entry>
<title>flake.nix visit</title>
<updated>2026-07-05T00:11:26+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-07-05T00:11:26+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=0d8dc37adf954eb7e8f54a81b6ce8d56dd1daefd'/>
<id>0d8dc37adf954eb7e8f54a81b6ce8d56dd1daefd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>change search result symbols for show index &amp; text</title>
<updated>2026-06-25T15:15:19+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-06-25T02:19:52+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=78745eb618982f129e8ee1b731cb4442c32432a8'/>
<id>78745eb618982f129e8ee1b731cb4442c32432a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>org headers rearranged (&amp; odd hilighting issue)</title>
<updated>2026-05-04T18:30:36+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-05-04T18:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=85ee4dc73f21fef999c0a385f170724c642b314c'/>
<id>85ee4dc73f21fef999c0a385f170724c642b314c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>editconfig added</title>
<updated>2026-04-30T01:40:56+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-04-30T01:40:56+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=1be9f0e225c3d4c1f5fae73d60e4284a030ee520'/>
<id>1be9f0e225c3d4c1f5fae73d60e4284a030ee520</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>flake devshells renames</title>
<updated>2026-04-30T01:38:01+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-04-30T01:34:18+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=9f36592169e560a6b860df9ee33e244d0d99031d'/>
<id>9f36592169e560a6b860df9ee33e244d0d99031d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>package.nix cosmetic line-breaks for build command</title>
<updated>2026-04-13T23:44:24+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-04-13T23:44:24+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=41a580edab96c30d175dac232701c908452708d2'/>
<id>41a580edab96c30d175dac232701c908452708d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>nix keeping: nix-shell, nix-build derivation.nix</title>
<updated>2026-04-11T01:30:13+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-04-11T01:30:13+00:00</published>
<link rel='alternate' type='text/html' href='https://amissah.com/projects/sisudoc-spine-search-cgi/commit/?id=9dd16085ce740af9244e00839da364ecd4f722b8'/>
<id>9dd16085ce740af9244e00839da364ecd4f722b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
