From b389cbbddb1896d0df70fca2db9968ee4cfe45c1 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 8 May 2018 15:22:31 -0400 Subject: [PATCH] remove unused config, add saveexitbutton --- build/js/app.js | 457 +++++++++++++++--------------------- js/app.js | 1 - js/config.js | 68 ------ js/islandora_cwrc_writer.js | 5 +- 4 files changed, 196 insertions(+), 335 deletions(-) delete mode 100644 js/config.js diff --git a/build/js/app.js b/build/js/app.js index 85253ecd..7fcababa 100644 --- a/build/js/app.js +++ b/build/js/app.js @@ -614,82 +614,9 @@ window.Drupal.CWRCWriterDialogs.registerEntitySources({ titles: new Map().set('cwrc', cwrc).set('viaf', viaf).set('wikidata', wikidata).set('dbpedia', dbpedia) }); -window.Drupal.CWRCWriterConfig = require('./config.js'); window.Drupal.CWRCWriter = require('cwrc-writer-base'); -},{"./config.js":8,"cwrc-entity-lookup":9,"cwrc-public-entity-dialogs":33,"cwrc-writer-base":116,"dbpedia-entity-lookup":117,"geonames-entity-lookup":119,"getty-entity-lookup":120,"viaf-entity-lookup":173,"wikidata-entity-lookup":174}],8:[function(require,module,exports){ -"use strict"; - -module.exports = { - "cwrcRootUrl": "", - "validationUrl": "https://validator.services.cwrc.ca/validator/validate.html", - "cwrcDialogs": { - "cwrcApiUrl": "https://apps.testing.cwrc.ca/islandora/cwrc_entities/v1/", - "repositoryBaseObjectUrl": "https://commons.cwrc.ca/", - "geonameUrl": "https://apps.testing.cwrc.ca/cwrc-mtp/geonames/", - "viafUrl": "https://apps.testing.cwrc.ca/services/viaf/", - "googleGeocodeUrl": "https://maps.googleapis.com/maps/api/geocode/xml", - "schemas": { - "person": "https://cwrc.ca/schemas/entities.rng", - "organization": "https://cwrc.ca/schemas/entities.rng", - "place": "https://cwrc.ca/schemas/entities.rng" - } - }, - "schemas": { - "tei": { - "name": "CWRC Basic TEI Schema", - "url": "https://cwrc.ca/schemas/cwrc_tei_lite.rng", - "cssUrl": "https://cwrc.ca/templates/css/tei.css", - "schemaMappingsId": "tei", - "entityTemplates": { - "note": "schema/tei/xml/note.xml", - "citation": "schema/tei/xml/citation.xml" - } - }, - "events": { - "name": "Events Schema", - "url": "https://cwrc.ca/schemas/orlando_event_v2.rng", - "cssUrl": "https://cwrc.ca/templates/css/orlando_v2_cwrc-writer.css", - "schemaMappingsId": "orlando", - "entityTemplates": { - "note": "schema/orlando/xml/note_events.xml", - "citation": "schema/orlando/xml/citation_events.xml" - } - }, - "biography": { - "name": "Biography Schema", - "url": "https://cwrc.ca/schemas/orlando_biography_v2.rng", - "cssUrl": "https://cwrc.ca/templates/css/orlando_v2_cwrc-writer.css", - "schemaMappingsId": "orlando", - "entityTemplates": { - "note": "schema/orlando/xml/note_biography.xml", - "citation": "schema/orlando/xml/citation_biography.xml" - } - }, - "writing": { - "name": "Writing Schema", - "url": "https://cwrc.ca/schemas/orlando_writing_v2.rng", - "cssUrl": "https://cwrc.ca/templates/css/orlando_v2_cwrc-writer.css", - "schemaMappingsId": "orlando", - "entityTemplates": { - "note": "schema/orlando/xml/note_writing.xml", - "citation": "schema/orlando/xml/citation_writing.xml" - } - }, - "cwrcEntry": { - "name": "CWRC Entry Schema", - "url": "https://cwrc.ca/schemas/cwrc_entry.rng", - "cssUrl": "https://cwrc.ca/templates/css/cwrc.css", - "schemaMappingsId": "cwrcEntry", - "entityTemplates": { - "note": "schema/cwrcEntry/xml/note.xml", - "citation": "schema/cwrcEntry/xml/citation.xml" - } - } - } -}; - -},{}],9:[function(require,module,exports){ +},{"cwrc-entity-lookup":8,"cwrc-public-entity-dialogs":32,"cwrc-writer-base":115,"dbpedia-entity-lookup":116,"geonames-entity-lookup":118,"getty-entity-lookup":119,"viaf-entity-lookup":172,"wikidata-entity-lookup":173}],8:[function(require,module,exports){ 'use strict'; var urlRoot = 'http://beta.cwrc.ca'; @@ -801,7 +728,7 @@ module.exports = { fetchWithTimeout: fetchWithTimeout }; -},{}],10:[function(require,module,exports){ +},{}],9:[function(require,module,exports){ (function (process,__filename){ /** vim: et:ts=4:sw=4:sts=4 * @license amdefine 1.0.1 Copyright (c) 2011-2016, The Dojo Foundation All Rights Reserved. @@ -1106,7 +1033,7 @@ function amdefine(module, requireFn) { module.exports = amdefine; }).call(this,require('_process'),"/node_modules\\amdefine\\amdefine.js") -},{"_process":3,"path":2}],11:[function(require,module,exports){ +},{"_process":3,"path":2}],10:[function(require,module,exports){ require('../../js/transition.js'); require('../../js/alert.js'); require('../../js/button.js'); @@ -1119,7 +1046,7 @@ require('../../js/popover.js'); require('../../js/scrollspy.js'); require('../../js/tab.js'); require('../../js/affix.js'); -},{"../../js/affix.js":12,"../../js/alert.js":13,"../../js/button.js":14,"../../js/carousel.js":15,"../../js/collapse.js":16,"../../js/dropdown.js":17,"../../js/modal.js":18,"../../js/popover.js":19,"../../js/scrollspy.js":20,"../../js/tab.js":21,"../../js/tooltip.js":22,"../../js/transition.js":23}],12:[function(require,module,exports){ +},{"../../js/affix.js":11,"../../js/alert.js":12,"../../js/button.js":13,"../../js/carousel.js":14,"../../js/collapse.js":15,"../../js/dropdown.js":16,"../../js/modal.js":17,"../../js/popover.js":18,"../../js/scrollspy.js":19,"../../js/tab.js":20,"../../js/tooltip.js":21,"../../js/transition.js":22}],11:[function(require,module,exports){ /* ======================================================================== * Bootstrap: affix.js v3.3.7 * http://getbootstrap.com/javascript/#affix @@ -1283,7 +1210,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],13:[function(require,module,exports){ +},{}],12:[function(require,module,exports){ /* ======================================================================== * Bootstrap: alert.js v3.3.7 * http://getbootstrap.com/javascript/#alerts @@ -1379,7 +1306,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],14:[function(require,module,exports){ +},{}],13:[function(require,module,exports){ /* ======================================================================== * Bootstrap: button.js v3.3.7 * http://getbootstrap.com/javascript/#buttons @@ -1506,7 +1433,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],15:[function(require,module,exports){ +},{}],14:[function(require,module,exports){ /* ======================================================================== * Bootstrap: carousel.js v3.3.7 * http://getbootstrap.com/javascript/#carousel @@ -1745,7 +1672,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],16:[function(require,module,exports){ +},{}],15:[function(require,module,exports){ /* ======================================================================== * Bootstrap: collapse.js v3.3.7 * http://getbootstrap.com/javascript/#collapse @@ -1959,7 +1886,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],17:[function(require,module,exports){ +},{}],16:[function(require,module,exports){ /* ======================================================================== * Bootstrap: dropdown.js v3.3.7 * http://getbootstrap.com/javascript/#dropdowns @@ -2126,7 +2053,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],18:[function(require,module,exports){ +},{}],17:[function(require,module,exports){ /* ======================================================================== * Bootstrap: modal.js v3.3.7 * http://getbootstrap.com/javascript/#modals @@ -2467,7 +2394,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],19:[function(require,module,exports){ +},{}],18:[function(require,module,exports){ /* ======================================================================== * Bootstrap: popover.js v3.3.7 * http://getbootstrap.com/javascript/#popovers @@ -2577,7 +2504,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],20:[function(require,module,exports){ +},{}],19:[function(require,module,exports){ /* ======================================================================== * Bootstrap: scrollspy.js v3.3.7 * http://getbootstrap.com/javascript/#scrollspy @@ -2751,7 +2678,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],21:[function(require,module,exports){ +},{}],20:[function(require,module,exports){ /* ======================================================================== * Bootstrap: tab.js v3.3.7 * http://getbootstrap.com/javascript/#tabs @@ -2908,7 +2835,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],22:[function(require,module,exports){ +},{}],21:[function(require,module,exports){ /* ======================================================================== * Bootstrap: tooltip.js v3.3.7 * http://getbootstrap.com/javascript/#tooltip @@ -3430,7 +3357,7 @@ require('../../js/affix.js'); }(jQuery); -},{}],23:[function(require,module,exports){ +},{}],22:[function(require,module,exports){ /* ======================================================================== * Bootstrap: transition.js v3.3.7 * http://getbootstrap.com/javascript/#transitions @@ -3491,17 +3418,17 @@ require('../../js/affix.js'); }(jQuery); -},{}],24:[function(require,module,exports){ +},{}],23:[function(require,module,exports){ module.exports = require('css').parse; -},{"css":26}],25:[function(require,module,exports){ +},{"css":25}],24:[function(require,module,exports){ module.exports = require('css').stringify; -},{"css":26}],26:[function(require,module,exports){ +},{"css":25}],25:[function(require,module,exports){ exports.parse = require('./lib/parse'); exports.stringify = require('./lib/stringify'); -},{"./lib/parse":27,"./lib/stringify":31}],27:[function(require,module,exports){ +},{"./lib/parse":26,"./lib/stringify":30}],26:[function(require,module,exports){ // http://www.w3.org/TR/CSS21/grammar.html // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027 var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g @@ -4106,7 +4033,7 @@ function addParent(obj, parent) { return obj; } -},{}],28:[function(require,module,exports){ +},{}],27:[function(require,module,exports){ /** * Expose `Compiler`. @@ -4158,7 +4085,7 @@ Compiler.prototype.mapVisit = function(nodes, delim){ return buf; }; -},{}],29:[function(require,module,exports){ +},{}],28:[function(require,module,exports){ /** * Module dependencies. @@ -4359,7 +4286,7 @@ Compiler.prototype.declaration = function(node){ }; -},{"./compiler":28,"inherits":121}],30:[function(require,module,exports){ +},{"./compiler":27,"inherits":120}],29:[function(require,module,exports){ /** * Module dependencies. @@ -4615,7 +4542,7 @@ Compiler.prototype.indent = function(level) { return Array(this.level).join(this.indentation || ' '); }; -},{"./compiler":28,"inherits":121}],31:[function(require,module,exports){ +},{"./compiler":27,"inherits":120}],30:[function(require,module,exports){ /** * Module dependencies. @@ -4664,7 +4591,7 @@ module.exports = function(node, options){ return code; }; -},{"./compress":29,"./identity":30,"./source-map-support":32}],32:[function(require,module,exports){ +},{"./compress":28,"./identity":29,"./source-map-support":31}],31:[function(require,module,exports){ /** * Module dependencies. @@ -4792,7 +4719,7 @@ exports.comment = function(node) { return this._comment(node); }; -},{"fs":1,"path":2,"source-map":160,"source-map-resolve":158,"urix":172}],33:[function(require,module,exports){ +},{"fs":1,"path":2,"source-map":159,"source-map-resolve":157,"urix":171}],32:[function(require,module,exports){ 'use strict'; var prevJQuery = window.jQuery; var $ = require('jquery'); @@ -4948,7 +4875,7 @@ module.exports = { title: popSearchTitle } }; -},{"bootstrap":11,"jquery":152}],34:[function(require,module,exports){ +},{"bootstrap":10,"jquery":151}],33:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -5801,7 +5728,7 @@ AnnotationsManager.prototype = { module.exports = AnnotationsManager; -},{"jquery":152}],35:[function(require,module,exports){ +},{"jquery":151}],34:[function(require,module,exports){ /** * Converts between CWRCWriter format and XML format. */ @@ -6877,7 +6804,7 @@ function Converter(writer) { module.exports = Converter; -},{"jquery":152,"tinymce":171}],36:[function(require,module,exports){ +},{"jquery":151,"tinymce":170}],35:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/dialog'); @@ -7051,7 +6978,7 @@ function DialogManager(writer) { } ; module.exports = DialogManager; -},{"./dialogs/addSchema.js":37,"./dialogs/copyPaste.js":39,"./dialogs/cwrcCitation.js":40,"./dialogs/cwrcOrg.js":42,"./dialogs/cwrcPerson.js":43,"./dialogs/cwrcPlace.js":44,"./dialogs/cwrcTitle.js":45,"./dialogs/dialogForm.js":46,"./dialogs/editSource.js":47,"./dialogs/header.js":48,"./dialogs/loadingIndicator.js":49,"./dialogs/message.js":50,"./dialogs/popup.js":51,"./dialogs/schemaTags.js":52,"./dialogs/triple.js":54,"./schema/cwrcEntry/dialogs_map.js":81,"./schema/orlando/dialogs_map.js":95,"./schema/tei/dialogs_map.js":108,"jquery":152,"jquery-popup":67,"jquery-ui/ui/widgets/dialog":145,"jquery-ui/ui/widgets/tooltip":151}],37:[function(require,module,exports){ +},{"./dialogs/addSchema.js":36,"./dialogs/copyPaste.js":38,"./dialogs/cwrcCitation.js":39,"./dialogs/cwrcOrg.js":41,"./dialogs/cwrcPerson.js":42,"./dialogs/cwrcPlace.js":43,"./dialogs/cwrcTitle.js":44,"./dialogs/dialogForm.js":45,"./dialogs/editSource.js":46,"./dialogs/header.js":47,"./dialogs/loadingIndicator.js":48,"./dialogs/message.js":49,"./dialogs/popup.js":50,"./dialogs/schemaTags.js":51,"./dialogs/triple.js":53,"./schema/cwrcEntry/dialogs_map.js":80,"./schema/orlando/dialogs_map.js":94,"./schema/tei/dialogs_map.js":107,"jquery":151,"jquery-popup":66,"jquery-ui/ui/widgets/dialog":144,"jquery-ui/ui/widgets/tooltip":150}],36:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7102,7 +7029,7 @@ function AddSchema(writer, parentEl) { module.exports = AddSchema; -},{"jquery":152}],38:[function(require,module,exports){ +},{"jquery":151}],37:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/accordion'); @@ -7311,7 +7238,7 @@ AttributeWidget.prototype = { } }; module.exports = AttributeWidget; -},{"jquery":152,"jquery-ui/ui/widgets/accordion":140}],39:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/accordion":139}],38:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7394,7 +7321,7 @@ function CopyPaste(writer, parentEl) { module.exports = CopyPaste; -},{"jquery":152}],40:[function(require,module,exports){ +},{"jquery":151}],39:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7417,7 +7344,7 @@ function CwrcCitation(writer) { module.exports = CwrcCitation; -},{"./cwrcDialogBridge.js":41,"jquery":152}],41:[function(require,module,exports){ +},{"./cwrcDialogBridge.js":40,"jquery":151}],40:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7565,7 +7492,7 @@ function CwrcDialogBridge(writer, config) { module.exports = CwrcDialogBridge; -},{"jquery":152}],42:[function(require,module,exports){ +},{"jquery":151}],41:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7584,7 +7511,7 @@ function CwrcOrg(writer) { module.exports = CwrcOrg; -},{"./cwrcDialogBridge.js":41,"jquery":152}],43:[function(require,module,exports){ +},{"./cwrcDialogBridge.js":40,"jquery":151}],42:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7603,7 +7530,7 @@ function CwrcPerson(writer) { module.exports = CwrcPerson; -},{"./cwrcDialogBridge.js":41,"jquery":152}],44:[function(require,module,exports){ +},{"./cwrcDialogBridge.js":40,"jquery":151}],43:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7622,7 +7549,7 @@ function CwrcPlace(writer) { module.exports = CwrcPlace; -},{"./cwrcDialogBridge.js":41,"jquery":152}],45:[function(require,module,exports){ +},{"./cwrcDialogBridge.js":40,"jquery":151}],44:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -7644,7 +7571,7 @@ function CwrcTitle(writer) { module.exports = CwrcTitle; -},{"./cwrcDialogBridge.js":41,"jquery":152}],46:[function(require,module,exports){ +},{"./cwrcDialogBridge.js":40,"jquery":151}],45:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/dialog'); @@ -8040,7 +7967,7 @@ DialogForm.prototype = { } }; module.exports = DialogForm; -},{"./attributeWidget.js":38,"jquery":152,"jquery-ui/ui/widgets/accordion":140,"jquery-ui/ui/widgets/button":141,"jquery-ui/ui/widgets/controlgroup":143,"jquery-ui/ui/widgets/dialog":145}],47:[function(require,module,exports){ +},{"./attributeWidget.js":37,"jquery":151,"jquery-ui/ui/widgets/accordion":139,"jquery-ui/ui/widgets/button":140,"jquery-ui/ui/widgets/controlgroup":142,"jquery-ui/ui/widgets/dialog":144}],46:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/dialog'); @@ -8095,7 +8022,7 @@ function EditSource(writer, parentEl) { }; } module.exports = EditSource; -},{"jquery":152,"jquery-ui/ui/widgets/dialog":145}],48:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/dialog":144}],47:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/dialog'); @@ -8164,7 +8091,7 @@ function Header(writer, parentEl) { } ; module.exports = Header; -},{"jquery":152,"jquery-ui/ui/widgets/dialog":145}],49:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/dialog":144}],48:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/dialog'); @@ -8249,7 +8176,7 @@ function LoadingIndicator(writer, parentEl) { } ; module.exports = LoadingIndicator; -},{"jquery":152,"jquery-ui/ui/widgets/dialog":145,"jquery-ui/ui/widgets/progressbar":148}],50:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/dialog":144,"jquery-ui/ui/widgets/progressbar":147}],49:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -8326,7 +8253,7 @@ function Message(writer, parentEl) { module.exports = Message; -},{"jquery":152}],51:[function(require,module,exports){ +},{"jquery":151}],50:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-popup'); @@ -8544,7 +8471,7 @@ function Popup(writer, parentEl) { }; } module.exports = Popup; -},{"jquery":152,"jquery-popup":67}],52:[function(require,module,exports){ +},{"jquery":151,"jquery-popup":66}],51:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -8782,7 +8709,7 @@ function SchemaTags(writer, parentEl) { module.exports = SchemaTags; -},{"./attributeWidget.js":38,"jquery":152}],53:[function(require,module,exports){ +},{"./attributeWidget.js":37,"jquery":151}],52:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/button'); @@ -9031,7 +8958,7 @@ function Settings(writer, config) { } ; module.exports = Settings; -},{"jquery":152,"jquery-ui/ui/widgets/button":141}],54:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/button":140}],53:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-watermark'); @@ -9226,7 +9153,7 @@ function Triple(writer, parentEl) { } ; module.exports = Triple; -},{"jquery":152,"jquery-ui/ui/widgets/button":141,"jquery-watermark":68}],55:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/button":140,"jquery-watermark":67}],54:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -9447,7 +9374,7 @@ EntitiesManager.prototype = { module.exports = EntitiesManager; -},{"./entity.js":56,"jquery":152}],56:[function(require,module,exports){ +},{"./entity.js":55,"jquery":151}],55:[function(require,module,exports){ 'use strict'; /** @@ -9668,7 +9595,7 @@ Entity.prototype = { module.exports = Entity; -},{}],57:[function(require,module,exports){ +},{}],56:[function(require,module,exports){ // a wrapper for the pub/sub pattern described here: http://api.jquery.com/jQuery.Callbacks/ 'use strict'; @@ -9937,7 +9864,7 @@ function EventManager(writer) { module.exports = EventManager; -},{"jquery":152}],58:[function(require,module,exports){ +},{"jquery":151}],57:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('layout'); @@ -10272,7 +10199,7 @@ function initModule(idPrefix, writer, module) { return null; } module.exports = LayoutManager; -},{"./modules/entitiesList.js":59,"./modules/imageViewer.js":60,"./modules/relations.js":61,"./modules/selection.js":62,"./modules/structureTree.js":63,"./modules/validation.js":64,"jquery":152,"jquery-ui/ui/widgets/tabs":150,"layout":66}],59:[function(require,module,exports){ +},{"./modules/entitiesList.js":58,"./modules/imageViewer.js":59,"./modules/relations.js":60,"./modules/selection.js":61,"./modules/structureTree.js":62,"./modules/validation.js":63,"jquery":151,"jquery-ui/ui/widgets/tabs":149,"layout":65}],58:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/button'); @@ -10497,7 +10424,7 @@ function EntitiesList(config) { } ; module.exports = EntitiesList; -},{"jquery":152,"jquery-contextmenu":65,"jquery-ui/ui/widgets/button":141,"jquery-ui/ui/widgets/controlgroup":143}],60:[function(require,module,exports){ +},{"jquery":151,"jquery-contextmenu":64,"jquery-ui/ui/widgets/button":140,"jquery-ui/ui/widgets/controlgroup":142}],59:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui'); @@ -10710,7 +10637,7 @@ function ImageViewer(config) { return iv; } module.exports = ImageViewer; -},{"jquery":152,"jquery-ui":139,"openseadragon":155}],61:[function(require,module,exports){ +},{"jquery":151,"jquery-ui":138,"openseadragon":154}],60:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/button'); @@ -10809,7 +10736,7 @@ function Relations(config) { } ; module.exports = Relations; -},{"jquery":152,"jquery-contextmenu":65,"jquery-ui/ui/widgets/button":141}],62:[function(require,module,exports){ +},{"jquery":151,"jquery-contextmenu":64,"jquery-ui/ui/widgets/button":140}],61:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var Prism = require('prismjs'); @@ -10875,7 +10802,7 @@ function Selection(config) { } ; module.exports = Selection; -},{"jquery":152,"jquery-ui/ui/widgets/checkboxradio":142,"prismjs":156}],63:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/checkboxradio":141,"prismjs":155}],62:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jstree'); @@ -11686,7 +11613,7 @@ function StructureTree(config) { } ; module.exports = StructureTree; -},{"jquery":152,"jstree":153}],64:[function(require,module,exports){ +},{"jquery":151,"jstree":152}],63:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/button'); @@ -11848,7 +11775,7 @@ function Validation(config) { } ; module.exports = Validation; -},{"jquery":152,"jquery-ui/ui/widgets/button":141}],65:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/button":140}],64:[function(require,module,exports){ 'use strict'; var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; @@ -11980,7 +11907,7 @@ var _typeof = typeof Symbol === 'function' && _typeof2(Symbol.iterator) === 'sym }); }); -},{"jquery":152}],66:[function(require,module,exports){ +},{"jquery":151}],65:[function(require,module,exports){ "use strict"; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; @@ -18150,7 +18077,7 @@ jQuery.cookie = function (name, value, options) { }; })(jQuery); -},{"jquery":152}],67:[function(require,module,exports){ +},{"jquery":151}],66:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-ui/ui/widgets/dialog'); @@ -18185,7 +18112,7 @@ $.widget('custom.popup', $.ui.dialog, { this._trigger('open'); } }); -},{"jquery":152,"jquery-ui/ui/widgets/dialog":145}],68:[function(require,module,exports){ +},{"jquery":151,"jquery-ui/ui/widgets/dialog":144}],67:[function(require,module,exports){ 'use strict'; var _typeof = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? function (obj) { return typeof obj; @@ -18325,7 +18252,7 @@ var _typeof = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol n.watermark.options.hideBeforeUnload && n.watermark.hideAll(); })); })); -},{"jquery":152}],69:[function(require,module,exports){ +},{"jquery":151}],68:[function(require,module,exports){ 'use strict'; (function (factory) { if (true) { @@ -23605,7 +23532,7 @@ var _typeof = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol }; cQuery.extend(cQuery.prototype, oObject); })); -},{"jquery":152}],70:[function(require,module,exports){ +},{"jquery":151}],69:[function(require,module,exports){ 'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; @@ -23905,7 +23832,7 @@ if (typeof module !== 'undefined' && module.exports) { module.exports = ObjTree; } -},{}],71:[function(require,module,exports){ +},{}],70:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -23943,7 +23870,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],72:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],71:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -23974,7 +23901,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],73:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],72:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var moment = require('moment/moment'); @@ -24163,7 +24090,7 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141,"jquery-ui/ui/widgets/datepicker":144,"moment/moment":154}],74:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140,"jquery-ui/ui/widgets/datepicker":143,"moment/moment":153}],73:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24194,7 +24121,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],75:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],74:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var DialogForm = require('dialogForm'); @@ -24234,7 +24161,7 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141}],76:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140}],75:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24287,7 +24214,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],77:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],76:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24325,7 +24252,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],78:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],77:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24362,7 +24289,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],79:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],78:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24399,7 +24326,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],80:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],79:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24438,7 +24365,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],81:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],80:[function(require,module,exports){ 'use strict'; var citation = require('./dialogs/citation.js'); @@ -24465,7 +24392,7 @@ module.exports = { title: title }; -},{"./dialogs/citation.js":71,"./dialogs/correction.js":72,"./dialogs/date.js":73,"./dialogs/keyword.js":74,"./dialogs/link.js":75,"./dialogs/note.js":76,"./dialogs/org.js":77,"./dialogs/person.js":78,"./dialogs/place.js":79,"./dialogs/title.js":80}],82:[function(require,module,exports){ +},{"./dialogs/citation.js":70,"./dialogs/correction.js":71,"./dialogs/date.js":72,"./dialogs/keyword.js":73,"./dialogs/link.js":74,"./dialogs/note.js":75,"./dialogs/org.js":76,"./dialogs/person.js":77,"./dialogs/place.js":78,"./dialogs/title.js":79}],81:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24762,7 +24689,7 @@ module.exports = { }; -},{"../../annotationsManager.js":34,"../mapper.js":84,"jquery":152}],83:[function(require,module,exports){ +},{"../../annotationsManager.js":33,"../mapper.js":83,"jquery":151}],82:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -24901,7 +24828,7 @@ module.exports = { }; -},{"./mapper.js":84,"jquery":152}],84:[function(require,module,exports){ +},{"./mapper.js":83,"jquery":151}],83:[function(require,module,exports){ // TODO add IDs 'use strict'; @@ -25303,11 +25230,11 @@ Mapper.prototype = { module.exports = Mapper; -},{"../entity.js":56,"./cwrcEntry/mappings.js":82,"./empty_mappings.js":83,"./orlando/mappings.js":96,"./tei/mappings.js":109,"jquery":152,"jquery-xpath":69}],85:[function(require,module,exports){ +},{"../entity.js":55,"./cwrcEntry/mappings.js":81,"./empty_mappings.js":82,"./orlando/mappings.js":95,"./tei/mappings.js":108,"jquery":151,"jquery-xpath":68}],84:[function(require,module,exports){ +arguments[4][70][0].apply(exports,arguments) +},{"dialogForm":45,"dup":70,"jquery":151}],85:[function(require,module,exports){ arguments[4][71][0].apply(exports,arguments) -},{"dialogForm":46,"dup":71,"jquery":152}],86:[function(require,module,exports){ -arguments[4][72][0].apply(exports,arguments) -},{"dialogForm":46,"dup":72,"jquery":152}],87:[function(require,module,exports){ +},{"dialogForm":45,"dup":71,"jquery":151}],86:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var moment = require('moment/moment'); @@ -25496,7 +25423,7 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141,"jquery-ui/ui/widgets/datepicker":144,"moment/moment":154}],88:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140,"jquery-ui/ui/widgets/datepicker":143,"moment/moment":153}],87:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -25528,7 +25455,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],89:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],88:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var DialogForm = require('dialogForm'); @@ -25568,9 +25495,9 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141}],90:[function(require,module,exports){ -arguments[4][76][0].apply(exports,arguments) -},{"dialogForm":46,"dup":76,"jquery":152}],91:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140}],89:[function(require,module,exports){ +arguments[4][75][0].apply(exports,arguments) +},{"dialogForm":45,"dup":75,"jquery":151}],90:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -25608,7 +25535,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],92:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],91:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -25646,7 +25573,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],93:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],92:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -25685,7 +25612,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],94:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],93:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -25724,9 +25651,9 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],95:[function(require,module,exports){ -arguments[4][81][0].apply(exports,arguments) -},{"./dialogs/citation.js":85,"./dialogs/correction.js":86,"./dialogs/date.js":87,"./dialogs/keyword.js":88,"./dialogs/link.js":89,"./dialogs/note.js":90,"./dialogs/org.js":91,"./dialogs/person.js":92,"./dialogs/place.js":93,"./dialogs/title.js":94,"dup":81}],96:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],94:[function(require,module,exports){ +arguments[4][80][0].apply(exports,arguments) +},{"./dialogs/citation.js":84,"./dialogs/correction.js":85,"./dialogs/date.js":86,"./dialogs/keyword.js":87,"./dialogs/link.js":88,"./dialogs/note.js":89,"./dialogs/org.js":90,"./dialogs/person.js":91,"./dialogs/place.js":92,"./dialogs/title.js":93,"dup":80}],95:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26058,7 +25985,7 @@ module.exports = { }; -},{"../../annotationsManager.js":34,"../mapper.js":84,"jquery":152}],97:[function(require,module,exports){ +},{"../../annotationsManager.js":33,"../mapper.js":83,"jquery":151}],96:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26366,7 +26293,7 @@ function SchemaManager(writer, config) { module.exports = SchemaManager; -},{"./mapper.js":84,"css-parse":24,"css-stringify":25,"jquery":152}],98:[function(require,module,exports){ +},{"./mapper.js":83,"css-parse":23,"css-stringify":24,"jquery":151}],97:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26404,7 +26331,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],99:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],98:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26472,7 +26399,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],100:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],99:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var moment = require('moment/moment'); @@ -26657,7 +26584,7 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141,"jquery-ui/ui/widgets/datepicker":144,"moment/moment":154}],101:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140,"jquery-ui/ui/widgets/datepicker":143,"moment/moment":153}],100:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); require('jquery-watermark'); @@ -26736,7 +26663,7 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141,"jquery-watermark":68}],102:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140,"jquery-watermark":67}],101:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var DialogForm = require('dialogForm'); @@ -26776,7 +26703,7 @@ module.exports = function (writer, parentEl) { } }; }; -},{"dialogForm":46,"jquery":152,"jquery-ui/ui/widgets/button":141}],103:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151,"jquery-ui/ui/widgets/button":140}],102:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26813,7 +26740,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],104:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],103:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26851,7 +26778,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],105:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],104:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26896,7 +26823,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],106:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],105:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26933,7 +26860,7 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],107:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],106:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -26972,9 +26899,9 @@ module.exports = function (writer, parentEl) { }; }; -},{"dialogForm":46,"jquery":152}],108:[function(require,module,exports){ -arguments[4][81][0].apply(exports,arguments) -},{"./dialogs/citation.js":98,"./dialogs/correction.js":99,"./dialogs/date.js":100,"./dialogs/keyword.js":101,"./dialogs/link.js":102,"./dialogs/note.js":103,"./dialogs/org.js":104,"./dialogs/person.js":105,"./dialogs/place.js":106,"./dialogs/title.js":107,"dup":81}],109:[function(require,module,exports){ +},{"dialogForm":45,"jquery":151}],107:[function(require,module,exports){ +arguments[4][80][0].apply(exports,arguments) +},{"./dialogs/citation.js":97,"./dialogs/correction.js":98,"./dialogs/date.js":99,"./dialogs/keyword.js":100,"./dialogs/link.js":101,"./dialogs/note.js":102,"./dialogs/org.js":103,"./dialogs/person.js":104,"./dialogs/place.js":105,"./dialogs/title.js":106,"dup":80}],108:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -27362,7 +27289,7 @@ module.exports = { }; -},{"../../annotationsManager.js":34,"../mapper.js":84,"jquery":152}],110:[function(require,module,exports){ +},{"../../annotationsManager.js":33,"../mapper.js":83,"jquery":151}],109:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -28325,7 +28252,7 @@ function Tagger(writer) { module.exports = Tagger; -},{"./entity.js":56,"jquery":152}],111:[function(require,module,exports){ +},{"./entity.js":55,"jquery":151}],110:[function(require,module,exports){ 'use strict'; var tinymce = require('tinymce'); @@ -28721,7 +28648,7 @@ tinymce.PluginManager.add('cwrc_contextmenu', function (editor) { }]; }); -},{"jquery":152,"tinymce":171}],112:[function(require,module,exports){ +},{"jquery":151,"tinymce":170}],111:[function(require,module,exports){ 'use strict'; var tinymce = require('tinymce'); @@ -28791,7 +28718,7 @@ tinymce.PluginManager.add('cwrcpath', function (editor) { var path = new tinymce.ui.CWRCPath(editor); }); -},{"tinymce":171}],113:[function(require,module,exports){ +},{"tinymce":170}],112:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var tinymce = require('tinymce'); @@ -29077,7 +29004,7 @@ tinymce.PluginManager.add('schematags', function (editor) { panel: filterPanel }); }); -},{"jquery":152,"jquery-watermark":68,"tinymce":171}],114:[function(require,module,exports){ +},{"jquery":151,"jquery-watermark":67,"tinymce":170}],113:[function(require,module,exports){ 'use strict'; /** @@ -29933,7 +29860,7 @@ tinymce.PluginManager.add('schematags', function (editor) { tinymce.PluginManager.add("treepaste", tinymce.plugins.TreePastePlugin); })(); -},{"tinymce":171}],115:[function(require,module,exports){ +},{"tinymce":170}],114:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); @@ -31242,7 +31169,7 @@ function Utilities(writer) { module.exports = Utilities; -},{"jquery":152,"objtree":70}],116:[function(require,module,exports){ +},{"jquery":151,"objtree":69}],115:[function(require,module,exports){ 'use strict'; var $ = require('jquery'); var fscreen = require('fscreen')['default']; @@ -32168,7 +32095,7 @@ function CWRCWriter(config) { } ; module.exports = CWRCWriter; -},{"./annotationsManager.js":34,"./converter.js":35,"./dialogManager.js":36,"./dialogs/settings.js":53,"./entitiesManager.js":55,"./eventManager.js":57,"./layout/layoutManager.js":58,"./schema/schemaManager.js":97,"./tagger.js":110,"./tinymce_plugins/cwrc_contextmenu.js":111,"./tinymce_plugins/cwrc_path.js":112,"./tinymce_plugins/schematags.js":113,"./tinymce_plugins/treepaste.js":114,"./utilities.js":115,"fscreen":118,"jquery":152,"tinymce":171,"tinymce/themes/modern/theme.js":170}],117:[function(require,module,exports){ +},{"./annotationsManager.js":33,"./converter.js":34,"./dialogManager.js":35,"./dialogs/settings.js":52,"./entitiesManager.js":54,"./eventManager.js":56,"./layout/layoutManager.js":57,"./schema/schemaManager.js":96,"./tagger.js":109,"./tinymce_plugins/cwrc_contextmenu.js":110,"./tinymce_plugins/cwrc_path.js":111,"./tinymce_plugins/schematags.js":112,"./tinymce_plugins/treepaste.js":113,"./utilities.js":114,"fscreen":117,"jquery":151,"tinymce":170,"tinymce/themes/modern/theme.js":169}],116:[function(require,module,exports){ 'use strict'; /* @@ -32288,7 +32215,7 @@ module.exports = { getTitleLookupURI: getTitleLookupURI }; -},{}],118:[function(require,module,exports){ +},{}],117:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -32351,7 +32278,7 @@ exports.default = { return document[('on' + vendor[key.fullscreenerror]).toLowerCase()] = handler; } }; -},{}],119:[function(require,module,exports){ +},{}],118:[function(require,module,exports){ 'use strict'; /* @@ -32442,7 +32369,7 @@ module.exports = { getPlaceLookupURI: getPlaceLookupURI }; -},{}],120:[function(require,module,exports){ +},{}],119:[function(require,module,exports){ 'use strict'; /* @@ -32545,7 +32472,7 @@ module.exports = { getPlaceLookupURI: getPlaceLookupURI }; -},{}],121:[function(require,module,exports){ +},{}],120:[function(require,module,exports){ if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { @@ -32570,7 +32497,7 @@ if (typeof Object.create === 'function') { } } -},{}],122:[function(require,module,exports){ +},{}],121:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32586,7 +32513,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"./version":138,"jquery":152}],123:[function(require,module,exports){ +},{"./version":137,"jquery":151}],122:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32606,7 +32533,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"./version":138,"jquery":152}],124:[function(require,module,exports){ +},{"./version":137,"jquery":151}],123:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32619,7 +32546,7 @@ if (typeof Object.create === 'function') { }; }(); })); -},{"./version":138,"jquery":152}],125:[function(require,module,exports){ +},{"./version":137,"jquery":151}],124:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32666,7 +32593,7 @@ if (typeof Object.create === 'function') { }); return $.ui.focusable; })); -},{"./version":138,"jquery":152}],126:[function(require,module,exports){ +},{"./version":137,"jquery":151}],125:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./form'), require('./version')); @@ -32708,7 +32635,7 @@ if (typeof Object.create === 'function') { } }; })); -},{"./form":127,"./version":138,"jquery":152}],127:[function(require,module,exports){ +},{"./form":126,"./version":137,"jquery":151}],126:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32718,7 +32645,7 @@ if (typeof Object.create === 'function') { return typeof this[0].form === 'string' ? this.closest('form') : $(this[0].form); }; })); -},{"./version":138,"jquery":152}],128:[function(require,module,exports){ +},{"./version":137,"jquery":151}],127:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32726,7 +32653,7 @@ if (typeof Object.create === 'function') { }(function ($) { return $.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()); })); -},{"./version":138,"jquery":152}],129:[function(require,module,exports){ +},{"./version":137,"jquery":151}],128:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32751,7 +32678,7 @@ if (typeof Object.create === 'function') { UP: 38 }; })); -},{"./version":138,"jquery":152}],130:[function(require,module,exports){ +},{"./version":137,"jquery":151}],129:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version'), require('./escape-selector')); @@ -32773,7 +32700,7 @@ if (typeof Object.create === 'function') { return this.pushStack(labels); }; })); -},{"./escape-selector":124,"./version":138,"jquery":152}],131:[function(require,module,exports){ +},{"./escape-selector":123,"./version":137,"jquery":151}],130:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -32806,7 +32733,7 @@ if (typeof Object.create === 'function') { } }; })); -},{"./version":138,"jquery":152}],132:[function(require,module,exports){ +},{"./version":137,"jquery":151}],131:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -33127,7 +33054,7 @@ if (typeof Object.create === 'function') { }()); return $.ui.position; })); -},{"./version":138,"jquery":152}],133:[function(require,module,exports){ +},{"./version":137,"jquery":151}],132:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -33149,7 +33076,7 @@ if (typeof Object.create === 'function') { return activeElement; }; })); -},{"./version":138,"jquery":152}],134:[function(require,module,exports){ +},{"./version":137,"jquery":151}],133:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -33161,7 +33088,7 @@ if (typeof Object.create === 'function') { } }; })); -},{"./version":138,"jquery":152}],135:[function(require,module,exports){ +},{"./version":137,"jquery":151}],134:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -33178,7 +33105,7 @@ if (typeof Object.create === 'function') { return position === 'fixed' || !scrollParent.length ? $(this[0].ownerDocument || document) : scrollParent; }; })); -},{"./version":138,"jquery":152}],136:[function(require,module,exports){ +},{"./version":137,"jquery":151}],135:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version'), require('./focusable')); @@ -33191,7 +33118,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"./focusable":125,"./version":138,"jquery":152}],137:[function(require,module,exports){ +},{"./focusable":124,"./version":137,"jquery":151}],136:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -33217,7 +33144,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"./version":138,"jquery":152}],138:[function(require,module,exports){ +},{"./version":137,"jquery":151}],137:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery')); @@ -33226,7 +33153,7 @@ if (typeof Object.create === 'function') { $.ui = $.ui || {}; return $.ui.version = '1.12.1'; })); -},{"jquery":152}],139:[function(require,module,exports){ +},{"jquery":151}],138:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./version')); @@ -33719,7 +33646,7 @@ if (typeof Object.create === 'function') { }); return $.widget; })); -},{"./version":138,"jquery":152}],140:[function(require,module,exports){ +},{"./version":137,"jquery":151}],139:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../version'), require('../keycode'), require('../unique-id'), require('../widget')); @@ -34100,7 +34027,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"../keycode":129,"../unique-id":137,"../version":138,"../widget":139,"jquery":152}],141:[function(require,module,exports){ +},{"../keycode":128,"../unique-id":136,"../version":137,"../widget":138,"jquery":151}],140:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./controlgroup'), require('./checkboxradio'), require('../keycode'), require('../widget')); @@ -34368,7 +34295,7 @@ if (typeof Object.create === 'function') { } return $.ui.button; })); -},{"../keycode":129,"../widget":139,"./checkboxradio":142,"./controlgroup":143,"jquery":152}],142:[function(require,module,exports){ +},{"../keycode":128,"../widget":138,"./checkboxradio":141,"./controlgroup":142,"jquery":151}],141:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../escape-selector'), require('../form-reset-mixin'), require('../labels'), require('../widget')); @@ -34558,7 +34485,7 @@ if (typeof Object.create === 'function') { ]); return $.ui.checkboxradio; })); -},{"../escape-selector":124,"../form-reset-mixin":126,"../labels":130,"../widget":139,"jquery":152}],143:[function(require,module,exports){ +},{"../escape-selector":123,"../form-reset-mixin":125,"../labels":129,"../widget":138,"jquery":151}],142:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../widget')); @@ -34757,7 +34684,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"../widget":139,"jquery":152}],144:[function(require,module,exports){ +},{"../widget":138,"jquery":151}],143:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../version'), require('../keycode')); @@ -36300,7 +36227,7 @@ if (typeof Object.create === 'function') { $.datepicker.version = '1.12.1'; return $.datepicker; })); -},{"../keycode":129,"../version":138,"jquery":152}],145:[function(require,module,exports){ +},{"../keycode":128,"../version":137,"jquery":151}],144:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./button'), require('./draggable'), require('./mouse'), require('./resizable'), require('../focusable'), require('../keycode'), require('../position'), require('../safe-active-element'), require('../safe-blur'), require('../tabbable'), require('../unique-id'), require('../version'), require('../widget')); @@ -36932,7 +36859,7 @@ if (typeof Object.create === 'function') { } return $.ui.dialog; })); -},{"../focusable":125,"../keycode":129,"../position":132,"../safe-active-element":133,"../safe-blur":134,"../tabbable":136,"../unique-id":137,"../version":138,"../widget":139,"./button":141,"./draggable":146,"./mouse":147,"./resizable":149,"jquery":152}],146:[function(require,module,exports){ +},{"../focusable":124,"../keycode":128,"../position":131,"../safe-active-element":132,"../safe-blur":133,"../tabbable":135,"../unique-id":136,"../version":137,"../widget":138,"./button":140,"./draggable":145,"./mouse":146,"./resizable":148,"jquery":151}],145:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./mouse'), require('../data'), require('../plugin'), require('../safe-active-element'), require('../safe-blur'), require('../scroll-parent'), require('../version'), require('../widget')); @@ -37692,7 +37619,7 @@ if (typeof Object.create === 'function') { }); return $.ui.draggable; })); -},{"../data":122,"../plugin":131,"../safe-active-element":133,"../safe-blur":134,"../scroll-parent":135,"../version":138,"../widget":139,"./mouse":147,"jquery":152}],147:[function(require,module,exports){ +},{"../data":121,"../plugin":130,"../safe-active-element":132,"../safe-blur":133,"../scroll-parent":134,"../version":137,"../widget":138,"./mouse":146,"jquery":151}],146:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../ie'), require('../version'), require('../widget')); @@ -37825,7 +37752,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"../ie":128,"../version":138,"../widget":139,"jquery":152}],148:[function(require,module,exports){ +},{"../ie":127,"../version":137,"../widget":138,"jquery":151}],147:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../version'), require('../widget')); @@ -37928,7 +37855,7 @@ if (typeof Object.create === 'function') { } }); })); -},{"../version":138,"../widget":139,"jquery":152}],149:[function(require,module,exports){ +},{"../version":137,"../widget":138,"jquery":151}],148:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('./mouse'), require('../disable-selection'), require('../plugin'), require('../version'), require('../widget')); @@ -38800,7 +38727,7 @@ if (typeof Object.create === 'function') { }); return $.ui.resizable; })); -},{"../disable-selection":123,"../plugin":131,"../version":138,"../widget":139,"./mouse":147,"jquery":152}],150:[function(require,module,exports){ +},{"../disable-selection":122,"../plugin":130,"../version":137,"../widget":138,"./mouse":146,"jquery":151}],149:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../escape-selector'), require('../keycode'), require('../safe-active-element'), require('../unique-id'), require('../version'), require('../widget')); @@ -39407,7 +39334,7 @@ if (typeof Object.create === 'function') { } return $.ui.tabs; })); -},{"../escape-selector":124,"../keycode":129,"../safe-active-element":133,"../unique-id":137,"../version":138,"../widget":139,"jquery":152}],151:[function(require,module,exports){ +},{"../escape-selector":123,"../keycode":128,"../safe-active-element":132,"../unique-id":136,"../version":137,"../widget":138,"jquery":151}],150:[function(require,module,exports){ (function (factory) { if (true) { module.exports = factory(require('jquery'), require('../keycode'), require('../position'), require('../unique-id'), require('../version'), require('../widget')); @@ -39719,7 +39646,7 @@ if (typeof Object.create === 'function') { } return $.ui.tooltip; })); -},{"../keycode":129,"../position":132,"../unique-id":137,"../version":138,"../widget":139,"jquery":152}],152:[function(require,module,exports){ +},{"../keycode":128,"../position":131,"../unique-id":136,"../version":137,"../widget":138,"jquery":151}],151:[function(require,module,exports){ (function (global, factory) { 'use strict'; if (typeof module === 'object' && typeof module.exports === 'object') { @@ -45608,7 +45535,7 @@ if (typeof Object.create === 'function') { } return jQuery; })); -},{}],153:[function(require,module,exports){ +},{}],152:[function(require,module,exports){ (function (factory) { 'use strict'; if (true) { @@ -52219,7 +52146,7 @@ if (typeof Object.create === 'function') { } } })); -},{"jquery":152}],154:[function(require,module,exports){ +},{"jquery":151}],153:[function(require,module,exports){ //! moment.js ;(function (global, factory) { @@ -56727,7 +56654,7 @@ if (typeof Object.create === 'function') { }))); -},{}],155:[function(require,module,exports){ +},{}],154:[function(require,module,exports){ function OpenSeadragon(options) { return new OpenSeadragon.Viewer(options); } @@ -67190,7 +67117,7 @@ function OpenSeadragon(options) { } }); }(OpenSeadragon)); -},{}],156:[function(require,module,exports){ +},{}],155:[function(require,module,exports){ (function (global){ /* ********************************************** @@ -67989,7 +67916,7 @@ Prism.languages.js = Prism.languages.javascript; })(); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],157:[function(require,module,exports){ +},{}],156:[function(require,module,exports){ void function (root, factory) { if (true) { module.exports = factory; @@ -68019,7 +67946,7 @@ void function (root, factory) { } return resolveUrl; }); -},{}],158:[function(require,module,exports){ +},{}],157:[function(require,module,exports){ void function (root, factory) { if (true) { module.exports = factory(require('source-map-url'), require('resolve-url')); @@ -68278,7 +68205,7 @@ void function (root, factory) { parseMapToJSON: parseMapToJSON }; }); -},{"resolve-url":157,"source-map-url":159}],159:[function(require,module,exports){ +},{"resolve-url":156,"source-map-url":158}],158:[function(require,module,exports){ void function (root, factory) { if (true) { module.exports = factory; @@ -68309,7 +68236,7 @@ void function (root, factory) { } }; }); -},{}],160:[function(require,module,exports){ +},{}],159:[function(require,module,exports){ /* * Copyright 2009-2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE.txt or: @@ -68319,7 +68246,7 @@ exports.SourceMapGenerator = require('./source-map/source-map-generator').Source exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer; exports.SourceNode = require('./source-map/source-node').SourceNode; -},{"./source-map/source-map-consumer":166,"./source-map/source-map-generator":167,"./source-map/source-node":168}],161:[function(require,module,exports){ +},{"./source-map/source-map-consumer":165,"./source-map/source-map-generator":166,"./source-map/source-node":167}],160:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -68366,7 +68293,7 @@ if (typeof define !== 'function') { }; exports.ArraySet = ArraySet; }(require, exports, module)); -},{"./util":169,"amdefine":10}],162:[function(require,module,exports){ +},{"./util":168,"amdefine":9}],161:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -68418,7 +68345,7 @@ if (typeof define !== 'function') { aOutParam.rest = aStr.slice(i); }; }(require, exports, module)); -},{"./base64":163,"amdefine":10}],163:[function(require,module,exports){ +},{"./base64":162,"amdefine":9}],162:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -68442,7 +68369,7 @@ if (typeof define !== 'function') { throw new TypeError('Not a valid base 64 digit: ' + aChar); }; }(require, exports, module)); -},{"amdefine":10}],164:[function(require,module,exports){ +},{"amdefine":9}],163:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -68471,7 +68398,7 @@ if (typeof define !== 'function') { return recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare); }; }(require, exports, module)); -},{"amdefine":10}],165:[function(require,module,exports){ +},{"amdefine":9}],164:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -68514,7 +68441,7 @@ if (typeof define !== 'function') { }; exports.MappingList = MappingList; }(require, exports, module)); -},{"./util":169,"amdefine":10}],166:[function(require,module,exports){ +},{"./util":168,"amdefine":9}],165:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -68805,7 +68732,7 @@ if (typeof define !== 'function') { }; exports.SourceMapConsumer = SourceMapConsumer; }(require, exports, module)); -},{"./array-set":161,"./base64-vlq":162,"./binary-search":164,"./util":169,"amdefine":10}],167:[function(require,module,exports){ +},{"./array-set":160,"./base64-vlq":161,"./binary-search":163,"./util":168,"amdefine":9}],166:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -69054,7 +68981,7 @@ if (typeof define !== 'function') { }; exports.SourceMapGenerator = SourceMapGenerator; }(require, exports, module)); -},{"./array-set":161,"./base64-vlq":162,"./mapping-list":165,"./util":169,"amdefine":10}],168:[function(require,module,exports){ +},{"./array-set":160,"./base64-vlq":161,"./mapping-list":164,"./util":168,"amdefine":9}],167:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -69310,7 +69237,7 @@ if (typeof define !== 'function') { }; exports.SourceNode = SourceNode; }(require, exports, module)); -},{"./source-map-generator":167,"./util":169,"amdefine":10}],169:[function(require,module,exports){ +},{"./source-map-generator":166,"./util":168,"amdefine":9}],168:[function(require,module,exports){ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } @@ -69511,7 +69438,7 @@ if (typeof define !== 'function') { ; exports.compareByGeneratedPositions = compareByGeneratedPositions; }(require, exports, module)); -},{"amdefine":10}],170:[function(require,module,exports){ +},{"amdefine":9}],169:[function(require,module,exports){ (function () { var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} @@ -87754,7 +87681,7 @@ define( dem('tinymce.themes.modern.Theme')(); })(); -},{}],171:[function(require,module,exports){ +},{}],170:[function(require,module,exports){ // 4.7.2 (2017-11-07) (function () { @@ -131746,7 +131673,7 @@ define( dem('tinymce.core.api.Main')(); })(); -},{}],172:[function(require,module,exports){ +},{}],171:[function(require,module,exports){ // Copyright 2014 Simon Lydell // X11 (“MIT”) Licensed. (See LICENSE.) @@ -131765,7 +131692,7 @@ function urix(aPath) { module.exports = urix -},{"path":2}],173:[function(require,module,exports){ +},{"path":2}],172:[function(require,module,exports){ 'use strict'; /* @@ -131874,7 +131801,7 @@ module.exports = { fetchWithTimeout: fetchWithTimeout }; -},{}],174:[function(require,module,exports){ +},{}],173:[function(require,module,exports){ 'use strict'; /* @@ -131997,7 +131924,7 @@ module.exports = { fetchWithTimeout: fetchWithTimeout }; -},{"wikidata-sdk":186}],175:[function(require,module,exports){ +},{"wikidata-sdk":185}],174:[function(require,module,exports){ const toDateObject = require('./wikidata_time_to_date_object') const helpers = {} @@ -132062,7 +131989,7 @@ helpers.wikidataTimeToSimpleDay = bestEffort(toSimpleDay) module.exports = helpers -},{"./wikidata_time_to_date_object":185}],176:[function(require,module,exports){ +},{"./wikidata_time_to_date_object":184}],175:[function(require,module,exports){ const { wikidataTimeToISOString, wikidataTimeToEpochTime, wikidataTimeToSimpleDay } = require('./helpers') const simple = datavalue => datavalue.value @@ -132141,7 +132068,7 @@ module.exports = (datatype, datavalue, options) => { return claimParsers[datatype](datavalue, options) } -},{"./helpers":175}],177:[function(require,module,exports){ +},{"./helpers":174}],176:[function(require,module,exports){ const simplifyEntity = require('./simplify_entity') module.exports = { @@ -132157,7 +132084,7 @@ module.exports = { } } -},{"./simplify_entity":179}],178:[function(require,module,exports){ +},{"./simplify_entity":178}],177:[function(require,module,exports){ const parseClaim = require('./parse_claim') const { uniq } = require('../utils/utils') @@ -132293,7 +132220,7 @@ const parseOptions = function (options) { module.exports = { simplifyClaims, simplifyPropertyClaims, simplifyClaim } -},{"../utils/utils":196,"./parse_claim":176}],179:[function(require,module,exports){ +},{"../utils/utils":195,"./parse_claim":175}],178:[function(require,module,exports){ const { simplifyClaims } = require('./simplify_claims') const simplify = require('./simplify_text_attributes') const simplifySitelinks = require('./simplify_sitelinks') @@ -132326,7 +132253,7 @@ const simplifyIfDefined = (entity, simplified, attribute) => { } } -},{"./simplify_claims":178,"./simplify_sitelinks":180,"./simplify_text_attributes":182}],180:[function(require,module,exports){ +},{"./simplify_claims":177,"./simplify_sitelinks":179,"./simplify_text_attributes":181}],179:[function(require,module,exports){ const { getSitelinkUrl } = require('./sitelinks_helpers') module.exports = (sitelinks, options = {}) => { @@ -132344,7 +132271,7 @@ const aggregateValues = (sitelinks, addUrl) => (index, key) => { return index } -},{"./sitelinks_helpers":183}],181:[function(require,module,exports){ +},{"./sitelinks_helpers":182}],180:[function(require,module,exports){ module.exports = function (input) { if (typeof input === 'string') input = JSON.parse(input) @@ -132435,7 +132362,7 @@ const getSimplifiedResult = function (varsWithLabel, varsWithout) { } } -},{}],182:[function(require,module,exports){ +},{}],181:[function(require,module,exports){ const simplifyTextAttributes = multivalue => data => { return Object.keys(data).reduce(aggregateValues(data, multivalue), {}) } @@ -132456,7 +132383,7 @@ module.exports = { aliases: simplifyTextAttributes(true) } -},{}],183:[function(require,module,exports){ +},{}],182:[function(require,module,exports){ const { fixedEncodeURIComponent, replaceSpaceByUnderscores, isPlainObject } = require('../utils/utils') const { isPropertyId } = require('./helpers') const wikidataBase = 'https://www.wikidata.org/wiki/' @@ -132524,12 +132451,12 @@ const projectsBySuffix = { module.exports = { getSitelinkUrl, getSitelinkData, isSitelinkKey } -},{"../utils/utils":196,"./helpers":175,"./sitelinks_languages":184}],184:[function(require,module,exports){ +},{"../utils/utils":195,"./helpers":174,"./sitelinks_languages":183}],183:[function(require,module,exports){ // Taken from https://www.wikidata.org/w/api.php?action=help&modules=wbgetentities // sites list, once removed their project suffix and eduplicates module.exports = [ 'aa', 'ab', 'ace', 'ady', 'af', 'ak', 'als', 'am', 'an', 'ang', 'ar', 'arc', 'arz', 'as', 'ast', 'atj', 'av', 'ay', 'az', 'azb', 'ba', 'bar', 'bat_smg', 'bcl', 'be', 'be_x_old', 'bg', 'bh', 'bi', 'bjn', 'bm', 'bn', 'bo', 'bpy', 'br', 'bs', 'bug', 'bxr', 'ca', 'cbk_zam', 'cdo', 'ce', 'ceb', 'ch', 'cho', 'chr', 'chy', 'ckb', 'co', 'commons', 'cr', 'crh', 'cs', 'csb', 'cu', 'cv', 'cy', 'da', 'de', 'din', 'diq', 'dsb', 'dty', 'dv', 'dz', 'ee', 'el', 'eml', 'en', 'eo', 'es', 'et', 'eu', 'ext', 'fa', 'ff', 'fi', 'fiu_vro', 'fj', 'fo', 'fr', 'frp', 'frr', 'fur', 'fy', 'ga', 'gag', 'gan', 'gd', 'gl', 'glk', 'gn', 'gom', 'got', 'gu', 'gv', 'ha', 'hak', 'haw', 'he', 'hi', 'hif', 'ho', 'hr', 'hsb', 'ht', 'hu', 'hy', 'hz', 'ia', 'id', 'ie', 'ig', 'ii', 'ik', 'ilo', 'io', 'is', 'it', 'iu', 'ja', 'jam', 'jbo', 'jv', 'ka', 'kaa', 'kab', 'kbd', 'kbp', 'kg', 'ki', 'kj', 'kk', 'kl', 'km', 'kn', 'ko', 'koi', 'kr', 'krc', 'ks', 'ksh', 'ku', 'kv', 'kw', 'ky', 'la', 'lad', 'lb', 'lbe', 'lez', 'lg', 'li', 'lij', 'lmo', 'ln', 'lo', 'lrc', 'lt', 'ltg', 'lv', 'mai', 'map_bms', 'mdf', 'mediawiki', 'meta', 'mg', 'mh', 'mhr', 'mi', 'min', 'mk', 'ml', 'mn', 'mo', 'mr', 'mrj', 'ms', 'mt', 'mus', 'mwl', 'my', 'myv', 'mzn', 'na', 'nah', 'nap', 'nds', 'nds_nl', 'ne', 'new', 'ng', 'nl', 'nn', 'no', 'nov', 'nrm', 'nso', 'nv', 'ny', 'oc', 'olo', 'om', 'or', 'os', 'pa', 'pag', 'pam', 'pap', 'pcd', 'pdc', 'pfl', 'pi', 'pih', 'pl', 'pms', 'pnb', 'pnt', 'ps', 'pt', 'qu', 'rm', 'rmy', 'rn', 'ro', 'roa_rup', 'roa_tara', 'ru', 'rue', 'rw', 'sa', 'sah', 'sc', 'scn', 'sco', 'sd', 'se', 'sg', 'sh', 'si', 'simple', 'sk', 'sl', 'sm', 'sn', 'so', 'species', 'sq', 'sr', 'srn', 'ss', 'st', 'stq', 'su', 'sv', 'sw', 'szl', 'ta', 'tcy', 'te', 'tet', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tpi', 'tr', 'ts', 'tt', 'tum', 'tw', 'ty', 'tyv', 'udm', 'ug', 'uk', 'ur', 'uz', 've', 'vec', 'vep', 'vi', 'vls', 'vo', 'wa', 'war', 'wo', 'wuu', 'xal', 'xh', 'xmf', 'yi', 'yo', 'za', 'zea', 'zh', 'zh_classical', 'zh_min_nan', 'zh_yue', 'zu' ] -},{}],185:[function(require,module,exports){ +},{}],184:[function(require,module,exports){ module.exports = function (wikidataTime) { // Also accept claim datavalue.value objects if (typeof wikidataTime === 'object') { @@ -132566,7 +132493,7 @@ const parseInvalideDate = function (sign, rest) { return fullDateData(sign, year) } -},{}],186:[function(require,module,exports){ +},{}],185:[function(require,module,exports){ const wdk = module.exports = {} wdk.searchEntities = require('./queries/search_entities') @@ -132601,7 +132528,7 @@ const helpers = require('../lib/helpers/helpers') const sitelinksHelpers = require('../lib/helpers/sitelinks_helpers') Object.assign(wdk, helpers, sitelinksHelpers) -},{"../lib/helpers/helpers":175,"../lib/helpers/simplify_entity":179,"../lib/helpers/simplify_sitelinks":180,"../lib/helpers/simplify_text_attributes":182,"../lib/helpers/sitelinks_helpers":183,"./helpers/parse_responses":177,"./helpers/simplify_claims":178,"./helpers/simplify_sparql_results":181,"./queries/get_entities":187,"./queries/get_many_entities":188,"./queries/get_reverse_claims":189,"./queries/get_revisions":190,"./queries/get_wikidata_ids_from_sitelinks":191,"./queries/search_entities":192,"./queries/sparql_query":193}],187:[function(require,module,exports){ +},{"../lib/helpers/helpers":174,"../lib/helpers/simplify_entity":178,"../lib/helpers/simplify_sitelinks":179,"../lib/helpers/simplify_text_attributes":181,"../lib/helpers/sitelinks_helpers":182,"./helpers/parse_responses":176,"./helpers/simplify_claims":177,"./helpers/simplify_sparql_results":180,"./queries/get_entities":186,"./queries/get_many_entities":187,"./queries/get_reverse_claims":188,"./queries/get_revisions":189,"./queries/get_wikidata_ids_from_sitelinks":190,"./queries/search_entities":191,"./queries/sparql_query":192}],186:[function(require,module,exports){ const buildUrl = require('../utils/build_url') const { isPlainObject, forceArray, shortLang } = require('../utils/utils') @@ -132646,7 +132573,7 @@ module.exports = function (ids, languages, props, format) { return buildUrl(query) } -},{"../utils/build_url":194,"../utils/utils":196}],188:[function(require,module,exports){ +},{"../utils/build_url":193,"../utils/utils":195}],187:[function(require,module,exports){ const getEntities = require('./get_entities') const { isPlainObject } = require('../utils/utils') @@ -132672,7 +132599,7 @@ const getIdsGroups = function (ids) { return groups } -},{"../utils/utils":196,"./get_entities":187}],189:[function(require,module,exports){ +},{"../utils/utils":195,"./get_entities":186}],188:[function(require,module,exports){ const helpers = require('../helpers/helpers') const sparqlQuery = require('./sparql_query') // Fiter-out properties. Can't be filtered by @@ -132728,7 +132655,7 @@ function caseInsensitiveValueQuery (property, value, filter, limit) { const prefixifyProperty = property => 'wdt:' + property -},{"../helpers/helpers":175,"./sparql_query":193}],190:[function(require,module,exports){ +},{"../helpers/helpers":174,"./sparql_query":192}],189:[function(require,module,exports){ const buildUrl = require('../utils/build_url') const { forceArray } = require('../utils/utils') @@ -132757,7 +132684,7 @@ const getEpochSeconds = function (date) { const earliestPointInMs = new Date('2000-01-01').getTime() -},{"../utils/build_url":194,"../utils/utils":196}],191:[function(require,module,exports){ +},{"../utils/build_url":193,"../utils/utils":195}],190:[function(require,module,exports){ const buildUrl = require('../utils/build_url') const { isPlainObject, forceArray, shortLang } = require('../utils/utils') @@ -132812,7 +132739,7 @@ module.exports = function (titles, sites, languages, props, format) { // convert 2 letters language code to Wikipedia sitelinks code const parseSite = site => site.length === 2 ? `${site}wiki` : site -},{"../utils/build_url":194,"../utils/utils":196}],192:[function(require,module,exports){ +},{"../utils/build_url":193,"../utils/utils":195}],191:[function(require,module,exports){ const buildUrl = require('../utils/build_url') const { isPlainObject } = require('../utils/utils') @@ -132845,7 +132772,7 @@ module.exports = function (search, language, limit, format, uselang) { }) } -},{"../utils/build_url":194,"../utils/utils":196}],193:[function(require,module,exports){ +},{"../utils/build_url":193,"../utils/utils":195}],192:[function(require,module,exports){ const { fixedEncodeURIComponent } = require('../utils/utils') module.exports = function (sparql) { @@ -132853,7 +132780,7 @@ module.exports = function (sparql) { return `https://query.wikidata.org/sparql?format=json&query=${query}` } -},{"../utils/utils":196}],194:[function(require,module,exports){ +},{"../utils/utils":195}],193:[function(require,module,exports){ const wikidataApiRoot = 'https://www.wikidata.org/w/api.php' const isBrowser = typeof location !== 'undefined' && typeof document !== 'undefined' const qs = isBrowser ? require('./querystring_lite') : require('querystring') @@ -132865,7 +132792,7 @@ module.exports = function (queryObj) { return wikidataApiRoot + '?' + qs.stringify(queryObj) } -},{"./querystring_lite":195,"querystring":6}],195:[function(require,module,exports){ +},{"./querystring_lite":194,"querystring":6}],194:[function(require,module,exports){ module.exports = { stringify: function (queryObj) { var qstring = '' @@ -132884,7 +132811,7 @@ module.exports = { } } -},{}],196:[function(require,module,exports){ +},{}],195:[function(require,module,exports){ module.exports = { // Ex: keep only 'fr' in 'fr_FR' shortLang: language => language.toLowerCase().split(/[^a-z]/)[0], diff --git a/js/app.js b/js/app.js index 0585dbfc..8cab1769 100644 --- a/js/app.js +++ b/js/app.js @@ -16,6 +16,5 @@ window.Drupal.CWRCWriterDialogs.registerEntitySources({ titles: (new Map()).set('cwrc', cwrc).set('viaf', viaf).set('wikidata', wikidata).set('dbpedia', dbpedia) }) -window.Drupal.CWRCWriterConfig = require('./config.js'); window.Drupal.CWRCWriter = require('cwrc-writer-base'); diff --git a/js/config.js b/js/config.js deleted file mode 100644 index a0174a52..00000000 --- a/js/config.js +++ /dev/null @@ -1,68 +0,0 @@ -module.exports = { - "cwrcRootUrl": "", - "validationUrl": "https://validator.services.cwrc.ca/validator/validate.html", - "cwrcDialogs": { - "cwrcApiUrl": "https://apps.testing.cwrc.ca/islandora/cwrc_entities/v1/", - "repositoryBaseObjectUrl": "https://commons.cwrc.ca/", - "geonameUrl": "https://apps.testing.cwrc.ca/cwrc-mtp/geonames/", - "viafUrl": "https://apps.testing.cwrc.ca/services/viaf/", - "googleGeocodeUrl": "https://maps.googleapis.com/maps/api/geocode/xml", - "schemas": { - "person": "https://cwrc.ca/schemas/entities.rng", - "organization": "https://cwrc.ca/schemas/entities.rng", - "place": "https://cwrc.ca/schemas/entities.rng" - } - }, - "schemas": { - "tei": { - "name": "CWRC Basic TEI Schema", - "url": "https://cwrc.ca/schemas/cwrc_tei_lite.rng", - "cssUrl": "https://cwrc.ca/templates/css/tei.css", - "schemaMappingsId": "tei", - "entityTemplates": { - "note": "schema/tei/xml/note.xml", - "citation": "schema/tei/xml/citation.xml" - } - }, - "events": { - "name": "Events Schema", - "url": "https://cwrc.ca/schemas/orlando_event_v2.rng", - "cssUrl": "https://cwrc.ca/templates/css/orlando_v2_cwrc-writer.css", - "schemaMappingsId": "orlando", - "entityTemplates": { - "note": "schema/orlando/xml/note_events.xml", - "citation": "schema/orlando/xml/citation_events.xml" - } - }, - "biography": { - "name": "Biography Schema", - "url": "https://cwrc.ca/schemas/orlando_biography_v2.rng", - "cssUrl": "https://cwrc.ca/templates/css/orlando_v2_cwrc-writer.css", - "schemaMappingsId": "orlando", - "entityTemplates": { - "note": "schema/orlando/xml/note_biography.xml", - "citation": "schema/orlando/xml/citation_biography.xml" - } - }, - "writing": { - "name": "Writing Schema", - "url": "https://cwrc.ca/schemas/orlando_writing_v2.rng", - "cssUrl": "https://cwrc.ca/templates/css/orlando_v2_cwrc-writer.css", - "schemaMappingsId": "orlando", - "entityTemplates": { - "note": "schema/orlando/xml/note_writing.xml", - "citation": "schema/orlando/xml/citation_writing.xml" - } - }, - "cwrcEntry": { - "name": "CWRC Entry Schema", - "url": "https://cwrc.ca/schemas/cwrc_entry.rng", - "cssUrl": "https://cwrc.ca/templates/css/cwrc.css", - "schemaMappingsId": "cwrcEntry", - "entityTemplates": { - "note": "schema/cwrcEntry/xml/note.xml", - "citation": "schema/cwrcEntry/xml/citation.xml" - } - } - } -}; diff --git a/js/islandora_cwrc_writer.js b/js/islandora_cwrc_writer.js index b58da2b7..0c9780ee 100644 --- a/js/islandora_cwrc_writer.js +++ b/js/islandora_cwrc_writer.js @@ -20,7 +20,9 @@ Drupal.CWRCWriter = Drupal.CWRCWriter || {}; 'use strict'; var writer, config; config = Drupal.settings.CWRCWriter; - var baseUrl = config.baseUrl; + if (config.initial_mode == 'edit') { + config.buttons1 += ',saveexitbutton'; + } config.buttons1 += ',|,fullscreen'; config.container = config.id || layoutParentId; config.modules = { @@ -29,6 +31,7 @@ Drupal.CWRCWriter = Drupal.CWRCWriter || {}; east: ['imageViewer'] }; config.entityLookupDialogs = Dialogs; + var baseUrl = config.baseUrl; config.storageDialogs = { save: function(writer) { var docId = writer.currentDocId;