From 86dabe624b49bb7befeb769cc5a9b9169abe2420 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Fri, 17 Jun 2022 10:23:13 +0200 Subject: [PATCH] Revert changes to ID field in configure --- src/iiiftilesource.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/iiiftilesource.js b/src/iiiftilesource.js index 66b53410..b04a7ca9 100644 --- a/src/iiiftilesource.js +++ b/src/iiiftilesource.js @@ -207,15 +207,13 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea if ( !$.isPlainObject(data) ) { var options = configureFromXml10( data ); options['@context'] = "http://iiif.io/api/image/1.0/context.json"; - options._id = url.replace('/info.xml', ''); + options["@id"] = url.replace('/info.xml', ''); options.version = 1; return options; } else { if ( !data['@context'] ) { data['@context'] = 'http://iiif.io/api/image/1.0/context.json'; data["@id"] = url.replace('/info.json', ''); - // ensure the '@id' property is aliased to the internal "_id" property. - data._id = data["@id"]; data.version = 1; } else { var context = data['@context'];