Ignore:
Timestamp:
1999-11-04T11:49:50+13:00 (25 years ago)
Author:
sjboddie
Message:

A few changes to cross-collection searching for fao

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/queryaction.cpp

    r757 r770  
    2828/*
    2929   $Log$
     30   Revision 1.28  1999/11/03 22:49:50  sjboddie
     31   A few changes to cross-collection searching for fao
     32
    3033   Revision 1.27  1999/11/01 21:53:27  sjboddie
    3134   added cross-collection searching capability - still needs lots of
     
    535538  text_t &language = args["n"];
    536539
     540  text_tset collections;
     541  text_t arg_cc = args["cc"];
     542  decode_cgi_arg (arg_cc);
     543  splitchar (arg_cc.begin(), arg_cc.end(), ',', collections);
     544
    537545  textout << outconvert << disp << "_query:header_\n"
    538546      << "<center>_navigationbar_</center><br>\n"
     
    547555      << "<td><input type=\"submit\" value=\"_query:textbeginsearch_\"></td>\n"
    548556      << "</tr></table></center>\n"
    549       << "<center><table width=_pagewidth_>\n";
    550 
     557      << "<center><table width=_pagewidth_>\n"
     558      << "<tr><td>\n";
    551559 
    552560  recptprotolistclass::iterator rprotolist_here = protos->begin();
     
    606614       
    607615          // we've got a matching collection
     616          textout << "<input type=checkbox";
     617
     618          text_tset::const_iterator t = collections.find (*collist_here);
     619          if (t != collections.end()) textout << " checked";
     620
    608621          textout << outconvert
    609               << "<tr><td><input type=checkbox checked name=cc value=\""
    610               << *collist_here << "\"></td><td>\n";
     622              << " name=cc value=\"" << *collist_here << "\">";
    611623         
    612624          if (!cinfo.collectionmeta["collectionname"].empty())
     
    615627        textout << outconvert << *collist_here;
    616628         
    617           textout << "\n</td><td>";
     629          textout << "<br>\n";
    618630         
    619631        }
    620        
    621         textout << "\n</td></tr>\n";
    622632      }
    623633      collist_here ++;
     
    628638  }
    629639  textout << outconvert << disp
    630       << "</table></center>\n"
     640      << "</td></tr></table></center>\n"
    631641      << "</form>\n"
    632642      << "_query:footer_\n";
     
    640650 
    641651  if (args["ccs"] == 1) {
    642     // cross collection searching
    643     if (args["ccp"] != 1) {
     652    // cross collection searching (we'll just borrow the el argument
     653    // from extlinkaction for now - this will probably want to use
     654    // a separate argument eventually)
     655    if (args["ccp"] != 1 && args["el"] != "direct") {
    644656      // display the cross collection search page
    645657      output_ccp (args, protos, disp, outconvert, textout, logout);
Note: See TracChangeset for help on using the changeset viewer.