From 4d5ee2ead874c7a436faa8754eb99215927ea94d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 27 Jun 2021 16:59:44 -0400 Subject: dir rename ./sundry (from ./misc) --- org/util_cgi_rb_fcgi_sqlite_search.org | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'org/util_cgi_rb_fcgi_sqlite_search.org') diff --git a/org/util_cgi_rb_fcgi_sqlite_search.org b/org/util_cgi_rb_fcgi_sqlite_search.org index 4bfdf5f..5e1d058 100644 --- a/org/util_cgi_rb_fcgi_sqlite_search.org +++ b/org/util_cgi_rb_fcgi_sqlite_search.org @@ -34,7 +34,7 @@ document home currently at /var/www/html (better placed at /var/www or srv/proje *** sqlite cgi search TODO **** head -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+HEADER: :tangle-mode (identity #o755) #+HEADER: :shebang #!/usr/bin/env ruby #+BEGIN_SRC ruby @@ -95,7 +95,7 @@ document home currently at /var/www/html (better placed at /var/www or srv/proje **** initialize -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby begin require 'cgi' @@ -122,7 +122,7 @@ end **** form ***** initialize form -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class Form def initialize(base,search_field,selected_db,result_type,checked_sql_limit,checked_tip,checked_stats,checked_searched,checked_url,checked_case,checked_echo,checked_sql,checked_all,checked_none,checked_selected,checked_default,search_note,the_can='') @@ -139,7 +139,7 @@ class Form ***** submission form -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def submission_form search_form =<<-WOK @@ -225,7 +225,7 @@ end **** search request ***** initialize request -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class SearchRequest #% search_for attr_accessor :text1,:fulltext,:keywords,:title,:author,:topic_register,:subject,:description,:publisher,:editor,:contributor,:date,:type,:format,:identifier,:source,:language,:relation,:coverage,:rights,:comment,:abstract,:owner,:date_created,:date_issued,:date_modified,:date_available,:date_valid,:src_filename_base @@ -301,7 +301,7 @@ class SearchRequest #% sea ***** text to match -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def text_to_match(identifier='') m={ @@ -327,7 +327,7 @@ end **** search string -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class DBI_SearchString def initialize(l,t,q,cse=false) @@ -356,7 +356,7 @@ end **** search statement ***** init -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class DBI_SearchStatement attr_reader :text_search_flag,:sql_select_body_format,:sql_offset,:sql_limit @@ -464,7 +464,7 @@ class DBI_SearchStatement ***** misc -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def sql_offset @@offset @@ -552,7 +552,7 @@ class DBI_SearchStatement ***** select statement -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def sql_select_body limit ||= @@limit @@ -578,7 +578,7 @@ end **** tail -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def tail <<-'WOK' @@ -683,7 +683,7 @@ end **** fcgi each ***** init & start loop -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby @tail=tail @counter_txt_doc,@counter_txt_ocn,@counter_endn_doc,@counter_endn_ocn=0,0,0,0 @@ -759,7 +759,7 @@ FCGI.each_cgi do |cgi| ***** canned search -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby #Canned_search.new(@base,@search_for.text1,cgi) if @search_for.text1=~/\S+/ or @search_for.fulltext=~/\S+/ or @search_for.author=~/\S+/ or @search_for.topic_register=~/\S+/ #and search_field =~/\S/ @@ -861,7 +861,7 @@ FCGI.each_cgi do |cgi| ***** submission form -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby @header = Form.new(@base,search_field,selected_db,result_type,checked_sql_limit,checked_tip,checked_stats,checked_searched,checked_url,checked_case,checked_echo,checked_sql,checked_all,checked_none,checked_selected,checked_default,search_note,the_can).submission_form #% form unless q['s1'] =~/\S/ or q['au'] =~/\S/ or @search[:text][1] =~/\S/ @@ -957,7 +957,7 @@ FCGI.each_cgi do |cgi| ***** contents each, text body -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby #% text_objects_body s_contents.each do |c| #% text body @@ -1054,7 +1054,7 @@ FCGI.each_cgi do |cgi| ***** after -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby olduid = "" offset=dbi_statement.sql_offset.to_s -- cgit v1.2.3