\n"; } } print '
Conflicts have been unset.
'; print ''; printFooter(); exit; } elseif ($_POST['ocaction'] == 'update') { if (isset($_POST['alloworgconflict']) && ($_POST['alloworgconflict'] == 'no')) { updateConfigSetting('OC_allowOrgConflict', 0); $OC_configAR['OC_allowOrgConflict'] = 0; } else { updateConfigSetting('OC_allowOrgConflict', 1); $OC_configAR['OC_allowOrgConflict'] = 1; } if (isset($_POST['allowemailconflict']) && ($_POST['allowemailconflict'] == 'no')) { updateConfigSetting('OC_allowEmailConflict', 0); $OC_configAR['OC_allowEmailConflict'] = 0; } else { updateConfigSetting('OC_allowEmailConflict', 1); $OC_configAR['OC_allowEmailConflict'] = 1; } } } $pq = "SELECT `" . OCC_TABLE_CONFLICT . "`.`paperid`, `" . OCC_TABLE_CONFLICT . "`.`reviewerid`, CONCAT_WS(' ',`" . OCC_TABLE_REVIEWER . "`.`name_first`,`" . OCC_TABLE_REVIEWER . "`.`name_last`) AS `name`, `title` FROM `" . OCC_TABLE_PAPER . "`, `" . OCC_TABLE_REVIEWER . "`, `" . OCC_TABLE_CONFLICT . "` WHERE `" . OCC_TABLE_CONFLICT . "`.`paperid`=`" . OCC_TABLE_PAPER . "`.`paperid` AND `" . OCC_TABLE_CONFLICT . "`.`reviewerid`=`" . OCC_TABLE_REVIEWER . "`.`reviewerid`"; if (empty($_GET['s']) || ($_GET['s'] == "pid")) { $q = $pq . " ORDER BY `" . OCC_TABLE_CONFLICT . "`.`paperid`, `" . OCC_TABLE_CONFLICT . "`.`reviewerid`"; $sortid = "paper"; $pidsort="Manually Set Conflicts: (set)
'; $r = ocsql_query($q) or err("Unable to get information ".ocsql_errno()); if (ocsql_num_rows($r) == 0) { print 'No conflicts have been set.
'; } else { $s = substr($sortid, 0, 1); print ' '; } // Show auto-detected conflicts print 'Automatically Detected Conflicts:
'; if (($OC_configAR['OC_allowEmailConflict'] == 1) && ($OC_configAR['OC_allowOrgConflict'] == 1)) { print 'Auto-conflict detection is disabled; change settings above.
'; } else { $q = "SELECT `" . OCC_TABLE_AUTHOR . "`.`paperid`, `reviewerid`, `title`, CONCAT_WS(' ',`" . OCC_TABLE_REVIEWER . "`.`name_first`,`" . OCC_TABLE_REVIEWER . "`.`name_last`) AS `name` FROM `" . OCC_TABLE_AUTHOR . "`, `" . OCC_TABLE_PAPER . "`, `" . OCC_TABLE_REVIEWER . "` WHERE " . "`" . OCC_TABLE_PAPER . "`.`paperid`=`" . OCC_TABLE_AUTHOR . "`.`paperid` AND ("; if ($GLOBALS['OC_configAR']['OC_allowEmailConflict'] == 0) { $q .= " (`" . OCC_TABLE_AUTHOR . "`.`email`=`" . OCC_TABLE_REVIEWER . "`.`email`)"; } if ($GLOBALS['OC_configAR']['OC_allowOrgConflict'] == 0) { if ($GLOBALS['OC_configAR']['OC_allowEmailConflict'] == 0) { $q .= " OR"; } $q .= " (`" . OCC_TABLE_AUTHOR . "`.`organization` <> '' AND `" . OCC_TABLE_AUTHOR . "`.`organization`=`" . OCC_TABLE_REVIEWER . "`.`organization`)"; } $q .= ") GROUP BY `paperid`, `reviewerid` ORDER BY `paperid`, `reviewerid`"; $r = ocsql_query($q) or err("Unable to get auto paper/reviewer conflicts ".ocsql_errno()); if (ocsql_num_rows($r) < 1) { print 'No conflicts detected
'; } else { print 'Submission | Reviewer |
---|---|
' . $l['paperid'] . '. ' . safeHTMLstr($l['title']) . ' | ' . $l['reviewerid'] .'. ' . safeHTMLstr($l['name']) . ' | '; $row = $rowAR[$row]; } print '
For a match to occur, the email address or organization name must be exactly the same.
'; } } // Check for addt'l (hook) conflict displays if (isset($OC_hooksAR['list_conflicts-display']) && !empty($OC_hooksAR['list_conflicts-display'])) { foreach ($OC_hooksAR['list_conflicts-display'] as $hook) { print '