From b6cb874610d0c6a7e73c9e3f1e2f95b351afe64d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 10 Oct 2006 16:53:47 +0000 Subject: [PATCH] Renamed the contract ID for the Zotero from "@chnm.gmu.edu/Zotero;1" to "@zotero.org/Zotero;1" -- this is a little dumb, since it means that utilities will have to be changed for Beta 3, but since this line will end up being copied all over the place in perpetuity, it's probably better for it to be zotero.org. (And actually, it may not come up much--anyone working within the main overlay will already have the Zotero object and in other windows people can just include chrome://zotero/content/include.js in their XUL file and not worry about it...) Removed ECL from chnmIZoteroService.js, since most of it is boilerplate from Mozilla anyway --- chrome/content/zotero/include.js | 2 +- components/chnmIZoteroService.js | 24 +----------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/chrome/content/zotero/include.js b/chrome/content/zotero/include.js index 6c063ac4d..86073308e 100644 --- a/chrome/content/zotero/include.js +++ b/chrome/content/zotero/include.js @@ -1,4 +1,4 @@ -var Zotero = Components.classes["@chnm.gmu.edu/Zotero;1"] +var Zotero = Components.classes["@zotero.org/Zotero;1"] // Currently uses only nsISupports //.getService(Components.interfaces.chnmIZoteroService). .getService(Components.interfaces.nsISupports) diff --git a/components/chnmIZoteroService.js b/components/chnmIZoteroService.js index 7cd7b9b70..ba80add1d 100644 --- a/components/chnmIZoteroService.js +++ b/components/chnmIZoteroService.js @@ -1,26 +1,4 @@ -/* - ***** BEGIN LICENSE BLOCK ***** - - Copyright (c) 2006 Center for History and New Media - George Mason University, Fairfax, Virginia, USA - http://chnm.gmu.edu - - Licensed under the Educational Community License, Version 1.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.opensource.org/licenses/ecl1.php - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ***** END LICENSE BLOCK ***** -*/ - -const ZOTERO_CONTRACTID = '@chnm.gmu.edu/Zotero;1'; +const ZOTERO_CONTRACTID = '@zotero.org/Zotero;1'; const ZOTERO_CLASSNAME = 'Zotero'; const ZOTERO_CID = Components.ID('{e4c61080-ec2d-11da-8ad9-0800200c9a66}'); const ZOTERO_IID = Components.interfaces.chnmIZoteroService;