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 / +6 lines)
 Lines 237-243   class DOIPubIdPlugin extends PubIdPlugin { Link Here 
237
	 * @see PubIdPlugin::getResolvingURL()
237
	 * @see PubIdPlugin::getResolvingURL()
238
	 */
238
	 */
239
	function getResolvingURL($journalId, $pubId) {
239
	function getResolvingURL($journalId, $pubId) {
240
		return 'http://dx.doi.org/'.urlencode($pubId);
240
		// See ANSI/NISO Z39.84-2005, Appendix E. (Bug #8190)
241
		$separatorIndex = String::strpos($pubId, '/');
242
		assert($separatorIndex !== false); // Should contain a slash
243
		$prefix = String::substr($pubId, 0, $separatorIndex);
244
		$suffix = String::substr($pubId, $separatorIndex+1);
245
		return 'http://dx.doi.org/' . $prefix . '/' . urlencode($suffix);
241
	}
246
	}
242
247
243
	/**
248
	/**

Return to bug 8190