Changeset 31609 in spip-zone
- Timestamp:
- Sep 16, 2009, 10:02:47 AM (11 years ago)
- Location:
- _plugins_/spip-pmb/2_0_0
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/spip-pmb/2_0_0/formulaires/recherche.html
r31595 r31609 8 8 <span><input type='checkbox' name='look_SITE' id='look_SITE' value='1' /><label for='look_SITE'> <:recherche_portail_web:> </label></span> 9 9 </div> 10 <input type="hidden" id="look_ALL" name="look_ALL" value="1" /> 10 11 <div class="champ-recherche"> 11 12 <label for="recherche"><:info_rechercher_02:></label> … … 14 15 </div> 15 16 <div class="recherche-avancee"> 16 <a href=" #CONFIG{spip_pmb/url}"><:recherche_avancee:> +</a>17 <a href="[(#URL_PAGE{recherche})&look_ALL=1]"><:recherche_avancee:> +</a> 17 18 </div> 18 19 <br class="nettoyeur" /> -
_plugins_/spip-pmb/2_0_0/inc-entete.html
r27709 r31609 1 #CACHE{0} 1 2 <div id="top"> 2 3 3 4 <a rel="start" href="#URL_SITE_SPIP/">[(#LOGO_SITE_SPIP||image_reduire{500,100}|inserer_attribut{alt,#NOM_SITE_SPIP}|inserer_attribut{title,#NOM_SITE_SPIP}) ]<span id="nom_site_spip">[(#NOM_SITE_SPIP)]</span></a> 4 5 5 [<div class="formulaire_spip formulaire_moncomptepmb">6 <div class="formulaire_spip formulaire_moncomptepmb"> 6 7 <h2><:pmb:mon_compte:></h2> 7 <form name="myform" method="post" target="_blank" action="(#CONFIG{spip_pmb/url})empr.php">8 <form name="myform" method="post" action="#SELF"> 8 9 <fieldset> 9 10 <legend><:pmb:mon_compte:></legend> 11 <input type="hidden" name="action" value="connexion_pmb" /> 12 <input type="hidden" name="redirect" value="#SELF" /> 10 13 <ul> 11 14 <li> … … 26 29 </form> 27 30 28 </div> ]31 </div> 29 32 <div class="fonctionnement"><:pmb:comment_ca_fonctionne:></div> 30 33 -
_plugins_/spip-pmb/2_0_0/inc-head.html
r27709 r31609 55 55 </script> 56 56 57 58 <script type='text/javascript'>59 $(document).ready(function(){60 $('.formulaire_moncomptepmb form').bind('submit', function(){61 alert("<:pmb:message_compte_lecteur:>");62 return true;63 });64 $('.recherche-avancee a').bind('click', function(){65 alert("<:pmb:message_recherche_avancee:>");66 return true;67 });68 });69 </script>70 71 57 [(#REM) Agreger et compacter tout cela dans des fichiers statiques ] 72 58 #FILTRE{compacte_head} -
_plugins_/spip-pmb/2_0_0/inc-recherche-catalogue.html
r27709 r31609 4 4 <a id="resultats_recherche"></a> 5 5 6 <div class="menu articles ">6 <div class="menu articles surlignable"> 7 7 <B_tab_resultat> 8 8 -
_plugins_/spip-pmb/2_0_0/pmb_mes_fonctions.php
r31597 r31609 172 172 function pmb_recherche_extraire($recherche, $url_base, $look_FIRSTACCESS='', $look_ALL='', $look_AUTHOR='', $look_PUBLISHER='', $look_COLLECTION='', $look_SUBCOLLECTION='', $look_CATEGORY='', $look_INDEXINT='', $look_KEYWORDS='', $look_TITLE='', $look_ABSTRACT='', $surligne='', $typdoc='', $ok='',$mode='auto') { 173 173 $tableau_resultat = Array(); 174 //$url_page = "index.php?lvl=search_result";175 174 if ($surligne) $url_page.="&surligne=".$surligne; 176 175 if ($typdoc) $url_page.="&typdoc=".$typdoc; 177 176 if ($ok) $url_page.="&ok=".$ok; 178 177 179 /*0 (SEARCH_ALL)=tous les champs, 180 1 (SEARCH_TITLE)=titre, 181 2 (SEARCH_AUTHOR)=auteur, 182 3 (SEARCH_EDITOR)=éditeur, 183 4 (SEARCH_COLLECTION)=collection, 184 6 (SEARCH_CATEGORIES)=catégories/mots matières 185 */ 186 $searchType = 0; //par défaut recherche sur tous les champs 187 if ($look_ALL) $searchType = 0; 188 if ($look_TITLE) $searchType = 1; 178 179 $search = array(); 180 181 182 if ($look_ALL) $search[] = array("inter"=>"or","field"=>42,"operator"=>"BOOLEAN", "value"=>$recherche); 183 if ($look_TITLE) $search[] = array("inter"=>"or","field"=>1,"operator"=>"BOOLEAN", "value"=>$recherche); 189 184 //if ($look_FIRSTACCESS) $url_page.="&look_FIRSTACCESS=".$look_FIRSTACCESS; 190 if ($look_AUTHOR) $searchType = 2; 191 if ($look_PUBLISHER) $searchType = 3; 192 if ($look_COLLECTION) $searchType = 4; 193 if ($look_ABSTRACT) $searchType = 5; 194 if ($look_CATEGORY) $searchType = 6; 195 /*if ($look_INDEXINT) $url_page.="&look_INDEXINT=".$look_INDEXINT; 196 if ($look_KEYWORDS) $url_page.="&look_KEYWORDS=".$look_KEYWORDS; 197 if ($recherche) $url_page.="&user_query=".$recherche;*/ 198 185 if ($look_AUTHOR) $search[] = array("inter"=>"or","field"=>2,"operator"=>"BOOLEAN", "value"=>$recherche); 186 if ($look_PUBLISHER) $search[] = array("inter"=>"or","field"=>3,"operator"=>"BOOLEAN", "value"=>$recherche); 187 if ($look_COLLECTION) $search[] = array("inter"=>"or","field"=>4,"operator"=>"BOOLEAN", "value"=>$recherche); 188 if ($look_ABSTRACT) $search[] = array("inter"=>"or","field"=>10,"operator"=>"BOOLEAN", "value"=>$recherche); 189 if ($look_CATEGORY) $search[] = array("inter"=>"or","field"=>11,"operator"=>"BOOLEAN", "value"=>$recherche); 190 if ($look_INDEXINT) $search[] = array("inter"=>"or","field"=>12,"operator"=>"BOOLEAN", "value"=>$recherche); 191 if ($look_KEYWORDS) $search[] = array("inter"=>"or","field"=>13,"operator"=>"BOOLEAN", "value"=>$recherche); 192 199 193 200 194 /*if ($htmldom = pmb_charger_page($url_base, $url_page,$mode)) { … … 236 230 $i++; 237 231 }*/ 238 //Recherche dans tous les champs du mot "loup" 239 $r=$ws->pmbesOPACAnonymous_simpleSearch($searchType ,$recherche); 232 233 $r=$ws->pmbesOPACAnonymous_advancedSearch($search); 234 240 235 $searchId=$r["searchId"]; 241 236 $tableau_resultat[0]['nb_resultats'] = $r["nbResults"]; -
_plugins_/spip-pmb/2_0_0/recherche.html
r27709 r31609 23 23 <p class="soustitre">« (#RECHERCHE) »</p> 24 24 </div>] 25 [(#ENV{recherche_avancee}|=={1}|?{' ',''}) 26 <INCLURE{fond=inc-recherche-avancee}{recherche}{env}> 27 ] 25 <INCLURE{fond=inc-recherche-avancee}{recherche}{env}> 28 26 [(#ENV{look_SITE}|=={1}|?{' ',''}) 29 27 <INCLURE{fond=inc-recherche-site}{recherche}{env}>
Note: See TracChangeset
for help on using the changeset viewer.