Changeset 32784
- Timestamp:
- 09.11.2009 18:16:18 (3 months ago)
- Location:
- _plugins_/spip-pmb/2_0_0
- Files:
-
- 2 modified
-
inc/inc-notice_display.html (modified) (1 diff)
-
pmb_mes_fonctions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/spip-pmb/2_0_0/inc/inc-notice_display.html
r32772 r32784 31 31 32 32 33 [(#SET{tab_exemplaires, [(#ENV{notice}|pmb_notice_champ{'tab_exemplaires'})]})] 34 <B_tab_exemplaires> 35 <div class="spip pmb-exemplaires"> 36 <h2><:pmb:exemplaires:></h2> 37 <table cellpadding='2' class='exemplaires' width='79%'> 38 <tr class="row_first"><th class='expl_header_expl_cb'>Code barre</th><th class='expl_header_expl_cote'>Cote</th><th class='expl_header_tdoc_libelle'>Support</th><th class='expl_header_location_libelle'>Localisation</th><th class='expl_header_section_libelle'>Section</th><th>Disponibilité</th></tr> 39 40 <BOUCLE_tab_exemplaires(POUR){tableau #GET{tab_exemplaires}}> 41 <tr[ class="(#COMPTEUR_BOUCLE|modulo{2}|?{row_even,row_odd})"]> 42 <td class='expl_cb'>[(#GET{tab_exemplaires}|pmb_tableau2_valeur{#CLE, expl_cb})]</td> 43 <td class='expl_cote'>[(#GET{tab_exemplaires}|pmb_tableau2_valeur{#CLE, expl_cote})]</td> 44 <td class='tdoc_libelle'>[(#GET{tab_exemplaires}|pmb_tableau2_valeur{#CLE, tdoc_libelle})]</td> 45 <td class='location_libelle'>[(#GET{tab_exemplaires}|pmb_tableau2_valeur{#CLE, location_libelle})]</td> 46 <td class='section_libelle'>[(#GET{tab_exemplaires}|pmb_tableau2_valeur{#CLE, section_libelle})]</td> 47 <td class='expl_situation'><strong>[(#GET{tab_exemplaires}|pmb_tableau2_valeur{#CLE, expl_situation}|=={5}|?{'Sorti','Disponible'})]</strong></td> 48 49 50 </tr> 51 52 </BOUCLE_tab_exemplaires> 53 </table> 54 </div> 55 </B_tab_exemplaires> 56 <//B_tab_exemplaires> 33 <INCLURE{fond=inc/inc-notice-dispo}{env}> 57 34 58 35 [<div class="pmb-autreslecteurs"> -
_plugins_/spip-pmb/2_0_0/pmb_mes_fonctions.php
r32783 r32784 494 494 global $dernierIdTrouve; 495 495 global $gtresultat; 496 global $indice_exemplaire;497 496 498 497 // Selon les cas, nous affichons le texte … … 544 543 545 544 546 //section996 mode tableau547 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "f")) {548 $indice_exemplaire++;549 $gtresultat['tab_exemplaires'][$indice_exemplaire-1] = Array();550 $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['expl_cb'] .= $texte;551 }552 553 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "k")) $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['expl_cote'] .= $texte;554 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "e")) $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['tdoc_libelle'] .= $texte;555 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "v")) $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['location_libelle'] .= $texte;556 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "x")) $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['section_libelle'] .= $texte;557 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "1")) $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['empruntable'] .= $texte;558 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "b")) $gtresultat['tab_exemplaires'][$indice_exemplaire-1]['expl_situation'] .= $texte;559 560 545 561 546 … … 570 555 global $gtresultat; 571 556 global $indice_exemplaire; 572 $indice_exemplaire = 0; 573 $gtresultat = array(); 557 $gtresultat = array(); 574 558 575 559 // Création du parseur XML … … 618 602 $tresultat = Array(); 619 603 620 $tresultat['tab_exemplaires'] = Array();621 604 $noticecontent = Array(); 622 605 $unserialized = $value; … … 664 647 if (($dernierTypeTrouve == "700") && ($dernierSousTypeTrouve == "a")) $tresultat['id_auteur'] = $dernierIdTrouve; 665 648 666 //section996 mode tableau 667 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "f")) { 668 $indice_exemplaire++; 669 $tresultat['tab_exemplaires'][$indice_exemplaire-1] = Array(); 670 $tresultat['tab_exemplaires'][$indice_exemplaire-1]['expl_cb'] .= $texte; 671 } 672 673 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "k")) $tresultat['tab_exemplaires'][$indice_exemplaire-1]['expl_cote'] .= $texte; 674 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "e")) $tresultat['tab_exemplaires'][$indice_exemplaire-1]['tdoc_libelle'] .= $texte; 675 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "v")) $tresultat['tab_exemplaires'][$indice_exemplaire-1]['location_libelle'] .= $texte; 676 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "x")) $tresultat['tab_exemplaires'][$indice_exemplaire-1]['section_libelle'] .= $texte; 677 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "1")) $tresultat['tab_exemplaires'][$indice_exemplaire-1]['empruntable'] .= $texte; 678 if (($dernierTypeTrouve == "996") && ($dernierSousTypeTrouve == "b")) $tresultat['tab_exemplaires'][$indice_exemplaire-1]['expl_situation'] .= $texte; 679 649 680 650 681 651 } … … 698 668 } 699 669 670 function pmb_ws_dispo_exemplaire($id_notice, $id_session=0) { 671 672 $tresultat = Array(); 673 pmb_ws_charger_wsdl($ws, $url_base); 674 675 try { 676 $r=$ws->pmbesItems_fetch_notice_items($id_notice, $id_session); 677 $cpt = 0; 678 foreach ($r as $exemplaire) { 679 $tresultat[$cpt] = Array(); 680 $tresultat[$cpt]['id'] = $exemplaire->id; 681 $tresultat[$cpt]['cb'] = $exemplaire->cb; 682 $tresultat[$cpt]['cote'] = $exemplaire->cote; 683 $tresultat[$cpt]['location_id'] = $exemplaire->location_id; 684 $tresultat[$cpt]['location_caption'] = $exemplaire->location_caption; 685 $tresultat[$cpt]['section_id'] = $exemplaire->section_id; 686 $tresultat[$cpt]['section_caption'] = $exemplaire->section_caption; 687 $tresultat[$cpt]['statut'] = $exemplaire->statut; 688 $tresultat[$cpt]['support'] = $exemplaire->support; 689 $tresultat[$cpt]['situation'] = $exemplaire->situation; 690 691 $cpt++; 692 } 693 694 695 } catch (SoapFault $fault) { 696 print("Erreur : ".$fault->faultcode." : ".$fault->faultstring); 697 } 698 return $tresultat; 699 } 700 700 701 701 //récuperer une notice en xml via les webservices
