/trunk/herbier_rss.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: herbier_rss.php,v 1.2 2006-10-31 10:31:36 jp_milcent Exp $ |
// CVS : $Id: herbier_rss.php,v 1.3 2006-10-31 15:06:43 jp_milcent Exp $ |
/** |
* Générateur de flux RSS pour les Herbiers |
* |
29,7 → 29,7 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* |
*@copyright Tela-Botanica 2000-2006 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
45,6 → 45,7 |
define('GEN_CHEMIN_API', PAP_CHEMIN_RACINE.'api'.GEN_SEP); |
define('GEN_CHEMIN_CLIENT', PAP_CHEMIN_RACINE.'client'.GEN_SEP); |
define('PAP_CHEMIN_API_PEAR', GEN_CHEMIN_API.'pear'.GEN_SEP); |
define('HB_URL', 'http://testv4.tela-botanica.org/page:herbiers_recherche'); |
$GLOBALS['_GEN_commun']['i18n'] = 'fr'; |
$GLOBALS['_DEBOGAGE_'] = ''; |
//session_name('herbier_rss_beta'); |
68,6 → 69,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2006/10/31 10:31:36 jp_milcent |
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus. |
* |
* Revision 1.1 2006/10/30 18:57:17 jp_milcent |
* Début gestion des flux rss. |
* |
/trunk/applications/hb_rss/hb_rss.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hb_rss.php,v 1.4 2006-10-31 12:42:00 jp_milcent Exp $ |
// CVS : $Id: hb_rss.php,v 1.5 2006-10-31 15:06:44 jp_milcent Exp $ |
/** |
* Générateur de flux RSS pour les Herbiers |
* |
29,7 → 29,7 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* |
*@copyright Tela-Botanica 2000-2006 |
*@version $Revision: 1.4 $ $Date: 2006-10-31 12:42:00 $ |
*@version $Revision: 1.5 $ $Date: 2006-10-31 15:06:44 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
36,6 → 36,7 |
//==================================== LES FLUX RSS================================== |
// Constantes liées aux flux RSS |
//================================================================================== |
// TODO : à mettre dans un fichier de config |
define('HBR_CREER_FICHIERS_XML', 0);//0=ne cree pas le fichier XML dans rss/; 1=cree le fichier XML dans rss/ |
define('HBR_RSS_NOMSITE','tela-botanica.org');//Nom du site indiqué dans les flux rss |
define('HBR_RSS_ADRESSESITE','http://www.tela-botanica.org');//Adresse Internet du site indiqué dans les flux rss |
44,23 → 45,39 |
define('HBR_RSS_MANAGINGEDITOR', 'accueil@tela-botanica.org') ;//Managing editor du site |
define('HBR_RSS_WEBMASTER', 'jpm@tela-botanica.org') ; //Mail Webmaster du site |
define('HBR_RSS_CATEGORIE', 'Botanique, Herbiers'); //catégorie du flux RSS |
$GLOBALS['_HERBIER_']['rss']['flux'] = array('herbier', 'collection', 'equipe', 'note'); |
$GLOBALS['_HERBIER_']['rss']['url'] = new Net_URL('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); |
// TODO : à mettre dans le fichier de langue |
define('HBR_PAS_D_ANNONCES', 'Pas d\'annonce'); //Message pas d'annonce |
if (isset($_GET['type'])) { |
$annonce = $_GET['type']; |
$type = $_GET['type']; |
} else { |
$annonce = ''; |
$type = ''; |
} |
if (isset($_GET['nbitem'])) { |
$nbitem = $_GET['nbitem']; |
if (isset($_GET['limite'])) { |
$limite = $_GET['limite']; |
} else { |
$nbitem = ''; |
$limite = ''; |
} |
// Renseignement des méta données par défaut du flux RSS |
$aso_meta['description'] = HBR_RSS_DESCRIPTIONSITE; |
$aso_meta['link'] = HBR_RSS_ADRESSESITE; |
$aso_meta['language'] = 'fr-FR'; |
$aso_meta['copyright'] = 'Copyright 2005 '.HBR_RSS_NOMSITE; |
$aso_meta['lastBuildDate'] = strftime('%d %b %Y %H:%M:%S GMT'); |
$aso_meta['docs'] = 'http://www.stervinou.com/projets/rss/'; |
$aso_meta['category'] = HBR_RSS_CATEGORIE; |
$aso_meta['managingEditor'] = HBR_RSS_MANAGINGEDITOR; |
$aso_meta['webMaster'] = HBR_RSS_WEBMASTER; |
$aso_meta['ttl'] = 60; |
$aso_meta['image']['title'] = HBR_RSS_NOMSITE; |
$aso_meta['image']['url'] = HBR_RSS_LOGOSITE; |
$aso_meta['image']['link'] = HBR_RSS_ADRESSESITE; |
// Generation de la requete MySQL personnalisee |
switch ('type') { |
switch ($type) { |
case 'herbier' : |
$requete = 'SELECT DISTINCT ID_ORG AS id, INSTITUTION_NAME AS titre, DATE_DERNIERE_MODIF AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '. |
'FROM HERBIERS_ORGANISATION, '.HB_BDD_NOM_ANNUAIRE.'.annuaire_tela '. |
70,7 → 87,8 |
$aso_meta['titre'] = 'Flux des Organisations'; |
break; |
case 'collection' : |
$requete = 'SELECT DISTINCT ID AS id, NOM_COLLECTION AS titre, DATE_DERNIERE_MODIF AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '. |
$requete = 'SELECT DISTINCT ID AS id, NOM_COLLECTION AS titre, '. |
'DATE_DERNIERE_MODIF AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '. |
'FROM HERBIERS_COLLECTION, '.HB_BDD_NOM_ANNUAIRE.'.annuaire_tela '. |
'WHERE CE_MODIFIER_PAR = U_ID '. |
'ORDER BY DATE_DERNIERE_MODIF DESC'; |
77,13 → 95,36 |
$url = HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION_ID; |
$aso_meta['titre'] = 'Flux des Collections'; |
break; |
case 'equipe' : |
$requete = 'SELECT DISTINCT HOS.ID_ORG AS id_org, HS.ID_STAFF AS id_equipe, PRENOM as titre_prenom, NOM AS titre_nom, '. |
'DATE_DERNIERE_MODIF AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '. |
'FROM HERBIERS_STAFF AS HS, '.HB_BDD_NOM_ANNUAIRE.'.annuaire_tela, HERBIERS_ont_un_staff AS HOS '. |
'WHERE CE_MODIFIER_PAR = U_ID '. |
'AND HOS.ID_STAFF = HS.ID_STAFF '. |
'ORDER BY DATE_DERNIERE_MODIF DESC'; |
$url = HB_URL_COURANTE_ADMIN_ACTION_ORG_EQUIPE; |
$aso_meta['titre'] = 'Flux des Équipes'; |
break; |
case 'note' : |
$requete = 'SELECT DISTINCT HC.PARENT_ID AS id_org, HC.ID AS id_coll, HI.ID_INDIC AS id_note, HI.REM_INDIC AS titre, '. |
'HI.TXT_INDIC AS description, HI.MAJ_INDIC AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '. |
'FROM HERBIERS_INDIC AS HI, HERBIERS_INDIC_HISTORIQUE AS HIH, '. |
HB_BDD_NOM_ANNUAIRE.'.annuaire_tela, HERBIERS_COLLECTION AS HC '. |
'WHERE HI.ID_INDIC = HIH.ID_INDIC AND HI.MAJ_INDIC = HIH.DATE_INDIC AND HIH.ID_INDICATEUR = U_ID AND HI.ID = HC.ID '. |
'ORDER BY HI.MAJ_INDIC DESC'; |
$url = HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL_NOTE; |
$aso_meta['titre'] = 'Flux des Notes'; |
break; |
default : |
$requete = ''; |
$aso_meta['titre'] = 'Liste des flux RSS de l\'application Herbiers'; |
$aso_meta['description'] = 'Veuillez sélectionner un des flux RSS ci-dessous pour obtenir la liste '. |
'des dernières modifications correspondantes.'; |
} |
$tab_infos = array(); |
if ($requete != '') { |
if ($nbitem != '') { |
$requete .= ' LIMIT 0,'.$nbitem; |
if ($limite != '') { |
$requete .= ' LIMIT 0,'.$limite; |
} |
$resultat = $GLOBALS['_HERBIER_']['bdd']->query($requete) ; |
if (DB::isError($resultat)) { |
91,38 → 132,44 |
} |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) { |
$aso_infos = array(); |
$aso_infos['title'] = $ligne['titre']; |
$aso_infos['link'] = str_replace('&', '&', sprintf($url, $ligne['id'])); |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom'].' le '.$ligne['date_derniere_modif']; |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime($ligne['date_derniere_modif'])); |
switch ($type) { |
case 'equipe' : |
$aso_infos['title'] = $ligne['titre_prenom'].' '.$ligne['titre_nom']; |
$aso_infos['link'] = str_replace('&', '&', sprintf($url, 32, $ligne['id_org'], $ligne['id_equipe'])); |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom'].' le '.$ligne['date_derniere_modif']; |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', $ligne['date_derniere_modif']); |
break; |
case 'note' : |
if ($ligne['titre'] != '') { |
$aso_infos['title'] = $ligne['titre']; |
} else { |
$aso_infos['title'] = strtoupper($ligne['nom']).' '.date('j.m.Y', $ligne['date_derniere_modif']); |
} |
$aso_infos['link'] = str_replace('&', '&', sprintf($url, 42, $ligne['id_org'], $ligne['id_coll'], $ligne['id_note'])); |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom']. |
' le '.date('Y-m-j H:i:s', $ligne['date_derniere_modif']).'<br />'. |
$ligne['description']; |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', $ligne['date_derniere_modif']); |
break; |
default : |
$aso_infos['title'] = $ligne['titre']; |
$aso_infos['link'] = str_replace('&', '&', sprintf($url, $ligne['id'])); |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom'].' le '.$ligne['date_derniere_modif']; |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime($ligne['date_derniere_modif'])); |
} |
$tab_infos[] = $aso_infos; |
} |
} else { |
$aso_flux = array('herbier', 'collection'); |
foreach ($aso_flux as $flux) { |
foreach ($GLOBALS['_HERBIER_']['rss']['flux'] as $flux) { |
$aso_infos = array(); |
$aso_infos['title'] = 'Flux RSS : '.$flux; |
$GLOBALS['_HERBIER_']['url_rss']->addQueryString('type', $flux); |
$aso_infos['link'] = str_replace('&', '&', $GLOBALS['_HERBIER_']['url_rss']->getURL()); |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom'].' le '.$ligne['date_derniere_modif']; |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 12:42:00 $')))); |
$GLOBALS['_HERBIER_']['rss']['url']->addQueryString('type', $flux); |
$aso_infos['link'] = str_replace('&', '&', $GLOBALS['_HERBIER_']['rss']['url']->getURL()); |
$aso_infos['description'] = 'Flux RSS sur les '.$flux.'s.'; |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 15:06:44 $')))); |
$tab_infos[] = $aso_infos; |
} |
} |
$aso_meta['description'] = HBR_RSS_DESCRIPTIONSITE; |
$aso_meta['link'] = HBR_RSS_ADRESSESITE; |
$aso_meta['language'] = 'fr-FR'; |
$aso_meta['copyright'] = 'Copyright 2005 '.HBR_RSS_NOMSITE; |
$aso_meta['lastBuildDate'] = strftime('%d %b %Y %H:%M:%S GMT'); |
$aso_meta['docs'] = 'http://www.stervinou.com/projets/rss/'; |
$aso_meta['category'] = HBR_RSS_CATEGORIE; |
$aso_meta['managingEditor'] = HBR_RSS_MANAGINGEDITOR; |
$aso_meta['webMaster'] = HBR_RSS_WEBMASTER; |
$aso_meta['ttl'] = 60; |
$aso_meta['image']['title'] = HBR_RSS_NOMSITE; |
$aso_meta['image']['url'] = HBR_RSS_LOGOSITE; |
$aso_meta['image']['link'] = HBR_RSS_ADRESSESITE; |
echo html_entity_decode(gen_RSS($aso_meta, $tab_infos, $nbitem)); |
187,6 → 234,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2006/10/31 12:42:00 jp_milcent |
* Amélioration de la gestion de la date des flux via les infos cvs. |
* |
* Revision 1.3 2006/10/31 12:39:23 jp_milcent |
* Modification de la gestion de la date des flux via les infos cvs. |
* |
/trunk/applications/hb_admin/bibliotheque/hba_manipulation.fonct.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hba_manipulation.fonct.php,v 1.2 2006-10-30 18:57:46 jp_milcent Exp $ |
// CVS : $Id: hba_manipulation.fonct.php,v 1.3 2006-10-31 15:06:44 jp_milcent Exp $ |
/** |
* Fonctions de manipulation de la base de données Herbier. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.2 $ $Date: 2006-10-30 18:57:46 $ |
*@version $Revision: 1.3 $ $Date: 2006-10-31 15:06:44 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
330,9 → 330,9 |
$form->addCommentaire('<br />'.'Pensez à supprimer le contenu du champs ci-dessous si les informations que vous saisissez ne viennent pas de l\'Index Herbariorum, remplacez par votre nom.'); |
$form->addChamps('SOURCE_DES_DONNEES', 'Source des informations'); |
$form->addCommentaire('<strong><span class="symbole_obligatoire">'.'*'.'</span>'.' : '.'</strong>'.'champ obligatoire.'); |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden'); |
$form->addChamps('CE_MODIFIER_PAR', '', $un_herbier->utilisateur->getId(), $type = 'hidden'); |
// Gestion des métadonnées |
gererMetaForm(&$form, &$un_herbier); |
if ($form->id != HBA_EXEMPLE_ID) { |
$form->submit('Valider', 'herbier_pere'); |
} |
484,6 → 484,9 |
$form->addChamps('FAX', 'Fax : '); |
$form->addChamps('FONCTION', 'Fonction : '); |
$form->radioEnum('CONTACT', 'La personne est-elle contact ? : ','non'); |
// Gestion des métadonnées |
gererMetaForm(&$form, &$un_herbier); |
if ($un_herbier->organisation->getId() != HBA_EXEMPLE_ID) { |
$form->submit('Valider'); |
} |
687,9 → 690,10 |
); |
$form->addChamps('DOC_STATE', 'État de la documentation : '); |
$form->addChamps('PERCENT_DATABASED', '% de la documentation en base de données : '); |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden'); |
$form->addChamps('CE_MODIFIER_PAR', '', $un_herbier->utilisateur->getId(), $type = 'hidden'); |
// Gestion des métadonnées |
gererMetaForm(&$form, &$un_herbier); |
if ($un_herbier->organisation->getId() != HBA_EXEMPLE_ID) { |
$form->submit('Valider'); |
} |
829,6 → 833,7 |
$form->addChamps('REM_INDIC', 'Remarque : '); |
$form->checkboxFromTable( 'HERBIERS_INDIC par HERBIERS_A_UN_TYPE et HERBIERS_TYPE', |
'Cocher les cases : ', '', 'LIGNE', 'ID_INDIC', 'ID_TYPE', 'ID_TYPE'); |
$form->submit('Valider'); |
$form->annuler('Annuler', sprintf($un_herbier->getUrlActionOrgColl(), HBA_ACTION_COLL_DEROULER, $id_org, $id_coll)); |
} |
1393,11 → 1398,27 |
} |
return $retour; |
} |
function gererMetaForm(&$form, &$herbier) |
{ |
// Pour écraser ces valeurs même en modification nous métons temporairement le mode à vide. |
$mode = ''; |
if ($form->mode == 'MOD') { |
$form->mode = ''; |
$mode = 'MOD'; |
} |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden'); |
$form->addChamps('CE_MODIFIER_PAR', '', $herbier->utilisateur->getId(), $type = 'hidden'); |
$form->mode = $mode; |
} |
// +------------------------------------------------------------------------------------------------------+ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2006/10/30 18:57:46 jp_milcent |
* Ajout de champs pour les flux rss. |
* |
* Revision 1.1 2005/11/23 10:32:32 jp_milcent |
* Ajout au dépot de l'application Herbiers. |
* Elle doit à terme migrer dans eFlore. |
/trunk/herbier.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: herbier.php,v 1.4 2006-10-31 10:31:36 jp_milcent Exp $ |
// CVS : $Id: herbier.php,v 1.5 2006-10-31 15:06:44 jp_milcent Exp $ |
/** |
* Application Herbier |
* |
38,7 → 38,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.4 $ $Date: 2006-10-31 10:31:36 $ |
*@version $Revision: 1.5 $ $Date: 2006-10-31 15:06:44 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
68,7 → 68,7 |
require_once HB_CHEMIN_API_PEAR.'Net'.GEN_SEP.'URL.php'; |
// Création de l'objet URL si nous hors de Papyrus |
if (!defined('PAP_VERSION')) { |
$GLOBALS['_GEN_commun']['url'] = new Net_URL('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); |
$GLOBALS['_GEN_commun']['url'] = new Net_URL(HB_URL); |
} |
/** Inclusion du fichier de configuration des url de BiblioBota.*/ |
require_once HB_CHEMIN_CONFIG.'hb_config_url.inc.php'; |
234,6 → 234,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2006/10/31 10:31:36 jp_milcent |
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus. |
* |
* Revision 1.3 2006/10/30 18:57:17 jp_milcent |
* Début gestion des flux rss. |
* |
/trunk/configuration/hb_config.inc.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hb_config.inc.php,v 1.4 2006-10-31 10:31:36 jp_milcent Exp $ |
// CVS : $Id: hb_config.inc.php,v 1.5 2006-10-31 15:06:44 jp_milcent Exp $ |
/** |
* Configuration générale des applications de Herbier |
* |
35,7 → 35,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.4 $ $Date: 2006-10-31 10:31:36 $ |
*@version $Revision: 1.5 $ $Date: 2006-10-31 15:06:44 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
43,6 → 43,9 |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// Paramêtres indiquant que l'on est en français pourpermettre la mise en majuscule des caractères accentués |
setlocale(LC_CTYPE, "fr_FR"); |
// +------------------------------------------------------------------------------------------------------+ |
/** Definition de la variable globale de Herbier.*/ |
$GLOBALS['_HERBIER_'] = array(); |
89,8 → 92,7 |
/** Constante stockant le chemin du dossier racine de l'application.*/ |
define('HB_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP); |
/** Constante stockant le chemin du dossier de configuration générale.*/ |
define('HB_CHEMIN_CONFIG', HB_CHEMIN_RACINE.'configuration'.GEN_SEP); |
/** Constante stockant le chemin absolu du dossier racine de l'application.*/ |
define('HB_CHEMIN_ABSO_RACINE', PAP_CHEMIN_RACINE.GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP); |
/** Constante stockant le chemin du dossier contenant les applications spécifiques de Herbier.*/ |
156,6 → 158,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2006/10/31 10:31:36 jp_milcent |
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus. |
* |
* Revision 1.3 2006/10/30 18:57:17 jp_milcent |
* Début gestion des flux rss. |
* |
/trunk/configuration/hb_config_url.inc.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hb_config_url.inc.php,v 1.2 2006-10-30 18:56:52 jp_milcent Exp $ |
// CVS : $Id: hb_config_url.inc.php,v 1.3 2006-10-31 15:06:44 jp_milcent Exp $ |
/** |
* Configuration générale des url des applications de Biblio Bota |
* |
35,7 → 35,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.2 $ $Date: 2006-10-30 18:56:52 $ |
*@version $Revision: 1.3 $ $Date: 2006-10-31 15:06:44 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
53,42 → 53,42 |
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_admin'); |
define('HB_URL_COURANTE_ADMIN', $GLOBALS['_HERBIER_']['url']->getUrl()); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('action', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('action', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION', $GLOBALS['_HERBIER_']['url']->getUrl()); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec la lettre configurable.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('lettre', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('lettre', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_LETTRE', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('lettre'); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour une organisation donnée.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_ORGANISATION', $GLOBALS['_HERBIER_']['url']->getUrl()); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un équipier donné.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_equipe', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_equipe', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_EQUIPE', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_equipe'); |
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note'); |
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une collection donnée.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_coll', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_coll', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL', $GLOBALS['_HERBIER_']['url']->getUrl()); |
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note'); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_coll'); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org'); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_utilisateur', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_utilisateur', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_UTILISATEUR', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_utilisateur'); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un correspondant précis.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_cor', '%s#hba_correspondant_%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_cor', '%s#hba_correspondant_%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_COR', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_cor'); |
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un rédacteur précis.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_red', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_red', '%s', true); |
define('HB_URL_COURANTE_ADMIN_ACTION_RED', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_red'); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('action'); |
103,13 → 103,16 |
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER', $GLOBALS['_HERBIER_']['url']->getUrl()); |
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche herbier précise |
* de l'application hb_moteur de Herbier.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s'); |
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s', true); |
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER_ID', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org'); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation'); |
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche collection |
* de l'application hb_moteur de Herbier.*/ |
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'collection'); |
define('HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION_ID', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org'); |
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche collection |
* de l'application hb_moteur de Herbier.*/ |
define('HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION', $GLOBALS['_HERBIER_']['url']->getUrl()); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation'); |
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli'); |
116,6 → 119,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2006/10/30 18:56:52 jp_milcent |
* Utilisation de Pap_URL. |
* |
* Revision 1.1 2005/11/23 10:32:32 jp_milcent |
* Ajout au dépot de l'application Herbiers. |
* Elle doit à terme migrer dans eFlore. |