00001 #ifndef PSFA_CGI_DEMO_TPL_HPP
00002 #define PSFA_CGI_DEMO_TPL_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <string>
00021
00022 std::string searchForm = "<html>\n"
00023 "<head>\n"
00024 "<title>PSFA Demo</title>\n"
00025 "</head>\n"
00026 "<body>\n"
00027 "<h2>Demo-Seite für PSFA</h2>\n"
00028 "<p>PSFA bedeutet Parsen Speichern Finden Aktualisieren</p>\n"
00029 "<p>Dies ist eine kleine Demo-Seite für die Suchfunktionen der\n"
00030 "PSFA-Bibliothek. Dazu wurden zwei Pools angelegt und indiziert. Bei den beiden\n"
00031 "Pools handelt es um die Speyrer Diplome Heinrichs IV. (ddh4) und\n"
00032 "eine Sammlung von Taufen (baptism), die ich mir von der HKI Köln\n"
00033 ""geliehen" habe.</p>\n"
00034 "<p>Hier oben können Sie die Aktion auswählen, das Ergebnis wird dann unten auf\n"
00035 "der Seite angezeigt.</p>\n"
00036 "<hr width=\"50%\">\n"
00037 "<form action=\"/cgi-bin/psfa\" method=\"POST\">\n"
00038 "<table width=\"100%\" border=\"0\">\n"
00039 "<tr>\n"
00040 "<td><b>Bibliotheksfunktion</b></td>\n"
00041 "<td> </td>\n"
00042 "<td> </td>\n"
00043 "</tr>\n"
00044 "<tr>\n"
00045 "<td width=\"50%\">\n"
00046 "<pre>\n"
00047 "psfa::DbReadDriver::getPools()\n"
00048 "</pre>\n"
00049 "</td>\n"
00050 "<td width=\"25%\">\n"
00051 "Alle verfügbaren Pools anzeigen\n"
00052 "</td>\n"
00053 "<td width=\"25%\">\n"
00054 "<input type=\"submit\" name=\"submit_psfa_showPools\" value=\"Ausführen\">\n"
00055 "</td>\n"
00056 "</tr>\n"
00057 "<tr><td colspan=\"3\"> </td></tr>\n"
00058 "<tr>\n"
00059 "<td> </td>\n"
00060 "<td colspan=\"2\">\n"
00061 "<b>Für den Pool ddh4</b>\n"
00062 "</td>\n"
00063 "</tr>\n"
00064 "<tr>\n"
00065 "<td width=\"50%\">\n"
00066 "<pre>\n"
00067 "psfa::DbReadDriver::getSearchTags( std::string pool,\n"
00068 " std::vector< std::string >& result )\n"
00069 "</pre>\n"
00070 "</td>\n"
00071 "<td width=\"25%\">\n"
00072 "Alle Namen der Such-Tags anzeigen\n"
00073 "</td>\n"
00074 "<td width=\"25%\">\n"
00075 "<input type=\"submit\" name=\"submit_ddh4_tag\" value=\"Ausführen\">\n"
00076 "</td>\n"
00077 "</tr>\n"
00078 "<tr>\n"
00079 "<td width=\"50%\">\n"
00080 "<pre>\n"
00081 "psfa::DbReadDriver::getKontextTags( std::string pool,\n"
00082 " std::vector< std::string >& result )\n"
00083 "</pre>\n"
00084 "</td>\n"
00085 "<td width=\"25%\">\n"
00086 "Alle Namen der Kontext-Tags anzeigen\n"
00087 "</td>\n"
00088 "<td width=\"25%\">\n"
00089 "<input type=\"submit\" name=\"submit_ddh4_kontext\" value=\"Ausführen\">\n"
00090 "</td>\n"
00091 "</tr>\n"
00092 "<tr>\n"
00093 "<td width=\"50%\">\n"
00094 "<pre>\n"
00095 "psfa::DbReadDriver::getUnits( std::string pool,\n"
00096 " std::vector< std::string >& result )\n"
00097 "</pre>\n"
00098 "</td>\n"
00099 "<td width=\"25%\">\n"
00100 "Alle Namen der Einheiten anzeigen\n"
00101 "</td>\n"
00102 "<td width=\"25%\">\n"
00103 "<input type=\"submit\" name=\"submit_ddh4_unit\" value=\"Ausführen\">\n"
00104 "</td>\n"
00105 "</tr>\n"
00106 "<tr>\n"
00107 "<td width=\"50%\">\n"
00108 "<pre>\n"
00109 "psfa::DbReadDriver::getFiles( std::string pool,\n"
00110 " std::vector< std::string >& result )\n"
00111 "</pre>\n"
00112 "</td>\n"
00113 "<td width=\"25%\">\n"
00114 "Alle Namen der Dateien anzeigen\n"
00115 "</td>\n"
00116 "<td width=\"25%\">\n"
00117 "<input type=\"submit\" name=\"submit_ddh4_file\" value=\"Ausführen\">\n"
00118 "</td>\n"
00119 "</tr>\n"
00120 "<tr>\n"
00121 "<td width=\"50%\">\n"
00122 "<pre>\n"
00123 "psfa::DbReadDriver::getUniqueContent( std::string pool,\n"
00124 " std::vector< std::string >& result )\n"
00125 "</pre>\n"
00126 "</td>\n"
00127 "<td width=\"25%\">\n"
00128 "Alle indizierten Inhalte anzeigen\n"
00129 "</td>\n"
00130 "<td width=\"25%\">\n"
00131 "<input type=\"submit\" name=\"submit_ddh4_content\" value=\"Ausführen\">\n"
00132 "</td>\n"
00133 "</tr>\n"
00134 "<tr>\n"
00135 "<td width=\"50%\">\n"
00136 "<pre>\n"
00137 "psfa::DbReadDriver::getEntries( std::string poolName,\n"
00138 " SearchData& search,\n"
00139 " std::vector< IndexData_SP >& result )\n"
00140 "</pre>\n"
00141 "</td>\n"
00142 "<td width=\"25%\">\n"
00143 "<table width=\"100%\" border=\"0\">\n"
00144 "<tr>\n"
00145 "<td>\n"
00146 "<select name=\"select_ddh4_search\" size=\"1\">\n"
00147 "PSFA--option_ddh4_search\n"
00148 "</select>\n"
00149 "</td>\n"
00150 "<td>\n"
00151 "<select name=\"select_ddh4_kontext\" size=\"1\">\n"
00152 "PSFA--option_ddh4_kontext\n"
00153 "</select>\n"
00154 "</td>\n"
00155 "</tr>\n"
00156 "<tr>\n"
00157 "<td>\n"
00158 "<select name=\"select_ddh4_unit\" size=\"1\">\n"
00159 "PSFA--option_ddh4_unit\n"
00160 "</select>\n"
00161 "</td>\n"
00162 "<td>\n"
00163 "<select name=\"select_ddh4_content\" size=\"1\">\n"
00164 "PSFA--option_ddh4_content\n"
00165 "</select>\n"
00166 "</td>\n"
00167 "</tr>\n"
00168 "<tr>\n"
00169 "<td colspan=\"2\">\n"
00170 "Attribute anzeigen? <input type=\"checkbox\" name=\"check_ddh4_att\">\n"
00171 "</td>\n"
00172 "</tr>\n"
00173 "<tr>\n"
00174 "<td colspan=\"2\">\n"
00175 "Positionsdaten anzeigen? <input type=\"checkbox\" name=\"check_ddh4_pos\">\n"
00176 "</td>\n"
00177 "</tr>\n"
00178 "</table>\n"
00179 "</td>\n"
00180 "<td width=\"25%\">\n"
00181 "<input type=\"submit\" name=\"submit_ddh4_entry\" value=\"Ausführen\">\n"
00182 "</td>\n"
00183 "</tr>\n"
00184 "<tr><td colspan=\"3\"> </td></tr>\n"
00185 "<tr>\n"
00186 "<td> </td>\n"
00187 "<td colspan=\"2\">\n"
00188 "<b>Für den Pool baptism</b>\n"
00189 "</td>\n"
00190 "</tr>\n"
00191 "<tr>\n"
00192 "<td width=\"50%\">\n"
00193 "<pre>\n"
00194 "psfa::DbReadDriver::getSearchTags( std::string pool,\n"
00195 " std::vector< std::string >& result )\n"
00196 "</pre>\n"
00197 "</td>\n"
00198 "<td width=\"25%\">\n"
00199 "Alle Namen der Such-Tags anzeigen\n"
00200 "</td>\n"
00201 "<td width=\"25%\">\n"
00202 "<input type=\"submit\" name=\"submit_baptism_tag\" value=\"Ausführen\">\n"
00203 "</td>\n"
00204 "</tr>\n"
00205 "<tr>\n"
00206 "<td width=\"50%\">\n"
00207 "<pre>\n"
00208 "psfa::DbReadDriver::getKontextTags( std::string pool,\n"
00209 " std::vector< std::string >& result )\n"
00210 "</pre>\n"
00211 "</td>\n"
00212 "<td width=\"25%\">\n"
00213 "Alle Namen der Kontext-Tags anzeigen\n"
00214 "</td>\n"
00215 "<td width=\"25%\">\n"
00216 "<input type=\"submit\" name=\"submit_baptism_kontext\" value=\"Ausführen\">\n"
00217 "</td>\n"
00218 "</tr>\n"
00219 "<tr>\n"
00220 "<td width=\"50%\">\n"
00221 "<pre>\n"
00222 "psfa::DbReadDriver::getUnits( std::string pool,\n"
00223 " std::vector< std::string >& result )\n"
00224 "</pre>\n"
00225 "</td>\n"
00226 "<td width=\"25%\">\n"
00227 "Alle Namen der Einheiten anzeigen\n"
00228 "</td>\n"
00229 "<td width=\"25%\">\n"
00230 "<input type=\"submit\" name=\"submit_baptism_unit\" value=\"Ausführen\">\n"
00231 "</td>\n"
00232 "</tr>\n"
00233 "<tr>\n"
00234 "<td width=\"50%\">\n"
00235 "<pre>\n"
00236 "psfa::DbReadDriver::getFiles( std::string pool,\n"
00237 " std::vector< std::string >& result )\n"
00238 "</pre>\n"
00239 "</td>\n"
00240 "<td width=\"25%\">\n"
00241 "Alle Namen der Dateien anzeigen\n"
00242 "</td>\n"
00243 "<td width=\"25%\">\n"
00244 "<input type=\"submit\" name=\"submit_baptism_file\" value=\"Ausführen\">\n"
00245 "</td>\n"
00246 "</tr>\n"
00247 "<tr>\n"
00248 "<td width=\"50%\">\n"
00249 "<pre>\n"
00250 "psfa::DbReadDriver::getUniqueContent( std::string pool,\n"
00251 " std::vector< std::string >& result )\n"
00252 "</pre>\n"
00253 "</td>\n"
00254 "<td width=\"25%\">\n"
00255 "Alle indizierten Inhalte anzeigen\n"
00256 "</td>\n"
00257 "<td width=\"25%\">\n"
00258 "<input type=\"submit\" name=\"submit_baptism_content\" value=\"Ausführen\">\n"
00259 "</td>\n"
00260 "</tr>\n"
00261 "<tr>\n"
00262 "<td width=\"50%\">\n"
00263 "<pre>\n"
00264 "psfa::DbReadDriver::getEntries( std::string poolName,\n"
00265 " SearchData& search,\n"
00266 " std::vector< IndexData_SP >& result )\n"
00267 "</pre>\n"
00268 "</td>\n"
00269 "<td width=\"25%\">\n"
00270 "<table width=\"100%\" border=\"0\">\n"
00271 "<tr>\n"
00272 "<td>\n"
00273 "<select name=\"select_baptism_search\" size=\"1\">\n"
00274 "PSFA--option_baptism_search\n"
00275 "</select>\n"
00276 "</td>\n"
00277 "<td>\n"
00278 "<select name=\"select_baptism_kontext\" size=\"1\">\n"
00279 "PSFA--option_baptism_kontext\n"
00280 "</select>\n"
00281 "</td>\n"
00282 "</tr>\n"
00283 "<tr>\n"
00284 "<td>\n"
00285 "<select name=\"select_baptism_unit\" size=\"1\">\n"
00286 "PSFA--option_baptism_unit\n"
00287 "</select>\n"
00288 "</td>\n"
00289 "<td>\n"
00290 "<select name=\"select_baptism_content\" size=\"1\">\n"
00291 "PSFA--option_baptism_content\n"
00292 "</select>\n"
00293 "</td>\n"
00294 "</tr>\n"
00295 "<tr>\n"
00296 "<td colspan=\"2\">\n"
00297 "Attribute anzeigen? <input type=\"checkbox\" name=\"check_baptism_att\">\n"
00298 "</td>\n"
00299 "</tr>\n"
00300 "<tr>\n"
00301 "<td colspan=\"2\">\n"
00302 "Positionsdaten anzeigen? <input type=\"checkbox\" name=\"check_baptism_pos\">\n"
00303 "</td>\n"
00304 "</tr>\n"
00305 "</table>\n"
00306 "</td>\n"
00307 "<td width=\"25%\">\n"
00308 "<input type=\"submit\" name=\"submit_baptism_entry\" value=\"Ausführen\">\n"
00309 "</td>\n"
00310 "</tr>\n"
00311 "</table>\n"
00312 "</form>\n"
00313 "<br>\n"
00314 "<hr width=\"50%\">\n"
00315 "<table width=\"100%\" border=\"0\">\n"
00316 "<tr>\n"
00317 "<td>\n"
00318 "Anzahl der Treffer: PSFA--count\n"
00319 "</td>\n"
00320 "</tr>\n"
00321 "<tr>\n"
00322 "<td>\n"
00323 "PSFA--result\n"
00324 "</td>\n"
00325 "</tr>\n"
00326 "</table>\n"
00327 "</body>\n"
00328 "</html>\n";
00329 #endif