Changeset 3458


Ignore:
Timestamp:
Jan 31, 2017, 6:36:31 PM (2 years ago)
Author:
jrpelegrina
Message:

WIP in new procedure to renow users

Location:
pmb4.2/trunk/fuentes/pmb
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pmb4.2/trunk/fuentes/pmb/includes/messages/help/va_ES/admin_mailtpl.txt

    r838 r3458  
    1 <h1>Administraci&oacute; de plantilles de correu electr&ograve;nic.</h1>
    2 <p>Esta p&agrave; permet editar les plantilles de correu electr&ograve;nic.</p>
     1<h1>Administraci&oacute; de plantilles de correu</h1>
     2<p>Esta p&agrave;gina permet editar les plantilles de correu electr&ograve;nic.</p>
    33<p>Configuraci&oacute; que s&apos;ha de realitzar:</p>
    44
  • pmb4.2/trunk/fuentes/pmb/includes/messages/va_ES.xml

    r3075 r3458  
    41264126<entry code="font_style_normal">normal</entry>
    41274127<entry code="form_recharge_bt_continuer">Continua</entry>
    4128 <entry code="format_date">%d/%m/%A</entry>
    4129 <entry code="format_date_heure">%d/%m/%A %H</entry>
     4128<entry code="format_date">%d/%m/%Y</entry>
     4129<entry code="format_date_heure">%d/%m/%Y %H</entry>
    41304130<entry code="format_date_input">%d/%d/%d</entry>
    41314131<entry code="format_date_input_separator">/</entry>
     
    41344134<entry code="format_date_input">%d/%d/%d</entry>
    41354135<entry code="format_date_input_model">%d/%m/%Y</entry>
    4136 <entry code="format_date_input_placeholder">JJ/MM/AAAA</entry>
    4137 <entry code="format_date_input_text_placeholder">AAAA,MM/AAAA,JJ/MM/AAAA</entry>
     4136<entry code="format_date_input_placeholder">JJ/MM/YYYY</entry>
     4137<entry code="format_date_input_text_placeholder">YYYY,MM/YYYY,DD/MM/YYYY</entry>
    41384138<entry code="fpdf_adherent">Vàlid des del </entry>
    41394139<entry code="fpdf_adherent_au">fins al</entry>
     
    56755675<entry code="sauv_menu_jeux">Còpies de seguretat</entry>
    56765676<entry code="sauv_menu_jeux_c">Gestió de les còpies de seguretat</entry>
    5677 <entry code="sauv_menu_launch">Còpies de seguretat</entry>
    5678 <entry code="sauv_menu_launch_c">Còpies de seguretat</entry>
     5677<entry code="sauv_menu_launch">Iniciar una còpia de seguretat</entry>
     5678<entry code="sauv_menu_launch_c">Iniciar una còpia de seguretat</entry>
    56795679<entry code="sauv_menu_lieux">Llocs de les còpies de seguretat</entry>
    56805680<entry code="sauv_menu_lieux_c">Gestió dels llocs de còpies de seguretat</entry>
  • pmb4.2/trunk/fuentes/pmb/lliurex/pmb4_base.sql

    r2851 r3458  
    78657865  PRIMARY KEY (`idproc`),
    78667866  KEY `idproc` (`idproc`)
    7867 ) ENGINE=MyISAM AUTO_INCREMENT=362 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
     7867) ENGINE=MyISAM AUTO_INCREMENT=363 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
    78687868/*!40101 SET character_set_client = @saved_cs_client */;
    78697869
     
    78747874LOCK TABLES `procs` WRITE;
    78757875/*!40000 ALTER TABLE `procs` DISABLE KEYS */;
    7876 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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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,'');
     7876INSERT 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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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=\"iso-8859-1\"?>\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,'');
    78777877/*!40000 ALTER TABLE `procs` ENABLE KEYS */;
    78787878UNLOCK TABLES;
  • pmb4.2/trunk/fuentes/pmb/lliurex/utilidades/updatedtables

    r2894 r3458  
    11#!/bin/bash
    22
    3 echo "[ PMB 4.2] : Searching PMB database..."
     3echo " [ PMB 4.1] : Searching PMB database..."
    44
    55lliurex-sgbd --db_is_present lliurex-pmb
    66
    77if [ ! -f /tmp/db_is_present ]; then
    8         echo "[ PMB 4.2] : PMB database not found. NOTHING TO DO"
     8        echo " [ PMB 4.1] : PMB database not found. NOTHING TO DO"
    99else
    10         echo "[ PMB 4.2] : PMB database found. NOW some tables WILL BE UPDATED"
     10        echo " [ PMB 4.1] : PMB database found. NOW some tables WILL BE UPDATED"
    1111        lliurex-pmb --upgrade   
    1212        PATH_SQL="/usr/share/pmb/www/lliurex/utilidades_sql/Update_tables.sql"
  • pmb4.2/trunk/fuentes/pmb/lliurex/utilidades_sql/Update_tables.sql

    r2851 r3458  
    33UPDATE z_bib SET bib_nom = 'REBECA', url = 'catalogos.mecd.es', port = '220', base = 'ABNET_REBECA', format ='ISO 8859-1' WHERE url = 'rebeca.mcu.es' || url='rebeca_z3950.mcu.es';
    44
     5-- Se añade una acción personalizada para renovar usuarios
     6
     7Insert into procs (name,requete,comment,autorisations, parameters,num_classement,proc_notice_tpl,proc_notice_tpl_field) select '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,'' from dual where NOT EXISTS(Select * from procs where name like 'LLIUREX_RENOV%');
  • pmb4.2/trunk/fuentes/pmb/usur_imp_itaca.php

    r962 r3458  
    232232                               
    233233                        if (@mysql_num_rows($resul1) != 0) {
     234                                $sql_user_cad="SELECT `empr`.`id_empr`, `empr`.`empr_login`, `empr`.`empr_password`, `empr`.`empr_location` FROM `empr` WHERE (`empr`.`empr_cb`='" . $tot[$num-$correctorNIA] . "' AND `empr`. `empr_nom` like '" . $tot[$num-(22+$correctorVacia)] . "' AND `empr`. `empr_prenom` like '" . $tot[$num-(21+$correctorVacia)] . "' AND  `empr`. `empr_date_expiration`< '" . $fecha . "')";
     235                                $resul_cad= @mysql_query($sql_user_cad, $link2);
     236                               
    234237                                //echo "$msg[usur_imp_b] <b>" . $tot[$num-23] . "</b><br>";
    235238                                $row1 = mysql_fetch_array($resul1);
     
    269272                                //$requete .= "empr_statut='"$tot[$num-22]."',";
    270273                                $requete .= "empr_modif='".$fecha."',";
     274                                if (@mysql_num_rows($resul_cad) != 0) {
     275                                        $requete .= "empr_date_expiration='".$fecha_cad."',";
     276                                }
    271277                                $requete .= "empr_sexe=".intval(($tot[$num-(10+$correctorVacia)]))."";
    272278                                $requete .= " WHERE id_empr=".intval($row1['id_empr'])." ";
Note: See TracChangeset for help on using the changeset viewer.