Exemplo n.º 1
0
require_once $base_path . "/includes/includes_etagere.inc.php";
print $etageres_header;
// pour affichage de liens sur les éléments affichés :
/*
$liens_opac['lien_rech_notice'] 		= "./index.php?lvl=notice_display&id=!!id!!";
$liens_opac['lien_rech_auteur'] 		= "./index.php?lvl=author_see&id=!!id!!";
$liens_opac['lien_rech_editeur'] 		= "./index.php?lvl=publisher_see&id=!!id!!";
$liens_opac['lien_rech_serie'] 		= "./index.php?lvl=serie_see&id=!!id!!";
$liens_opac['lien_rech_collection'] 		= "./index.php?lvl=coll_see&id=!!id!!";
$liens_opac['lien_rech_subcollection'] 		= "./index.php?lvl=subcoll_see&id=!!id!!";
$liens_opac['lien_rech_indexint'] 		= "./index.php?lvl=indexint_see&id=!!id!!";
$liens_opac['lien_rech_motcle'] 		= "./index.php?lvl=more_results&mode=keyword&user_query=!!mot!!";
$liens_opac['lien_rech_categ'] 			= "./index.php?lvl=categ_see&id=!!id!!";
$liens_opac['lien_rech_perio'] 			= "./index.php?lvl=notice_display&id=!!id!!";
$liens_opac['lien_rech_bulletin'] 		= "./index.php?lvl=bulletin_display&id=!!id!!";
$liens_opac['lien_rech_concept'] 		= "./index.php?lvl=concept_see&id=!!id!!";
$liens_opac['lien_rech_authperso'] 		= "./index.php?lvl=authperso_see&id=!!id!!";
*/
// paramètres :
//	$accueil : filtres les étagères de l'accueil uniquement si 1
//	$etageres : les numéros des étagères séparés par les ',' toutes si vide
//	$commentaire : affiche ou non le commentaire
//	$aff_notices_nb : nombres de notices affichées : toutes = 0
//	$mode_aff_notice : mode d'affichage des notices, REDUIT (titre+auteur principal) ou ISBD ou PMB ou les deux : dans ce cas : (titre + auteur) en entête du truc, à faire dans notice_display.class.php
//	$depliable : affichage des notices une par ligne avec le bouton de dépliable
//	$link_to_etagere : lien pour afficher le contenu de l'étagère
//	$htmldiv_id="etagere-container", $htmldiv_class="etagere-container", $htmldiv_zindex="" : les id, class et zindex du <DIV > englobant le résultat de la fonction
//	$liens_opac : tableau contenant les url destinatrices des liens si voulu
// function affiche_etagere($accueil=0, $etageres="", $aff_commentaire=0, $aff_notices_nb=0, $mode_aff_notice=AFF_ETA_NOTICES_BOTH, $depliable=AFF_ETA_NOTICES_DEPLIABLES_OUI, $link_to_etagere="", $htmldiv_id="etagere-container", $htmldiv_class="etagere-container", $htmldiv_zindex="", $liens_opac=array() ) {
print pmb_bidi(affiche_etagere(0, "{$id}", 1, $opac_etagere_nbnotices_accueil = 0, $opac_etagere_notices_format = AFF_ETA_NOTICES_BOTH, $opac_etagere_notices_depliables = AFF_ETA_NOTICES_DEPLIABLES_OUI, "./fonction_etagere.php?lvl=etagere_see&id=!!id!!", $liens_opac));
print $etageres_footer;
Exemplo n.º 2
0
 if ($opac_show_marguerite_browser) {
     require_once $base_path . '/indexint/marguerite_browser.inc.php';
 }
 // affichage tableau des 100 cases du savoir
 if ($opac_show_100cases_browser) {
     require_once $base_path . '/indexint/100cases_browser.inc.php';
 }
 // affichage derniers ouvrages saisis
 if ($opac_show_dernieresnotices) {
     require_once $base_path . '/includes/templates/last_records.tpl.php';
     require_once $base_path . '/includes/last_records.inc.php';
 }
 // affichage des étagères de l'accueil
 if ($opac_show_etageresaccueil) {
     require_once $base_path . '/includes/templates/etagere.tpl.php';
     $aff_etagere = affiche_etagere(1, "", 1, $opac_etagere_nbnotices_accueil, $opac_etagere_notices_format, $opac_etagere_notices_depliables, "./index.php?lvl=etagere_see&id=!!id!!", $liens_opac);
     if ($aff_etagere) {
         print $etageres_header;
         print $aff_etagere;
         print $etageres_footer;
     }
 }
 // affichage des flux rss
 if ($opac_show_rss_browser) {
     require_once $base_path . '/includes/rss.inc.php';
 }
 //define( 'AFF_ETA_NOTICES_NON', 0 );
 //define( 'AFF_ETA_NOTICES_ISBD', 1 );
 //define( 'AFF_ETA_NOTICES_PMB', 2 );
 //define( 'AFF_ETA_NOTICES_BOTH', 4 );
 //define( 'AFF_ETA_NOTICES_REDUIT', 8 );
Exemplo n.º 3
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: etageres_see.inc.php,v 1.13 2011-08-31 14:27:42 dbellamy Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
// affichage du contenu d'une étagère
if ($showet) {
    print pmb_bidi(affiche_etagere(0, "{$showet}", 1, $opac_etagere_nbnotices_accueil, $opac_etagere_notices_format, $opac_etagere_notices_depliables, "./index.php?lvl=etagere_see&id=!!id!!", $liens_opac));
} else {
    print "<h3><span>" . $msg['accueil_etageres_virtuelles'] . "</span></h3>\n";
    print pmb_bidi(affiche_etagere(0, "", 1, $opac_etagere_nbnotices_accueil, $opac_etagere_notices_format, $opac_etagere_notices_depliables, "./index.php?lvl=etagere_see&id=!!id!!", $liens_opac));
    print "\n";
}
 public function render($datas)
 {
     global $opac_url_base;
     global $base_path;
     global $include_path;
     global $class_path;
     global $msg;
     global $dbh;
     global $charset;
     foreach ($datas['globals'] as $globalName => $globalValue) {
         global ${$globalName};
         $savGlobals[$globalName] = ${$globalName};
         ${$globalName} = $globalValue['value'];
     }
     //utiles dans le contexte
     //cms_module_opacitem_item_infopage
     //cms_module_opacitem_item_navperio
     global $a2z_perio_display;
     global $onglet_a2z;
     global $ongletSub_a2z;
     global $ongletSubList_a2z;
     global $a2z_perio, $a2z_tpl;
     global $a2z_tpl_ajax;
     global $abt_actif;
     global $avis_tpl_form1_script;
     global $filtre_select;
     global $location;
     global $surloc;
     global $gestion_acces_active;
     global $gestion_acces_empr_notice;
     global $f_bull_deb_id;
     global $f_bull_end_id;
     global $page;
     global $bull_date_start;
     global $bull_date_end;
     global $bull_num_deb, $bull_num_end;
     global $flag_no_get_bulletin;
     global $recherche_ajax_mode;
     global $icon_doc;
     global $begin_result_liste;
     global $notice_header;
     global $fonction;
     global $popup_resa;
     global $allow_book;
     global $seule;
     //cms_module_opacitem_item_categ
     global $tpl_div_categories;
     global $tpl_div_category;
     global $tpl_subcategory;
     //cms_module_opacitem_item_bannettes
     global $liens_opac;
     global $date_diff;
     global $affiche_bannette_tpl;
     global $id_empr;
     //cms_module_opacitem_item_section
     global $opac_view_filter_class;
     //cms_module_opacitem_item_margueritte
     //cms_module_opacitem_item_centcases
     //cms_module_opacitem_item_dernotices
     global $last_records_header;
     global $last_records_footer;
     //cms_module_opacitem_item_etageres
     global $etageres_header;
     global $etageres_footer;
     global $notice_display_header;
     global $notice_display_footer;
     global $_mimetypes_bymimetype_;
     global $_mimetypes_byext_;
     global $empty_pwd;
     global $ext_pwd;
     global $action;
     global $callback_func;
     global $callback_url;
     global $new_tab;
     global $search_terms;
     global $show_tris_form;
     global $ligne_tableau_tris;
     global $sort;
     global $show_sel_form;
     global $liste_criteres_tri;
     //cms_module_opacitem_item_rssflux
     $return = '';
     switch ($datas['opacitem']) {
         case 'cms_module_opacitem_item_infopage':
             require_once $base_path . '/includes/show_infopages.inc.php';
             $return = "<div id='infopages_top'>" . show_infopages($opac_show_infopages_id_top) . "</div>";
             break;
         case 'cms_module_opacitem_item_navperio':
             require_once $base_path . '/classes/perio_a2z.class.php';
             $a2z = new perio_a2z(0, $opac_perio_a2z_abc_search, $opac_perio_a2z_max_per_onglet);
             $return = $a2z->get_form();
             break;
         case 'cms_module_opacitem_item_categ':
             $opac_show_categ_browser_tab = explode(" ", $opac_show_categ_browser);
             if ($opac_show_categ_browser_tab[1]) {
                 $opac_show_categ_browser_home_id_thes = $opac_show_categ_browser_tab[1];
             }
             require_once $base_path . '/classes/categorie.class.php';
             require_once $base_path . '/includes/templates/categories.tpl.php';
             ob_start();
             require_once $base_path . '/categ/categories.inc.php';
             $return = ob_get_contents();
             ob_clean();
             break;
         case 'cms_module_opacitem_item_bannettes_abo':
             require_once $base_path . "/includes/bannette_func.inc.php";
             $affiche_bannette_tpl = "\r\n\t\t\t\t<div class='bannette' id='banette_!!id_bannette!!'>\r\n\t\t\t\t!!diffusion!!\r\n\t\t\t\t</div>\r\n\t\t\t\t";
             $aff = pmb_bidi(affiche_bannette("", $opac_bannette_nb_liste, $opac_bannette_notices_format, $opac_bannette_notices_depliables, "./empr.php?lvl=bannette&id_bannette=!!id_bannette!!", $liens_opac, $date_diff, "bannettes_private-container_2", "", ""));
             if ($aff) {
                 $bannettes = "<div id='bannettes_subscribed'>\n";
                 $bannettes .= "<h3><span>" . $msg['accueil_bannette_privee'] . "</span></h3>";
                 $bannettes .= "<div id='bannettes_private-container'>";
                 $bannettes .= "<script type='text/javascript' src='./includes/javascript/tablist.js'></script>";
                 if ($opac_bannette_notices_depliables && $opac_bannette_notices_format != 8) {
                     $bannettes .= $begin_result_liste;
                 }
                 $bannettes .= $aff;
                 $bannettes .= "</div><!-- fermeture #bannettes-container -->\n";
                 $bannettes .= "</div><!-- fermeture #bannettes -->\n";
                 $return = $bannettes;
             }
             break;
         case 'cms_module_opacitem_item_bannettes_pub':
             require_once $base_path . "/includes/bannette_func.inc.php";
             $affiche_bannette_tpl = "\r\n\t\t\t\t<div class='bannette' id='banette_!!id_bannette!!'>\r\n\t\t\t\t!!diffusion!!\r\n\t\t\t\t</div>\r\n\t\t\t\t";
             $aff = pmb_bidi(affiche_bannette("", $opac_bannette_nb_liste, $opac_bannette_notices_format, $opac_bannette_notices_depliables, "./index.php?lvl=bannette_see&id_bannette=!!id_bannette!!", $liens_opac, $date_diff, "bannettes-public-container_2", "", "", true));
             if ($aff) {
                 $bannettes = "<div id='bannettes_public'>\n";
                 $bannettes .= "<h3><span>" . $msg['accueil_bannette_public'] . "</span></h3>";
                 $bannettes .= "<div id='bannettes_public-container'>";
                 $bannettes .= "<script type='text/javascript' src='./includes/javascript/tablist.js'></script>";
                 if ($opac_bannette_notices_depliables && $opac_bannette_notices_format != 8) {
                     $bannettes .= $begin_result_liste;
                 }
                 $bannettes .= $aff;
                 $bannettes .= "</div><!-- fermeture #bannettes-container -->\n";
                 $bannettes .= "</div><!-- fermeture #bannettes -->\n";
                 $return = $bannettes;
             }
             break;
         case 'cms_module_opacitem_item_section':
             ob_start();
             if ($opac_sur_location_activate == 1) {
                 require_once $base_path . "/includes/enter_sur_location.inc.php";
             } else {
                 require_once $base_path . "/includes/enter_localisation.inc.php";
             }
             $return = ob_get_contents();
             ob_clean();
             break;
         case 'cms_module_opacitem_item_margueritte':
             ob_start();
             require_once $base_path . '/indexint/marguerite_browser.inc.php';
             $margueritte_brower = ob_get_contents();
             ob_clean();
             $return = $margueritte_brower;
             break;
         case 'cms_module_opacitem_item_centcases':
             ob_start();
             require_once $base_path . '/indexint/100cases_browser.inc.php';
             $centcases = ob_get_contents();
             ob_clean();
             $return = $centcases;
             break;
         case 'cms_module_opacitem_item_dernotices':
             require_once $base_path . '/includes/templates/last_records.tpl.php';
             ob_start();
             require_once $base_path . '/includes/last_records.inc.php';
             $return = ob_get_contents();
             ob_clean();
             break;
         case 'cms_module_opacitem_item_etageres':
             require_once $base_path . '/includes/templates/etagere.tpl.php';
             require_once $base_path . '/includes/etagere_func.inc.php';
             $aff_etagere = affiche_etagere(1, "", 1, $opac_etagere_nbnotices_accueil, $opac_etagere_notices_format, $opac_etagere_notices_depliables, "./index.php?lvl=etagere_see&id=!!id!!", $liens_opac);
             if ($aff_etagere) {
                 $return = $etageres_header . $aff_etagere . $etageres_footer;
             }
             break;
         case 'cms_module_opacitem_item_rssflux':
             ob_start();
             require_once $base_path . '/includes/rss.inc.php';
             $return = ob_get_contents();
             ob_clean();
             break;
     }
     foreach ($savGlobals as $globalName => $globalValue) {
         ${$globalName} = $globalValue;
     }
     if ($return) {
         return $return;
     }
 }