Revision 51832
Added by Argiro Kokogiannaki over 6 years ago
modules/uoa-joomla/trunk/joomla-3.4/com_openaire_beta/site/models/claim.php | ||
---|---|---|
1062 | 1062 |
$resultsToGet[] = $claimedPublication -> publicationId; |
1063 | 1063 |
} |
1064 | 1064 |
|
1065 |
}
|
|
1065 |
} |
|
1066 | 1066 |
$resultsToGet = array_unique($resultsToGet); |
1067 |
$projectsToGet = array_unique($projectsToGet);
|
|
1067 |
$projectsToGet = array_unique($projectsToGet); |
|
1068 | 1068 |
$searchModel = new OpenAireModelSearch(); |
1069 |
$results = $searchModel->getResults($resultsToGet, $locale); |
|
1070 |
$projects = $searchModel->getProjects($projectsToGet, $locale); |
|
1069 |
$results = []; |
|
1070 |
$offset=20; |
|
1071 |
for($i=0; $i<count($resultsToGet);$i+=$offset){ |
|
1072 |
$results_now = $results; |
|
1073 |
$partToGet =[]; |
|
1074 |
$partToGet = array_slice($resultsToGet,$i,$offset); |
|
1075 |
$results_temp = $searchModel->getResults($partToGet, $locale); |
|
1076 |
$results = array_merge($results_now, $results_temp); |
|
1077 |
} |
|
1078 |
$projects = []; |
|
1079 |
for($i=0; $i<count($projectsToGet);$i+=$offset){ |
|
1080 |
$projects_now = $projects; |
|
1081 |
$partToGet =[]; |
|
1082 |
$partToGet = array_slice($projectsToGet,$i,$offset); |
|
1083 |
$projects_temp = $searchModel->getProjects($partToGet, $locale); |
|
1084 |
$projects = array_merge($projects_now, $projects_temp); |
|
1085 |
} |
|
1086 |
|
|
1087 |
|
|
1071 | 1088 |
$keydResults = array(); |
1072 | 1089 |
$keydProjects = array(); |
1073 | 1090 |
foreach ($results as $result){ |
modules/uoa-joomla/trunk/joomla-3.4/com_openaire_beta/site/views/claims/tmpl/default.php | ||
---|---|---|
229 | 229 |
{ "width": "15%" }, |
230 | 230 |
{ "width": "10%" }], |
231 | 231 |
"columnDefs": [{"targets": [0],"visible": false}], |
232 |
"order": [[ 4, "desc" ]],
|
|
232 |
"order": [[ 2, "desc" ]],
|
|
233 | 233 |
select: {style: 'multi'}, |
234 | 234 |
responsive: true, |
235 | 235 |
buttons: ['selectAll', 'selectNone' ] |
... | ... | |
248 | 248 |
{ "width": "15%" }, |
249 | 249 |
{ "width": "10%" }], |
250 | 250 |
"columnDefs": [{"targets": [0],"visible": false}], |
251 |
"order": [[ 4, "desc" ]],
|
|
251 |
"order": [[ 2, "desc" ]],
|
|
252 | 252 |
select: {style: 'multi'}, |
253 | 253 |
responsive: true, |
254 | 254 |
buttons: ['selectAll', 'selectNone' ] |
... | ... | |
268 | 268 |
{ "width": "15%" }, |
269 | 269 |
{ "width": "10%" }], |
270 | 270 |
"columnDefs": [{"targets": [0],"visible": false}], |
271 |
"order": [[ 4, "desc" ]],
|
|
271 |
"order": [[ 2, "desc" ]],
|
|
272 | 272 |
select: {style: 'multi'}, |
273 | 273 |
responsive: true, |
274 | 274 |
buttons: ['selectAll', 'selectNone' ] |
... | ... | |
287 | 287 |
{ "width": "15%" }, |
288 | 288 |
{ "width": "10%" }], |
289 | 289 |
"columnDefs": [{"targets": [0],"visible": false}], |
290 |
"order": [[ 4, "desc" ]],
|
|
290 |
"order": [[ 2, "desc" ]],
|
|
291 | 291 |
select: {style: 'multi'}, |
292 | 292 |
responsive: true, |
293 | 293 |
buttons: ['selectAll', 'selectNone' ] |
... | ... | |
402 | 402 |
jQuery.each (rows, function(index, row){ |
403 | 403 |
|
404 | 404 |
selected.push(row[0]); |
405 |
selectedEmail.push(row[4]);
|
|
405 |
selectedEmail.push(row[3]);
|
|
406 | 406 |
}); |
407 | 407 |
alert('ids'+selected+' mails:'+selectedEmail); |
408 | 408 |
jQuery("#action").val('removeSelected'); |
Also available in: Unified diff
claims admin: error for datatables | admin/my claims: fetch results & projects partially to be sure that the url doesn't exceed URL max size