View | Details | Raw Unified | Return to bug 8190 | Differences between
and this patch

Collapse All | Expand All

(-)a/plugins/pubIds/doi/DOIPubIdPlugin.inc.php (-1 / +4 lines)
 Lines 246-252   class DOIPubIdPlugin extends PubIdPlugin { Link Here 
246
		assert($separatorIndex !== false); // Should contain a slash
246
		assert($separatorIndex !== false); // Should contain a slash
247
		$prefix = String::substr($pubId, 0, $separatorIndex);
247
		$prefix = String::substr($pubId, 0, $separatorIndex);
248
		$suffix = String::substr($pubId, $separatorIndex+1);
248
		$suffix = String::substr($pubId, $separatorIndex+1);
249
		return 'http://dx.doi.org/' . $prefix . '/' . urlencode($suffix);
249
		$encodedSuffix = urlencode($suffix);
250
		$encodedSuffix = str_replace("%28", "(", $encodedSuffix);
251
		$encodedSuffix = str_replace("%29", ")", $encodedSuffix);
252
		return 'http://dx.doi.org/' . $prefix . '/' . $encodedSuffix;
250
	}
253
	}
251
254
252
	/**
255
	/**

Return to bug 8190