-- Table structure for table `parametres_uncached`
--

CREATE TABLE `parametres_uncached` (
  `id_param` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `type_param` varchar(20) DEFAULT NULL,
  `sstype_param` varchar(255) DEFAULT NULL,
  `valeur_param` text,
  `comment_param` longtext,
  `section_param` varchar(255) NOT NULL DEFAULT '',
  `gestion` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_param`),
  UNIQUE KEY `typ_sstyp` (`type_param`,`sstype_param`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `parametres_uncached`
--

INSERT INTO `parametres_uncached` VALUES (1,'internal','emptylogstatopac','0','Paramètre interne, ne pas modifier\r\n =1 si vidage des logs en cours','',0);

--
-- Table structure for table `pclassement`
--

CREATE TABLE `pclassement` (
  `id_pclass` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name_pclass` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `typedoc` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_pclass`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pclassement`
--

INSERT INTO `pclassement` VALUES (1,'Dewey 100','abcdefgijklmr');

--
-- Table structure for table `perio_relance`
--

CREATE TABLE `perio_relance` (
  `rel_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `rel_abt_num` int(10) unsigned NOT NULL DEFAULT '0',
  `rel_date_parution` date NOT NULL DEFAULT '0000-00-00',
  `rel_libelle_numero` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rel_comment_gestion` text COLLATE utf8_unicode_ci NOT NULL,
  `rel_comment_opac` text COLLATE utf8_unicode_ci NOT NULL,
  `rel_nb` int(10) unsigned NOT NULL DEFAULT '0',
  `rel_date` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`rel_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `perio_relance`
--


--
-- Table structure for table `planificateur`
--

CREATE TABLE `planificateur` (
  `id_planificateur` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `num_type_tache` int(11) NOT NULL,
  `libelle_tache` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `desc_tache` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `num_user` int(11) NOT NULL,
  `param` text COLLATE utf8_unicode_ci,
  `statut` tinyint(1) unsigned DEFAULT '0',
  `rep_upload` int(8) DEFAULT NULL,
  `path_upload` text COLLATE utf8_unicode_ci,
  `perio_heure` varchar(28) COLLATE utf8_unicode_ci DEFAULT NULL,
  `perio_minute` varchar(28) COLLATE utf8_unicode_ci DEFAULT '01',
  `perio_jour_mois` varchar(128) COLLATE utf8_unicode_ci DEFAULT '*',
  `perio_jour` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `perio_mois` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `calc_next_heure_deb` varchar(28) COLLATE utf8_unicode_ci DEFAULT NULL,
  `calc_next_date_deb` date DEFAULT NULL,
  PRIMARY KEY (`id_planificateur`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `planificateur`
--


--
-- Table structure for table `pret`
--

CREATE TABLE `pret` (
  `pret_idempr` int(10) unsigned NOT NULL DEFAULT '0',
  `pret_idexpl` int(10) unsigned NOT NULL DEFAULT '0',
  `pret_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `pret_retour` date DEFAULT NULL,
  `pret_arc_id` int(10) unsigned NOT NULL DEFAULT '0',
  `niveau_relance` int(1) NOT NULL DEFAULT '0',
  `date_relance` date DEFAULT '0000-00-00',
  `printed` int(1) NOT NULL DEFAULT '0',
  `retour_initial` date DEFAULT '0000-00-00',
  `cpt_prolongation` int(1) NOT NULL DEFAULT '0',
  `pret_temp` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `short_loan_flag` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`pret_idexpl`),
  KEY `i_pret_idempr` (`pret_idempr`),
  KEY `i_pret_arc_id` (`pret_arc_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pret`
--


--
-- Table structure for table `pret_archive`
--

CREATE TABLE `pret_archive` (
  `arc_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `arc_debut` datetime DEFAULT '0000-00-00 00:00:00',
  `arc_fin` datetime DEFAULT NULL,
  `arc_id_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `arc_empr_cp` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `arc_empr_ville` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `arc_empr_prof` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `arc_empr_year` int(4) unsigned DEFAULT '0',
  `arc_empr_categ` smallint(5) unsigned DEFAULT '0',
  `arc_empr_codestat` smallint(5) unsigned DEFAULT '0',
  `arc_empr_sexe` tinyint(3) unsigned DEFAULT '0',
  `arc_empr_statut` int(10) unsigned NOT NULL DEFAULT '1',
  `arc_empr_location` int(6) unsigned NOT NULL DEFAULT '0',
  `arc_type_abt` int(6) unsigned NOT NULL DEFAULT '0',
  `arc_expl_typdoc` int(5) unsigned DEFAULT '0',
  `arc_expl_cote` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `arc_expl_statut` smallint(5) unsigned DEFAULT '0',
  `arc_expl_location` smallint(5) unsigned DEFAULT '0',
  `arc_expl_location_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `arc_expl_location_retour` int(10) unsigned NOT NULL DEFAULT '0',
  `arc_expl_codestat` smallint(5) unsigned DEFAULT '0',
  `arc_expl_owner` mediumint(8) unsigned DEFAULT '0',
  `arc_expl_section` int(5) unsigned NOT NULL DEFAULT '0',
  `arc_expl_id` int(10) unsigned NOT NULL DEFAULT '0',
  `arc_expl_notice` int(10) unsigned NOT NULL DEFAULT '0',
  `arc_expl_bulletin` int(10) unsigned NOT NULL DEFAULT '0',
  `arc_groupe` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `arc_niveau_relance` int(1) unsigned DEFAULT '0',
  `arc_date_relance` date NOT NULL DEFAULT '0000-00-00',
  `arc_printed` int(1) unsigned DEFAULT '0',
  `arc_cpt_prolongation` int(1) unsigned DEFAULT '0',
  `arc_short_loan_flag` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`arc_id`),
  KEY `i_pa_expl_id` (`arc_expl_id`),
  KEY `i_pa_idempr` (`arc_id_empr`),
  KEY `i_pa_expl_notice` (`arc_expl_notice`),
  KEY `i_pa_expl_bulletin` (`arc_expl_bulletin`),
  KEY `i_pa_arc_fin` (`arc_fin`),
  KEY `i_pa_arc_empr_categ` (`arc_empr_categ`),
  KEY `i_pa_arc_expl_location` (`arc_expl_location`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pret_archive`
--


--
-- Table structure for table `pret_custom`
--

CREATE TABLE `pret_custom` (
  `idchamp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `titre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'text',
  `datatype` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `options` text COLLATE utf8_unicode_ci,
  `multiple` int(11) NOT NULL DEFAULT '0',
  `obligatoire` int(11) NOT NULL DEFAULT '0',
  `ordre` int(11) DEFAULT NULL,
  `search` int(1) unsigned NOT NULL DEFAULT '0',
  `export` int(1) unsigned NOT NULL DEFAULT '0',
  `filters` int(1) unsigned NOT NULL DEFAULT '0',
  `exclusion_obligatoire` int(1) unsigned NOT NULL DEFAULT '0',
  `pond` int(11) NOT NULL DEFAULT '100',
  `opac_sort` int(11) NOT NULL DEFAULT '0',
  `comment` blob NOT NULL,
  PRIMARY KEY (`idchamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pret_custom`
--


--
-- Table structure for table `pret_custom_lists`
--

CREATE TABLE `pret_custom_lists` (
  `pret_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `pret_custom_list_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pret_custom_list_lib` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ordre` int(11) DEFAULT NULL,
  KEY `i_pret_custom_champ` (`pret_custom_champ`),
  KEY `i_pret_champ_list_value` (`pret_custom_champ`,`pret_custom_list_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pret_custom_lists`
--


--
-- Table structure for table `pret_custom_values`
--

CREATE TABLE `pret_custom_values` (
  `pret_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `pret_custom_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `pret_custom_small_text` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pret_custom_text` text COLLATE utf8_unicode_ci,
  `pret_custom_integer` int(11) DEFAULT NULL,
  `pret_custom_date` date DEFAULT NULL,
  `pret_custom_float` float DEFAULT NULL,
  `pret_custom_order` int(11) NOT NULL DEFAULT '0',
  KEY `i_pret_custom_champ` (`pret_custom_champ`),
  KEY `i_pret_custom_origine` (`pret_custom_origine`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pret_custom_values`
--


--
-- Table structure for table `print_cart_tpl`
--

CREATE TABLE `print_cart_tpl` (
  `id_print_cart_tpl` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `print_cart_tpl_name` varchar(255) NOT NULL DEFAULT '',
  `print_cart_tpl_header` text NOT NULL,
  `print_cart_tpl_footer` text NOT NULL,
  PRIMARY KEY (`id_print_cart_tpl`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `print_cart_tpl`
--


--
-- Table structure for table `procs`
--

CREATE TABLE `procs` (
  `idproc` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `requete` blob NOT NULL,
  `comment` tinytext COLLATE utf8_unicode_ci NOT NULL,
  `autorisations` mediumtext COLLATE utf8_unicode_ci,
  `parameters` text COLLATE utf8_unicode_ci,
  `num_classement` int(5) unsigned NOT NULL DEFAULT '0',
  `proc_notice_tpl` int(2) unsigned NOT NULL DEFAULT '0',
  `proc_notice_tpl_field` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`idproc`),
  KEY `idproc` (`idproc`)
) ENGINE=MyISAM AUTO_INCREMENT=363 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `procs`
--

INSERT INTO `procs` VALUES (169,'Autorisation d\'utiliser toutes les procédures pour tous les utilisateurs','update procs set autorisations=concat(\' \',(select group_concat(userid separator \' \') from users order by userid),\' \')','Permet à tous les utilisateurs d\'utiliser toutes les procédures',' 1 ','',2,0,''),(170,'Autorisation d\'utiliser toutes les procédures paniers catalogue pour tous les utilisateurs','update caddie_procs set autorisations=concat(\' \',(select group_concat(userid separator \' \') from users order by userid),\' \')','Permet à tous les utilisateurs d\'utiliser toutes les procédures des paniers catalogue',' 1 ','',2,0,''),(171,'Autorisation d\'utiliser toutes les procédures paniers lecteurs pour tous les utilisateurs','update empr_caddie_procs set autorisations=concat(\' \',(select group_concat(userid separator \' \') from users order by userid),\' \')','Permet à tous les utilisateurs d\'utiliser toutes les procédures des paniers lecteurs',' 1 ','',2,0,''),(184,'Nombre de lecteurs par catégorie','select libelle as \"Catégorie Lecteur\", count(*) as \"Nb lecteurs\" from empr left join empr_categ on empr_categ=id_categ_empr where empr_categ in (!!categ_lecteur!!) group by libelle order by libelle','',' 1 ','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"categ_lecteur\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie lecteurs]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by libelle</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(185,'Nombre de lecteurs par code statistique','select libelle as \"Code statistique\", count(*) as \"Nb lecteurs\" from empr left join empr_codestat on empr_codestat=idcode where empr_codestat in (!!codestat_lecteur!!) group by libelle order by libelle','',' 1 ','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"codestat_lecteur\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code statistique]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode,libelle from empr_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(186,'Nombre de lecteurs par statut','select statut_libelle as \"Statut\", count(*) as \"Nb lecteurs\" from empr left join empr_statut on empr_statut=idstatut where empr_statut in (!!statut_lecteur!!) group by idstatut order by statut_libelle','',' 1 ','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"statut_lecteur\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Statut lecteur]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idstatut, statut_libelle from empr_statut order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(192,'Catalogue : nombre de notices monographies (total, créées dans l\'année et importées dans l\'année)','select count(distinct n1.notice_id) as \'Nombre total de notices\' from notices as n1 left join exemplaires on n1.notice_id=expl_notice left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and n1.niveau_biblio=\'m\';\r\nselect count(distinct n2.notice_id) as \"Dont créées dans l\'année\" from notices as n2 left join exemplaires on n2.notice_id=expl_notice where n2.niveau_biblio=\'m\' and year(n2.create_date)=!!annee!! and expl_location in (!!choixlocation!!);\r\nselect count(distinct n3.notice_id) as \"Dont importées dans l\'année\" from notices as n3 left join exemplaires on n3.notice_id=expl_notice left join docs_location on expl_location=idlocation where n3.niveau_biblio=\'m\' and year(n3.create_date)=!!annee!! and n3.origine_catalogage not in (1,3) and expl_location in (!!choixlocation!!);','A exécuter en partie Administration>Actions personnalisables','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(193,'Prêts : Compte des prêts / catégorie de lecteurs / type de document','SELECT if(arc_expl_notice!=0,case when typdoc=\'a\' then \'Livres\' when typdoc=\'j\' then \'Documents sonores : musique\' when typdoc=\'i\' then \'Documents sonores : livres\' when typdoc=\'g\' then \'Documents audiovisuels\' when typdoc=\'l\' then \'Livres électroniques\' else \'Autres documents\' END,\'Publication en série\') as \'Type de document\', CASE WHEN libelle IS NULL THEN \" Catégorie de lecteurs inconnue\" ELSE libelle END as Catégorie, count(distinct arc_id) as \"Nombre de prêts\" FROM pret_archive left join notices on arc_expl_notice=notice_id LEFT JOIN empr_categ ON id_categ_empr = arc_empr_categ left join docs_location on arc_expl_location=idlocation where year(arc_debut) = \'!!anneee!!\' and arc_expl_location in (!!choixlocation!!) group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"anneee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(194,'Dépenses d\'acquisitions documentaires','select sum(expl_prix) as \'Dépenses acquisitions : Livres imprimés\' from exemplaires left join notices on expl_notice=notice_id left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(expl_custom_date)=!!choixannee!!;\r\nselect sum(expl_prix) as \'Dépenses acquisitions : Publications en série imprimées\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' and year(expl_custom_date)=!!choixannee!!;\r\nselect sum(expl_prix) as \'Dépenses acquisitions : Documents sonores\' from exemplaires left join notices on expl_notice=notice_id left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc in (\'i\',\'j\') and niveau_biblio=\'m\' and year(expl_custom_date)=!!choixannee!!;\r\nselect sum(expl_prix) as \'Dépenses acquisitions : Documents audiovisuels\' from exemplaires left join notices on expl_notice=notice_id left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'g\' and niveau_biblio=\'m\' and year(expl_custom_date)=!!choixannee!!;\r\nselect sum(expl_prix) as \'Dépenses acquisitions : Livres électroniques\' from exemplaires left join notices on expl_notice=notice_id left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'l\' and niveau_biblio=\'m\' and year(expl_custom_date)=!!choixannee!!;\r\nselect sum(expl_prix) as \'Dépenses acquisitions : Autres documents non électroniques\' from exemplaires left join notices on expl_notice=notice_id left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc not in (\'a\',\'g\',\'i\',\'j\',\'l\') and niveau_biblio=\'m\' and year(expl_custom_date)=!!choixannee!!;','Somme du champ prix exemplaire.','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(195,'Collections : Documents audiovisuels et Autres documents : Acquisitions','select origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Manuscrits : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'b\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Documents cartographiques : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc in (\'e\',\'f\') and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Musique imprimée : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc in (\'c\',\'d\') and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Documents graphiques : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'k\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Autres documents : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc in (\'r\',\'m\',\'l\') and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Documents sonores : musique : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'j\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Documents sonores : livres enregistrés : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'i\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \"Documents audiovisuels : nombre d\'acquisitions\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'g\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1 order by 1;','A exécuter en partie Administration>actions personnalisables','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(196,'Collections : Acquisitions Imprimés : nombre de titres et d\'unités matérielles par propriétaire par code statistique','select codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \'Livres Imprimés : Total Unités Matérielles\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1,2 order by 1,2;\r\nselect codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \'Dont Unités Matérielles en Libre Accès (Livres Imprimés)\' from exemplaires left join docs_statut on expl_statut=idstatut left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! and pret_flag=1 group by 1,2 order by 1,2;\r\nselect codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct notice_id) as \'Livres Imprimés : Total Titres\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where  name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! group by 1,2 order by 1,2;\r\nselect codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \'Dont Unités Matérielles publiées avant 1811 (Livres Imprimés)\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and name=\"date_acquisition\")) where expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! and year REGEXP \'^[0-9]\' and year NOT REGEXP \'[[:alpha:]]\' and year < 1811 group by 1,2 order by 1,2;\r\nselect codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \'Dont Unités Matérielles publiées entre 1811 et 1914 (Livres Imprimés)\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(date.expl_custom_date)=!!annee!! and year REGEXP \'^[0-9]\' and year NOT REGEXP \'[[:alpha:]]\' and year>=1810 and year <= 1914 group by 1,2 order by 1,2;\r\nselect codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct expl_id) as \'Publications en série imprimées : Total Unités Matérielles\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' and year(date.expl_custom_date)=!!annee!! group by 1,2 order by 1,2;\r\nselect codestat_libelle as \'Code statistique\', origine.expl_custom_small_text as \'Origine\', count(distinct notice_id) as \'Publications en série imprimées : Total Titres\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as origine on (expl_id=origine.expl_custom_origine and origine.expl_custom_champ in (select idchamp from expl_custom where name=\"origine\")) left join expl_custom_values as date on (expl_id=date.expl_custom_origine and date.expl_custom_champ in (select idchamp from expl_custom where name=\"date_acquisition\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' and year(date.expl_custom_date)=!!annee!! group by 1,2 order by 1,2;','A exécuter en partie Administration>actions personnalisables','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(197,'Collections : Documents audiovisuels et Autres documents, Eliminations','select count(distinct expl_id) as \'Autres documents : Total Unités Matérielles Eliminées\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as datepilonnage on (expl_id=datepilonnage.expl_custom_origine and datepilonnage.expl_custom_champ in (select idchamp from expl_custom where name=\"date_pilon\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_statut=!!choixstatutpilon!! and expl_notice!=0 and typdoc in (\'b\',\'e\',\'f\',\'c\',\'d\',\'k\',\'r\',\'m\',\'l\') and niveau_biblio=\'m\' and year(datepilonnage.expl_custom_date)=!!annee!!;\r\nselect count(distinct expl_id) as \'Documents audiovisuels : Total Unités Matérielles Eliminées\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as datepilonnage on (expl_id=datepilonnage.expl_custom_origine and datepilonnage.expl_custom_champ in (select idchamp from expl_custom where name=\"date_pilon\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_statut=!!choixstatutpilon!! and expl_notice!=0 and typdoc in (\'i\',\'j\',\'g\') and niveau_biblio=\'m\' and year(datepilonnage.expl_custom_date)=!!annee!!;','A exécuter en partie Administration>actions personnalisables','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixstatutpilon\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Quel est le statut de vos exemplaires pilonnés ? :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idstatut,statut_libelle from docs_statut order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(198,'Collections : Documents audiovisuels et Autres documents : Unités matérielles du fonds propre','select count(distinct expl_id) as \"Manuscrits : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc=\'b\';\r\nselect count(distinct expl_id) as \"Documents cartographiques : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where  expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc in (\'e\',\'f\');\r\nselect count(distinct expl_id) as \"Musique imprimée : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc in (\'c\',\'d\');\r\nselect count(distinct expl_id) as \"Musique imprimée : Nombre d\'unités en libre accès, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc in (\'c\',\'d\') and pret_flag=1;\r\nselect count(distinct notice_id) as \"Musique imprimée : Nombre de titres, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where  expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc in (\'c\',\'d\');\r\nselect count(distinct expl_id) as \"Documents graphiques : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where  expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc=\'k\';\r\nselect count(distinct expl_id) as \"Autres documents : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where  expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc in (\'r\',\'m\',\'l\');\r\nselect count(distinct expl_id) as \"Documents sonores : musique : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc=\'j\';\r\nselect count(distinct expl_id) as \"Documents sonores : livres enregistrés : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc=\'i\';\r\nselect count(distinct expl_id) as \"Documents audiovisuels : Nombre d\'unités matérielles, fonds propre\" from exemplaires left join notices on expl_notice=notice_id left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and typdoc=\'g\';','Manuscrits, Documents cartographiques, Musique imprimée, Documents graphiques, Documents audiovisuels, Autres documents. A exécuter en partie Administration>Actions personnalisables.','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[choixloca]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS></OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(199,'Collections : Eliminations Imprimés : nombre de titres et d\'unités matérielles par propriétaire par code statistique','select codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Livres Imprimés : Total Unités Matérielles Eliminées\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join expl_custom_values as datepilonnage on (expl_id=datepilonnage.expl_custom_origine and datepilonnage.expl_custom_champ in (select idchamp from expl_custom where name=\"date_pilon\")) left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_statut=!!choixstatutpilon!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year(datepilonnage.expl_custom_date)=!!annee!! group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Publications en série imprimées : Total Unités Matérielles Eliminées\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join expl_custom_values as datepilonnage on (expl_id=datepilonnage.expl_custom_origine and datepilonnage.expl_custom_champ in (select idchamp from expl_custom where name=\"date_pilon\")) left join docs_location on expl_location=idlocation where  expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_statut=!!choixstatutpilon!! and expl_bulletin!=0 and niveau_biblio=\'s\' and year(datepilonnage.expl_custom_date)=!!annee!! group by 1 order by 1;','A exécuter en partie Administration>actions personnalisables','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixstatutpilon\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Quel est le statut de vos exemplaires pilonnés ? :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idstatut, statut_libelle from docs_statut order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(200,'Collections : Imprimés : nombre de titres et d\'unités matérielles par propriétaire par code statistique','select codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Livres Imprimés : Total Unités Matérielles\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Dont Unités Matérielles en Libre Accès (Livres Imprimés)\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation where  expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and pret_flag=1 group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct notice_id) as \'Livres Imprimés : Total Titres\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and  expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Dont Unités Matérielles publiées avant 1811\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year REGEXP \'^[0-9]\' and year NOT REGEXP \'[[:alpha:]]\' and year < 1811 group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Dont Unités matérielles publiées entre 1811 et 1914\' from exemplaires left join notices on expl_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and  expl_owner=!!choixproprio!! and expl_notice!=0 and typdoc=\'a\' and niveau_biblio=\'m\' and year REGEXP \'^[0-9]\' and year NOT REGEXP \'[[:alpha:]]\' and year>=1810 and year<=1914 group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Publications en série imprimées : Total Unités Matérielles\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct expl_id) as \'Dont Unités Matérielles en Libre Accès (Publications en série imprimées)\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' and pret_flag=1 group by 1 order by 1;\r\nselect codestat_libelle as \'Code statistique\', count(distinct notice_id) as \'Publications en série imprimées : Total Titres de Périodiques\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' group by 1 order by 1;','A exécuter en partie Administration>actions personnalisables','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(201,'Collections : Publications en série en cours par code statistique','select codestat_libelle as \'Code statistique\', case when typdoc=\'a\' then \'Imprimées\' when typdoc=\'l\' then \'Electroniques\' else \'Autres\' end as \'Format Publications en série en cours\', count(distinct notice_id) as \'Publications en série en cours : Total Titres de Périodiques\' from exemplaires left join bulletins on expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id left join docs_codestat on expl_codestat=idcode left join lenders on expl_owner=idlender left join docs_location on expl_location=idlocation where expl_location in (!!choixlocation!!) and expl_owner=!!choixproprio!! and expl_bulletin!=0 and niveau_biblio=\'s\' and year(exemplaires.create_date)=!!annee!! group by 1,2 order by 1,2;','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire : ]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(202,'Lecteurs : Comptes des emprunteurs actifs par catégorie et code statistique (à exécuter impérativement en fin d\'année)','select empr_codestat.libelle as \'Code statistique\', count(distinct id_empr) as \'Total emprunteurs actifs\' from empr left join empr_categ on empr_categ=id_categ_empr left join empr_codestat on empr_codestat=idcode left join docs_location on empr_location=idlocation where empr_location in (!!choixlocation!!) and (year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!!) and year(last_loan_date)=!!annee!! and empr_categ in (!!choixcateg!!) group by 1 order by 1','Un emprunteur est actif s\'il a une adhésion valide et a emprunté un ouvrage dans l\'année renseignée','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(203,'Lecteurs : Comptes des emprunteurs actifs par catégorie, tranche d\'âge et par sexe (à exécuter impérativement en fin d\'année)','select case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'Sexe non renseigné\' end as Sexe, CASE WHEN  (!!annee!! - empr_year) <= 14 THEN \'De 0 à 14 ans\' WHEN (!!annee!! - empr_year) >14 and (!!annee!! - empr_year) <= 64 THEN \'De 15 à 64 ans\' WHEN ((!!annee!! - empr_year) >64 and empr_year!=0) THEN \'De 65 ans et plus\' ELSE \'Année de naissance non renseignée\' END as \"Tranche d\'âge\",count(distinct id_empr) as \'Total emprunteurs actifs\' from empr left join empr_categ on empr_categ=id_categ_empr left join docs_location on empr_location=idlocation where empr_location in (!!choixlocation!!) and (year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!!) and year(last_loan_date)=!!annee!! and empr_categ in (!!choixcateg!!) group by 1,2 order by 1,2','Un emprunteur est actif s\'il a une adhésion valide et a emprunté un ouvrage dans l\'année renseignée','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(204,'Lecteurs : Compte des lecteurs actifs (adhésion valide dans l\'année renseignée)','select case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'Sexe non renseigné\' end as Sexe, CASE WHEN  (!!annee!! - empr_year) <= 14 THEN \'De 0 à 14 ans\' WHEN (!!annee!! - empr_year) >14 and (!!annee!! - empr_year) <= 64 THEN \'De 15 à 64 ans\' WHEN ((!!annee!! - empr_year) >64 and empr_year!=0) THEN \'De 65 ans et plus\' ELSE \'Année de naissance non renseignée\' END as \"Tranche d\'âge\",count(distinct id_empr) as \'Total lecteurs actifs\' from empr left join empr_categ on empr_categ=id_categ_empr left join docs_location on empr_location=idlocation where empr_location in (!!choixlocation!!) and (year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!!) and empr_categ in (!!choixcateg!!) group by 1,2 order by 1,2','Par catégorie, par tranche d\'âge et par sexe','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(205,'Lecteurs : Compte des lecteurs actifs par code statistique (adhésion valide dans l\'année renseignée)','select empr_codestat.libelle as \'Code statistique\', count(distinct id_empr) as \'Total lecteurs actifs\' from empr left join empr_categ on empr_categ=id_categ_empr left join empr_codestat on empr_codestat=idcode left join docs_location on empr_location=idlocation where (year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!!) and empr_location in (!!choixlocation!!) and empr_categ in (!!choixcateg!!) group by 1 order by 1','Par catégorie et code statistique','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(206,'Lecteurs : Compte des nouveaux inscrits','select case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'Sexe non renseigné\' end as Sexe, CASE WHEN  (!!annee!! - empr_year) <= 14 THEN \'De 0 à 14 ans\' WHEN (!!annee!! - empr_year) >14 and (!!annee!! - empr_year) <= 64 THEN \'De 15 à 64 ans\' WHEN ((!!annee!! - empr_year) >64 and empr_year!=0) THEN \'De 65 ans et plus\' ELSE \'Année de naissance non renseignée\' END as \"Tranche d\'âge\", count(distinct id_empr) as \'Total nouveaux inscrits\' from empr left join empr_categ on empr_categ=id_categ_empr left join docs_location on empr_location=idlocation where year(empr_date_adhesion)=!!annee!! and empr_location in (!!choixlocation!!) and empr_categ in (!!choixcateg!!) group by 1,2 order by 1,2','Lecteurs inscrits dans l\'année renseignée, par catégorie, tranche d\'âge et par sexe','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(207,'Lecteurs : Compte des nouveaux inscrits par code statistique','select empr_codestat.libelle as \'Code statistique\', count(distinct id_empr) as \'Total nouveaux inscrits\' from empr left join empr_categ on empr_categ=id_categ_empr left join empr_codestat on empr_codestat=idcode left join docs_location on empr_location=idlocation where year(empr_date_adhesion)=!!annee!! and empr_location in (!!choixlocation!!) and empr_categ in (!!choixcateg!!) group by 1 order by 1','Lecteurs inscrits dans l\'année renseignée, par catégorie et par code statistique','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',5,0,''),(208,'Nombre d\'exemplaires achetés/donnés dans une année / support / Localisation / Codestat / Section','select location_libelle as Localisation,codestat_libelle as Codestat, section_libelle as Section, tdoc_libelle as Support, a0.expl_custom_small_text as Type,count(distinct a1.expl_custom_origine) as Total from expl_custom_values as a0, expl_custom_values as a1, exemplaires left join docs_type on expl_typdoc=idtyp_doc LEFT JOIN docs_location ON idlocation= expl_location LEFT JOIN docs_codestat ON idcode=expl_codestat LEFT JOIN docs_section ON idsection=expl_section where a0.expl_custom_champ=2 and a1.expl_custom_champ=3  and date_format(a1.expl_custom_date,\'%Y\')=\'!!annee!!\' and a1.expl_custom_origine=a0.expl_custom_origine and expl_id=a1.expl_custom_origine and expl_location in (!!locationn!!) group by a0.expl_custom_small_text, Support, Localisation, Codestat, Section ORDER BY Localisation, Codestat, Section','Utiliser cette stat si le champ \"date d\'achat\" est renseigné','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlocation, location_libelle FROM docs_location ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(209,'Nombre d\'exemplaires achetés/donnés dans une année / support /  Section','select section_libelle as Section, tdoc_libelle as Support, a0.expl_custom_small_text as Type,count(distinct a1.expl_custom_origine) as Total from expl_custom_values as a0, expl_custom_values as a1, exemplaires left join docs_type on expl_typdoc=idtyp_doc LEFT JOIN docs_section ON idsection=expl_section where a0.expl_custom_champ=2 and a1.expl_custom_champ=3 and date_format(a1.expl_custom_date,\'%Y\')=\'!!annee!!\' and a1.expl_custom_origine=a0.expl_custom_origine and expl_id=a1.expl_custom_origine and expl_section in (!!section!!) and expl_typdoc IN (!!suppoort!!) group by a0.expl_custom_small_text, Support, Section ORDER BY Section, Support','Utiliser cette stat si le champ \"date d\'achat\" est renseigné','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"section\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"suppoort\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idtyp_doc, tdoc_libelle FROM docs_type ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(210,'Nombre d\'exemplaires acquis par section et par localisation pour l\'année en fonction de la date d\'achat','select location_libelle as Localisation, section_libelle as Section, count(*) as Nombre from exemplaires LEFT JOIN docs_section ON idsection=expl_section LEFT JOIN docs_location ON idlocation=expl_location LEFT JOIN expl_custom_values ON expl_custom_origine = expl_id AND expl_custom_champ = 2 where idlocation in (!!locationn!!) and expl_custom_date LIKE \"!!anneeencours!!%\" group by location_libelle, section_libelle order by location_libelle, section_libelle ','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>Select idlocation, location_libelle FROM docs_location ORDER BY location_libelle</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"anneeencours\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année en cours]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS></OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(211,'Nombre d\'exemplaires créés par section et par localisation pour l\'année en cours','select location_libelle as Localisation, section_libelle as Section, count(*) as Nombre from exemplaires LEFT JOIN docs_section ON idsection=expl_section LEFT JOIN docs_location ON idlocation=expl_location where idlocation in (!!locationn!!) and create_date LIKE \"!!anneeencours!!%\" group by location_libelle, section_libelle order by location_libelle, section_libelle ','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>Select idlocation, location_libelle FROM docs_location ORDER BY location_libelle</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"anneeencours\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année en cours]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS></OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(212,'Nombre de documents achetés et donnés','select location_libelle as Localisation,codestat_libelle as Codestat, tdoc_libelle as Support, a0.expl_custom_small_text as Type,count(distinct a1.expl_custom_origine) as Total from expl_custom_values as a0, expl_custom_values as a1, exemplaires left join docs_type on expl_typdoc=idtyp_doc LEFT JOIN docs_location ON idlocation= expl_location LEFT JOIN docs_codestat ON idcode=expl_codestat where a0.expl_custom_champ=2 and a1.expl_custom_champ=3 and date_format(a1.expl_custom_date,\'%Y\')=\'!!annee!!\' and a1.expl_custom_origine=a0.expl_custom_origine and expl_id=a1.expl_custom_origine and expl_location in (!!locationn!!) group by a0.expl_custom_small_text, Support, Localisation, Codestat ORDER BY Localisation, Codestat','pour une année et par support / Localisation / Code statistique','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(213,'Nombre de documents achetés/donnés ou repris par Statut par Support par Section','select tdoc_libelle as Support, section_libelle as Section, statut_libelle as Statut, a0.expl_custom_small_text as Type,count(distinct a1.expl_custom_origine) as Total from expl_custom_values as a0, expl_custom_values as a1, exemplaires LEFT JOIN docs_statut ON idstatut=expl_statut LEFT JOIN docs_type ON idtyp_doc=expl_typdoc LEFT JOIN docs_section ON expl_section=idsection where a0.expl_custom_champ=2 and a1.expl_custom_origine=a0.expl_custom_origine and year(a1.expl_custom_date)=\'!!anneeacq!!\' and expl_typdoc IN (!!supoort!!) and expl_section IN (!!sectionn!!) and expl_id=a1.expl_custom_origine group by Section, Statut, Support, a0.expl_custom_small_text','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"anneeacq\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"supoort\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idtyp_doc, tdoc_libelle FROM docs_type ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idsection, section_libelle FROM docs_section ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(214,'Nombre d\'exemplaires par section','select section_libelle as Section, count(*) as Nombre from exemplaires, docs_section where idsection=expl_section group by idsection, section_libelle order by 1','','1','',14,0,''),(215,'Nombre d\'exemplaires par code statistique','select codestat_libelle as \"Code statistique\", count(*) as Nombre from exemplaires, docs_codestat where idcode=expl_codestat group by codestat_libelle order by codestat_libelle','','1','',14,0,''),(216,'Nombre d\'exemplaires par cote','select left(expl_cote,5) as \'Début de cote\', count(expl_id) from exemplaires group by 1 order by 1','Prise en compte de la cote dans sa totalité','1','',14,0,''),(217,'Nombre d\'exemplaires par début de cote 1','select left(expl_cote,3), count(expl_id) from exemplaires group by 1 order by 1','3 premiers caractères de la cote / classement sur cote','1','',14,0,''),(218,'Nombre d\'exemplaires par début de cote 2','select left(expl_cote,3), count(expl_id) from exemplaires group by 1 order by 2 DESC','3 premiers caractères de la cote / classement sur fréquence d\'utilisation','1','',14,0,''),(219,'Nombre d\'exemplaires par début de cote et par localisation','SELECT location_libelle as Localisation, left(expl_cote,3) as Cote, count(expl_id) FROM exemplaires LEFT JOIN docs_location ON idlocation=expl_location WHERE expl_location in (!!locationn!!) GROUP BY Localisation, Cote ORDER BY Localisation, Cote','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlocation, location_libelle FROM docs_location ORDER BY 2]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(220,'Nombre d\'exemplaires par début de cote et par localisation et par section','SELECT location_libelle as Localisation, section_libelle as Section, left(expl_cote,3) as Cote, count(expl_id) as Frequence FROM exemplaires LEFT JOIN docs_location ON idlocation=expl_location LEFT JOIN docs_section ON idsection=expl_section WHERE expl_section in (!!sectionn!!) AND expl_location in (!!locationn!!) GROUP BY Localisation, Section, Cote ORDER BY Localisation, Section, Frequence DESC','3 premiers caractères de la cote / classement sur fréquence d\'utilisation','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(221,'Nombre d\'exemplaires par localisation','select location_libelle as Localisation, count(*) as Nombre from exemplaires, docs_location where idlocation=expl_location group by idlocation, location_libelle order by idlocation','','1','',14,0,''),(222,'Nombre d\'exemplaires par localisation / code statistique','select location_libelle as Localisation, codestat_libelle as \"Code statistique\", count(*) as Nombre from exemplaires, docs_location, docs_codestat where idlocation=expl_location and expl_codestat=idcode group by location_libelle,codestat_libelle order by 1,2','','1','',14,0,''),(223,'Nombre d\'exemplaires par localisation / section','select location_libelle as Localisation, section_libelle as Section, count(*) as Nombre from exemplaires, docs_location, docs_section where idlocation=expl_location and idsection=expl_section group by location_libelle,section_libelle order by 1,2','','1','',14,0,''),(224,'Nombre d\'exemplaires par localisation / statut','select location_libelle as Localisation, statut_libelle as Statut, count(*) as Nombre from exemplaires, docs_location, docs_statut where idlocation=expl_location and idstatut=expl_statut group by location_libelle,statut_libelle order by 1,2','','1','',14,0,''),(225,'Nombre d\'exemplaires par localisation / support','select location_libelle as Localisation, tdoc_libelle as Support, count(*) as Nombre from exemplaires left join docs_location on idlocation=expl_location left join docs_type on expl_typdoc=idtyp_doc where expl_typdoc in (!!choixsupport!!) group by location_libelle,tdoc_libelle order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(226,'Nombre d\'exemplaires par origine de l\'exemplaire','select a0.expl_custom_small_text as Type,count(distinct a1.expl_custom_origine) as Total from expl_custom_values as a0, expl_custom_values as a1, exemplaires where a0.expl_custom_champ=2 and a1.expl_custom_origine=a0.expl_custom_origine and expl_id=a1.expl_custom_origine group by a0.expl_custom_small_text','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',14,0,''),(227,'Nombre d\'exemplaires par propriétaire','select lender_libelle as Propriétaire, count(*) as Nombre from exemplaires, lenders where idlender=expl_owner group by expl_owner, lender_libelle','','1','',14,0,''),(228,'Nombre d\'exemplaires pilonnés','SELECT statut_libelle as Statut,location_libelle as Localisation, codestat_libelle as Codestat, tdoc_libelle as Support, count(expl_id) as \"Nombre de documents retirés de l\'inventaire\" FROM exemplaires LEFT JOIN docs_type on expl_typdoc=idtyp_doc LEFT JOIN docs_location ON idlocation= expl_location LEFT JOIN docs_codestat ON idcode=expl_codestat LEFT JOIN docs_statut ON idstatut=expl_statut  WHERE expl_statut=15 and idlocation IN (!!locationn!!) group by Localisation, Support, Codestat order by Localisation, Support, Codestat','Par localisation, support et Code statistique','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(229,'Nombre d\'exemplaires par propriétaire / code statistique','select lender_libelle as Propriétaire, codestat_libelle as \"Code statistique\", count(*) as Nombre from exemplaires, lenders, docs_codestat where expl_owner=idlender and expl_codestat=idcode group by lender_libelle,codestat_libelle order by lender_libelle,codestat_libelle ','','1','',14,0,''),(231,'Nombre d\'exemplaires par propriétaire / localisation','select lender_libelle as Propriétaire, location_libelle as Localisation, count(*) as Nombre from exemplaires, lenders, docs_location where expl_owner=idlender and idlocation=expl_location group by lender_libelle, location_libelle order by 1,2','','1','',14,0,''),(232,'Nombre d\'exemplaires par propriétaire / localisation / code statistique','select lender_libelle as Propriétaire, location_libelle as Localisation, codestat_libelle as \"Code statistique\", count(*) as Nombre from exemplaires, lenders, docs_location, docs_codestat where expl_owner=idlender and idlocation=expl_location and expl_codestat=idcode group by lender_libelle,location_libelle,codestat_libelle order by 1,2,3','','1','',14,0,''),(233,'Nombre d\'exemplaires par propriétaire / localisation / section','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, count(*) as Nombre from exemplaires, lenders, docs_location, docs_section where expl_owner=idlender and idlocation=expl_location and idsection=expl_section group by lender_libelle,location_libelle,section_libelle order by 1,2,3','','1','',14,0,''),(234,'Nombre d\'exemplaires par propriétaire/localisation/section/support/code statistique','SELECT count(expl_id) as \"Nombre d\'exemplaires\", lender_libelle as Propriétaire, location_libelle as Localisation,codestat_libelle as Codestat, tdoc_libelle as Support, section_libelle as Section FROM exemplaires JOIN lenders ON idlender=expl_owner left join docs_type on expl_typdoc=idtyp_doc LEFT JOIN docs_location ON idlocation= expl_location LEFT JOIN docs_codestat ON idcode=expl_codestat LEFT JOIN docs_section ON idsection=expl_section WHERE expl_location IN (!!locationn!!) AND expl_section IN (!!sectionn!!) AND expl_codestat IN (!!codestatt!!) AND expl_typdoc IN (!!typdocc!!) AND expl_owner IN (!!proprioo!!) GROUP BY Propriétaire, Localisation, Codestat, Support, Section ORDER BY Propriétaire, Localisation, Codestat, Support, Section','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Location]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"codestatt\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[CodeStatistique]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idcode, codestat_libelle FROM docs_codestat ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"typdocc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idtyp_doc, tdoc_libelle FROM docs_type ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"proprioo\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlender, lender_libelle FROM lenders ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(235,'Nombre d\'exemplaires par propriétaire / localisation / statut','select lender_libelle as Propriétaire, location_libelle as Localisation, statut_libelle as Statut, count(*) as Nombre from exemplaires, lenders, docs_location, docs_statut where expl_owner=idlender and idlocation=expl_location and idstatut=expl_statut group by lender_libelle,location_libelle,statut_libelle order by 1,2,3','','1','',14,0,''),(236,'Nombre d\'exemplaires par propriétaire / localisation / support','select lender_libelle as Propriétaire, location_libelle as Localisation, tdoc_libelle as Support, count(*) as Nombre from exemplaires left join lenders on expl_owner=idlender left join docs_location on idlocation=expl_location left join docs_type on expl_typdoc=idtyp_doc where expl_typdoc in (!!choixsupport!!) group by lender_libelle,location_libelle,tdoc_libelle order by 1,2,3 ','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(238,'Nombre d\'exemplaires par propriétaire / section','select lender_libelle as Propriétaire, section_libelle as Section, count(*) as Nombre from exemplaires, lenders, docs_section where expl_owner=idlender and idsection=expl_section group by lender_libelle,section_libelle order by 1,2','','1','',14,0,''),(240,'Nombre d\'exemplaires par propriétaire/statut/localisation/section/support/code statistique','SELECT count(expl_id) as \"Nombre d\'exemplaires\", lender_libelle as Propriétaire, statut_libelle AS Statut, location_libelle as Localisation,codestat_libelle as Codestat, tdoc_libelle as Support, section_libelle as Section FROM exemplaires JOIN lenders ON idlender=expl_owner left join docs_type on expl_typdoc=idtyp_doc LEFT JOIN docs_location ON idlocation= expl_location LEFT JOIN docs_codestat ON idcode=expl_codestat LEFT JOIN docs_section ON idsection=expl_section JOIN docs_statut ON idstatut=expl_statut WHERE expl_location IN (!!locationn!!) AND expl_section IN (!!sectionn!!) AND expl_codestat IN (!!codestatt!!) AND expl_typdoc IN (!!typdocc!!) AND expl_owner IN (!!proprioo!!) AND expl_statut IN (!!statutt!!) GROUP BY Propriétaire, Localisation, Codestat, Support, Section, Statut ORDER BY Propriétaire, Localisation, Codestat, Support, Section, Statut','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Location]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"codestatt\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[CodeStatistique]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idcode, codestat_libelle FROM docs_codestat ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"typdocc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idtyp_doc, tdoc_libelle FROM docs_type ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"proprioo\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlender, lender_libelle FROM lenders ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"statutt\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Statut]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idstatut, statut_libelle FROM docs_statut ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(241,'Nombre d\'exemplaires par propriétaire / support','select lender_libelle as Propriétaire, tdoc_libelle as Support, count(*) as Nombre from exemplaires left join lenders on expl_owner=idlender left join docs_type on expl_typdoc=idtyp_doc where expl_typdoc in (!!choixsupport!!) group by lender_libelle,tdoc_libelle order by lender_libelle,tdoc_libelle ','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(242,'Nombre d\'exemplaires par propriétaire/support/code statistique','SELECT count(expl_id) as \"Nombre d\'exemplaires\", lender_libelle as Propriétaire, tdoc_libelle as Support, codestat_libelle as Codestat FROM exemplaires JOIN lenders ON idlender=expl_owner left join docs_type on expl_typdoc=idtyp_doc JOIN docs_codestat ON idcode=expl_codestat WHERE expl_codestat IN (!!codestatt!!) AND expl_typdoc IN (!!typdocc!!) AND expl_owner IN (!!proprioo!!) GROUP BY Propriétaire, Codestat, Support ORDER BY Propriétaire, Codestat, Support','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Location]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"codestatt\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[CodeStatistique]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idcode, codestat_libelle FROM docs_codestat ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"typdocc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idtyp_doc, tdoc_libelle FROM docs_type ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"proprioo\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlender, lender_libelle FROM lenders ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(243,'Nombre d\'exemplaires par statut','select statut_libelle as Statut, count(*) as Nombre from exemplaires, docs_statut where idstatut=expl_statut group by statut_libelle order by statut_libelle','','1','',14,0,''),(244,'Nombre d\'exemplaires par support','select tdoc_libelle as Support, count(expl_id) as \"Nombre d\'exemplaires\" from exemplaires left join docs_type on expl_typdoc=idtyp_doc where expl_typdoc in (!!choixsupport!!) group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(245,'Nombre d\'exemplaires par support / localisation / section','select tdoc_libelle as Support, location_libelle as Localisation, section_libelle as Section, count(expl_id) as \"Nombre d\'exemplaires\" from exemplaires left join docs_location on idlocation=expl_location left join docs_section on idsection=expl_section left join docs_type on expl_typdoc=idtyp_doc where expl_typdoc in (!!choixsupport!!) group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',14,0,''),(246,'Nombre d\'exemplaires par type de document','select case when typdoc=\'a\' then \'Texte imprimé\' when typdoc=\'b\' then \'Texte manuscrit\' when typdoc=\'c\' then \'Partition musicale imprimée\' when typdoc=\'d\' then \'Partition musicale manuscrite\' when typdoc=\'e\' then \'Document cartographique imprimé\' when typdoc=\'f\' then \'Document cartographique manuscrit\' when typdoc=\'g\' then \'Document projeté ou vidéo\' when typdoc=\'i\' then \'Enregistrement sonore non musical\' when typdoc=\'j\' then \'Enregistrement sonore musical\' when typdoc=\'k\' then \'Document graphique à deux dimensions\' when typdoc=\'l\' then \'Document électronique\' when typdoc=\'m\' then \'Document multimédia\' when typdoc=\'r\' then \'Objet à 3 dimensions, artefacts,...\' when typdoc=\'u\' then \'Article\' when typdoc=\'v\' then \'Périodique\' ELSE \'n/a\' END as \'Type de document\', count(expl_id) as Total from notices left join exemplaires on notice_id=expl_notice group by 1 order by 1','','1','',14,0,''),(248,'Nombre de lecteurs','Select count(id_empr) as \'Nombre de lecteurs\' from empr','','1','',9,0,''),(249,'Nombre de lecteurs par type d\'abonnements','select count(*) as \"Nombre de lecteurs\", type_abt_libelle as \'Type abonnement\' from empr join type_abts on type_abt=id_type_abt group by 2 order by 2','','1','',9,0,''),(250,'Nombre de lecteurs par type d\'abonnements où date d\'adhésion est comprise dans la période saisie','select count(*) as \"Nombre de lecteurs\", type_abt_libelle as \'Type abonnement\' from empr join type_abts on type_abt=id_type_abt WHERE empr_date_adhesion BETWEEN \"!!date1!!\" and \"!!date2!!\" group by 2 order by 2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(251,'Nombre de lecteurs par type d\'abonnements où date d\'expiration est comprise dans la période saisie','select count(*) as \"Nombre de lecteurs\", type_abt_libelle as \'Type abonnement\' from empr join type_abts on type_abt=id_type_abt WHERE empr_date_expiration BETWEEN \"!!date1!!\" and \"!!date2!!\" group by 2 order by 2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(252,'Nombre de lecteurs actifs par type d\'abonnements','select count(*) as \"Nombre de lecteurs\", type_abt_libelle as \'Type abonnement\' from empr join type_abts on type_abt=id_type_abt where(year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!! or (year(empr_date_expiration)>=!!annee!! and year(empr_date_adhesion)<=!!annee!!)) group by 2 order by 2','','1','',9,0,''),(253,'Nombre de lecteurs actifs par catégorie pour une année','SELECT CASE WHEN  (!!annee!! - empr_year) <= 11 THEN \"0 à 11 ans\" WHEN (!!annee!! - empr_year) >11 and (!!annee!! - empr_year)<=15 THEN \"12 à 15 ans\" WHEN (!!annee!! - empr_year)>14 and (!!annee!! - empr_year)<=24 THEN \"15 à 24 ans\" WHEN (!!annee!! - empr_year)>24 THEN \"25 ans et plus\"  ELSE \"Age non défini\" END as \"Tranche d\'âge\", libelle as Catégorie, count(id_empr) as \'Nombre lecteurs\' from empr LEFT JOIN empr_categ ON id_categ_empr=empr_categ where empr_categ in (!!categorie!!) and(year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!! or (year(empr_date_expiration)>=!!annee!! and year(empr_date_adhesion)<=!!annee!!)) group by 2,1 ORDER BY 2,1','Nombre de lecteurs par catégorie','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[categorie]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT id_categ_empr, libelle FROM empr_categ ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(254,'Nombre de lecteurs actifs par code statistique /sexe/ tranche d\'âge pour une année','select case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'indéterminé\' end as Sexe, libelle as \'Code statistique\', CASE WHEN  (!!param1!! - empr_year) <= 13 THEN \'Jusque 13 ans\' WHEN (!!param1!! - empr_year) >13 and (!!param1!! - empr_year)<=24 THEN \'14 à 24 ans\' WHEN (!!param1!! - empr_year)>24 and (!!param1!! - empr_year)<=59 THEN \'25 à 29 ans\' WHEN (!!param1!! - empr_year)>59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as categ_age, count(id_empr) from empr left join empr_codestat on empr_codestat=idcode where (year(empr_date_adhesion)=!!param1!! or year(empr_date_expiration)=!!param1!! or (year(empr_date_expiration)>=!!param1!! and year(empr_date_adhesion)<=!!param1!!)) group by libelle,1, categ_age order by libelle,1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(255,'Nombre de lecteurs actifs par code statistique / tranche d\'âge pour une année','select libelle as \'Code statistique\', CASE WHEN  (!!param1!! - empr_year) <= 13 THEN \'Jusque 13 ans\' WHEN (!!param1!! - empr_year) >13 and (!!param1!! - empr_year)<=24 THEN \'14 à 24 ans\' WHEN (!!param1!! - empr_year)>24 and (!!param1!! - empr_year)<=59 THEN \'25 à 29 ans\' WHEN (!!param1!! - empr_year)>59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as categ_age, count(id_empr) from empr left join empr_codestat on empr_codestat=idcode where (year(empr_date_adhesion)=!!param1!! or year(empr_date_expiration)=!!param1!! or (year(empr_date_expiration)>=!!param1!! and year(empr_date_adhesion)<=!!param1!!)) group by libelle,categ_age order by libelle','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(256,'Nombre de lecteurs actifs par sexe et tranche d\'age pour une année','SELECT count(*), case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'erreur sur sexe\' end as Sexe, CASE WHEN  (!!param1!! - empr_year) <= 13 THEN \'Jusque 13 ans\' WHEN (!!param1!! - empr_year) >13 and (!!param1!! - empr_year) <= 24 THEN \'14 à 24 ans\' WHEN (!!param1!! - empr_year) >24 and (!!param1!! - empr_year) <= 59 THEN \'25 à 59 ans\' WHEN (!!param1!! - empr_year) >59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as categ_age from empr where (year(empr_date_adhesion)=!!param1!! or year(empr_date_expiration)=!!param1!! or (year(empr_date_expiration)>=!!param1!! and year(empr_date_adhesion)<=!!param1!!)) group by sexe, categ_age','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by libelle</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(257,'Nombre de lecteurs actifs par sexe, tranche d\'âge et commune pour une année','SELECT count(*) as \"Nbre\", case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'Non précisé\' end as \"Sexe\", CASE WHEN  (!!param1!! - empr_year) <= 14 THEN \'Jusque 14 ans\' WHEN (!!param1!! - empr_year) >14 and (!!param1!! - empr_year) <= 24 THEN \'15 à 24 ans\' WHEN (!!param1!! - empr_year) >24 and (!!param1!! - empr_year) <= 59 THEN \'25 à 59 ans\' WHEN (!!param1!! - empr_year) >59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as \"Tranche âge\", empr_ville as \"Ville\" from empr where (year(empr_date_adhesion)=!!param1!! or year(empr_date_expiration)=!!param1!! or (year(empr_date_expiration)>=!!param1!! and year(empr_date_adhesion)<=!!param1!!)) and empr_categ not in (9,10,11) group by sexe, \"Tranche âge\", empr_ville order by Sexe, empr_ville, \"Tranche âge\"','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(258,'Nombre de lecteurs actifs par tranche d\'âge pour une année','SELECT count(*), CASE WHEN  (!!param1!! - empr_year) <= 13 THEN \'Jusque 13 ans\' WHEN (!!param1!! - empr_year) >13 and (!!param1!! - empr_year)<=24 THEN \'14 à 24 ans\' WHEN (!!param1!! - empr_year)>24 and (!!param1!! - empr_year)<=59 THEN \'25 à 29 ans\' WHEN (!!param1!! - empr_year)>59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as categ_age from empr where (year(empr_date_adhesion)=!!param1!! or year(empr_date_expiration)=!!param1!! or (year(empr_date_expiration)>=!!param1!! and year(empr_date_adhesion)<=!!param1!!))  group by categ_age','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(259,'Nombre de lecteurs actifs par ville de résidence pour une ou plusieurs catégorie','select empr_ville as Ville, count(*) as Nbre from empr where empr_categ in (!!categorie!!) and (year(empr_date_adhesion)=!!annee!! or year(empr_date_expiration)=!!annee!! or (year(empr_date_expiration)>=!!annee!! and year(empr_date_adhesion)<=!!annee!!)) group by empr_ville with rollup','Attention ne compte que les lecteurs dont le début ou la fin d\'adhésion est dans l\'année renseignée.','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by libelle</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(261,'Nombre de lecteurs par catégorie où date d\'adhésion est comprise dans la période saisie','SELECT libelle as Catégorie, count(id_empr) as \'Nombre lecteurs\' from empr LEFT JOIN empr_categ ON id_categ_empr=empr_categ where empr_categ in (!!categorie!!) AND empr_date_adhesion BETWEEN \"!!date1!!\" and \"!!date2!!\" group by 1 ORDER BY 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[categorie]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT id_categ_empr, libelle FROM empr_categ ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(262,'Nombre de lecteurs par catégorie où date d\'expiration est comprise dans la période saisie','SELECT libelle as Catégorie, count(id_empr) as \'Nombre lecteurs\' from empr LEFT JOIN empr_categ ON id_categ_empr=empr_categ where empr_categ in (!!categorie!!) AND empr_date_adhesion BETWEEN \"!!date1!!\" and \"!!date2!!\" group by 1 ORDER BY 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[categorie]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT id_categ_empr, libelle FROM empr_categ ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(263,'Nombre de lecteurs par catégorie et localisation','select libelle as Catégorie, location_libelle as Localisation, count(*) as \'Nombre de lecteurs\' from empr, empr_categ, docs_location where id_categ_empr=empr_categ and empr_location=idlocation group by libelle, location_libelle order by libelle','','1','',9,0,''),(265,'Nombre de lecteurs par code statistique / sexe','select libelle as \'Code statistique\', case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'indéterminé\' end as Sexe, count(id_empr) from empr left join empr_codestat on empr_codestat=idcode group by libelle,sexe order by libelle','','1','',9,0,''),(267,'Nombre de lecteurs par code statistique /sexe/ tranche d\'âge où date d\'expiration est comprise dans la période saisie','select case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'indéterminé\' end as Sexe, libelle as \'Code statistique\', CASE WHEN  (!!param1!! - empr_year) <= 14 THEN \'Jusque 14 ans\' WHEN (!!param1!! - empr_year) >14 and (!!param1!! - empr_year)<=64 THEN \'15 à 64 ans\' WHEN (!!param1!! - empr_year)>64 and (!!param1!! - empr_year)<=99 THEN \'65 à 99 ans\' WHEN (!!param1!! - empr_year)>99 THEN \'100 ans et plus\'  ELSE \'erreur sur age\' END as categ_age, count(id_empr) as Nombre from empr left join empr_codestat on empr_codestat=idcode where empr_date_expiration BETWEEN \"!!date1!!\" and \"!!date2!!\" group by libelle,1, categ_age order by libelle,1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(268,'Nombre de lecteurs par code statistique /sexe/ tranche d\'âge où date d\'adhésion est comprise dans la période saisie','select case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'indéterminé\' end as Sexe, libelle as \'Code statistique\', CASE WHEN  (!!param1!! - empr_year) <= 14 THEN \'Jusque 14 ans\' WHEN (!!param1!! - empr_year) >14 and (!!param1!! - empr_year)<=64 THEN \'15 à 64 ans\' WHEN (!!param1!! - empr_year)>64 and (!!param1!! - empr_year)<=99 THEN \'65 à 99 ans\' WHEN (!!param1!! - empr_year)>99 THEN \'100 ans et plus\'  ELSE \'erreur sur age\' END as categ_age, count(id_empr) as Nombre from empr left join empr_codestat on empr_codestat=idcode where empr_date_adhesion BETWEEN \"!!date1!!\" and \"!!date2!!\" group by libelle,1, categ_age order by libelle,1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(270,'Nombre de lecteurs par date de fin d\'adhésion','SELECT location_libelle as Localisation, count(id_empr) as \"Nombre de lecteurs\" FROM empr LEFT JOIN docs_location ON idlocation=empr_location WHERE YEAR(empr_date_expiration)=!!anneee!! GROUP BY Localisation ORDER BY Localisation','Nombre de lecteurs où année d\'expiration de l\'abonnement = année saisie','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"anneee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année d\'échéance d\'abonnement]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(271,'Nombre de lecteurs en débit','Select count(id_empr) as \'Nombre de lecteurs\' from empr LEFT JOIN comptes ON proprio_id=id_empr LEFT JOIN transactions ON compte_id=id_compte WHERE montant>0 AND sens=\'-1\' AND realisee=\'0\'','','1','',9,0,''),(272,'Nombre de lecteurs en débit / montant','Select montant AS Montant, count(*) as \'Nombre de lecteurs\' from empr LEFT JOIN comptes ON proprio_id=id_empr LEFT JOIN transactions ON compte_id=id_compte WHERE montant>0 AND sens=\'-1\' AND realisee=\'0\' GROUP BY montant','','1','',9,0,''),(273,'Nombre de lecteurs ayant emprunté par type d\'abonnement pour une journée','select type_abt_libelle as \"Type d\'abonnement\", count(distinct arc_id_empr) as \'Nombre de lecteurs\' from pret_archive left join empr on arc_id_empr=id_empr left join type_abts on type_abt=id_type_abt where arc_id_empr!=0 and date_format(arc_debut,\'%Y-%m-%d\')=\'!!date1!!\' group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(274,'Nombre de lecteurs ayant emprunté par type d\'abonnement pour une période et par localisation','select type_abt_libelle as \"Type d\'abonnement\", count(distinct arc_id_empr) as \'Nombre de lecteurs\' from pret_archive left join empr on arc_id_empr=id_empr left join type_abts on type_abt=id_type_abt where arc_id_empr!=0 and arc_debut between \'!!date1!!\' and \'!!date2!!\' and empr_location in (!!localisation!!) group by 1 order by 1','se base sur l\'historique des prêts (durée 120 jours)','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"localisation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[localisation :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlocation, location_libelle FROM docs_location ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(275,'Nombre de lecteurs ayant emprunté par section par localisation pour une période','select location_libelle as Localisation, section_libelle as Section, count(distinct arc_id_empr) as \'Nombre de lecteurs\' from pret_archive left join empr on arc_id_empr=id_empr left join docs_section on arc_expl_section=idsection left join docs_location on arc_expl_location=idlocation where arc_id_empr!=0 and arc_expl_section in (!!choixsection!!) and arc_expl_location in (!!choixloca!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1, 2 order by 1, 2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(276,'Nombre de lecteurs par localisation','select location_libelle as Localisation, count(id_empr) from empr left join docs_location on empr_location=idlocation where empr_location in (!!choixloca!!) group by 1 order by 1','Sous réserve que les lecteurs soient localisés','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',9,0,''),(277,'Nombre de lecteurs par sexe','SELECT count(*), case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'indéterminé\' end as Sexe from empr group by sexe','','1','',9,0,''),(281,'Nombre de lecteurs par villes de résidence où date d\'adhésion est comprise dans la période saisie','select empr_ville as Ville, count(*) as Nbre from empr where empr_date_adhesion BETWEEN \"!!date1!!\" and \"!!date2!!\" group by empr_ville with rollup','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(282,'Nombre de lecteurs par villes de résidence où date d\'expiration est comprise dans la période saisie','select empr_ville as Ville, count(*) as Nbre from empr where empr_date_expiration BETWEEN \"!!date1!!\" and \"!!date2!!\" group by empr_ville with rollup','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 1]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date 2]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',9,0,''),(283,'Nombre de prêts en cours par localisation','select expl_cb as \"Code-barres\", if(expl_notice>0,if(n1.tit4=\"\",n1.tit1,concat(n1.tit1,\" : \",n1.tit4)),concat(nperio.tit1,\" / \",bulletin_numero)) as Titre, concat(author_name,\", \",author_rejete) as Auteur, concat(empr_cb,\" : \",empr_nom,\", \",empr_prenom) as Emprunteur, DATE_FORMAT(pret_date, \"%d/%m/%Y\") as \"Date de prêt\", DATE_FORMAT(pret_retour, \"%d/%m/%Y\") as \"Date de retour prévu\" from pret left join exemplaires on pret_idexpl=expl_id left join notices n1 on expl_notice=n1.notice_id left join responsability on responsability_notice=n1.notice_id and responsability_type=0  left join authors on author_id=responsability_author left join bulletins on expl_bulletin=bulletin_id left join notices nperio on bulletin_notice=nperio.notice_id left join empr on id_empr=pret_idempr where empr_location in (!!localisation!!) order by pret_retour ASC, empr_nom ASC, empr_prenom ASC','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"localisation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[choisir une localisation :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(284,'Nombre de prêts / début de cote / semaine / mois / année / section / localisation / support  entre deux dates','SELECT left(arc_expl_cote,3) as \'Début de cote\', location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support, year(arc_debut) as annee, CASE WHEN month(arc_debut)=1 THEN \"Janvier\" WHEN month(arc_debut)=2 THEN \"Février\" WHEN month(arc_debut)=3 THEN \"Mars\" WHEN month(arc_debut)=4 THEN \"Avril\" WHEN month(arc_debut)=5 THEN \"Mai\" WHEN month(arc_debut)=6 THEN \"Juin\" WHEN month(arc_debut)=7 THEN \"Juillet\" WHEN month(arc_debut)=8 THEN \"Août\" WHEN month(arc_debut)=9 THEN \"Septembre\" WHEN month(arc_debut)=10 THEN \"Octobre\" WHEN month(arc_debut)=11 THEN \"Novembre\" WHEN month(arc_debut)=12 THEN \"Décembre\" else \"Erreur sur mois\" END AS mois, week(arc_debut) as semaine, DATE_FORMAT(DATE_ADD(arc_debut, INTERVAL -weekday(arc_debut) DAY),\"%d/%m/%Y\") as \"semaine du lundi...\", count(*) as \"Total semaine\" FROM `pret_archive` LEFT JOIN docs_location ON idlocation=arc_expl_location LEFT JOIN docs_section ON arc_expl_section=idsection LEFT JOIN docs_type on arc_expl_typdoc=idtyp_doc  WHERE arc_debut >= \"!!date_debut!!\" AND arc_debut <= DATE_ADD(\"!!date_fin!!\", INTERVAL 1 DAY) AND arc_expl_cote like \"!!cote!!%\" AND arc_expl_location IN (!!localisationn!!) AND arc_expl_section IN(!!sectionn!!) AND arc_expl_typdoc in (!!choixsupport!!) GROUP BY 1, Localisation,Section, Support, annee, mois, semaine ORDER BY annee ASC, month(arc_debut) ASC, semaine ASC, 1 ASC, Localisation ASC, Section ASC, Support ASC','Statistiques hebdomadaires par début de cote','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date_debut\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date de début]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date_fin\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date de fin]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"cote\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Saisissez un début de cote  (par ex. \"R \" pour Romans)...]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS></OPTIONS>\n </FIELD>\n <FIELD NAME=\"localisationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(285,'Nombre de prêts par support et par sexe','select tdoc_libelle as Support, case when arc_empr_sexe=\'1\' then \'Hommes\' when arc_empr_sexe=\'2\' then \'Femmes\' else \'Non renseigné\' end as Sexe, count(arc_id) as Nombre from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idtyp_doc, tdoc_libelle from docs_type order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) Statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, libelle from empr_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(286,'Nombre de prêts d\'un exemplaire entre 2 dates','select expl_cote as Cote, tit1 as Titre, count(*) as Nombre from exemplaires, notices, pret_archive where expl_id=arc_expl_id and notice_id=arc_expl_notice and arc_debut between \"!!date1!!\" and \"!!date2!!\" and expl_cb=!!cb!! group by tit1 order by tit1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date début]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[date fin]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"cb\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[code barre]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>15</SIZE>\r\n <MAXSIZE>15</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(287,'Nombre de prêts par cote par propriétaire par localisation par section par support par code statistique par dates d\'acquisition entre deux dates','select location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support,codestat_libelle as \"Code statistique\", arc_expl_cote as Cote, count(arc_id) as \"Nombre de prêts\" from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc left join docs_location on arc_expl_location=idlocation left join docs_section on arc_expl_section=idsection left join docs_codestat on arc_expl_codestat=idcode left join lenders on arc_expl_owner=idlender left join expl_custom_values on (arc_expl_id=expl_custom_origine and expl_custom_champ=3)  where arc_debut between \'!!date1!!\' and adddate(\'!!date2!!\', INTERVAL 1 DAY) and expl_custom_date between \'!!dateacq1!!\' and adddate(\'!!dateacq2!!\', INTERVAL 1 DAY) and arc_expl_owner in (!!choixproprio!!) and arc_expl_location in (!!choixlocation!!) and arc_expl_section in (!!choixsection!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_codestat in (!!choixcodestat!!) group by 1,2,3,4,5 order by 1,2,3,4','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Prêts effectués entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"dateacq1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date d\'acquisition entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"dateacq2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs propriétaires :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs localisations :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs sections :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs supports :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs codes statistiques :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(288,'Nombre de prêts par type d\'abonnement pour une période donnée','select if(id_type_abt is null,\'Type abonnement supprimé\',type_abt_libelle) as \"Type d\'abonnement\", count(distinct arc_id) as \"Nombre de prêts\" from pret_archive left join empr on arc_id_empr=id_empr left join type_abts on type_abt=id_type_abt where arc_id_empr!=0 and arc_debut between \"!!date1!!\" and \"!!date2!!\" group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(289,'Nombre de prêts par catégorie (autorité) pour une année','select libelle_categorie as Catégorie, count(arc_id) as Total from pret_archive join notices_categories on arc_expl_notice=notcateg_notice join categories on notices_categories.num_noeud=categories.num_noeud where year(arc_debut)=!!choixannee!! and categories.num_noeud=!!choixcateg!! group by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie :]]></ALIAS>\n  <TYPE>selector</TYPE>\n<OPTIONS FOR=\"selector\">\r\n <METHOD>1</METHOD>\r\n <DATA_TYPE>2</DATA_TYPE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(290,'Nombre de prêts par catégorie de lecteurs pour une année','SELECT CASE WHEN libelle IS NULL THEN \" Catégorie de lecteurs inconnue\" ELSE libelle END as Catégorie, count(*) as \"Nombre de prêts\" FROM pret_archive LEFT JOIN empr_categ ON id_categ_empr = arc_empr_categ where year(arc_debut) = \'!!param1!!\' group by arc_empr_categ order by Catégorie','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(291,'Nombre de prêts par code statistique exemplaires et par localisation','select codestat_libelle as \"Code Statistique exemplaire\",location_libelle as Localisation, count(arc_id) as Nombre from pret_archive left join docs_location on arc_expl_location=idlocation left join docs_codestat on arc_expl_codestat=idcode where arc_expl_location in (!!choixloca!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) Statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(292,'Nombre de prêts par code statistique lecteurs','select libelle as \"Code Statistique lecteur\", count(arc_id) as Nombre from pret_archive left join empr_codestat on arc_empr_codestat=idcode where  arc_empr_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idtyp_doc, tdoc_libelle from docs_type order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) Statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, libelle from empr_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(293,'Nombre de prêts par cote par propriétaire par localisation par section par support par code statistique entre deux dates','select location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support,codestat_libelle as \"Code statistique\", arc_expl_cote as Cote, count(arc_id) as \"Nombre de prêts\" from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc left join docs_location on arc_expl_location=idlocation left join docs_section on arc_expl_section=idsection left join docs_codestat on arc_expl_codestat=idcode left join lenders on arc_expl_owner=idlender where arc_debut between \'!!date1!!\' and adddate(\'!!date2!!\', INTERVAL 1 DAY) and arc_expl_owner in (!!choixproprio!!) and arc_expl_location in (!!choixlocation!!) and arc_expl_section in (!!choixsection!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_codestat in (!!choixcodestat!!) group by 1,2,3,4,5 order by 1,2,3,4','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs propriétaires :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs localisations :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs sections :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs supports :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs codes statistiques :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(294,'Nombre de prêts par indexation décimale pour une année','select indexint_name as \'Indexation décimale\', indexint_comment as \'Commentaire\', count(arc_id) as \'Nombre de prêts\' from pret_archive left join notices on arc_expl_notice=notice_id left join indexint on indexint=indexint_id where year(arc_debut)=!!choixannee!! group by 1 order by 3 DESC','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(295,'Nombre de prêts par jour et par tranche horaire','select concat(hour(arc_debut),\"h-\",hour(arc_debut)+1,\"h\") as \"Tranche horaire\", sum(if(weekday(arc_debut)=0,1,0)) as \"Lundi\", sum(if(weekday(arc_debut)=1,1,0)) as \"Mardi\", sum(if(weekday(arc_debut)=2,1,0)) as \"Mercredi\", sum(if(weekday(arc_debut)=3,1,0)) as \"Jeudi\", sum(if(weekday(arc_debut)=4,1,0)) as \"Vendredi\", sum(if(weekday(arc_debut)=5,1,0)) as \"Samedi\", sum(if(weekday(arc_debut)=6,1,0)) as \"Dimanche\", sum(1) as \"Total\" FROM pret_archive WHERE arc_debut between \"!!debut_periode!!\" and \"!!fin_periode!!\" GROUP BY hour(arc_debut) ORDER BY hour(arc_debut)','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"debut_periode\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[début de période :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"fin_periode\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[fin de période :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(296,'Nombre de prêts par jour, par tranche horaire et par localisation','select concat(hour(arc_debut),\"h-\",hour(arc_debut)+1,\"h\") as \"Tranche horaire !!debut_periode!! à !!fin_periode!!\", sum(if(weekday(arc_debut)=0,1,0)) as \"Lundi\", sum(if(weekday(arc_debut)=1,1,0)) as \"Mardi\", sum(if(weekday(arc_debut)=2,1,0)) as \"Mercredi\", sum(if(weekday(arc_debut)=3,1,0)) as \"Jeudi\", sum(if(weekday(arc_debut)=4,1,0)) as \"Vendredi\", sum(if(weekday(arc_debut)=5,1,0)) as \"Samedi\", sum(if(weekday(arc_debut)=6,1,0)) as \"Dimanche\", sum(1) as \"Total\" FROM pret_archive WHERE  arc_debut between \"!!debut_periode!!\" and \"!!fin_periode!!\" and arc_expl_location in (!!localisation!!) GROUP BY hour(arc_debut) ORDER BY hour(arc_debut)','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"debut_periode\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[début de période :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"fin_periode\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[fin de période :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"localisation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[localisation :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlocation, location_libelle from docs_location order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(297,'Nombre de prêts par localisation pour une année','select location_libelle as Localisation, count(arc_id) as Nombre from pret_archive left join docs_location on arc_expl_location=idlocation where arc_expl_location in (!!choixloca!!) and year(arc_debut)=!!choixannee!! group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(298,'Nombre de prêts par localisation et par code statistique pour une année','select location_libelle as Localisation, codestat_libelle as \'Code statistique exemplaire\', count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join docs_location on arc_expl_location=idlocation where arc_expl_location in (!!choixloca!!) and arc_expl_codestat in (!!choixCS!!)  and year(arc_debut)=!!choixannee!! group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixCS\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(299,'Nombre de prêts par localisation et section','select location_libelle as Localisation, section_libelle as Section, count(arc_id) as Nombre from pret_archive left join docs_section on arc_expl_section=idsection left join docs_location on arc_expl_location=idlocation where arc_expl_location in (!!choixloca!!) and arc_debut between \"!!date1!!\" and \"!!date2!!\" group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(300,'Nombre de prêts par localisation, section et support','select location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support, count(arc_id) as Nombre from pret_archive left join docs_section on arc_expl_section=idsection left join docs_location on arc_expl_location=idlocation left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_location in (!!choixloca!!) and arc_expl_section in (!!choixsection!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_debut between \"!!date1!!\" and \"!!date2!!\" group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Supports(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(301,'Nombre de prêts par localisation, section et support','select location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support, count(arc_id) as Nombre from pret_archive left join docs_section on arc_expl_section=idsection left join docs_location on arc_expl_location=idlocation left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_location in (!!choixloca!!) and arc_expl_section in (!!choixsection!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_debut between \"!!date1!!\" and \"!!date2!!\" group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Supports(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(302,'Nombre de prêts par propriétaire par localisation par section par support et par code statistique','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support, codestat_libelle as \"Code Statistique exemplaire\", count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join docs_type on arc_expl_typdoc=idtyp_doc left join lenders on arc_expl_owner=idlender left join docs_location on arc_expl_location=idlocation left join docs_section on arc_expl_section=idsection where arc_expl_owner in (!!choixproprio!!) and arc_expl_location in (!!choixloca!!) and arc_expl_section in (!!choixsection!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2,3,4,5 order by 1,2,3,4,5','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs propriétaires :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs localisations :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs sections :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs supports :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs codes statistiques :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(303,'Nombre de prêts par localisation et par support pour une année','select location_libelle as Localisation, tdoc_libelle as Support, count(arc_id) as Nombre from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc left join docs_location on arc_expl_location=idlocation where arc_expl_location in (!!choixloca!!) and year(arc_debut)=!!choixannee!! group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation,location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(304,'Nombre de prêts par localisation par support et par code statistique','select location_libelle as Localisation, tdoc_libelle as Support, codestat_libelle as \"Code Statistique exemplaire\", count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join docs_type on arc_expl_typdoc=idtyp_doc left join docs_location on arc_expl_location=idlocation where arc_expl_location in (!!choixloca!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(305,'Nombre de prêts par mois et pour une année','SELECT year(arc_debut) as Année, month(arc_debut) as Mois, count(*) as \"Nombre de prêts\" FROM pret_archive where year(arc_debut) = \'!!param1!!\' group by 1, 2 order by 1, 2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(306,'Nombre prêts d\'un périodique selon son ISSN entre 2 dates','select count(arc_id) as Nombre from pret_archive left join bulletins on arc_expl_bulletin=bulletin_id left join notices on bulletin_notice=notice_id where arc_debut between \"!!date1!!\" and \"!!date2!!\" and code=\"!!cb!!\"','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"cb\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[ISSN :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>50</SIZE>\r\n <MAXSIZE>50</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(307,'Nombre de prêts par propriétaire','SELECT lender_libelle as Propriétaire, count(arc_id) AS \"Nombre de prêts\" FROM pret_archive left join lenders on arc_expl_owner=idlender where date(arc_debut) BETWEEN \"!!Du!!\" AND \"!!Au!!\" and arc_expl_owner in (!!choixproprio!!) GROUP BY lender_libelle ORDER BY lender_libelle','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"Du\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"Au\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(308,'Nombre de prêts par propriétaire et par code statistique','select lender_libelle as Propriétaire, codestat_libelle as \"Code Statistique exemplaire\", count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join lenders on arc_expl_owner=idlender where arc_expl_owner in (!!choixproprio!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) statistiques(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(309,'Nombre de prêts par propriétaire par localisation par section','select lender_libelle as Propriétaire, section_libelle as Section, location_libelle as Localisation, count(arc_id) as Nombre from pret_archive left join lenders on arc_expl_owner=idlender left join docs_location on arc_expl_location=idlocation left join docs_section on arc_expl_section=idsection where arc_expl_section in (!!choixsection!!) and arc_expl_location in (!!choixloca!!) and arc_expl_owner in (!!choixlender!!) and year(arc_debut)=!!choixannee!! group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlender\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender,lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(310,'Nombre de prêts par propriétaire par localisation et par support','select lender_libelle as Propriétaire, location_libelle as Localisation, tdoc_libelle as Support, count(arc_id) as Nombre from pret_archive left join lenders on arc_expl_owner=idlender left join docs_location on arc_expl_location=idlocation left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixsupport!!) and arc_expl_location in (!!choixloca!!) and arc_expl_owner in (!!choixlender!!) and year(arc_debut)=!!choixannee!! group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Supports(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlender\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(311,'Nombre de prêts par propriétaire et par support','select lender_libelle as Propriétaire, tdoc_libelle as Support, count(arc_id) as Nombre from pret_archive left join lenders on arc_expl_owner=idlender left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_owner in (!!choixproprio!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(312,'Nombre de prêts par propriétaire par support et par code statistique','select lender_libelle as Propriétaire, tdoc_libelle as Support, codestat_libelle as \"Code Statistique exemplaire\", count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join docs_type on arc_expl_typdoc=idtyp_doc left join lenders on arc_expl_owner=idlender where arc_expl_owner in (!!choixproprio!!) and arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2,3 order by 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender,lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(313,'Nombre de prêts par section pour une année','SELECT CASE WHEN section_libelle IS NULL THEN \" Section supprimée\" ELSE section_libelle END as Section, count(*) as \"Nombre de prêts\" FROM pret_archive LEFT JOIN docs_section ON idsection = arc_expl_section where year(arc_debut) = \'!!param1!!\' group by arc_expl_section order by Section','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>20</SIZE>\r\n <MAXSIZE>255</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(314,'Nombre de prêts par section et par localisation pour une année','select section_libelle as Section, location_libelle as Localisation, count(arc_id) as Nombre from pret_archive left join docs_location on arc_expl_location=idlocation left join docs_section on arc_expl_section=idsection where arc_expl_section in (!!choixsection!!) and arc_expl_location in (!!choixloca!!) and year(arc_debut)=!!choixannee!! group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlocation, location_libelle from docs_location order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(315,'Nombre de prêts par sexe pour une année','select case when arc_empr_sexe=\'1\' then \'Hommes\' when arc_empr_sexe=\'2\' then \'Femmes\' else \'Non renseigné\' end as Sexe, count(arc_id) as Nombre from pret_archive where year(arc_debut)=!!choixannee!! group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(316,'Nombre de prêts par sexe et par tranche d\'âge pour une année','select case when arc_empr_sexe=\'1\' then \'Hommes\' when arc_empr_sexe=\'2\' then \'Femmes\' else \'Non renseigné\' end as Sexe, CASE WHEN (!!param1!! - arc_empr_year)<=3 THEN \'Petite enfance (0 à 3 ans)\' WHEN (!!param1!! - arc_empr_year)>3 and (!!param1!! - arc_empr_year)<=5 THEN \'Maternelle (4 à 5 ans)\' WHEN (!!param1!! - arc_empr_year)>5 and (!!param1!! - arc_empr_year)<=10 THEN \'Primaire (6 à 10 ans)\' WHEN (!!param1!! - arc_empr_year)>10 and (!!param1!! - arc_empr_year)<=15 THEN \'Jeune (11 à 15 ans)\' WHEN (!!param1!! - arc_empr_year)>15 and (!!param1!! - arc_empr_year)<=25 THEN \'Jeune adulte (16 à 25 ans)\' WHEN (!!param1!! - arc_empr_year)>25  THEN \'Adulte (+25 ans)\' else \'Erreur sur âge\' END as \"Tranche d\'âge\", count(arc_id) as Nombre from pret_archive where year(arc_debut)=!!param1!! group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(318,'Nombre de prêts par support','select tdoc_libelle as Support, count(arc_id) as Nombre from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idtyp_doc, tdoc_libelle from docs_type order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) Statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, libelle from empr_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(319,'Nombre de prêts par support et par catégorie de lecteurs','select tdoc_libelle as Support, libelle as \'Catégorie lecteurs\', count(arc_id) as Nombre from pret_archive left join empr_categ on arc_empr_categ=id_categ_empr left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_empr_categ in (!!choixcateg!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcateg\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Catégorie(s) de lecteurs :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select id_categ_empr, libelle from empr_categ order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(320,'Nombre de prêts par support et par code statistique exemplaires','select tdoc_libelle as Support, codestat_libelle as \"Code Statistique exemplaire\", count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) Statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idcode, codestat_libelle from docs_codestat order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(321,'Nombre de prêts par support et par code statistique lecteurs','select tdoc_libelle as Support, libelle as \"Code Statistique lecteur\", count(arc_id) as Nombre from pret_archive left join empr_codestat on arc_empr_codestat=idcode left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_empr_codestat in (!!choixcodestat!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idtyp_doc, tdoc_libelle from docs_type order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Code(s) Statistique(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, libelle from empr_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(322,'Nombre de prêts par support et par cote','select tdoc_libelle as Support, arc_expl_cote as Cote, count(arc_id) as Nombre from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(323,'Nombre de prêts par support et par tranche d\'âge pour une année','select tdoc_libelle as Support, CASE WHEN (!!param1!! - arc_empr_year)<=3 THEN \'Petite enfance (0 à 3 ans)\' WHEN (!!param1!! - arc_empr_year)>3 and (!!param1!! - arc_empr_year)<=5 THEN \'Maternelle (4 à 5 ans)\' WHEN (!!param1!! - arc_empr_year)>5 and (!!param1!! - arc_empr_year)<=10 THEN \'Primaire (6 à 10 ans)\' WHEN (!!param1!! - arc_empr_year)>10 and (!!param1!! - arc_empr_year)<=15 THEN \'Jeune (11 à 15 ans)\' WHEN (!!param1!! - arc_empr_year)>15 and (!!param1!! - arc_empr_year)<=25 THEN \'Jeune adulte (16 à 25 ans)\' WHEN (!!param1!! - arc_empr_year)>25  THEN \'Adulte (+25 ans)\' else \'Erreur sur âge\' END as \"Tranche d\'âge\", count(arc_id) as Nombre from pret_archive left join docs_type on arc_expl_typdoc=idtyp_doc where arc_expl_typdoc in (!!choixtypdoc!!) and year(arc_debut)=!!param1!! group by 1,2 order by 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"choixtypdoc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idtyp_doc, tdoc_libelle from docs_type order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',15,0,''),(324,'Nombre de prêts par tranche d\'âge pour une année','select CASE when arc_empr_year=0 then \'Année de naissance non renseignée\' WHEN (!!param1!! - arc_empr_year)<=3 THEN \'Petite enfance (0 à 3 ans)\' WHEN (!!param1!! - arc_empr_year)>3 and (!!param1!! - arc_empr_year)<=5 THEN \'Maternelle (4 à 5 ans)\' WHEN (!!param1!! - arc_empr_year)>5 and (!!param1!! - arc_empr_year)<=10 THEN \'Primaire (6 à 10 ans)\' WHEN (!!param1!! - arc_empr_year)>10 and (!!param1!! - arc_empr_year)<=15 THEN \'Jeune (11 à 15 ans)\' WHEN (!!param1!! - arc_empr_year)>15 and (!!param1!! - arc_empr_year)<=25 THEN \'Jeune adulte (16 à 25 ans)\' WHEN (!!param1!! - arc_empr_year)>25  THEN \'Adulte (+25 ans)\' else \'Erreur sur âge\' END as \"Tranche d\'âge\", count(arc_id) as Nombre from pret_archive where year(arc_debut)=!!param1!! group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(325,'Nombre de prêts par tranche d\'âge pour une période','select case when arc_empr_year=0 then \'Année de naissance non renseignée\' when (year(arc_debut)-arc_empr_year) <=3 then \'0 à 3 ans - Petite enfance\' when (year(arc_debut)-arc_empr_year) >=4 and (year(arc_debut)-arc_empr_year)<=5 then \'4 à 5 ans - Maternelle\' when (year(arc_debut)-arc_empr_year) >=6 and (year(arc_debut)-arc_empr_year)<=10 then \'6 à 10 ans - Primaire\' when (year(arc_debut)-arc_empr_year) >=11 and (year(arc_debut)-arc_empr_year)<=15 then \'11 à 15 ans - Jeune\' when (year(arc_debut)-arc_empr_year) >=16 and (year(arc_debut)-arc_empr_year)<=25 then \'16 à 25 ans - Jeune adulte\' when (year(arc_debut)-arc_empr_year) >25 then \'+25 ans - Adultes\' else \'N/A\' END as \"Tranche d\'âge\", count(arc_id) as \'Nombre de prêts\' from pret_archive where arc_debut between \'!!date1!!\' and \'!!date2!!\' group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Du :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Au :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(326,'Nombre de prêts par trimestre d\'un exemplaire sur les trois dernières années','select exemplaires.expl_cb as \"code-barres\", year(arc_debut) as année, case when month(arc_debut) in (1, 2, 3) then \"trimestre 1\" when month(arc_debut) in (4,5,6) then \"trimestre 2\" when month(arc_debut) in (7, 8, 9) then \"trimestre 3\" when month(arc_debut) in (10, 11, 12) then \"trimestre 4\" end as trimestre, count(arc_id) as \"Nombre de prêts\" from exemplaires  left join pret_archive on arc_expl_id=expl_id where expl_cb like \"!!codebarreexpl!!\" and year(NOW())-year(arc_debut) < 3 group by année, trimestre, expl_cb order by 1, 2, 3 ','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"codebarreexpl\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[saisissez ou douchetez le code-barres de l\'exemplaire...]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\n <SIZE>20</SIZE>\n <MAXSIZE>255</MAXSIZE>\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(327,'Nombre de prêts par ville de lecteur pour une année (sans choix de la ville)','select arc_empr_ville as Ville, count(arc_id) as \'Nombre de prêts\' from pret_archive where year(arc_debut)=!!choixannee!! group by 1 order by 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixville\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Ville(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select distinct(arc_empr_ville), arc_empr_ville from pret_archive order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',15,0,''),(328,'Liste d\'ouvrages achetés/donnés dans une année / support / Localisation / Codestat / Section / Propriétaire','select location_libelle as Localisation,lender_libelle as Propriétaire,codestat_libelle as Codestat, section_libelle as Section, tdoc_libelle as Support, e0.expl_custom_small_text as Type,expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre,if(categories.num_noeud is null,\'\',GROUP_CONCAT(distinct concat(\'[\',libelle_thesaurus,\']\',libelle_categorie) SEPARATOR \', \')) as \'Catégorie\',if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name As Editeur, n1.year as \"Année d\'édition\", expl_prix as Prix from expl_custom_values as e0, expl_custom_values as a1, exemplaires left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection LEFT JOIN docs_type ON idtyp_doc=expl_typdoc LEFT JOIN docs_codestat ON idcode=expl_codestat left join notices n1 on expl_notice=n1.notice_id left join notices_categories on n1.notice_id=notcateg_notice left join categories on (notices_categories.num_noeud=categories.num_noeud and categories.langue=\'fr_FR\') left join thesaurus on categories.num_thesaurus=id_thesaurus left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author where e0.expl_custom_champ=2 and a1.expl_custom_champ=3 and date_format(a1.expl_custom_date,\'%Y\')=\'!!annee!!\' and a1.expl_custom_origine=e0.expl_custom_origine and expl_id=a1.expl_custom_origine and expl_location in (!!locationn!!) and expl_owner in (!!choixproprio!!) group by n1.notice_id ORDER BY 1,2,3,4,6','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs localisations :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlocation, location_libelle from docs_location order by 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs propriétaires :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(329,'Liste des cotes par localisation','SELECT location_libelle as Localisation, expl_cote as Cote FROM exemplaires LEFT JOIN docs_location ON idlocation=expl_location WHERE expl_location in (!!locationn!!) GROUP BY Localisation, Cote ORDER BY Localisation, Cote','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlocation, location_libelle FROM docs_location ORDER BY 2]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(330,'Liste des cotes par localisation 2','SELECT location_libelle as Localisation, left(expl_cote,!!nomb!!) as Cote FROM exemplaires LEFT JOIN docs_location ON idlocation=expl_location WHERE expl_location in (!!locationn!!) GROUP BY Localisation, Cote ORDER BY Localisation, Cote','préciser le nombre de caractères pour le début de cote','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"nomb\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[nombre de caractères :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>3</SIZE>\r\n <MAXSIZE>2</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(331,'Liste des cotes par localisation et par section','SELECT location_libelle as Localisation, section_libelle as Section, expl_cote as Cote FROM exemplaires LEFT JOIN docs_location ON idlocation=expl_location LEFT JOIN docs_section ON idsection=expl_section WHERE expl_section in (!!sectionn!!) AND expl_location in (!!locationn!!) GROUP BY Localisation, Section, Cote ORDER BY Localisation, Section, Cote','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idsection, section_libelle FROM docs_section ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idlocation, location_libelle FROM docs_location ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(332,'Liste des exemplaires jamais prêtés sur une période donnée','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre, if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name as Editeur, n1.year as \"Année d\'édition\", expl_cb as \"Code-barres\", expl_prix as Prix, date_format(last_loan_date, \'%d-%m-%Y\') as \"Date du dernier prêt\",date_format(expl_custom_date,\'%d-%m-%Y\') as \"Date d\'acquisition\" from exemplaires left join expl_custom_values on (expl_id=expl_custom_origine and expl_custom_champ=2) left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut where expl_location=idlocation and expl_location=!!choixloca!! and (last_loan_date not between \'!!datedebut!!\' and \'!!datefin!!\' or last_loan_date is NULL) order by 13 DESC','classement par date d\'acquisition','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"datedebut\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date début :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"datefin\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date fin :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n</FIELDS>',16,0,''),(333,'Liste des exemplaires pilonnés dans une année','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre, if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name as Editeur, n1.year as \"Année d\'édition\", expl_cb as \"Code-barres\", expl_prix as Prix, date_format(expl_custom_date,\'%d-%m-%Y\') as \"Date de pilonnage\" from exemplaires left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author left join docs_statut on expl_statut=idstatut left join lenders on expl_owner=idlender left join expl_custom_values on (expl_custom_origine=expl_id and expl_custom_champ=2) where expl_statut=15 and year(expl_custom_date)=!!choixannee!!','se base sur le champ \'Date de pilonnage\'','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixannee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Année :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',16,0,''),(334,'Liste exemplaires prêtés entre deux dates par propriétaire par localisation par section par support par code statistique par choix de date d\'acquisition','select location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support, codestat_libelle as \"Code statistique\",arc_expl_cote as Cote, if(arc_expl_bulletin!=0,concat(if(bulletin_id is null,\'Bulletin supprimé\',perio.tit1),\' \',bulletin_numero,\' \',mention_date,\' \',bulletin_titre),if(mono.notice_id is null,\'Titre supprimé\',mono.tit1)) as Titre,if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name As Editeur,date_format(expl_custom_date,\'%d-%m-%Y\') as \"Date acquisition\",if(categories.num_noeud is null,\'\',GROUP_CONCAT(distinct concat(\'[\',libelle_thesaurus,\']\',libelle_categorie) SEPARATOR \', \')) as \'Catégorie\', count(distinct arc_id) as \'Nombre de prêts dans la période\' from pret_archive left join notices as mono on arc_expl_notice=mono.notice_id left join bulletins on arc_expl_bulletin=bulletin_id left join notices as perio on bulletin_notice=perio.notice_id left join notices_categories on mono.notice_id=notcateg_notice left join categories on (notices_categories.num_noeud=categories.num_noeud and categories.langue=\'fr_FR\') left join thesaurus on categories.num_thesaurus=id_thesaurus left join publishers on mono.ed1_id=ed_id left join responsability as r0 on (mono.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author left join docs_location on arc_expl_location=idlocation left join docs_section on arc_expl_section=idsection left join docs_type on arc_expl_typdoc=idtyp_doc left join docs_codestat on arc_expl_codestat=idcode left join lenders on arc_expl_owner=idlender left join expl_custom_values on (arc_expl_id=expl_custom_origine and expl_custom_champ=3) where arc_debut between \'!!date1!!\' and adddate(\'!!date2!!\', INTERVAL 1 DAY) and expl_custom_date between \'!!dateacq1!!\' and adddate(\'!!date2acq!!\', INTERVAL 1 DAY) and arc_expl_owner in (!!choixproprio!!) and arc_expl_location in (!!choixlocation!!) and arc_expl_section in (!!choixsection!!) and arc_expl_typdoc in (!!choixsupport!!) and arc_expl_codestat in (!!choixcodestat!!) group by mono.notice_id order by 1,2,3,4','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Prêtés entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"dateacq1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date d\'acquisition entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2acq\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs propriétaires :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixlocation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs localisations :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs sections :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs supports :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs codes statistiques :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(335,'Liste des exemplaires pour un propriétaire','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre, if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name as Editeur, n1.year as \"Année d\'édition\", expl_cb as \"Code-barres\", expl_prix as Prix from exemplaires left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author left join docs_statut on expl_statut=idstatut left join lenders on expl_owner=idlender where expl_owner=!!proprietaire!! and expl_statut=idstatut and expl_owner=idlender order by  expl_cote, expl_cb','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"proprietaire\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by idlender</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\">Choisissez un prÃªteur</UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(336,'Liste exemplaires par propriétaire par localisation par section par support par code statistique entre 2 dates d\'acquisition','select location_libelle as Localisation, section_libelle as Section, tdoc_libelle as Support,codestat_libelle as Codestat, e0.expl_custom_small_text as Type,expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre,if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name As Editeur, n1.year as \"Année d\'édition\",date_format(a1.expl_custom_date ,\'%d-%m-%Y\') as \"Date acquisition\",if(categories.num_noeud is null,\'\',GROUP_CONCAT(distinct concat(\'[\',libelle_thesaurus,\']\',libelle_categorie) SEPARATOR \', \')) as \'Catégorie\', expl_prix as Prix from expl_custom_values as e0, expl_custom_values as a1, exemplaires left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection LEFT JOIN docs_type ON idtyp_doc=expl_typdoc LEFT JOIN docs_codestat ON idcode=expl_codestat left join notices n1 on expl_notice=n1.notice_id left join notices_categories on n1.notice_id=notcateg_notice left join categories on (notices_categories.num_noeud=categories.num_noeud and categories.langue=\'fr_FR\') left join thesaurus on categories.num_thesaurus=id_thesaurus left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author where e0.expl_custom_champ=2 and a1.expl_custom_champ=3 and a1.expl_custom_date between \'!!date1!!\' and adddate(\'!!date2!!\', INTERVAL 1 DAY) and a1.expl_custom_origine=e0.expl_custom_origine and expl_id=a1.expl_custom_origine and expl_location in (!!locationn!!) and expl_owner in (!!choixproprio!!) and expl_section in (!!choixsection!!) and expl_typdoc in (!!choixsupport!!) and expl_codestat in (!!choixcodestat!!) group by n1.notice_id ORDER BY 1,2,3,4,5','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"date1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date d\'acquisition entre le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"date2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Et le :]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS> \n </FIELD>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs localisations :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs propriétaires :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez une ou plusieurs sections :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsupport\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs supports :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idtyp_doc, tdoc_libelle from docs_type order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixcodestat\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Choisissez un ou plusieurs codes statistiques :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idcode, codestat_libelle from docs_codestat order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(337,'Liste des exemplaires d\'un propriétaire par statut','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre, if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name as Editeur, n1.year as \"Année d\'édition\", expl_cb as \"Code-barres\", expl_prix as Prix from docs_statut, lenders, exemplaires left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author where expl_statut=!!statut!! and expl_owner=!!Proprietaire!! and expl_statut=idstatut and expl_owner=idlender order by lender_libelle, statut_libelle, expl_cote, expl_cb','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"statut\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Statut :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idstatut, statut_libelle from docs_statut</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"Proprietaire\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(338,'Liste d\'exemplaires par propriétaire/statut/localisation/section/support/code statistique/cote/titre/prix/auteur principal/éditeur/année d\'édition','SELECT expl_cb as \"Code-Barre\", notices.year as \"Année d\'édition\", tit1 as Titre, expl_cote as Cote, GROUP_CONCAT(author_name, \' \', author_rejete ORDER BY responsability_type SEPARATOR \', \') as \"Auteur(s)\",ed_name as Editeur, expl_prix as Prix, lender_libelle as Propriétaire, statut_libelle AS Statut, location_libelle as Localisation,codestat_libelle as Codestat, tdoc_libelle as Support, section_libelle as Section FROM exemplaires JOIN lenders ON idlender=expl_owner join docs_type on expl_typdoc=idtyp_doc JOIN docs_location ON idlocation= expl_location JOIN docs_codestat ON idcode=expl_codestat JOIN docs_section ON idsection=expl_section JOIN docs_statut ON idstatut=expl_statut JOIN notices ON expl_notice=notice_id JOIN responsability ON (responsability_notice=notice_id AND responsability_type=0) JOIN authors ON author_id=responsability_author JOIN publishers ON ed1_id=ed_id WHERE expl_location IN (!!locationn!!) AND expl_section IN (!!sectionn!!) AND expl_codestat IN (!!codestatt!!) AND expl_typdoc IN (!!typdocc!!) AND expl_owner IN (!!proprioo!!) AND expl_statut IN (!!statutt!!) GROUP BY expl_id ORDER BY Propriétaire, Localisation, Codestat, Support, Section, Statut, 1','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"locationn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Location]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlocation, location_libelle FROM docs_location ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"sectionn\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idsection, section_libelle FROM docs_section ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"codestatt\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[CodeStatistique]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idcode, codestat_libelle FROM docs_codestat ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"typdocc\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Support]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idtyp_doc, tdoc_libelle FROM docs_type ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"proprioo\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT idlender, lender_libelle FROM lenders ORDER BY 2</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"statutt\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Statut]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT idstatut, statut_libelle FROM docs_statut ORDER BY 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(339,'Liste des exemplaires d\'un propriétaire par statut / localisation / section','SELECT lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre,if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name As Editeur, n1.year as \"Année d\'édition\", expl_cb as \'Code-barres\', expl_prix as Prix from exemplaires left join lenders on expl_owner=idlender left join docs_statut on expl_statut=idstatut left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author where expl_owner in (!!choixproprio!!) and expl_statut in (!!choixstatut!!) and expl_location in (!!choixloca!!) and expl_section in (!!choixsection!!) order by Statut, Localisation, Section, Propriétaire','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixproprio\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixstatut\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Statut(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idstatut, statut_libelle from docs_statut order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(340,'Liste des exemplaires pour une ou plusieurs sections par propriétaire','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre, if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name as Editeur, n1.year as \"Année d\'édition\", expl_cb as \"Code-barres\", expl_prix as Prix from exemplaires left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author left join docs_statut on expl_statut=idstatut left join lenders on expl_owner=idlender where idsection in (!!sections!!) and expl_owner=!!preteur!! order by section_libelle, expl_cote, expl_cb','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"sections\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idsection, section_libelle from docs_section</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"preteur\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propriétaire :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by idlender</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\">Choisissez un prÃªteur</UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(341,'Liste des exemplaires par statut','select lender_libelle as Propriétaire, location_libelle as Localisation, section_libelle as Section, statut_libelle as Statut, expl_cote as Cote, CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre, if(a0.author_id is not null,CONCAT(a0.author_name, \' \', a0.author_rejete),\'\') as \'Auteur principal\', ed_name as Editeur, n1.year as \"Année d\'édition\", expl_cb as \"Code-barres\", expl_prix as Prix from exemplaires left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id left join docs_location on expl_location=idlocation left join docs_section on expl_section=idsection left join publishers on n1.ed1_id=ed_id left join responsability as r0 on (n1.notice_id=r0.responsability_notice and r0.responsability_type=0) left join authors as a0 on a0.author_id=r0.responsability_author left join docs_statut on expl_statut=idstatut left join lenders on expl_owner=idlender where expl_statut=!!param1!! order by expl_cote','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Statut :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idstatut,statut_libelle from docs_statut</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\">Choisissez un statut</UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',16,0,''),(342,'Nombre d\'exemplaires par propriétaire, section','select lender_libelle as Propriétaire, section_libelle as Section, count(*) as Nombre from exemplaires, lenders, docs_section where expl_owner=idlender and idsection=expl_section group by lender_libelle, section_libelle order by 1,2','','1','',16,0,''),(343,'Liste des emprunteurs avec nom prénom et ville','Select empr_nom as Nom, empr_prenom as Prénom, empr_ville as Ville from empr order by 3,1,2','','1','',17,0,''),(344,'Liste des lecteurs par type d\'abonnement','Select empr_nom AS Nom, empr_prenom AS \'Prénom\', empr_ville AS Ville from empr WHERE type_abt=!!type_abonnement!! ORDER BY 1,2,3','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"type_abonnement\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[type d\'abonnement :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[SELECT id_type_abt, type_abt_libelle FROM type_abts ORDER BY 2]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',17,0,''),(345,'Liste des lecteurs par catégories','select libelle as Catégorie, empr_nom as Nom, empr_prenom as Prénom, empr_year as \"Année de naissance\" from empr, empr_categ where id_categ_empr=empr_categ order by libelle, empr_nom, empr_prenom','','1','',17,0,''),(347,'Liste des lecteurs avec multiples informations','SELECT empr_nom as Nom, empr_prenom as Prénom, empr_adr1 as \"Adresse (ligne 1)\", empr_adr2 as \"Adresse (ligne 2)\", empr_cp as \"Code Postal\", empr_ville as Ville, empr_pays as Pays, empr_year as \"Année de naissance\", empr_pays as Pays, empr_mail as Mail, empr_tel1 as \"Téléphone\", empr_tel2 as \"Autre téléphone\", empr_prof as Profession, empr_sexe as Sexe, empr_date_adhesion as \"Date adhésion\", empr_date_expiration as \"Date expiration\", empr_msg as Message, type_abt_libelle as \"Type d\'abonnement\" FROM empr join type_abts on type_abt=id_type_abt order by 1,2','','1','',17,0,''),(348,'Liste des lecteurs par sexe','select concat(\'<a href=./circ.php?categ=pret&form_cb=\',empr_cb,\'>\',empr_cb,\'</a>\') as \'Code-barres\', empr_nom as Nom, empr_prenom as Prénom, location_libelle as Localisation, CASE when (empr_sexe=1) then \'Homme\' when (empr_sexe=2) then \'Femme\' else \'N/A\' END as Sexe from empr left join docs_location on empr_location=idlocation order by Sexe, location_libelle, empr_nom','','1','',17,0,''),(349,'Liste des lecteurs par tranche d\'âge','SELECT id_empr, empr_nom AS Nom, empr_prenom AS \"Prénom\", empr_year AS \"Année de naissance\" FROM empr WHERE empr_year >=!!naiss1!! AND empr_year <=!!naiss2!! ORDER BY 4,2','les années renseignées sont comprises dans la recherche','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"naiss1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[année de départ :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"naiss2\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[année de fin :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>4</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',17,0,''),(350,'Liste de lecteurs par ville','SELECT empr_nom as Nom, empr_prenom as Prénom, empr_ville as Ville FROM empr WHERE empr_ville=\"!!villle!!\" ORDER BY 1,2','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"villle\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Ville]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>20</SIZE>\r\n <MAXSIZE>20</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',17,0,''),(351,'Liste des transactions par emprunteur','select empr_prenom as \"Prénom\", empr_nom as \"Nom\" , case type_compte_id when \'1\' then \"Abonnement\" when \'2\' then \"Amende\" when \'3\' then \"Prêt\" end as \"Type de compte\", date_format(date_enrgt, \'%d-%m-%Y\') as \"Date\", case when sens=\'1\' then \'Crédit\' else \'Débit\' end as \"Débit/Crédit\", (montant*sens) as \"Montant\", commentaire as \"Commentaires\" from transactions, comptes, empr where compte_id=id_compte and id_empr=proprio_id and if(\'!!empr!!\'=\'0\', \'1\', id_empr=\'!!empr!!\') and if(!!typcom!!=\'0\', \'1\', type_compte_id=!!typcom!!) and date_format(date_enrgt, \'%Y%m%d\') >= date_format(\'!!date_debut!!\', \'%Y%m%d\') and date_format(date_enrgt, \'%Y%m%d\') <= date_format(\'!!date_fin!!\', \'%Y%m%d\') order by empr_nom, empr_prenom, type_compte_id, date_enrgt desc','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"typcom\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Type de compte]]></ALIAS>\n  <TYPE>list</TYPE>\n<OPTIONS FOR=\"list\">\r\n <MULTIPLE>no</MULTIPLE>\r\n <ITEMS>\r\n  <ITEM VALUE=\"1\"><![CDATA[Abonnement]]></ITEM>\r\n  <ITEM VALUE=\"2\"><![CDATA[Amende]]></ITEM>\r\n  <ITEM VALUE=\"3\"><![CDATA[Prêt]]></ITEM>\r\n </ITEMS>\r\n <UNSELECT_ITEM VALUE=\"0\"><![CDATA[Tous]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"empr\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Emprunteur]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_empr, concat(empr_nom,\' \',empr_prenom) from empr order by empr_nom</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"0\">Tous</UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"date_debut\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date début]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n <FIELD NAME=\"date_fin\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Date fin]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',17,0,''),(352,'Liste des documents jamais prêtés','SELECT expl_id as object_id, \'EXPL\' as object_type, concat(\"LIVRE \",tit1) as Titre FROM notices join exemplaires on expl_notice=notice_id LEFT JOIN pret_archive ON arc_expl_notice = notice_id where arc_expl_id IS NULL AND expl_id IS NOT NULL UNION SELECT expl_id as object_id, \'EXPL\' as object_type, concat(\"PERIO \",tit1, \" Numéro : \",bulletin_numero) as Titre FROM (bulletins INNER JOIN notices ON bulletins.bulletin_notice = notices.notice_id) INNER JOIN exemplaires on expl_bulletin=bulletin_id LEFT JOIN pret_archive ON expl_id = arc_expl_id WHERE pret_archive.arc_id Is Null','','1','',19,0,''),(353,'Liste des documents les moins empruntés','SELECT year(arc_debut) AS Année, tit1 AS Titre, COUNT(*) AS nb_fois FROM pret_archive, notices WHERE arc_expl_notice=notice_id AND year(arc_debut)=\'!!param_annee!!\' GROUP BY arc_expl_notice ORDER BY nb_fois','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param_annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',19,0,''),(354,'Liste des documents les plus empruntés','SELECT year(arc_debut) AS Année, tit1 AS Titre, COUNT(*) AS nb_fois FROM pret_archive, notices WHERE arc_expl_notice=notice_id AND year(arc_debut)=\'!!param_annee!!\' GROUP BY arc_expl_notice ORDER BY nb_fois DESC','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param_annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[année de calcul :]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',19,0,''),(355,'Liste des prêts en cours par localisation','select expl_cb as \"Code-barres\", if(expl_notice>0,if(n1.tit4=\"\",n1.tit1,concat(n1.tit1,\" : \",n1.tit4)),concat(nperio.tit1,\" / \",bulletin_numero)) as Titre, concat(author_name,\", \",author_rejete) as Auteur, concat(empr_cb,\" : \",empr_nom,\", \",empr_prenom) as Emprunteur, DATE_FORMAT(pret_date, \"%d/%m/%Y\") as \"Date de prêt\", DATE_FORMAT(pret_retour, \"%d/%m/%Y\") as \"Date de retour prévu\" from pret left join exemplaires on pret_idexpl=expl_id left join notices n1 on expl_notice=n1.notice_id left join responsability on responsability_notice=n1.notice_id and responsability_type=0  left join authors on author_id=responsability_author left join bulletins on expl_bulletin=bulletin_id left join notices nperio on bulletin_notice=nperio.notice_id left join empr on id_empr=pret_idempr where empr_location in (!!localisation!!) order by pret_retour ASC, empr_nom ASC, empr_prenom ASC','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"localisation\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[localisation]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\n <MULTIPLE>yes</MULTIPLE>\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\n</OPTIONS>\n </FIELD>\n</FIELDS>',19,0,''),(356,'Liste des prêts en cours par localisation et section','select concat(\'<a href=./circ.php?categ=visu_ex&form_cb_expl=\',expl_cb,\'>\',expl_cb,\'</a>\') as \"Code-barre\",expl_cote as Cote, concat(if(notices_m.notice_id is not null,concat(\'<a href=./catalog.php?categ=isbd&id=\',notices_m.notice_id,\'>\'),concat(\'<a href=./catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=\',bulletin_id,\'>\')),ifnull(notices_m.tit1,notices_s.tit1),\' \',ifnull(bulletin_numero,\'\'),\' \',ifnull(mention_date,\'\'),\'</a>\') as Titre, section_libelle as Section, location_libelle as Localisation, concat(\'<a href=./circ.php?categ=pret&form_cb=\',empr_cb,\'>\',empr_nom, \', \',empr_prenom,\'</a>\') as Emprunteur, date_format(pret_date,\"%d-%m-%Y\") as Sortie, date_format(pret_retour,\"%d-%m-%Y\") as Retour FROM (((exemplaires LEFT JOIN notices AS notices_m ON expl_notice = notices_m.notice_id ) LEFT JOIN bulletins ON expl_bulletin = bulletins.bulletin_id) LEFT JOIN notices AS notices_s ON bulletin_notice = notices_s.notice_id) left join docs_section on expl_section=idsection left join docs_location on expl_location=idlocation left join pret on expl_id=pret_idexpl left join empr on pret_idempr=id_empr where expl_location in (!!choixloca!!) and expl_section in (!!choixsection!!) and id_empr is not null order by 6 ASC','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"choixloca\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Localisation(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlocation, location_libelle from docs_location order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"choixsection\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Section(s) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section order by 2]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',19,0,''),(357,'Attribuer pour un utilisateur les mêmes droits sur les paniers en partie catalogue que ceux d\'un autre utilisateur','UPDATE caddie\r\nSET autorisations=CONCAT(autorisations,\' \',\'!!userarattacher!!\')\r\nWHERE (autorisations=\"!!usermodele!!\" \r\nOR autorisations LIKE \"!!usermodele!! %\"  \r\nOR autorisations LIKE \"% !!usermodele!! %\" \r\nOR autorisations LIKE \"% !!usermodele!!\")\r\nAND (autorisations!=\"!!userarattacher!!\" \r\nAND autorisations NOT LIKE \"!!userarattacher!! %\"  \r\nAND autorisations NOT LIKE \"% !!userarattacher!! %\" \r\nAND autorisations NOT LIKE \"% !!userarattacher!!\" )','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"userarattacher\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Attribution des droits à l\'utilisateur (Destination) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"usermodele\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Sélectionner l\'utilisateur dont les droits sont à dupliquer (Source) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',2,0,''),(358,'Attribuer pour un utilisateur les mêmes droits sur les paniers en partie circulation que ceux d\'un autre utilisateur','UPDATE empr_caddie\r\nSET autorisations=CONCAT(autorisations,\' \',\'!!userarattacher!!\')\r\nWHERE (autorisations=\"!!usermodele!!\" \r\nOR autorisations LIKE \"!!usermodele!! %\"  \r\nOR autorisations LIKE \"% !!usermodele!! %\" \r\nOR autorisations LIKE \"% !!usermodele!!\")\r\nAND (autorisations!=\"!!userarattacher!!\" \r\nAND autorisations NOT LIKE \"!!userarattacher!! %\"  \r\nAND autorisations NOT LIKE \"% !!userarattacher!! %\" \r\nAND autorisations NOT LIKE \"% !!userarattacher!!\" )','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"userarattacher\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Attribution des droits à l\'utilisateur (Destination) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"usermodele\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Sélectionner l\'utilisateur dont les droits sont à dupliquer (Source) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',2,0,''),(359,'Attribuer pour un utilisateur les mêmes droits sur les procédures de paniers en partie catalogue que ceux d\'un autre utilisateur','UPDATE caddie_procs\r\nSET autorisations=CONCAT(autorisations,\' \',\'!!userarattacher!!\')\r\nWHERE (autorisations=\"!!usermodele!!\" \r\nOR autorisations LIKE \"!!usermodele!! %\"  \r\nOR autorisations LIKE \"% !!usermodele!! %\" \r\nOR autorisations LIKE \"% !!usermodele!!\")\r\nAND (autorisations!=\"!!userarattacher!!\" \r\nAND autorisations NOT LIKE \"!!userarattacher!! %\"  \r\nAND autorisations NOT LIKE \"% !!userarattacher!! %\" \r\nAND autorisations NOT LIKE \"% !!userarattacher!!\" )','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"userarattacher\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Attribution des droits à l\'utilisateur (Destination) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"usermodele\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Sélectionner l\'utilisateur dont les droits sont à dupliquer (Source) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',2,0,''),(360,'Attribuer pour un utilisateur les mêmes droits sur les procédures de paniers en partie circulation que ceux d\'un autre utilisateur','UPDATE empr_caddie_procs\r\nSET autorisations=CONCAT(autorisations,\' \',\'!!userarattacher!!\')\r\nWHERE (autorisations=\"!!usermodele!!\" \r\nOR autorisations LIKE \"!!usermodele!! %\"  \r\nOR autorisations LIKE \"% !!usermodele!! %\" \r\nOR autorisations LIKE \"% !!usermodele!!\")\r\nAND (autorisations!=\"!!userarattacher!!\" \r\nAND autorisations NOT LIKE \"!!userarattacher!! %\"  \r\nAND autorisations NOT LIKE \"% !!userarattacher!! %\" \r\nAND autorisations NOT LIKE \"% !!userarattacher!!\" )','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"userarattacher\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Attribution des droits à l\'utilisateur (Destination) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"usermodele\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Sélectionner l\'utilisateur dont les droits sont à dupliquer (Source) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',2,0,''),(361,'Attribuer pour un utilisateur les mêmes droits sur les statistiques que ceux d\'un autre utilisateur','UPDATE procs\r\nSET autorisations=CONCAT(autorisations,\' \',\'!!userarattacher!!\')\r\nWHERE (autorisations=\"!!usermodele!!\" \r\nOR autorisations LIKE \"!!usermodele!! %\"  \r\nOR autorisations LIKE \"% !!usermodele!! %\" \r\nOR autorisations LIKE \"% !!usermodele!!\")\r\nAND (autorisations!=\"!!userarattacher!!\" \r\nAND autorisations NOT LIKE \"!!userarattacher!! %\"  \r\nAND autorisations NOT LIKE \"% !!userarattacher!! %\" \r\nAND autorisations NOT LIKE \"% !!userarattacher!!\" )','','1','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"userarattacher\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Attribution des droits à l\'utilisateur (Destination) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"usermodele\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Sélectionner l\'utilisateur dont les droits sont à dupliquer (Source) :]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>SELECT userid, username FROM users ORDER BY 2</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',2,0,''),(1,'Lista ejemplares / estado','select expl_cote as Cote, expl_cb as \"Code-barres\", CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre from exemplaires left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id where expl_statut=!!param1!! order by expl_cote','Lista parametrada de ejempalres por estado','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Estado]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idstatut,statut_libelle from docs_statut]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[Selecciona un estado]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(2,'Recuento ejemplares / estado','select statut_libelle as Statut, count(*) as Nombre from exemplaires, docs_statut where idstatut=expl_statut group by statut_libelle order by idstatut','Número de ejemplares por estado de ejemplar','1 4 3 2',NULL,0,0,''),(3,'Recuento ejemplares / propietario / estado','select lender_libelle as Propriétaire, statut_libelle as Statut, count(*) as Nombre from exemplaires, lenders, docs_statut where expl_owner=idlender and expl_statut=idstatut group by lender_libelle,statut_libelle order by lender_libelle,statut_libelle ','Número de ejemplares por propietario y por estado de ejemplar','1 4 3 2',NULL,0,0,''),(4,'Lista de ejemplare de un propietario / estado','select lender_libelle as Propriétaire, statut_libelle as Statut, expl_cote as Cote, expl_cb as \"Code-barres\", CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre from exemplaires, docs_statut, lenders left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id where expl_statut=!!statut!! and expl_owner=!!Proprietaire!! and expl_statut=idstatut and expl_owner=idlender order by lender_libelle, statut_libelle, expl_cote, expl_cb ','Lista de ejemplares de un propietari por estado, signatura, código de barras, título  (práctico para hacer listas de documentos no marcados antes de una importación)','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"statut\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Estado]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idstatut, statut_libelle from docs_statut</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"Proprietaire\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propietario]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(5,'Recuento ejemplares / sección','select section_libelle as Section, count(*) as Nombre from exemplaires, docs_section where idsection=expl_section group by idsection, section_libelle order by idsection','Número de ejemplares por sección','1 4 3 2',NULL,0,0,''),(6,'Lista de ejemplares para una o más secciones por propietario','select section_libelle as Section, expl_cote as Cote, expl_cb as \"Code-barres\", CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre from exemplaires, docs_section, lenders left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id where idsection in (!!sections!!) and expl_owner=!!preteur!! and expl_section=idsection and expl_owner=idlender order by section_libelle, expl_cote, expl_cb ','Lista de ejemplares de una o más secciones para un propietario','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"sections\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Sección(es)]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idsection, section_libelle from docs_section]]></QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"preteur\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propietario]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY><![CDATA[select idlender, lender_libelle from lenders order by idlender]]></QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[Escoge un propietario]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(7,'Estado : Recuento ejemplares / proprietario','select lender_libelle as Propriétaire, count(*) as Nombre from exemplaires, lenders where idlender=expl_owner group by expl_owner, lender_libelle','Núm de ejemmplares por propietario de ejemplar','1 4 3 2',NULL,0,0,''),(8,'Lista ejemplares para un propietario','select expl_cote as Cote, expl_cb as \"Code-barres\", CASE WHEN expl_notice>0 THEN concat(CASE WHEN serie_name IS NOT NULL THEN CONCAT(serie_name, \" : \") ELSE \"\" END, n1.tit1) ELSE CONCAT(n2.tit1,\" \",bulletin_numero,\" \") END as Titre from exemplaires, docs_statut, lenders left join notices n1 on expl_notice=n1.notice_id left join series on n1.tparent_id=serie_id left join bulletins on expl_bulletin=bulletin_id left join notices n2 on bulletin_notice=n2.notice_id where expl_owner=!!proprietaire!! and expl_statut=idstatut and expl_owner=idlender order by  expl_cote, expl_cb ','Lista de los ejemplares para un propietario ordenados por signatura y código de barras','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"proprietaire\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Propiétario]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select idlender, lender_libelle from lenders order by idlender</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\">Escoge un propietario</UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(9,'Recuento usuarios / categoría','select libelle as Catégorie, count(*) as \'Nombre lecteurs\' from empr, empr_categ where id_categ_empr=empr_categ group by libelle order by libelle','Número de usuarios por categoría','1 4 3 2',NULL,0,0,''),(10,'Lista usuarios / categorías','select libelle as Catégorie, empr_nom as Nom, empr_prenom as Prénom, empr_year as \"Année de naissance\" from empr, empr_categ where id_categ_empr=empr_categ order by libelle, empr_nom, empr_prenom','Lista de usuarios por categorías de usuario, usuario','1 2',NULL,0,0,''),(11,'Estadísticas : Recuento de préstamos / categorías de usuarios en un año','SELECT CASE WHEN libelle IS NULL THEN \" Catégorie de lecteurs inconnue\" ELSE libelle END as Catégorie, count(*) as \"Nombre de prêts\" FROM pret_archive LEFT JOIN empr_categ ON id_categ_empr = arc_empr_categ where year(arc_debut) = \'!!param1!!\' group by arc_empr_categ order by Catégorie','Número de préstamos por categoría de usuarios en un año','1 5 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[año]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS></OPTIONS>\n </FIELD>\n <FIELD NAME=\"mois\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[mes]]></ALIAS>\n  <TYPE>list</TYPE>\n<OPTIONS FOR=\"list\">\r\n <MULTIPLE>yes</MULTIPLE>\r\n <ITEMS>\r\n  <ITEM VALUE=\"1\"><![CDATA[Enero]]></ITEM>\r\n  <ITEM VALUE=\"2\"><![CDATA[Febrero]]></ITEM>\r\n  <ITEM VALUE=\"3\"><![CDATA[Marzo]]></ITEM>\r\n  <ITEM VALUE=\"4\"><![CDATA[Abril]]></ITEM>\r\n  <ITEM VALUE=\"5\"><![CDATA[Mayo]]></ITEM>\r\n  <ITEM VALUE=\"6\"><![CDATA[Junio]]></ITEM>\r\n  <ITEM VALUE=\"7\"><![CDATA[Julio]]></ITEM>\r\n  <ITEM VALUE=\"8\"><![CDATA[Agosto]]></ITEM>\r\n  <ITEM VALUE=\"9\"><![CDATA[Septiembre]]></ITEM>\r\n  <ITEM VALUE=\"10\"><![CDATA[Octubre]]></ITEM>\r\n  <ITEM VALUE=\"11\"><![CDATA[Noviembre]]></ITEM>\r\n  <ITEM VALUE=\"12\"><![CDATA[Diciembre]]></ITEM>\r\n </ITEMS>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(12,'Estadísticas : Recuento de usuarios / edad','SELECT CASE WHEN  (!!param1!! - empr_year) <= 13 THEN \' Jusque 13 ans\' WHEN (!!param1!! - empr_year) >13 and (!!param1!! - empr_year)<=24 THEN \'14 à 24 ans\' WHEN (!!param1!! - empr_year)>24 and (!!param1!! - empr_year)<=59 THEN \'25 à 59 ans\' WHEN (!!param1!! - empr_year)>59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as \"Tranche d\'âge\", count(*) as Nombre from empr where empr_categ in (!!categorie!!) and (year(empr_date_expiration)=!!param1!! or year(empr_date_adhesion)=!!param1!!) group by 1','Núm. de usuarios por franjas de edad en un año','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Año de cálculo]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Categoría]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by libelle</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(13,'Estadísticas : Recuento de usuarios / sexo / edad','SELECT case when empr_sexe=\'1\' then \'Hommes\' when empr_sexe=\'2\' then \'Femmes\' else \'erreur sur sexe\' end as Sexe, CASE WHEN  (!!param1!! - empr_year) <= 13 THEN \'Jusque 13 ans\' WHEN (!!param1!! - empr_year) >13 and (!!param1!! - empr_year) <= 24 THEN \'14 à 24 ans\' WHEN (!!param1!! - empr_year) >24 and (!!param1!! - empr_year) <= 59 THEN \'25 à 59 ans\' WHEN (!!param1!! - empr_year) >59 THEN \'60 ans et plus\'  ELSE \'erreur sur age\' END as \"Tranche d\'âge\", count(*) as Nombre from empr where empr_categ in (!!categorie!!) and (year(empr_date_expiration)=!!param1!! or year(empr_date_adhesion)=!!param1!!) group by sexe, 2','Núm. de usuarios por sexo y por franja de edad para un año','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Año de cálculo]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Categoría]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by libelle</QUERY>\r\n <MULTIPLE>no</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(14,'Estadísticas : Recuento de usuarios / población / categoría','select empr_ville as Ville, count(*) as Nbre from empr where empr_categ in (!!categorie!!) and (year(empr_date_expiration)=!!annee!! or year(empr_date_adhesion)=!!annee!!) group by empr_ville order by empr_ville','Número de usuarios por población de residencia para una o más categorías','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"categorie\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Categoria]]></ALIAS>\n  <TYPE>query_list</TYPE>\n<OPTIONS FOR=\"query_list\">\r\n <QUERY>select id_categ_empr, libelle from empr_categ order by libelle</QUERY>\r\n <MULTIPLE>yes</MULTIPLE>\r\n <UNSELECT_ITEM VALUE=\"\"></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"annee\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Año de cálculo]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(15,'Estadísticas : Recuento de préstamos por mes','SELECT year(arc_debut) as Année, month(arc_debut) as Mois, count(*) as \"Nombre de prêts\" FROM pret_archive where year(arc_debut) = \'!!param1!!\' group by 1, 2 order by 1, 2','Número total de préstamos para un año','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Año de cálculo]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>5</SIZE>\r\n <MAXSIZE>4</MAXSIZE>\r\n</OPTIONS> \n </FIELD>\n</FIELDS>',0,0,''),(16,'Estadísticas : Recuento de préstamos / sección para un año','SELECT CASE WHEN section_libelle IS NULL THEN \" Section supprimée\" ELSE section_libelle END as Section, count(*) as \"Nombre de prêts\" FROM pret_archive LEFT JOIN docs_section ON idsection = arc_expl_section where year(arc_debut) = \'!!param1!!\' group by arc_expl_section order by Section','Número de préstamos por sección para un año','1 4 3 2','<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FIELDS>\n <FIELD NAME=\"param1\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[año]]></ALIAS>\n  <TYPE>text</TYPE>\n<OPTIONS FOR=\"text\">\r\n <SIZE>20</SIZE>\r\n <MAXSIZE>255</MAXSIZE>\r\n</OPTIONS>\n </FIELD>\n <FIELD NAME=\"mois\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[mes]]></ALIAS>\n  <TYPE>list</TYPE>\n<OPTIONS FOR=\"list\">\r\n <MULTIPLE>yes</MULTIPLE>\r\n <ITEMS>\r\n  <ITEM VALUE=\"1\"><![CDATA[Enero]]></ITEM>\r\n  <ITEM VALUE=\"2\"><![CDATA[Febrero]]></ITEM>\r\n  <ITEM VALUE=\"3\"><![CDATA[Marzo]]></ITEM>\r\n  <ITEM VALUE=\"4\"><![CDATA[Abril]]></ITEM>\r\n  <ITEM VALUE=\"5\"><![CDATA[Mayo]]></ITEM>\r\n  <ITEM VALUE=\"6\"><![CDATA[Junio]]></ITEM>\r\n  <ITEM VALUE=\"7\"><![CDATA[Julio]]></ITEM>\r\n  <ITEM VALUE=\"8\"><![CDATA[Août]]></ITEM>\r\n  <ITEM VALUE=\"9\"><![CDATA[Septiembre]]></ITEM>\r\n  <ITEM VALUE=\"10\"><![CDATA[Octubre]]></ITEM>\r\n  <ITEM VALUE=\"11\"><![CDATA[Noviembre]]></ITEM>\r\n  <ITEM VALUE=\"12\"><![CDATA[Diciembre]]></ITEM>\r\n </ITEMS>\r\n <UNSELECT_ITEM VALUE=\"\"><![CDATA[]]></UNSELECT_ITEM>\r\n</OPTIONS>\n </FIELD>\n</FIELDS>',0,0,''),(362,'LLIUREX_RENOV:Canvi de data de finalització de l\'abonament ','Update empr set empr_date_expiration=\'!!date!!\' where empr_date_expiration<curdate()','Acció per a renovar als usuaris que tenen caducat l\'abonament','1','<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<FIELDS>\n <FIELD NAME=\"date\" MANDATORY=\"yes\">\n  <ALIAS><![CDATA[Seleccione la nova data de caducitat:]]></ALIAS>\n  <TYPE>date_box</TYPE>\n<OPTIONS FOR=\"date_box\"></OPTIONS>\n </FIELD>\n</FIELDS>',20,0,'');

--
-- Table structure for table `procs_classements`
--

CREATE TABLE `procs_classements` (
  `idproc_classement` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `libproc_classement` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`idproc_classement`)
) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `procs_classements`
--

INSERT INTO `procs_classements` VALUES (2,'Autorisations'),(5,'Statistiques DLL'),(9,'Statistiques - lecteurs'),(14,'Statistiques - exemplaires'),(15,'Statistiques - prêts'),(16,'Listes - exemplaires'),(17,'Listes - lecteurs'),(18,'Actions - Nettoyage'),(19,'Listes - prêts'),(20,'Migration');

--
-- Table structure for table `publisher_custom`
--

CREATE TABLE `publisher_custom` (
  `idchamp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_type` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `titre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'text',
  `datatype` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `options` text COLLATE utf8_unicode_ci,
  `multiple` int(11) NOT NULL DEFAULT '0',
  `obligatoire` int(11) NOT NULL DEFAULT '0',
  `ordre` int(11) DEFAULT NULL,
  `search` int(1) unsigned NOT NULL DEFAULT '0',
  `export` int(1) unsigned NOT NULL DEFAULT '0',
  `exclusion_obligatoire` int(1) unsigned NOT NULL DEFAULT '0',
  `pond` int(11) NOT NULL DEFAULT '100',
  `opac_sort` int(11) NOT NULL DEFAULT '0',
  `comment` blob NOT NULL,
  PRIMARY KEY (`idchamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `publisher_custom`
--


--
-- Table structure for table `publisher_custom_lists`
--

CREATE TABLE `publisher_custom_lists` (
  `publisher_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `publisher_custom_list_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `publisher_custom_list_lib` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ordre` int(11) DEFAULT NULL,
  KEY `editorial_custom_champ` (`publisher_custom_champ`),
  KEY `editorial_champ_list_value` (`publisher_custom_champ`,`publisher_custom_list_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `publisher_custom_lists`
--


--
-- Table structure for table `publisher_custom_values`
--

CREATE TABLE `publisher_custom_values` (
  `publisher_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `publisher_custom_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `publisher_custom_small_text` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `publisher_custom_text` text COLLATE utf8_unicode_ci,
  `publisher_custom_integer` int(11) DEFAULT NULL,
  `publisher_custom_date` date DEFAULT NULL,
  `publisher_custom_float` float DEFAULT NULL,
  `publisher_custom_order` int(11) NOT NULL DEFAULT '0',
  KEY `editorial_custom_champ` (`publisher_custom_champ`),
  KEY `editorial_custom_origine` (`publisher_custom_origine`),
  KEY `i_pcv_st` (`publisher_custom_small_text`),
  KEY `i_pcv_t` (`publisher_custom_text`(255)),
  KEY `i_pcv_i` (`publisher_custom_integer`),
  KEY `i_pcv_d` (`publisher_custom_date`),
  KEY `i_pcv_f` (`publisher_custom_float`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `publisher_custom_values`
--


--
-- Table structure for table `publishers`
--

CREATE TABLE `publishers` (
  `ed_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `ed_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ed_adr1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ed_adr2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ed_cp` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ed_ville` varchar(96) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ed_pays` varchar(96) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ed_web` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `index_publisher` text COLLATE utf8_unicode_ci,
  `ed_comment` text COLLATE utf8_unicode_ci,
  `ed_num_entite` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`ed_id`),
  KEY `ed_name` (`ed_name`),
  KEY `ed_ville` (`ed_ville`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `publishers`
--


--
-- Table structure for table `quotas`
--

CREATE TABLE `quotas` (
  `quota_type` int(10) unsigned NOT NULL DEFAULT '0',
  `constraint_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `elements` int(10) unsigned NOT NULL DEFAULT '0',
  `value` float DEFAULT NULL,
  PRIMARY KEY (`quota_type`,`constraint_type`,`elements`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `quotas`
--


--
-- Table structure for table `quotas_finance`
--

CREATE TABLE `quotas_finance` (
  `quota_type` int(10) unsigned NOT NULL DEFAULT '0',
  `constraint_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `elements` int(10) unsigned NOT NULL DEFAULT '0',
  `value` float DEFAULT NULL,
  PRIMARY KEY (`quota_type`,`constraint_type`,`elements`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `quotas_finance`
--


--
-- Table structure for table `quotas_opac_views`
--

CREATE TABLE `quotas_opac_views` (
  `quota_type` int(10) unsigned NOT NULL DEFAULT '0',
  `constraint_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `elements` int(10) unsigned NOT NULL DEFAULT '0',
  `value` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`quota_type`,`constraint_type`,`elements`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `quotas_opac_views`
--


--
-- Table structure for table `rapport_demandes`
--

CREATE TABLE `rapport_demandes` (
  `id_item` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `contenu` text COLLATE utf8_unicode_ci NOT NULL,
  `num_note` int(10) NOT NULL DEFAULT '0',
  `num_demande` int(10) NOT NULL DEFAULT '0',
  `ordre` mediumint(3) NOT NULL DEFAULT '0',
  `type` mediumint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_item`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rapport_demandes`
--


--
-- Table structure for table `rdfstore_g2t`
--

CREATE TABLE `rdfstore_g2t` (
  `g` mediumint(8) unsigned NOT NULL,
  `t` mediumint(8) unsigned NOT NULL,
  UNIQUE KEY `gt` (`g`,`t`),
  KEY `tg` (`t`,`g`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci DELAY_KEY_WRITE=1;

--
-- Dumping data for table `rdfstore_g2t`
--


--
-- Table structure for table `rdfstore_id2val`
--

CREATE TABLE `rdfstore_id2val` (
  `id` mediumint(8) unsigned NOT NULL,
  `misc` tinyint(1) NOT NULL DEFAULT '0',
  `val` text COLLATE utf8_unicode_ci NOT NULL,
  `val_type` tinyint(1) NOT NULL DEFAULT '0',
  UNIQUE KEY `id` (`id`,`val_type`),
  KEY `v` (`val`(64))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci DELAY_KEY_WRITE=1;

--
-- Dumping data for table `rdfstore_id2val`
--


--
-- Table structure for table `rdfstore_index`
--

CREATE TABLE `rdfstore_index` (
  `num_triple` int(10) unsigned NOT NULL DEFAULT '0',
  `subject_uri` text CHARACTER SET utf8 NOT NULL,
  `subject_type` text COLLATE utf8_unicode_ci NOT NULL,
  `predicat_uri` text CHARACTER SET utf8 NOT NULL,
  `num_object` int(10) unsigned NOT NULL DEFAULT '0',
  `object_val` text CHARACTER SET utf8 NOT NULL,
  `object_index` text CHARACTER SET utf8 NOT NULL,
  `object_lang` char(5) CHARACTER SET utf8 NOT NULL DEFAULT '',
  PRIMARY KEY (`num_object`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rdfstore_index`
--


--
-- Table structure for table `rdfstore_o2val`
--

CREATE TABLE `rdfstore_o2val` (
  `id` mediumint(8) unsigned NOT NULL,
  `misc` tinyint(1) NOT NULL DEFAULT '0',
  `val_hash` char(32) COLLATE utf8_unicode_ci NOT NULL,
  `val` text COLLATE utf8_unicode_ci NOT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `vh` (`val_hash`),
  KEY `v` (`val`(64))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci DELAY_KEY_WRITE=1;

--
-- Dumping data for table `rdfstore_o2val`
--


--
-- Table structure for table `rdfstore_s2val`
--

CREATE TABLE `rdfstore_s2val` (
  `id` mediumint(8) unsigned NOT NULL,
  `misc` tinyint(1) NOT NULL DEFAULT '0',
  `val_hash` char(32) COLLATE utf8_unicode_ci NOT NULL,
  `val` text COLLATE utf8_unicode_ci NOT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `vh` (`val_hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci DELAY_KEY_WRITE=1;

--
-- Dumping data for table `rdfstore_s2val`
--


--
-- Table structure for table `rdfstore_setting`
--

CREATE TABLE `rdfstore_setting` (
  `k` char(32) COLLATE utf8_unicode_ci NOT NULL,
  `val` text COLLATE utf8_unicode_ci NOT NULL,
  UNIQUE KEY `k` (`k`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci DELAY_KEY_WRITE=1;

--
-- Dumping data for table `rdfstore_setting`
--


--
-- Table structure for table `rdfstore_triple`
--

CREATE TABLE `rdfstore_triple` (
  `t` mediumint(8) unsigned NOT NULL,
  `s` mediumint(8) unsigned NOT NULL,
  `p` mediumint(8) unsigned NOT NULL,
  `o` mediumint(8) unsigned NOT NULL,
  `o_lang_dt` mediumint(8) unsigned NOT NULL,
  `o_comp` char(35) COLLATE utf8_unicode_ci NOT NULL,
  `s_type` tinyint(1) NOT NULL DEFAULT '0',
  `o_type` tinyint(1) NOT NULL DEFAULT '0',
  `misc` tinyint(1) NOT NULL DEFAULT '0',
  UNIQUE KEY `t` (`t`),
  KEY `sp` (`s`,`p`),
  KEY `os` (`o`,`s`),
  KEY `po` (`p`,`o`),
  KEY `misc` (`misc`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci DELAY_KEY_WRITE=1;

--
-- Dumping data for table `rdfstore_triple`
--


--
-- Table structure for table `recouvrements`
--

CREATE TABLE `recouvrements` (
  `recouvr_id` int(16) unsigned NOT NULL AUTO_INCREMENT,
  `empr_id` int(10) unsigned NOT NULL DEFAULT '0',
  `id_expl` int(10) unsigned NOT NULL DEFAULT '0',
  `date_rec` date NOT NULL DEFAULT '0000-00-00',
  `libelle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `montant` decimal(16,2) DEFAULT '0.00',
  `recouvr_type` int(2) unsigned NOT NULL DEFAULT '0',
  `date_pret` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_relance1` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_relance2` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_relance3` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`recouvr_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `recouvrements`
--


--
-- Table structure for table `rent_account_types_sections`
--

CREATE TABLE `rent_account_types_sections` (
  `account_type_num_exercice` int(10) unsigned NOT NULL DEFAULT '0',
  `account_type_num_section` int(10) unsigned NOT NULL DEFAULT '0',
  `account_type_marclist` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`account_type_num_section`,`account_type_marclist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rent_account_types_sections`
--


--
-- Table structure for table `rent_accounts`
--

CREATE TABLE `rent_accounts` (
  `id_account` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `account_num_user` int(10) unsigned NOT NULL DEFAULT '0',
  `account_num_exercice` int(10) unsigned NOT NULL DEFAULT '0',
  `account_request_type` varchar(3) NOT NULL DEFAULT '',
  `account_type` varchar(3) NOT NULL DEFAULT '',
  `account_desc` text,
  `account_date` datetime DEFAULT NULL,
  `account_receipt_limit_date` datetime DEFAULT NULL,
  `account_receipt_effective_date` datetime DEFAULT NULL,
  `account_return_date` datetime DEFAULT NULL,
  `account_num_uniform_title` int(10) unsigned NOT NULL DEFAULT '0',
  `account_title` varchar(255) NOT NULL DEFAULT '',
  `account_event_date` datetime DEFAULT NULL,
  `account_event_formation` varchar(255) NOT NULL DEFAULT '',
  `account_event_orchestra` varchar(255) NOT NULL DEFAULT '',
  `account_event_place` varchar(255) NOT NULL DEFAULT '',
  `account_num_publisher` int(10) unsigned NOT NULL DEFAULT '0',
  `account_num_supplier` int(10) unsigned NOT NULL DEFAULT '0',
  `account_num_author` int(10) unsigned NOT NULL DEFAULT '0',
  `account_num_pricing_system` int(10) unsigned NOT NULL DEFAULT '0',
  `account_time` int(10) unsigned NOT NULL DEFAULT '0',
  `account_percent` float(8,2) unsigned NOT NULL DEFAULT '0.00',
  `account_price` float(12,2) unsigned NOT NULL DEFAULT '0.00',
  `account_web` int(1) unsigned NOT NULL DEFAULT '0',
  `account_web_percent` float(8,2) unsigned NOT NULL DEFAULT '0.00',
  `account_web_price` float(12,2) unsigned NOT NULL DEFAULT '0.00',
  `account_comment` text,
  `account_request_status` int(1) unsigned NOT NULL DEFAULT '1',
  `account_num_acte` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rent_accounts`
--


--
-- Table structure for table `rent_accounts_invoices`
--

CREATE TABLE `rent_accounts_invoices` (
  `account_invoice_num_account` int(10) unsigned NOT NULL DEFAULT '0',
  `account_invoice_num_invoice` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`account_invoice_num_account`,`account_invoice_num_invoice`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rent_accounts_invoices`
--


--
-- Table structure for table `rent_invoices`
--

CREATE TABLE `rent_invoices` (
  `id_invoice` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `invoice_num_user` int(10) unsigned NOT NULL DEFAULT '0',
  `invoice_date` datetime DEFAULT NULL,
  `invoice_status` int(10) unsigned NOT NULL DEFAULT '1',
  `invoice_valid_date` datetime DEFAULT NULL,
  `invoice_destination` varchar(10) NOT NULL DEFAULT '',
  `invoice_num_acte` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_invoice`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rent_invoices`
--


--
-- Table structure for table `rent_pricing_system_grids`
--

CREATE TABLE `rent_pricing_system_grids` (
  `id_pricing_system_grid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pricing_system_grid_num_system` int(10) unsigned NOT NULL DEFAULT '0',
  `pricing_system_grid_time_start` int(10) unsigned NOT NULL DEFAULT '0',
  `pricing_system_grid_time_end` int(10) unsigned NOT NULL DEFAULT '0',
  `pricing_system_grid_price` float(12,2) unsigned NOT NULL DEFAULT '0.00',
  `pricing_system_grid_type` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_pricing_system_grid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rent_pricing_system_grids`
--


--
-- Table structure for table `rent_pricing_systems`
--

CREATE TABLE `rent_pricing_systems` (
  `id_pricing_system` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pricing_system_label` varchar(255) NOT NULL DEFAULT '',
  `pricing_system_desc` text,
  `pricing_system_percents` text,
  `pricing_system_num_exercice` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_pricing_system`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rent_pricing_systems`
--


--
-- Table structure for table `resa`
--

CREATE TABLE `resa` (
  `id_resa` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `resa_idempr` int(10) unsigned NOT NULL DEFAULT '0',
  `resa_idnotice` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `resa_idbulletin` int(8) unsigned NOT NULL DEFAULT '0',
  `resa_date` datetime DEFAULT NULL,
  `resa_date_debut` date NOT NULL DEFAULT '0000-00-00',
  `resa_date_fin` date NOT NULL DEFAULT '0000-00-00',
  `resa_cb` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resa_confirmee` int(1) unsigned NOT NULL DEFAULT '0',
  `resa_loc_retrait` smallint(5) unsigned NOT NULL DEFAULT '0',
  `resa_arc` int(10) unsigned NOT NULL DEFAULT '0',
  `resa_planning_id_resa` int(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_resa`),
  KEY `resa_date_fin` (`resa_date_fin`),
  KEY `resa_date` (`resa_date`),
  KEY `resa_cb` (`resa_cb`),
  KEY `i_idbulletin` (`resa_idbulletin`),
  KEY `i_idnotice` (`resa_idnotice`),
  KEY `i_resa_idempr` (`resa_idempr`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `resa`
--


--
-- Table structure for table `resa_archive`
--

CREATE TABLE `resa_archive` (
  `resarc_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `resarc_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `resarc_debut` date NOT NULL DEFAULT '0000-00-00',
  `resarc_fin` date NOT NULL DEFAULT '0000-00-00',
  `resarc_idnotice` int(10) unsigned NOT NULL DEFAULT '0',
  `resarc_idbulletin` int(10) unsigned NOT NULL DEFAULT '0',
  `resarc_confirmee` int(1) unsigned DEFAULT '0',
  `resarc_cb` varchar(14) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resarc_loc_retrait` smallint(5) unsigned DEFAULT '0',
  `resarc_from_opac` int(1) unsigned DEFAULT '0',
  `resarc_anulee` int(1) unsigned DEFAULT '0',
  `resarc_pretee` int(1) unsigned DEFAULT '0',
  `resarc_arcpretid` int(10) unsigned NOT NULL DEFAULT '0',
  `resarc_id_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `resarc_empr_cp` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resarc_empr_ville` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resarc_empr_prof` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resarc_empr_year` int(4) unsigned DEFAULT '0',
  `resarc_empr_categ` smallint(5) unsigned DEFAULT '0',
  `resarc_empr_codestat` smallint(5) unsigned DEFAULT '0',
  `resarc_empr_sexe` tinyint(3) unsigned DEFAULT '0',
  `resarc_empr_location` int(6) unsigned NOT NULL DEFAULT '1',
  `resarc_expl_nb` int(5) unsigned DEFAULT '0',
  `resarc_expl_typdoc` int(5) unsigned DEFAULT '0',
  `resarc_expl_cote` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resarc_expl_statut` smallint(5) unsigned DEFAULT '0',
  `resarc_expl_location` smallint(5) unsigned DEFAULT '0',
  `resarc_expl_codestat` smallint(5) unsigned DEFAULT '0',
  `resarc_expl_owner` mediumint(8) unsigned DEFAULT '0',
  `resarc_expl_section` int(5) unsigned NOT NULL DEFAULT '0',
  `resarc_resa_planning_id_resa` int(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`resarc_id`),
  KEY `i_pa_idempr` (`resarc_id_empr`),
  KEY `i_pa_notice` (`resarc_idnotice`),
  KEY `i_pa_bulletin` (`resarc_idbulletin`),
  KEY `i_pa_resarc_date` (`resarc_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `resa_archive`
--


--
-- Table structure for table `resa_loc`
--

CREATE TABLE `resa_loc` (
  `resa_loc` int(8) unsigned NOT NULL DEFAULT '0',
  `resa_emprloc` int(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`resa_loc`,`resa_emprloc`),
  KEY `i_resa_emprloc` (`resa_emprloc`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `resa_loc`
--


--
-- Table structure for table `resa_planning`
--

CREATE TABLE `resa_planning` (
  `id_resa` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `resa_idempr` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `resa_idnotice` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `resa_idbulletin` int(8) unsigned NOT NULL DEFAULT '0',
  `resa_date` datetime DEFAULT NULL,
  `resa_date_debut` date NOT NULL DEFAULT '0000-00-00',
  `resa_date_fin` date NOT NULL DEFAULT '0000-00-00',
  `resa_validee` int(1) unsigned NOT NULL DEFAULT '0',
  `resa_confirmee` int(1) unsigned NOT NULL DEFAULT '0',
  `resa_loc_retrait` int(5) unsigned NOT NULL DEFAULT '0',
  `resa_qty` int(5) unsigned NOT NULL DEFAULT '1',
  `resa_remaining_qty` int(5) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id_resa`),
  KEY `resa_date_fin` (`resa_date_fin`),
  KEY `resa_date` (`resa_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `resa_planning`
--


--
-- Table structure for table `resa_ranger`
--

CREATE TABLE `resa_ranger` (
  `resa_cb` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`resa_cb`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `resa_ranger`
--


--
-- Table structure for table `responsability`
--

CREATE TABLE `responsability` (
  `id_responsability` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `responsability_author` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `responsability_notice` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `responsability_fonction` varchar(4) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `responsability_type` mediumint(1) unsigned NOT NULL DEFAULT '0',
  `responsability_ordre` smallint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_responsability`,`responsability_author`,`responsability_notice`,`responsability_fonction`),
  KEY `responsability_notice` (`responsability_notice`),
  KEY `i_responsability_author` (`responsability_author`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `responsability`
--


--
-- Table structure for table `responsability_tu`
--

CREATE TABLE `responsability_tu` (
  `id_responsability_tu` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `responsability_tu_author_num` int(10) unsigned NOT NULL DEFAULT '0',
  `responsability_tu_num` int(10) unsigned NOT NULL DEFAULT '0',
  `responsability_tu_fonction` char(4) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `responsability_tu_type` int(10) unsigned NOT NULL DEFAULT '0',
  `responsability_tu_ordre` smallint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_responsability_tu`,`responsability_tu_author_num`,`responsability_tu_num`,`responsability_tu_fonction`),
  KEY `responsability_tu_author` (`responsability_tu_author_num`),
  KEY `responsability_tu_num` (`responsability_tu_num`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `responsability_tu`
--


--
-- Table structure for table `rss_content`
--

CREATE TABLE `rss_content` (
  `rss_id` int(10) unsigned NOT NULL DEFAULT '0',
  `rss_content` longblob NOT NULL,
  `rss_content_parse` longblob NOT NULL,
  `rss_last` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rss_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rss_content`
--


--
-- Table structure for table `rss_flux`
--

CREATE TABLE `rss_flux` (
  `id_rss_flux` int(9) unsigned NOT NULL AUTO_INCREMENT,
  `nom_rss_flux` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `link_rss_flux` blob NOT NULL,
  `descr_rss_flux` blob NOT NULL,
  `lang_rss_flux` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'fr',
  `copy_rss_flux` blob NOT NULL,
  `editor_rss_flux` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `webmaster_rss_flux` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ttl_rss_flux` int(9) unsigned NOT NULL DEFAULT '60',
  `img_url_rss_flux` blob NOT NULL,
  `img_title_rss_flux` blob NOT NULL,
  `img_link_rss_flux` blob NOT NULL,
  `format_flux` blob NOT NULL,
  `rss_flux_content` longblob NOT NULL,
  `rss_flux_last` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `export_court_flux` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `tpl_rss_flux` int(11) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_rss_flux`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rss_flux`
--


--
-- Table structure for table `rss_flux_content`
--

CREATE TABLE `rss_flux_content` (
  `num_rss_flux` int(9) unsigned NOT NULL DEFAULT '0',
  `type_contenant` char(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'BAN',
  `num_contenant` int(9) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`num_rss_flux`,`type_contenant`,`num_contenant`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rss_flux_content`
--


--
-- Table structure for table `rubriques`
--

CREATE TABLE `rubriques` (
  `id_rubrique` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `num_budget` int(8) unsigned NOT NULL DEFAULT '0',
  `num_parent` int(8) unsigned NOT NULL DEFAULT '0',
  `libelle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `commentaires` text COLLATE utf8_unicode_ci NOT NULL,
  `montant` float(8,2) unsigned NOT NULL DEFAULT '0.00',
  `num_cp_compta` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `autorisations` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_rubrique`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rubriques`
--


--
-- Table structure for table `sauv_lieux`
--

CREATE TABLE `sauv_lieux` (
  `sauv_lieu_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sauv_lieu_nom` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_lieu_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_lieu_protocol` varchar(10) COLLATE utf8_unicode_ci DEFAULT 'file',
  `sauv_lieu_host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_lieu_login` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_lieu_password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`sauv_lieu_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sauv_lieux`
--


--
-- Table structure for table `sauv_log`
--

CREATE TABLE `sauv_log` (
  `sauv_log_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sauv_log_start_date` date DEFAULT NULL,
  `sauv_log_file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_log_succeed` int(11) DEFAULT '0',
  `sauv_log_messages` mediumtext COLLATE utf8_unicode_ci,
  `sauv_log_userid` int(11) DEFAULT NULL,
  PRIMARY KEY (`sauv_log_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sauv_log`
--


--
-- Table structure for table `sauv_sauvegardes`
--

CREATE TABLE `sauv_sauvegardes` (
  `sauv_sauvegarde_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sauv_sauvegarde_nom` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_sauvegarde_file_prefix` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_sauvegarde_tables` mediumtext COLLATE utf8_unicode_ci,
  `sauv_sauvegarde_lieux` mediumtext COLLATE utf8_unicode_ci,
  `sauv_sauvegarde_users` mediumtext COLLATE utf8_unicode_ci,
  `sauv_sauvegarde_compress` int(11) DEFAULT '0',
  `sauv_sauvegarde_compress_command` mediumtext COLLATE utf8_unicode_ci,
  `sauv_sauvegarde_crypt` int(11) DEFAULT '0',
  `sauv_sauvegarde_key1` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_sauvegarde_key2` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`sauv_sauvegarde_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sauv_sauvegardes`
--

INSERT INTO `sauv_sauvegardes` VALUES (1,'todo','bibli','7','','1,3',0,'internal::',0,'','');

--
-- Table structure for table `sauv_tables`
--

CREATE TABLE `sauv_tables` (
  `sauv_table_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sauv_table_nom` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sauv_table_tables` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`sauv_table_id`),
  UNIQUE KEY `sauv_table_nom` (`sauv_table_nom`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sauv_tables`
--

INSERT INTO `sauv_tables` VALUES (7,'TODO','abo_liste_lecture,abts_abts,abts_abts_modeles,abts_grille_abt,abts_grille_modele,abts_modeles,abts_periodicites,acces_profiles,acces_rights,actes,admin_session,analysis,arch_emplacement,arch_statut,arch_type,audit,aut_link,author_custom,author_custom_lists,author_custom_values,authorities_sources,authors,authperso,authperso_authorities,authperso_custom,authperso_custom_lists,authperso_custom_values,avis,bannette_abon,bannette_contenu,bannette_equation,bannette_exports,bannette_facettes,bannette_tpl,bannettes,bannettes_descriptors,budgets,bulletins,cache_amendes,caddie,caddie_content,caddie_procs,cashdesk,cashdesk_locations,cashdesk_sections,categ_custom,categ_custom_lists,categ_custom_values,categories,classements,cms,cms_articles,cms_articles_descriptors,cms_build,cms_cache_cadres,cms_cadre_content,cms_cadres,cms_collections,cms_documents,cms_documents_links,cms_editorial_custom,cms_editorial_custom_lists,cms_editorial_custom_values,cms_editorial_fields_global_index,cms_editorial_publications_states,cms_editorial_types,cms_editorial_words_global_index,cms_hash,cms_managed_modules,cms_modules_extensions_datas,cms_pages,cms_pages_env,cms_sections,cms_sections_descriptors,cms_vars,cms_version,collection_custom,collection_custom_lists,collection_custom_values,collections,collections_state,collstate_custom,collstate_custom_lists,collstate_custom_values,comptes,connectors,connectors_categ,connectors_categ_sources,connectors_out,connectors_out_oai_deleted_records,connectors_out_oai_tokens,connectors_out_setcache_values,connectors_out_setcaches,connectors_out_setcateg_sets,connectors_out_setcategs,connectors_out_sets,connectors_out_sources,connectors_out_sources_esgroups,connectors_sources,coordonnees,demandes,demandes_actions,demandes_custom,demandes_custom_lists,demandes_custom_values,demandes_notes,demandes_theme,demandes_type,demandes_users,docs_codestat,docs_location,docs_section,docs_statut,docs_type,docsloc_section,docwatch_categories,docwatch_datasources,docwatch_items,docwatch_items_descriptors,docwatch_items_tags,docwatch_selectors,docwatch_tags,docwatch_watches,dsi_archive,editions_states,empr,empr_caddie,empr_caddie_content,empr_caddie_procs,empr_categ,empr_codestat,empr_custom,empr_custom_lists,empr_custom_values,empr_grilles,empr_groupe,empr_statut,empty_words_calculs,entites,entrepots_localisations,equations,error_log,es_cache,es_cache_blob,es_cache_int,es_converted_cache,es_esgroup_esusers,es_esgroups,es_esusers,es_methods,es_methods_users,es_searchcache,es_searchsessions,etagere,etagere_caddie,exemplaires,exemplaires_temp,exercices,expl_custom,expl_custom_lists,expl_custom_values,explnum,explnum_doc,explnum_doc_actions,explnum_doc_sugg,explnum_location,explnum_segments,explnum_speakers,explnum_statut,external_count,facettes,faq_questions,faq_questions_categories,faq_questions_fields_global_index,faq_questions_words_global_index,faq_themes,faq_types,fiche,frais,gestfic0_custom,gestfic0_custom_lists,gestfic0_custom_values,grilles,groupe,groupexpl,groupexpl_expl,harvest_field,harvest_profil,harvest_profil_import,harvest_profil_import_field,harvest_search_field,harvest_src,import_marc,index_concept,indexint,indexint_custom,indexint_custom_lists,indexint_custom_values,infopages,lenders,liens_actes,lignes_actes,lignes_actes_relances,lignes_actes_statuts,linked_mots,log_expl_retard,log_retard,logopac,mailtpl,map_echelles,map_emprises,map_hold_areas,map_projections,map_refs,mots,noeuds,nomenclature_children_records,nomenclature_exotic_instruments,nomenclature_exotic_other_instruments,nomenclature_families,nomenclature_formations,nomenclature_instruments,nomenclature_musicstands,nomenclature_notices_nomenclatures,nomenclature_types,nomenclature_voices,nomenclature_workshops,nomenclature_workshops_instruments,notice_onglet,notice_statut,notice_tpl,notice_tplcode,notices,notices_authorities_sources,notices_authperso,notices_categories,notices_custom,notices_custom_lists,notices_custom_values,notices_externes,notices_fields_global_index,notices_global_index,notices_langues,notices_mots_global_index,notices_relations,notices_titres_uniformes,offres_remises,onto_uri,opac_filters,opac_liste_lecture,opac_sessions,opac_views,opac_views_empr,origin_authorities,origine_notice,ouvertures,paiements,param_subst,parametres,pclassement,perio_relance,planificateur,pret,pret_archive,pret_custom,pret_custom_lists,pret_custom_values,procs,procs_classements,publisher_custom,publisher_custom_lists,publisher_custom_values,publishers,quotas,quotas_finance,quotas_opac_views,rapport_demandes,rdfstore_g2t,rdfstore_id2val,rdfstore_index,rdfstore_o2val,rdfstore_s2val,rdfstore_setting,rdfstore_triple,recouvrements,resa,resa_archive,resa_loc,resa_planning,resa_ranger,responsability,responsability_tu,rss_content,rss_flux,rss_flux_content,rubriques,sauv_lieux,sauv_log,sauv_sauvegardes,sauv_tables,search_cache,search_perso,search_persopac,search_persopac_empr_categ,serialcirc,serialcirc_ask,serialcirc_circ,serialcirc_copy,serialcirc_diff,serialcirc_expl,serialcirc_group,serialcirc_tpl,serie_custom,serie_custom_lists,serie_custom_values,series,sessions,shorturls,skos_fields_global_index,skos_words_global_index,source_sync,sources_enrichment,statopac,statopac_request,statopac_vues,statopac_vues_col,storages,sub_collections,subcollection_custom,subcollection_custom_lists,subcollection_custom_values,suggestions,suggestions_categ,suggestions_origine,suggestions_source,sur_location,taches,taches_docnum,taches_type,tags,thesaurus,titres_uniformes,transacash,transactions,transactype,transferts,transferts_demande,transferts_source,translation,tris,tu_custom,tu_custom_lists,tu_custom_values,tu_distrib,tu_ref,tu_subdiv,tva_achats,type_abts,type_comptes,types_produits,upload_repertoire,users,users_groups,vedette,vedette_link,vedette_object,visionneuse_params,voir_aussi,words,z_attr,z_bib,z_notices,z_query');

--
-- Table structure for table `scan_request_explnum`
--

CREATE TABLE `scan_request_explnum` (
  `scan_request_explnum_num_request` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_explnum_num_notice` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_explnum_num_bulletin` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_explnum_num_explnum` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`scan_request_explnum_num_request`,`scan_request_explnum_num_explnum`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `scan_request_explnum`
--


--
-- Table structure for table `scan_request_linked_records`
--

CREATE TABLE `scan_request_linked_records` (
  `scan_request_linked_record_num_request` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_linked_record_num_notice` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_linked_record_num_bulletin` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_linked_record_comment` text,
  `scan_request_linked_record_order` int(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`scan_request_linked_record_num_request`,`scan_request_linked_record_num_notice`,`scan_request_linked_record_num_bulletin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `scan_request_linked_records`
--


--
-- Table structure for table `scan_request_priorities`
--

CREATE TABLE `scan_request_priorities` (
  `id_scan_request_priority` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `scan_request_priority_label` varchar(255) NOT NULL DEFAULT '',
  `scan_request_priority_weight` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_scan_request_priority`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `scan_request_priorities`
--


--
-- Table structure for table `scan_request_status`
--

CREATE TABLE `scan_request_status` (
  `id_scan_request_status` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `scan_request_status_label` varchar(255) NOT NULL DEFAULT '',
  `scan_request_status_opac_show` int(1) NOT NULL DEFAULT '0',
  `scan_request_status_cancelable` int(1) NOT NULL DEFAULT '0',
  `scan_request_status_infos_editable` int(1) NOT NULL DEFAULT '0',
  `scan_request_status_class_html` varchar(255) NOT NULL DEFAULT '',
  `scan_request_status_is_closed` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_scan_request_status`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `scan_request_status`
--

INSERT INTO `scan_request_status` VALUES (1,'Sans statut particulier',1,0,0,'',0);

--
-- Table structure for table `scan_request_status_workflow`
--

CREATE TABLE `scan_request_status_workflow` (
  `scan_request_status_workflow_from_num` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_status_workflow_to_num` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`scan_request_status_workflow_from_num`,`scan_request_status_workflow_to_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `scan_request_status_workflow`
--


--
-- Table structure for table `scan_requests`
--

CREATE TABLE `scan_requests` (
  `id_scan_request` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `scan_request_title` varchar(255) NOT NULL DEFAULT '',
  `scan_request_desc` text,
  `scan_request_num_status` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_num_priority` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_create_date` datetime DEFAULT NULL,
  `scan_request_update_date` datetime DEFAULT NULL,
  `scan_request_date` datetime DEFAULT NULL,
  `scan_request_wish_date` datetime DEFAULT NULL,
  `scan_request_deadline_date` datetime DEFAULT NULL,
  `scan_request_comment` text,
  `scan_request_elapsed_time` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_num_dest_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_num_creator` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_type_creator` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_num_last_user` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_state` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_as_folder` int(1) unsigned NOT NULL DEFAULT '0',
  `scan_request_folder_num_notice` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_concept_uri` varchar(255) NOT NULL DEFAULT '',
  `scan_request_nb_scanned_pages` int(10) unsigned NOT NULL DEFAULT '0',
  `scan_request_num_location` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_scan_request`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `scan_requests`
--


--
-- Table structure for table `search_cache`
--

CREATE TABLE `search_cache` (
  `object_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `delete_on_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `value` mediumblob NOT NULL,
  PRIMARY KEY (`object_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `search_cache`
--


--
-- Table structure for table `search_perso`
--

CREATE TABLE `search_perso` (
  `search_id` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `search_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'RECORDS',
  `num_user` int(8) unsigned NOT NULL DEFAULT '0',
  `search_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `search_shortname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `search_query` text COLLATE utf8_unicode_ci NOT NULL,
  `search_human` text COLLATE utf8_unicode_ci NOT NULL,
  `search_directlink` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `autorisations` mediumtext COLLATE utf8_unicode_ci,
  `search_order` int(11) NOT NULL DEFAULT '0',
  `search_comment` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`search_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `search_perso`
--

INSERT INTO `search_perso` VALUES (1,'RECORDS',1,'Contrôle import et pointage BDP','BDP','a:4:{s:6:\"SEARCH\";a:3:{i:0;s:4:\"f_50\";i:1;s:4:\"f_16\";i:2;s:4:\"f_30\";}i:0;a:5:{s:6:\"SEARCH\";s:4:\"f_50\";s:2:\"OP\";s:2:\"EQ\";s:5:\"FIELD\";a:1:{i:0;s:0:\"\";}s:5:\"INTER\";N;s:8:\"FIELDVAR\";N;}i:1;a:5:{s:6:\"SEARCH\";s:4:\"f_16\";s:2:\"OP\";s:2:\"EQ\";s:5:\"FIELD\";N;s:5:\"INTER\";s:3:\"and\";s:8:\"FIELDVAR\";N;}i:2;a:5:{s:6:\"SEARCH\";s:4:\"f_30\";s:2:\"OP\";s:2:\"EQ\";s:5:\"FIELD\";N;s:5:\"INTER\";s:3:\"and\";s:8:\"FIELDVAR\";N;}}',' <i><strong>Date de cr&eacute;ation</strong> = ()</i> <strong>Et</strong> <i><strong>Localisation</strong> = ()</i> <strong>Et</strong> <i><strong>Statut</strong> = ()</i> ',1,NULL,0,'');

--
-- Table structure for table `search_persopac`
--

CREATE TABLE `search_persopac` (
  `search_id` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `num_empr` int(8) unsigned NOT NULL DEFAULT '0',
  `search_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `search_shortname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `search_query` text COLLATE utf8_unicode_ci NOT NULL,
  `search_human` text COLLATE utf8_unicode_ci NOT NULL,
  `search_directlink` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `search_limitsearch` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `search_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`search_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `search_persopac`
--


--
-- Table structure for table `search_persopac_empr_categ`
--

CREATE TABLE `search_persopac_empr_categ` (
  `id_categ_empr` int(11) NOT NULL DEFAULT '0',
  `id_search_persopac` int(11) NOT NULL DEFAULT '0',
  KEY `i_id_s_persopac` (`id_search_persopac`),
  KEY `i_id_categ_empr` (`id_categ_empr`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `search_persopac_empr_categ`
--


--
-- Table structure for table `serialcirc`
--

CREATE TABLE `serialcirc` (
  `id_serialcirc` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_serialcirc_abt` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_type` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_virtual` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_duration` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_checked` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_retard_mode` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_allow_resa` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_allow_copy` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_allow_send_ask` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_allow_subscription` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_duration_before_send` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_statut_circ` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_statut_circ_after` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_state` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_tpl` text COLLATE utf8_unicode_ci NOT NULL,
  `serialcirc_piedpage` text COLLATE utf8_unicode_ci NOT NULL,
  `serialcirc_no_ret` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_sort_diff` text COLLATE utf8_unicode_ci NOT NULL,
  `serialcirc_simple` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_serialcirc`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc`
--


--
-- Table structure for table `serialcirc_ask`
--

CREATE TABLE `serialcirc_ask` (
  `id_serialcirc_ask` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_serialcirc_ask_perio` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_ask_serialcirc` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_ask_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_ask_type` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_ask_statut` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_ask_date` date NOT NULL DEFAULT '0000-00-00',
  `serialcirc_ask_comment` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_serialcirc_ask`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_ask`
--


--
-- Table structure for table `serialcirc_circ`
--

CREATE TABLE `serialcirc_circ` (
  `id_serialcirc_circ` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_serialcirc_circ_diff` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_circ_expl` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_circ_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_circ_serialcirc` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_circ_order` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_circ_subscription` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_circ_hold_asked` int(11) NOT NULL DEFAULT '0',
  `serialcirc_circ_ret_asked` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_circ_trans_asked` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_circ_trans_doc_asked` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_circ_expected_date` datetime DEFAULT NULL,
  `serialcirc_circ_pointed_date` datetime DEFAULT NULL,
  `serialcirc_circ_group_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_serialcirc_circ`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_circ`
--


--
-- Table structure for table `serialcirc_copy`
--

CREATE TABLE `serialcirc_copy` (
  `id_serialcirc_copy` int(11) NOT NULL AUTO_INCREMENT,
  `num_serialcirc_copy_empr` int(11) NOT NULL DEFAULT '0',
  `num_serialcirc_copy_bulletin` int(11) NOT NULL DEFAULT '0',
  `serialcirc_copy_analysis` text COLLATE utf8_unicode_ci,
  `serialcirc_copy_date` date NOT NULL DEFAULT '0000-00-00',
  `serialcirc_copy_state` int(11) NOT NULL DEFAULT '0',
  `serialcirc_copy_comment` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_serialcirc_copy`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_copy`
--


--
-- Table structure for table `serialcirc_diff`
--

CREATE TABLE `serialcirc_diff` (
  `id_serialcirc_diff` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_serialcirc_diff_serialcirc` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_diff_empr_type` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_diff_type_diff` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_diff_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_diff_group_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `serialcirc_diff_duration` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_diff_order` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_serialcirc_diff`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_diff`
--


--
-- Table structure for table `serialcirc_expl`
--

CREATE TABLE `serialcirc_expl` (
  `id_serialcirc_expl` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_serialcirc_expl_id` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_expl_serialcirc` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_bulletine_date` date NOT NULL DEFAULT '0000-00-00',
  `serialcirc_expl_state_circ` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_expl_serialcirc_diff` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_ret_asked` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_trans_asked` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_trans_doc_asked` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_expl_current_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_expl_start_date` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`id_serialcirc_expl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_expl`
--


--
-- Table structure for table `serialcirc_group`
--

CREATE TABLE `serialcirc_group` (
  `id_serialcirc_group` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_serialcirc_group_diff` int(10) unsigned NOT NULL DEFAULT '0',
  `num_serialcirc_group_empr` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_group_responsable` int(10) unsigned NOT NULL DEFAULT '0',
  `serialcirc_group_order` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_serialcirc_group`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_group`
--


--
-- Table structure for table `serialcirc_tpl`
--

CREATE TABLE `serialcirc_tpl` (
  `serialcirctpl_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `serialcirctpl_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `serialcirctpl_comment` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `serialcirctpl_tpl` text COLLATE utf8_unicode_ci NOT NULL,
  `serialcirctpl_piedpage` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`serialcirctpl_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serialcirc_tpl`
--

INSERT INTO `serialcirc_tpl` VALUES (1,'Template PMB','','a:3:{i:0;a:3:{s:4:\"type\";s:4:\"name\";s:2:\"id\";s:1:\"0\";s:5:\"label\";N;}i:1;a:3:{s:4:\"type\";s:5:\"ville\";s:2:\"id\";s:1:\"0\";s:5:\"label\";N;}i:2;a:3:{s:4:\"type\";s:5:\"libre\";s:2:\"id\";s:1:\"0\";s:5:\"label\";s:9:\"SIGNATURE\";}}','');

--
-- Table structure for table `serie_custom`
--

CREATE TABLE `serie_custom` (
  `idchamp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_type` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `titre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'text',
  `datatype` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `options` text COLLATE utf8_unicode_ci,
  `multiple` int(11) NOT NULL DEFAULT '0',
  `obligatoire` int(11) NOT NULL DEFAULT '0',
  `ordre` int(11) DEFAULT NULL,
  `search` int(1) unsigned NOT NULL DEFAULT '0',
  `export` int(1) unsigned NOT NULL DEFAULT '0',
  `exclusion_obligatoire` int(1) unsigned NOT NULL DEFAULT '0',
  `pond` int(11) NOT NULL DEFAULT '100',
  `opac_sort` int(11) NOT NULL DEFAULT '0',
  `comment` blob NOT NULL,
  PRIMARY KEY (`idchamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serie_custom`
--


--
-- Table structure for table `serie_custom_lists`
--

CREATE TABLE `serie_custom_lists` (
  `serie_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `serie_custom_list_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serie_custom_list_lib` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ordre` int(11) DEFAULT NULL,
  KEY `editorial_custom_champ` (`serie_custom_champ`),
  KEY `editorial_champ_list_value` (`serie_custom_champ`,`serie_custom_list_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serie_custom_lists`
--


--
-- Table structure for table `serie_custom_values`
--

CREATE TABLE `serie_custom_values` (
  `serie_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `serie_custom_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `serie_custom_small_text` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serie_custom_text` text COLLATE utf8_unicode_ci,
  `serie_custom_integer` int(11) DEFAULT NULL,
  `serie_custom_date` date DEFAULT NULL,
  `serie_custom_float` float DEFAULT NULL,
  `serie_custom_order` int(11) NOT NULL DEFAULT '0',
  KEY `editorial_custom_champ` (`serie_custom_champ`),
  KEY `editorial_custom_origine` (`serie_custom_origine`),
  KEY `i_scv_st` (`serie_custom_small_text`),
  KEY `i_scv_t` (`serie_custom_text`(255)),
  KEY `i_scv_i` (`serie_custom_integer`),
  KEY `i_scv_d` (`serie_custom_date`),
  KEY `i_scv_f` (`serie_custom_float`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `serie_custom_values`
--


--
-- Table structure for table `series`
--

CREATE TABLE `series` (
  `serie_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `serie_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `serie_index` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`serie_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `series`
--


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `SESSID` varchar(12) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `login` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `IP` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `SESSstart` varchar(12) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `LastOn` varchar(12) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `SESSNAME` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `notifications` text COLLATE utf8_unicode_ci
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sessions`
--

INSERT INTO `sessions` VALUES ('3169293262','admin','10.2.1.254','1520323254','1520323321','PhpMyBibli',NULL);

--
-- Table structure for table `sessions_tokens`
--

CREATE TABLE `sessions_tokens` (
  `sessions_tokens_SESSID` varchar(12) NOT NULL DEFAULT '',
  `sessions_tokens_token` varchar(255) NOT NULL DEFAULT '',
  `sessions_tokens_type` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`sessions_tokens_SESSID`,`sessions_tokens_type`),
  KEY `i_st_sessions_tokens_type` (`sessions_tokens_type`),
  KEY `i_st_sessions_tokens_token` (`sessions_tokens_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sessions_tokens`
--


--
-- Table structure for table `shorturls`
--

CREATE TABLE `shorturls` (
  `id_shorturl` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `shorturl_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shorturl_last_access` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `shorturl_context` text COLLATE utf8_unicode_ci NOT NULL,
  `shorturl_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shorturl_action` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_shorturl`),
  KEY `i_shorturl_hash` (`shorturl_hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `shorturls`
--


--
-- Table structure for table `skos_custom`
--

CREATE TABLE `skos_custom` (
  `idchamp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `titre` varchar(255) DEFAULT NULL,
  `type` varchar(10) NOT NULL DEFAULT 'text',
  `datatype` varchar(10) NOT NULL DEFAULT '',
  `options` text,
  `multiple` int(11) NOT NULL DEFAULT '0',
  `obligatoire` int(11) NOT NULL DEFAULT '0',
  `ordre` int(11) DEFAULT NULL,
  `search` int(1) unsigned NOT NULL DEFAULT '0',
  `export` int(1) unsigned NOT NULL DEFAULT '0',
  `exclusion_obligatoire` int(1) unsigned NOT NULL DEFAULT '0',
  `pond` int(11) NOT NULL DEFAULT '100',
  `opac_sort` int(11) NOT NULL DEFAULT '0',
  `comment` blob NOT NULL,
  PRIMARY KEY (`idchamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `skos_custom`
--


--
-- Table structure for table `skos_custom_lists`
--

CREATE TABLE `skos_custom_lists` (
  `skos_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `skos_custom_list_value` varchar(255) DEFAULT NULL,
  `skos_custom_list_lib` varchar(255) DEFAULT NULL,
  `ordre` int(11) DEFAULT NULL,
  KEY `skos_custom_champ` (`skos_custom_champ`),
  KEY `skos_champ_list_value` (`skos_custom_champ`,`skos_custom_list_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `skos_custom_lists`
--


--
-- Table structure for table `skos_custom_values`
--

CREATE TABLE `skos_custom_values` (
  `skos_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `skos_custom_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `skos_custom_small_text` varchar(255) DEFAULT NULL,
  `skos_custom_text` text,
  `skos_custom_integer` int(11) DEFAULT NULL,
  `skos_custom_date` date DEFAULT NULL,
  `skos_custom_float` float DEFAULT NULL,
  `skos_custom_order` int(11) NOT NULL DEFAULT '0',
  KEY `skos_custom_champ` (`skos_custom_champ`),
  KEY `i_encv_st` (`skos_custom_small_text`),
  KEY `i_encv_t` (`skos_custom_text`(255)),
  KEY `i_encv_i` (`skos_custom_integer`),
  KEY `i_encv_d` (`skos_custom_date`),
  KEY `i_encv_f` (`skos_custom_float`),
  KEY `skos_custom_origine` (`skos_custom_origine`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `skos_custom_values`
--


--
-- Table structure for table `skos_fields_global_index`
--

CREATE TABLE `skos_fields_global_index` (
  `id_item` int(10) unsigned NOT NULL DEFAULT '0',
  `code_champ` int(3) unsigned NOT NULL DEFAULT '0',
  `code_ss_champ` int(3) unsigned NOT NULL DEFAULT '0',
  `ordre` int(4) unsigned NOT NULL DEFAULT '0',
  `value` text COLLATE utf8_unicode_ci NOT NULL,
  `pond` int(4) unsigned NOT NULL DEFAULT '100',
  `lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `authority_num` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_item`,`code_champ`,`code_ss_champ`,`lang`,`ordre`),
  KEY `i_value` (`value`(300)),
  KEY `i_code_champ_code_ss_champ` (`code_champ`,`code_ss_champ`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `skos_fields_global_index`
--


--
-- Table structure for table `skos_words_global_index`
--

CREATE TABLE `skos_words_global_index` (
  `id_item` int(10) unsigned NOT NULL DEFAULT '0',
  `code_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `code_ss_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `num_word` int(10) unsigned NOT NULL DEFAULT '0',
  `pond` int(10) unsigned NOT NULL DEFAULT '100',
  `position` int(10) unsigned NOT NULL DEFAULT '1',
  `field_position` int(10) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id_item`,`code_champ`,`num_word`,`position`,`code_ss_champ`),
  KEY `code_champ` (`code_champ`),
  KEY `i_id_mot` (`num_word`,`id_item`),
  KEY `i_code_champ_code_ss_champ_num_word` (`code_champ`,`code_ss_champ`,`num_word`),
  KEY `i_num_word` (`num_word`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `skos_words_global_index`
--


--
-- Table structure for table `source_sync`
--

CREATE TABLE `source_sync` (
  `source_id` int(10) unsigned NOT NULL DEFAULT '0',
  `nrecu` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ntotal` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `date_sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `percent` int(10) unsigned NOT NULL DEFAULT '0',
  `env` text COLLATE utf8_unicode_ci NOT NULL,
  `cancel` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`source_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `source_sync`
--


--
-- Table structure for table `sources_enrichment`
--

CREATE TABLE `sources_enrichment` (
  `source_enrichment_num` int(11) NOT NULL DEFAULT '0',
  `source_enrichment_typnotice` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `source_enrichment_typdoc` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `source_enrichment_params` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`source_enrichment_num`,`source_enrichment_typnotice`,`source_enrichment_typdoc`),
  KEY `i_s_enrichment_typnoti` (`source_enrichment_typnotice`),
  KEY `i_s_enrichment_typdoc` (`source_enrichment_typdoc`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sources_enrichment`
--


--
-- Table structure for table `statopac`
--

CREATE TABLE `statopac` (
  `id_log` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `date_log` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `url_demandee` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `url_referente` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `get_log` blob NOT NULL,
  `post_log` blob NOT NULL,
  `num_session` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `server_log` blob NOT NULL,
  `empr_carac` blob NOT NULL,
  `empr_doc` blob NOT NULL,
  `empr_expl` mediumblob NOT NULL,
  `nb_result` blob NOT NULL,
  `gen_stat` blob NOT NULL,
  PRIMARY KEY (`id_log`),
  KEY `sopac_date_log` (`date_log`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `statopac`
--


--
-- Table structure for table `statopac_request`
--

CREATE TABLE `statopac_request` (
  `idproc` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `requete` blob NOT NULL,
  `comment` tinytext COLLATE utf8_unicode_ci NOT NULL,
  `parameters` text COLLATE utf8_unicode_ci NOT NULL,
  `num_vue` mediumint(8) NOT NULL DEFAULT '0',
  `autorisations` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`idproc`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `statopac_request`
--

INSERT INTO `statopac_request` VALUES (1,'Nombre de visites par date','select date as Date, count(distinct(id_session)) as \'Nombre de sessions distinctes\' from VUE() group by date order by date asc','Distingue les sessions','',1,''),(2,'Nombre de visites par date (adresses IP)','select date as Date, adresse_IP as \'Adresse IP\', count(distinct(id_session)) as \'Nombre de visites\' from VUE() group by date, adresse_IP','Distingue les adresses IP','',1,''),(3,'Mots saisis','select mots_saisis as \'Mots saisis\', count(*) as \'Nombre de fois\' from VUE() group by mots_saisis','Liste les différents mots saisis en recherche.','',2,''),(4,'Exports','select page_subtype_text, count(id_ligne) as nb_export from VUE() where page_subtype=803 group by num_session','Nombre d\'exports lancés depuis l\'OPAC','',3,''),(5,'Impressions de paniers','select page_subtype_text, count(id_ligne) as Nombre from VUE() where page_subtype=802 group by num_session','Impressions de paniers lancées depuis l\'OPAC','',3,''),(6,'Première page affichée','select page_subtype_text, count(id_ligne) as \'Nombre de fois\' from VUE() where url_origine=\'\' group by 1 order by 2 desc','Première page affichée (quand un lecteur arrive sur l\'OPAC) trié par fréquence','',3,''),(7,'DSI','select count(distinct(num_session)) as Nombre from VUE() where page_subtype in (\'706\',\'707\',\'708\')','Nombre de lecteurs utilisant la DSI dans l\'OPAC','',4,''),(8,'Mots les plus cherchés','select mots_saisis, count(id_ligne) as \'Nombre de fois\' from VUE() where mots_saisis!=\'\' and mots_saisis is not null group by mots_saisis order by 2 desc','Affiche les mots les plus saisis dans l\'OPAC','',2,''),(9,'Recherche multi-critères','select multi_label, multi_content, multi_title, count(1) as Nombre from VUE() where multi_label!=\'\' or multi_content!=\'\' group by multi_label, multi_content order by Nombre desc','Recherches multi-critères triées par fréquence','',2,''),(10,'Recherches réussies ou non','select mots_saisis, multi_content, multi_title, if(nb_result,nb_result,\'aucun résultat\') as Résultats from VUE() where page_type in (\'2\',\'3\',\'4\') and (mots_saisis!=\'\' or multi_content!=\'\') order by Résultats asc','Affiche les recherches et précise si elle a affiché des résultats ou non','',2,''),(11,'Types de recherche','select case when page_subtype=101 then \'Recherche simple\' when page_subtype=102 then \'Recherche multi-critères\' when page_subtype=103 then \'Recherche par termes\' when page_subtype=104 then \'Recherche externe\' when page_subtype=105 then \'Recherche par tags\' when page_subtype=106 then \'Recherche prédéfinie\' when page_subtype=107 then \"Recherche sur la page d\'accueil\" else page_subtype end as Recherche, count(id_ligne) as Nombre from VUE() where page_type=\'1\' and page_subtype!=\'803\' group by 1 order by 2 desc','Affiche les types de recherches réalisées dans l\'OPAC triés par fréquence','',2,''),(12,'Consultations des infopages','select title_infopage as Infopage, count(distinct id_ligne) as \"Nombre d\'affichages\" from VUE(), infopages where Infopage like \'%/opac/index.php?lvl=infopages&pagesid=%\' and id_infopage=substring_index(Infopage,\'pagesid=\',-1) group by 1','','',5,''),(13,'Fréquentation des sections','select section_libelle as Section, count(distinct id_ligne) as \'Nombre de visites dans cette section\' from VUE(), docs_section where url_asked like \'%lvl=section_see&location=%\' and idsection=substring_index(url_asked,\'&id=\',-1) group by 1','','',1,'');

--
-- Table structure for table `statopac_vues`
--

CREATE TABLE `statopac_vues` (
  `id_vue` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `date_consolidation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `nom_vue` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `comment` tinytext COLLATE utf8_unicode_ci NOT NULL,
  `date_debut_log` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_fin_log` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id_vue`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `statopac_vues`
--

INSERT INTO `statopac_vues` VALUES (1,'2011-06-15 10:06:24','Statistiques visites','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(2,'2011-06-15 10:06:24','Recherches','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(3,'2011-06-15 10:06:24','Navigation','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(4,'2011-06-15 10:06:24','Lecteurs','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(5,'2011-06-15 10:06:24','Infopages','','0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `statopac_vues_col`
--

CREATE TABLE `statopac_vues_col` (
  `id_col` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `nom_col` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `expression` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `num_vue` mediumint(8) NOT NULL DEFAULT '0',
  `ordre` mediumint(8) NOT NULL DEFAULT '0',
  `filtre` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `datatype` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `maj_flag` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_col`)
) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `statopac_vues_col`
--

INSERT INTO `statopac_vues_col` VALUES (1,'id_session','#num_session();',1,1,'','small_text',0),(2,'date','#date();',1,2,'','date',0),(3,'adresse_IP','#adresse_ip();',1,3,'','small_text',0),(4,'date','#date();',2,1,'','date',0),(5,'mots_saisis','#mots_saisis();',2,2,'','small_text',0),(6,'num_session','#num_session();',3,1,'','small_text',0),(7,'timestamp','#timestamp();',3,2,'','datetime',0),(8,'date','#date();',3,3,'','date',0),(9,'url_target','#url_asked();',3,4,'','text',0),(10,'url_origine','#url_ori();',3,5,'','text',0),(11,'page_subtype','#sous_type_page();',3,6,'','integer',0),(12,'page_subtype_text','#sous_type_page_lib();',3,7,'','small_text',0),(13,'page_type','#type_page();',3,8,'','integer',0),(14,'page_type_text','#type_page_lib();',3,9,'','small_text',0),(15,'location','#empr_location();',3,10,'','small_text',0),(16,'location','#empr_location();',4,1,'','small_text',0),(17,'page_subtype','#sous_type_page();',4,2,'','integer',0),(18,'pages_subtype_txt','#sous_type_page_lib();',4,3,'','small_text',0),(19,'date','#date();',4,4,'','date',0),(20,'num_session','#num_session();',4,5,'','small_text',0),(21,'age','#empr_age();',4,6,'','integer',0),(22,'groupe','#empr_groupe();',4,7,'','small_text',0),(23,'code statistique','#empr_codestat();',4,8,'','small_text',0),(24,'statut','#empr_statut();',4,9,'','small_text',0),(25,'ville','#empr_ville();',4,10,'','small_text',0),(26,'page_subtype','#sous_type_page();',2,3,'','integer',0),(27,'pages_subtype_txt','#sous_type_page_txt();',2,4,'','small_text',0),(28,'page_type','#type_page();',2,5,'','integer',0),(29,'nb_result','#nb_total();',2,6,'','integer',0),(30,'multi_label','#multi_libelle();',2,7,'','small_text',0),(31,'multi_content','#multi_contenu();',2,8,'','small_text',0),(32,'multi_title','#multi_intitule();',2,9,'','small_text',0),(33,'Infopage','#url_asked();',5,1,'','small_text',0),(34,'url_asked','#url_asked();',1,4,'','small_text',0);

--
-- Table structure for table `sticks_sheets`
--

CREATE TABLE `sticks_sheets` (
  `id_sticks_sheet` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sticks_sheet_label` varchar(255) NOT NULL DEFAULT '',
  `sticks_sheet_data` text NOT NULL,
  `sticks_sheet_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_sticks_sheet`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sticks_sheets`
--


--
-- Table structure for table `storages`
--

CREATE TABLE `storages` (
  `id_storage` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `storage_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `storage_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `storage_params` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_storage`),
  KEY `i_storage_class` (`storage_class`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `storages`
--


--
-- Table structure for table `sub_collections`
--

CREATE TABLE `sub_collections` (
  `sub_coll_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `sub_coll_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sub_coll_parent` mediumint(9) unsigned NOT NULL DEFAULT '0',
  `sub_coll_issn` varchar(12) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `index_sub_coll` text COLLATE utf8_unicode_ci,
  `subcollection_web` text COLLATE utf8_unicode_ci NOT NULL,
  `subcollection_comment` text COLLATE utf8_unicode_ci NOT NULL,
  `authority_import_denied` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`sub_coll_id`),
  KEY `sub_coll_name` (`sub_coll_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sub_collections`
--


--
-- Table structure for table `subcollection_custom`
--

CREATE TABLE `subcollection_custom` (
  `idchamp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_type` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `titre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'text',
  `datatype` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `options` text COLLATE utf8_unicode_ci,
  `multiple` int(11) NOT NULL DEFAULT '0',
  `obligatoire` int(11) NOT NULL DEFAULT '0',
  `ordre` int(11) DEFAULT NULL,
  `search` int(1) unsigned NOT NULL DEFAULT '0',
  `export` int(1) unsigned NOT NULL DEFAULT '0',
  `exclusion_obligatoire` int(1) unsigned NOT NULL DEFAULT '0',
  `pond` int(11) NOT NULL DEFAULT '100',
  `opac_sort` int(11) NOT NULL DEFAULT '0',
  `comment` blob NOT NULL,
  PRIMARY KEY (`idchamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `subcollection_custom`
--


--
-- Table structure for table `subcollection_custom_lists`
--

CREATE TABLE `subcollection_custom_lists` (
  `subcollection_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `subcollection_custom_list_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `subcollection_custom_list_lib` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ordre` int(11) DEFAULT NULL,
  KEY `editorial_custom_champ` (`subcollection_custom_champ`),
  KEY `editorial_champ_list_value` (`subcollection_custom_champ`,`subcollection_custom_list_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `subcollection_custom_lists`
--


--
-- Table structure for table `subcollection_custom_values`
--

CREATE TABLE `subcollection_custom_values` (
  `subcollection_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `subcollection_custom_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `subcollection_custom_small_text` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `subcollection_custom_text` text COLLATE utf8_unicode_ci,
  `subcollection_custom_integer` int(11) DEFAULT NULL,
  `subcollection_custom_date` date DEFAULT NULL,
  `subcollection_custom_float` float DEFAULT NULL,
  `subcollection_custom_order` int(11) NOT NULL DEFAULT '0',
  KEY `editorial_custom_champ` (`subcollection_custom_champ`),
  KEY `editorial_custom_origine` (`subcollection_custom_origine`),
  KEY `i_scv_st` (`subcollection_custom_small_text`),
  KEY `i_scv_t` (`subcollection_custom_text`(255)),
  KEY `i_scv_i` (`subcollection_custom_integer`),
  KEY `i_scv_d` (`subcollection_custom_date`),
  KEY `i_scv_f` (`subcollection_custom_float`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `subcollection_custom_values`
--


--
-- Table structure for table `suggestions`
--

CREATE TABLE `suggestions` (
  `id_suggestion` int(12) unsigned NOT NULL AUTO_INCREMENT,
  `titre` tinytext COLLATE utf8_unicode_ci NOT NULL,
  `editeur` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `auteur` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `prix` float(8,2) unsigned NOT NULL DEFAULT '0.00',
  `commentaires` text COLLATE utf8_unicode_ci,
  `commentaires_gestion` text COLLATE utf8_unicode_ci,
  `statut` int(3) unsigned NOT NULL DEFAULT '0',
  `num_produit` int(8) NOT NULL DEFAULT '0',
  `num_entite` int(5) NOT NULL DEFAULT '0',
  `index_suggestion` text COLLATE utf8_unicode_ci NOT NULL,
  `nb` int(5) unsigned NOT NULL DEFAULT '1',
  `date_creation` date NOT NULL DEFAULT '0000-00-00',
  `date_decision` date NOT NULL DEFAULT '0000-00-00',
  `num_rubrique` int(8) unsigned NOT NULL DEFAULT '0',
  `num_fournisseur` int(5) unsigned NOT NULL DEFAULT '0',
  `num_notice` int(8) unsigned NOT NULL DEFAULT '0',
  `url_suggestion` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `num_categ` int(12) NOT NULL DEFAULT '1',
  `sugg_location` smallint(5) unsigned NOT NULL DEFAULT '0',
  `sugg_source` int(8) NOT NULL DEFAULT '0',
  `date_publication` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `notice_unimarc` blob NOT NULL,
  PRIMARY KEY (`id_suggestion`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `suggestions`
--


--
-- Table structure for table `suggestions_categ`
--

CREATE TABLE `suggestions_categ` (
  `id_categ` int(12) NOT NULL AUTO_INCREMENT,
  `libelle_categ` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_categ`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `suggestions_categ`
--

INSERT INTO `suggestions_categ` VALUES (1,'catégorie par défaut');

--
-- Table structure for table `suggestions_origine`
--

CREATE TABLE `suggestions_origine` (
  `origine` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `num_suggestion` int(12) unsigned NOT NULL DEFAULT '0',
  `type_origine` int(3) unsigned NOT NULL DEFAULT '0',
  `date_suggestion` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`origine`,`num_suggestion`,`type_origine`),
  KEY `i_origine` (`origine`,`type_origine`),
  KEY `i_num_suggestion` (`num_suggestion`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `suggestions_origine`
--


--
-- Table structure for table `suggestions_source`
--

CREATE TABLE `suggestions_source` (
  `id_source` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `libelle_source` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_source`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `suggestions_source`
--


--
-- Table structure for table `sur_location`
--

CREATE TABLE `sur_location` (
  `surloc_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `surloc_libelle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_pic` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_visible_opac` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `surloc_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_adr1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_adr2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_cp` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_town` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_state` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_country` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_phone` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_website` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_logo` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `surloc_comment` text COLLATE utf8_unicode_ci NOT NULL,
  `surloc_num_infopage` int(6) unsigned NOT NULL DEFAULT '0',
  `surloc_css_style` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`surloc_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sur_location`
--


--
-- Table structure for table `taches`
--

CREATE TABLE `taches` (
  `id_tache` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `num_planificateur` int(11) DEFAULT NULL,
  `start_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `end_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `status` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `msg_statut` blob,
  `commande` int(8) NOT NULL DEFAULT '0',
  `next_state` int(8) NOT NULL DEFAULT '0',
  `msg_commande` blob,
  `indicat_progress` int(3) DEFAULT NULL,
  `rapport` text COLLATE utf8_unicode_ci,
  `id_process` int(8) DEFAULT NULL,
  PRIMARY KEY (`id_tache`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `taches`
--


--
-- Table structure for table `taches_docnum`
--

CREATE TABLE `taches_docnum` (
  `id_tache_docnum` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `tache_docnum_nomfichier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tache_docnum_mimetype` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tache_docnum_data` mediumblob NOT NULL,
  `tache_docnum_extfichier` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tache_docnum_repertoire` int(8) DEFAULT NULL,
  `tache_docnum_path` text COLLATE utf8_unicode_ci NOT NULL,
  `num_tache` int(11) NOT NULL,
  PRIMARY KEY (`id_tache_docnum`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `taches_docnum`
--


--
-- Table structure for table `taches_type`
--

CREATE TABLE `taches_type` (
  `id_type_tache` int(11) unsigned NOT NULL,
  `parameters` text COLLATE utf8_unicode_ci NOT NULL,
  `timeout` int(11) NOT NULL DEFAULT '5',
  `histo_day` int(11) NOT NULL DEFAULT '7',
  `histo_number` int(11) NOT NULL DEFAULT '3',
  `restart_on_failure` int(1) unsigned NOT NULL DEFAULT '0',
  `alert_mail_on_failure` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
  PRIMARY KEY (`id_type_tache`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `taches_type`
--


--
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
  `id_tag` mediumint(8) NOT NULL AUTO_INCREMENT,
  `libelle` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `num_notice` mediumint(8) NOT NULL DEFAULT '0',
  `user_code` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `dateajout` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id_tag`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tags`
--


--
-- Table structure for table `thesaurus`
--

CREATE TABLE `thesaurus` (
  `id_thesaurus` int(3) unsigned NOT NULL AUTO_INCREMENT,
  `libelle_thesaurus` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `langue_defaut` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'fr_FR',
  `active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `opac_active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `num_noeud_racine` int(9) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_thesaurus`),
  UNIQUE KEY `libelle_thesaurus` (`libelle_thesaurus`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `thesaurus`
--

INSERT INTO `thesaurus` VALUES (1,'Tesauro nº 1','es_ES','1','1',1);

--
-- Table structure for table `thresholds`
--

CREATE TABLE `thresholds` (
  `id_threshold` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `threshold_label` varchar(255) NOT NULL DEFAULT '',
  `threshold_amount` float NOT NULL DEFAULT '0',
  `threshold_amount_tax_included` int(1) NOT NULL DEFAULT '0',
  `threshold_footer` text NOT NULL,
  `threshold_num_entity` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_threshold`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `thresholds`
--


--
-- Table structure for table `titres_uniformes`
--

CREATE TABLE `titres_uniformes` (
  `tu_id` int(9) unsigned NOT NULL AUTO_INCREMENT,
  `tu_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_tonalite` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_comment` text COLLATE utf8_unicode_ci NOT NULL,
  `index_tu` text COLLATE utf8_unicode_ci NOT NULL,
  `tu_import_denied` int(10) unsigned NOT NULL DEFAULT '0',
  `tu_num_author` bigint(11) unsigned NOT NULL DEFAULT '0',
  `tu_forme` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_date` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_date_date` date NOT NULL DEFAULT '0000-00-00',
  `tu_sujet` text COLLATE utf8_unicode_ci NOT NULL,
  `tu_lieu` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_histoire` text COLLATE utf8_unicode_ci,
  `tu_caracteristique` text COLLATE utf8_unicode_ci,
  `tu_public` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_contexte` text COLLATE utf8_unicode_ci,
  `tu_coordonnees` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_equinoxe` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_completude` int(2) unsigned NOT NULL DEFAULT '0',
  `tu_tonalite_marclist` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_forme_marclist` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tu_oeuvre_nature` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'a',
  `tu_oeuvre_type` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'a',
  `tu_oeuvre_nature_nature` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'original',
  PRIMARY KEY (`tu_id`),
  KEY `i_tu_tu_oeuvre_type` (`tu_oeuvre_type`),
  KEY `i_tu_tu_oeuvre_nature` (`tu_oeuvre_nature`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `titres_uniformes`
--


--
-- Table structure for table `transacash`
--

CREATE TABLE `transacash` (
  `transacash_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `transacash_empr_num` int(10) unsigned NOT NULL DEFAULT '0',
  `transacash_desk_num` int(10) unsigned NOT NULL DEFAULT '0',
  `transacash_user_num` int(10) unsigned NOT NULL DEFAULT '0',
  `transacash_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transacash_sold` float NOT NULL DEFAULT '0',
  `transacash_collected` float NOT NULL DEFAULT '0',
  `transacash_rendering` float NOT NULL DEFAULT '0',
  PRIMARY KEY (`transacash_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transacash`
--


--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id_transaction` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `compte_id` int(8) unsigned NOT NULL DEFAULT '0',
  `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `user_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `machine` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `date_enrgt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_prevue` date DEFAULT NULL,
  `date_effective` date DEFAULT NULL,
  `montant` decimal(16,2) NOT NULL DEFAULT '0.00',
  `sens` int(1) NOT NULL DEFAULT '0',
  `realisee` int(1) NOT NULL DEFAULT '0',
  `commentaire` text COLLATE utf8_unicode_ci,
  `encaissement` int(1) NOT NULL DEFAULT '0',
  `transactype_num` int(10) unsigned NOT NULL DEFAULT '0',
  `cashdesk_num` int(10) unsigned NOT NULL DEFAULT '0',
  `transacash_num` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_transaction`),
  KEY `i_realisee` (`realisee`),
  KEY `i_compte_id` (`compte_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transactions`
--


--
-- Table structure for table `transactype`
--

CREATE TABLE `transactype` (
  `transactype_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `transactype_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `transactype_quick_allowed` int(10) unsigned NOT NULL DEFAULT '0',
  `transactype_unit_price` float NOT NULL DEFAULT '0',
  PRIMARY KEY (`transactype_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transactype`
--


--
-- Table structure for table `transferts`
--

CREATE TABLE `transferts` (
  `id_transfert` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_notice` int(10) unsigned NOT NULL DEFAULT '0',
  `num_bulletin` int(10) unsigned NOT NULL DEFAULT '0',
  `date_creation` date NOT NULL,
  `type_transfert` int(5) unsigned NOT NULL DEFAULT '0',
  `etat_transfert` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `origine` int(5) unsigned NOT NULL DEFAULT '0',
  `origine_comp` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `source` smallint(5) unsigned DEFAULT NULL,
  `destinations` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_retour` date DEFAULT NULL,
  `motif` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `transfert_ask_user_num` int(11) NOT NULL DEFAULT '0',
  `transfert_send_user_num` int(11) NOT NULL DEFAULT '0',
  `transfert_ask_date` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`id_transfert`),
  KEY `etat_transfert` (`etat_transfert`),
  KEY `i_etat_transfert_origine` (`etat_transfert`,`origine`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transferts`
--


--
-- Table structure for table `transferts_demande`
--

CREATE TABLE `transferts_demande` (
  `id_transfert_demande` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_transfert` int(10) unsigned NOT NULL DEFAULT '0',
  `date_creation` date NOT NULL,
  `sens_transfert` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `num_location_source` smallint(5) unsigned NOT NULL DEFAULT '0',
  `num_location_dest` smallint(5) unsigned NOT NULL DEFAULT '0',
  `num_expl` int(10) unsigned NOT NULL DEFAULT '0',
  `etat_demande` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `date_visualisee` date DEFAULT NULL,
  `date_envoyee` date DEFAULT NULL,
  `date_reception` date DEFAULT NULL,
  `motif_refus` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `statut_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `section_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `resa_trans` int(8) unsigned NOT NULL DEFAULT '0',
  `resa_arc_trans` int(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_transfert_demande`),
  KEY `num_transfert` (`num_transfert`),
  KEY `num_location_source` (`num_location_source`),
  KEY `num_location_dest` (`num_location_dest`),
  KEY `num_expl` (`num_expl`),
  KEY `i_resa_trans` (`resa_trans`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transferts_demande`
--


--
-- Table structure for table `transferts_source`
--

CREATE TABLE `transferts_source` (
  `trans_source_numexpl` int(10) unsigned NOT NULL DEFAULT '0',
  `trans_source_numloc` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`trans_source_numexpl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transferts_source`
--


--
-- Table structure for table `translation`
--

CREATE TABLE `translation` (
  `trans_table` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `trans_field` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `trans_lang` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `trans_num` int(8) unsigned NOT NULL DEFAULT '0',
  `trans_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`trans_table`,`trans_field`,`trans_lang`,`trans_num`),
  KEY `i_lang` (`trans_lang`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `translation`
--


--
-- Table structure for table `tris`
--

CREATE TABLE `tris` (
  `id_tri` int(4) NOT NULL AUTO_INCREMENT,
  `tri_par` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `nom_tri` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tri_reference` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'notices',
  PRIMARY KEY (`id_tri`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tris`
--


--
-- Table structure for table `tu_custom`
--

CREATE TABLE `tu_custom` (
  `idchamp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_type` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `titre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'text',
  `datatype` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `options` text COLLATE utf8_unicode_ci,
  `multiple` int(11) NOT NULL DEFAULT '0',
  `obligatoire` int(11) NOT NULL DEFAULT '0',
  `ordre` int(11) DEFAULT NULL,
  `search` int(1) unsigned NOT NULL DEFAULT '0',
  `export` int(1) unsigned NOT NULL DEFAULT '0',
  `exclusion_obligatoire` int(1) unsigned NOT NULL DEFAULT '0',
  `pond` int(11) NOT NULL DEFAULT '100',
  `opac_sort` int(11) NOT NULL DEFAULT '0',
  `comment` blob NOT NULL,
  PRIMARY KEY (`idchamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tu_custom`
--


--
-- Table structure for table `tu_custom_lists`
--

CREATE TABLE `tu_custom_lists` (
  `tu_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `tu_custom_list_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tu_custom_list_lib` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ordre` int(11) DEFAULT NULL,
  KEY `editorial_custom_champ` (`tu_custom_champ`),
  KEY `editorial_champ_list_value` (`tu_custom_champ`,`tu_custom_list_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tu_custom_lists`
--


--
-- Table structure for table `tu_custom_values`
--

CREATE TABLE `tu_custom_values` (
  `tu_custom_champ` int(10) unsigned NOT NULL DEFAULT '0',
  `tu_custom_origine` int(10) unsigned NOT NULL DEFAULT '0',
  `tu_custom_small_text` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tu_custom_text` text COLLATE utf8_unicode_ci,
  `tu_custom_integer` int(11) DEFAULT NULL,
  `tu_custom_date` date DEFAULT NULL,
  `tu_custom_float` float DEFAULT NULL,
  `tu_custom_order` int(11) NOT NULL DEFAULT '0',
  KEY `editorial_custom_champ` (`tu_custom_champ`),
  KEY `editorial_custom_origine` (`tu_custom_origine`),
  KEY `i_tcv_st` (`tu_custom_small_text`),
  KEY `i_tcv_t` (`tu_custom_text`(255)),
  KEY `i_tcv_i` (`tu_custom_integer`),
  KEY `i_tcv_d` (`tu_custom_date`),
  KEY `i_tcv_f` (`tu_custom_float`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tu_custom_values`
--


--
-- Table structure for table `tu_distrib`
--

CREATE TABLE `tu_distrib` (
  `distrib_num_tu` int(9) unsigned NOT NULL DEFAULT '0',
  `distrib_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `distrib_ordre` smallint(5) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`distrib_num_tu`,`distrib_ordre`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tu_distrib`
--


--
-- Table structure for table `tu_oeuvres_events`
--

CREATE TABLE `tu_oeuvres_events` (
  `oeuvre_event_tu_num` int(11) NOT NULL DEFAULT '0',
  `oeuvre_event_authperso_authority_num` int(11) NOT NULL DEFAULT '0',
  `oeuvre_event_order` int(11) NOT NULL DEFAULT '0',
  KEY `i_toe_oeuvre_event_tu_num` (`oeuvre_event_tu_num`),
  KEY `i_toe_oeuvre_event_authperso_authority_num` (`oeuvre_event_authperso_authority_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tu_oeuvres_events`
--


--
-- Table structure for table `tu_oeuvres_links`
--

CREATE TABLE `tu_oeuvres_links` (
  `oeuvre_link_from` int(11) NOT NULL DEFAULT '0',
  `oeuvre_link_to` int(11) NOT NULL DEFAULT '0',
  `oeuvre_link_type` varchar(3) NOT NULL DEFAULT '',
  `oeuvre_link_expression` int(11) NOT NULL DEFAULT '0',
  `oeuvre_link_other_link` int(11) NOT NULL DEFAULT '1',
  `oeuvre_link_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`oeuvre_link_from`,`oeuvre_link_to`,`oeuvre_link_type`,`oeuvre_link_expression`,`oeuvre_link_other_link`),
  KEY `i_oeuvre_link_from` (`oeuvre_link_from`),
  KEY `i_oeuvre_link_to` (`oeuvre_link_to`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tu_oeuvres_links`
--


--
-- Table structure for table `tu_ref`
--

CREATE TABLE `tu_ref` (
  `ref_num_tu` int(9) unsigned NOT NULL DEFAULT '0',
  `ref_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ref_ordre` smallint(5) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`ref_num_tu`,`ref_ordre`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tu_ref`
--


--
-- Table structure for table `tu_subdiv`
--

CREATE TABLE `tu_subdiv` (
  `subdiv_num_tu` int(9) unsigned NOT NULL DEFAULT '0',
  `subdiv_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `subdiv_ordre` smallint(5) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`subdiv_num_tu`,`subdiv_ordre`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tu_subdiv`
--


--
-- Table structure for table `tva_achats`
--

CREATE TABLE `tva_achats` (
  `id_tva` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `libelle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `taux_tva` float(4,2) unsigned NOT NULL DEFAULT '0.00',
  `num_cp_compta` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_tva`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tva_achats`
--


--
-- Table structure for table `type_abts`
--

CREATE TABLE `type_abts` (
  `id_type_abt` int(5) unsigned NOT NULL AUTO_INCREMENT,
  `type_abt_libelle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prepay` int(1) unsigned NOT NULL DEFAULT '0',
  `prepay_deflt_mnt` decimal(16,2) NOT NULL DEFAULT '0.00',
  `tarif` decimal(16,2) NOT NULL DEFAULT '0.00',
  `commentaire` text COLLATE utf8_unicode_ci NOT NULL,
  `caution` decimal(16,2) NOT NULL DEFAULT '0.00',
  `localisations` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_type_abt`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `type_abts`
--


--
-- Table structure for table `type_comptes`
--

CREATE TABLE `type_comptes` (
  `id_type_compte` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `libelle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type_acces` int(8) unsigned NOT NULL DEFAULT '0',
  `acces_id` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_type_compte`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `type_comptes`
--


--
-- Table structure for table `types_produits`
--

CREATE TABLE `types_produits` (
  `id_produit` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `libelle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `num_cp_compta` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `num_tva_achat` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_produit`),
  KEY `libelle` (`libelle`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `types_produits`
--


--
-- Table structure for table `upload_repertoire`
--

CREATE TABLE `upload_repertoire` (
  `repertoire_id` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `repertoire_nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `repertoire_url` text COLLATE utf8_unicode_ci NOT NULL,
  `repertoire_path` text COLLATE utf8_unicode_ci NOT NULL,
  `repertoire_navigation` int(1) NOT NULL DEFAULT '0',
  `repertoire_hachage` int(1) NOT NULL DEFAULT '0',
  `repertoire_subfolder` int(8) NOT NULL DEFAULT '0',
  `repertoire_utf8` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`repertoire_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `upload_repertoire`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `userid` int(5) NOT NULL AUTO_INCREMENT,
  `create_dt` date NOT NULL DEFAULT '0000-00-00',
  `last_updated_dt` date NOT NULL DEFAULT '0000-00-00',
  `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pwd` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_digest` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `nom` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `prenom` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rights` int(8) unsigned NOT NULL DEFAULT '0',
  `user_lang` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'fr_FR',
  `nb_per_page_search` int(10) unsigned NOT NULL DEFAULT '4',
  `nb_per_page_select` int(10) unsigned NOT NULL DEFAULT '10',
  `nb_per_page_gestion` int(10) unsigned NOT NULL DEFAULT '20',
  `param_popup_ticket` smallint(1) unsigned NOT NULL DEFAULT '0',
  `param_sounds` smallint(1) unsigned NOT NULL DEFAULT '1',
  `param_rfid_activate` int(1) NOT NULL DEFAULT '1',
  `param_licence` int(1) unsigned NOT NULL DEFAULT '0',
  `deflt_notice_statut` int(6) unsigned NOT NULL DEFAULT '1',
  `deflt_integration_notice_statut` int(6) NOT NULL DEFAULT '1',
  `xmlta_indexation_lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `deflt_docs_type` int(6) unsigned NOT NULL DEFAULT '1',
  `deflt_lenders` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_styles` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'default',
  `deflt_docs_statut` int(6) unsigned DEFAULT '0',
  `deflt_docs_codestat` int(6) unsigned DEFAULT '0',
  `value_deflt_lang` varchar(20) COLLATE utf8_unicode_ci DEFAULT 'fre',
  `value_deflt_fonction` varchar(20) COLLATE utf8_unicode_ci DEFAULT '070',
  `value_deflt_relation` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'a',
  `value_deflt_relation_serial` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value_deflt_relation_bulletin` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value_deflt_relation_analysis` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `deflt_docs_location` int(6) unsigned DEFAULT '0',
  `deflt_collstate_location` int(6) unsigned DEFAULT '0',
  `deflt_bulletinage_location` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_resas_location` int(6) unsigned DEFAULT '0',
  `deflt_docs_section` int(6) unsigned DEFAULT '0',
  `value_deflt_module` varchar(30) COLLATE utf8_unicode_ci DEFAULT 'circu',
  `user_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
  `user_alert_resamail` int(1) unsigned NOT NULL DEFAULT '0',
  `user_alert_demandesmail` int(1) unsigned NOT NULL DEFAULT '0',
  `user_alert_subscribemail` int(1) unsigned NOT NULL DEFAULT '0',
  `user_alert_serialcircmail` int(1) unsigned NOT NULL DEFAULT '0',
  `deflt2docs_location` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_empr_statut` bigint(20) unsigned NOT NULL DEFAULT '1',
  `deflt_empr_categ` int(10) unsigned NOT NULL DEFAULT '1',
  `deflt_empr_codestat` int(10) unsigned NOT NULL DEFAULT '1',
  `deflt_thesaurus` int(3) unsigned NOT NULL DEFAULT '1',
  `deflt_concept_scheme` int(3) NOT NULL DEFAULT '-1',
  `deflt_import_thesaurus` int(11) NOT NULL DEFAULT '1',
  `value_prefix_cote` tinyblob NOT NULL,
  `xmlta_doctype` char(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'a',
  `xmlta_doctype_serial` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `xmlta_doctype_bulletin` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `xmlta_doctype_analysis` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `speci_coordonnees_etab` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `value_email_bcc` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value_deflt_antivol` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `explr_invisible` text COLLATE utf8_unicode_ci,
  `explr_visible_mod` text COLLATE utf8_unicode_ci,
  `explr_visible_unmod` text COLLATE utf8_unicode_ci,
  `deflt3bibli` int(5) unsigned NOT NULL DEFAULT '0',
  `deflt3exercice` int(8) unsigned NOT NULL DEFAULT '0',
  `deflt3rubrique` int(8) unsigned NOT NULL DEFAULT '0',
  `deflt3dev_statut` int(3) NOT NULL DEFAULT '-1',
  `deflt3cde_statut` int(3) NOT NULL DEFAULT '-1',
  `deflt3liv_statut` int(3) NOT NULL DEFAULT '-1',
  `deflt3fac_statut` int(3) NOT NULL DEFAULT '-1',
  `deflt3sug_statut` int(3) NOT NULL DEFAULT '-1',
  `environnement` mediumblob NOT NULL,
  `param_allloc` int(1) unsigned NOT NULL DEFAULT '0',
  `grp_num` int(10) unsigned DEFAULT '0',
  `deflt_arch_statut` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_arch_emplacement` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_arch_type` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_upload_repertoire` int(8) NOT NULL DEFAULT '0',
  `deflt3lgstatdev` int(3) NOT NULL DEFAULT '1',
  `deflt3lgstatcde` int(3) NOT NULL DEFAULT '1',
  `deflt3receptsugstat` int(3) NOT NULL DEFAULT '32',
  `deflt_short_loan_activate` int(1) unsigned NOT NULL DEFAULT '0',
  `deflt_cashdesk` int(11) NOT NULL DEFAULT '0',
  `deflt_explnum_statut` int(6) unsigned NOT NULL DEFAULT '1',
  `user_alert_suggmail` int(1) unsigned NOT NULL DEFAULT '0',
  `deflt_notice_replace_keep_categories` int(1) NOT NULL DEFAULT '0',
  `deflt_notice_is_new` int(1) unsigned NOT NULL DEFAULT '0',
  `deflt_agnostic_warehouse` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_cms_article_statut` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_cms_article_type` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_cms_section_type` int(6) unsigned NOT NULL DEFAULT '0',
  `deflt_scan_request_status` int(1) unsigned NOT NULL DEFAULT '0',
  `xmlta_doctype_scan_request_folder_record` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'a',
  `deflt_camera_empr` int(11) NOT NULL DEFAULT '0',
  `deflt_catalog_expanded_caddies` int(1) unsigned NOT NULL DEFAULT '1',
  `deflt_notice_replace_links` int(1) unsigned DEFAULT '0',
  `deflt_printer` int(3) unsigned DEFAULT '0',
  PRIMARY KEY (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'2002-07-28','2018-02-23','admin','*4ACFE3202A5FF5CF467898FC58AAB1D615029441','028262ca7d82187e983fa4a9937891e2','Super User','',1181951,'es_ES',20,10,20,0,1,1,1,1,1,'',1,2,'enjoy',1,12,'spa','070','a-up','a-up','a-up','a-up',1,0,1,0,10,'admin','pmb@sigb.net',1,0,0,0,1,1,1,2,1,0,1,'','a','a','0','0','','','0','0','0','0',0,0,0,-1,-1,-1,-1,-1,'',0,0,1,1,1,0,1,1,32,0,0,1,0,0,0,0,0,0,0,0,'',0,1,0,0),(2,'2004-01-21','2005-08-10','circ','*32C97A536D5B9EE7B026D62958A8F14C92C9D1D3','','Becario','',1,'es_ES',10,10,20,0,1,1,0,1,1,'',1,1,'vert_et_parme',1,10,'spa','070','a-up','a-up','a-up','a-up',1,0,1,0,26,'circu','',0,0,0,0,1,1,1,1,1,0,1,'','a','','','','','','0',NULL,NULL,NULL,0,0,0,-1,-1,-1,-1,-1,'',0,0,0,0,0,0,1,1,32,0,0,1,0,0,0,0,0,0,0,0,'a',0,1,0,0),(3,'2004-01-21','2005-08-10','cat','*FD98809C60DD51B6B380DB17B72F9A9E2FE1928F','','Bibliotecario auxiliar','',7,'es_ES',10,10,20,0,1,1,0,1,1,'',1,1,'default',1,10,'spa','070','a-up','a-up','a-up','a-up',1,0,1,0,26,'catal','',0,0,0,0,1,1,1,1,1,0,1,'','a','','','','','','0',NULL,NULL,NULL,0,0,0,-1,-1,-1,-1,-1,'',0,0,0,0,0,0,1,1,32,0,0,1,0,0,0,0,0,0,0,0,'a',0,1,0,0),(4,'2004-01-21','2005-08-10','bib','*09EC8C1768A5648B27E281FECD36C0BE342B7217','','Bibliotecario','',23,'es_ES',10,10,20,0,1,1,0,1,1,'',1,1,'default',13,12,'spa','070','a-up','a-up','a-up','a-up',7,0,7,0,26,'circu','',0,0,0,0,1,1,1,1,1,0,1,'','a','','','','','','0',NULL,NULL,NULL,0,0,0,-1,-1,-1,-1,-1,'',0,0,0,0,0,0,1,1,32,0,0,1,0,0,0,0,0,0,0,0,'a',0,1,0,0);

--
-- Table structure for table `users_groups`
--

CREATE TABLE `users_groups` (
  `grp_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `grp_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`grp_id`),
  KEY `i_users_groups_grp_name` (`grp_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `users_groups`
--


--
-- Table structure for table `vedette`
--

CREATE TABLE `vedette` (
  `id_vedette` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `grammar` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'rameau',
  PRIMARY KEY (`id_vedette`),
  KEY `i_grammar` (`grammar`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vedette`
--


--
-- Table structure for table `vedette_link`
--

CREATE TABLE `vedette_link` (
  `num_vedette` int(10) unsigned NOT NULL,
  `num_object` int(10) unsigned NOT NULL,
  `type_object` int(10) unsigned NOT NULL,
  PRIMARY KEY (`num_vedette`,`num_object`,`type_object`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vedette_link`
--


--
-- Table structure for table `vedette_object`
--

CREATE TABLE `vedette_object` (
  `object_type` int(3) unsigned NOT NULL DEFAULT '0',
  `object_id` int(11) unsigned NOT NULL DEFAULT '0',
  `num_vedette` int(11) unsigned NOT NULL DEFAULT '0',
  `subdivision` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `position` int(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`object_type`,`object_id`,`num_vedette`,`subdivision`,`position`),
  KEY `i_vedette_object_object` (`object_type`,`object_id`),
  KEY `i_vedette_object_vedette` (`num_vedette`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vedette_object`
--


--
-- Table structure for table `visionneuse_params`
--

CREATE TABLE `visionneuse_params` (
  `visionneuse_params_id` int(11) NOT NULL AUTO_INCREMENT,
  `visionneuse_params_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visionneuse_params_parameters` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`visionneuse_params_id`),
  UNIQUE KEY `visionneuse_params_class` (`visionneuse_params_class`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `visionneuse_params`
--


--
-- Table structure for table `visits_statistics`
--

CREATE TABLE `visits_statistics` (
  `visits_statistics_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `visits_statistics_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `visits_statistics_location` smallint(5) unsigned NOT NULL DEFAULT '0',
  `visits_statistics_type` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`visits_statistics_id`),
  KEY `i_vs_visits_statistics_date` (`visits_statistics_date`),
  KEY `i_vs_visits_statistics_location_visits_statistics_type` (`visits_statistics_location`,`visits_statistics_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `visits_statistics`
--


--
-- Table structure for table `voir_aussi`
--

CREATE TABLE `voir_aussi` (
  `num_noeud_orig` int(9) unsigned NOT NULL DEFAULT '0',
  `num_noeud_dest` int(9) unsigned NOT NULL DEFAULT '0',
  `langue` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `comment_voir_aussi` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`num_noeud_orig`,`num_noeud_dest`,`langue`),
  KEY `num_noeud_dest` (`num_noeud_dest`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `voir_aussi`
--


--
-- Table structure for table `words`
--

CREATE TABLE `words` (
  `id_word` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `word` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `double_metaphone` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `stem` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id_word`),
  UNIQUE KEY `i_word_lang` (`word`,`lang`),
  KEY `i_stem_lang` (`stem`,`lang`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `words`
--


--
-- Table structure for table `z_attr`
--

CREATE TABLE `z_attr` (
  `attr_bib_id` int(6) unsigned NOT NULL DEFAULT '0',
  `attr_libelle` varchar(250) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `attr_attr` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`attr_bib_id`,`attr_libelle`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `z_attr`
--

INSERT INTO `z_attr` VALUES (2,'sujet','21'),(2,'titre','4'),(2,'auteur','1003'),(2,'isbn','7'),(3,'sujet','21'),(3,'titre','4'),(3,'isbn','7'),(3,'auteur','1003'),(5,'auteur','1004'),(5,'titre','4'),(5,'isbn','7'),(5,'sujet','21'),(7,'isbn','7'),(7,'auteur','1003'),(7,'titre','4'),(7,'sujet','21'),(8,'auteur','1'),(8,'titre','4'),(8,'isbn','7'),(8,'sujet','21'),(8,'mots','1016'),(10,'auteur','1003'),(10,'titre','4'),(10,'isbn','7'),(10,'sujet','21'),(12,'sujet','21'),(12,'auteur','1003'),(12,'titre','4'),(12,'isbn','7'),(11,'sujet','21'),(11,'auteur','1003'),(11,'isbn','7'),(11,'titre','4'),(15,'auteur','1003'),(15,'titre','4'),(15,'isbn','7'),(15,'sujet','21'),(17,'sujet','21'),(17,'auteur','1003'),(17,'isbn','7'),(17,'titre','4'),(21,'sujet','21'),(21,'auteur','1003'),(21,'isbn','7'),(21,'titre','4');

--
-- Table structure for table `z_bib`
--

CREATE TABLE `z_bib` (
  `bib_id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `bib_nom` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `search_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `url` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `port` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `base` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `format` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `auth_user` varchar(250) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `auth_pass` varchar(250) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sutrs_lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fichier_func` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`bib_id`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `z_bib`
--


--
-- Table structure for table `z_notices`
--

CREATE TABLE `z_notices` (
  `znotices_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `znotices_query_id` int(11) DEFAULT NULL,
  `znotices_bib_id` int(6) unsigned DEFAULT '0',
  `isbd` text COLLATE utf8_unicode_ci,
  `isbn` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `titre` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `auteur` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `z_marc` longblob NOT NULL,
  PRIMARY KEY (`znotices_id`),
  KEY `idx_z_notices_idq` (`znotices_query_id`),
  KEY `idx_z_notices_isbn` (`isbn`),
  KEY `idx_z_notices_titre` (`titre`),
  KEY `idx_z_notices_auteur` (`auteur`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `z_notices`
--


--
-- Table structure for table `z_query`
--

CREATE TABLE `z_query` (
  `zquery_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `search_attr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `zquery_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`zquery_id`),
  KEY `zquery_date` (`zquery_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `z_query`
--



