Subversion Repositories eFlore/Applications.coel

Rev

Rev 1470 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1470 Rev 1476
Line 47... Line 47...
47
		
47
		
48
		String nom = (nomComplet == null) ? "%" : nomComplet+"%";
48
		String nom = (nomComplet == null) ? "%" : nomComplet+"%";
Line 49... Line 49...
49
		String[] param = {publicationId, nom};
49
		String[] param = {publicationId, nom};
50
		
50
		
Line 51... Line 51...
51
		HashMap<String, String> restrictions = new HashMap<String, String>();
51
		HashMap<String, String> restrictions = new HashMap<String, String>();
52
		restrictions.put("orderby", "cpu_titre");
52
		restrictions.put("orderby", "cpu_fmt_nom_complet");
53
		
53
		
Line -... Line 54...
-
 
54
		if (nbElements != -1) {
-
 
55
			restrictions.put("limit", String.valueOf(nbElements));
-
 
56
		}
54
		if (nbElements != -1) {
57
		
55
			restrictions.put("limit", String.valueOf(nbElements));
58
		Debug.log("start="+start);
Line 56... Line 59...
56
		}
59
		Debug.log("nbElements="+nbElements);
57
		
60
		
Line 106... Line 109...
106
							if (responseObject.get("publications").isArray() != null) {
109
							if (responseObject.get("publications").isArray() != null) {
Line 107... Line 110...
107
								
110
								
Line 108... Line 111...
108
								JSONArray reponse = responseObject.get("publications").isArray();
111
								JSONArray reponse = responseObject.get("publications").isArray();
-
 
112
								
109
								
113
								PublicationListe publications;
110
								PublicationListe publications;
114
								
111
								if (reponse.get(1).isObject() != null)	{
115
								/*if (reponse.get(1).isObject() != null)	{
-
 
116
									publications = new PublicationListe(reponse.get(1).isArray());
112
									publications = new PublicationListe(reponse.get(1).isArray());
117
								} else	{*/
113
								} else	{
118
								Debug.log("responseObject="+responseObject);
Line 114... Line 119...
114
									publications = new PublicationListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
119
									publications = new PublicationListe(responseObject.get("publications").isArray(), responseObject.get("nbElements").isNumber(), vueARafraichir);
115
								}
120
								//}
Line 116... Line 121...
116
								
121