diff --git a/portal/nodemon.json b/portal/nodemon.json
deleted file mode 100644
index 97a836fb..00000000
--- a/portal/nodemon.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "watch": [
- "dist",
- "src/index.html"
- ],
- "ext" : "js ts json html"
-}
diff --git a/portal/npm-shrinkwrap.json b/portal/npm-shrinkwrap.json
deleted file mode 100644
index 794bb3d9..00000000
--- a/portal/npm-shrinkwrap.json
+++ /dev/null
@@ -1,3230 +0,0 @@
-{
- "name": "uoa-services-portal",
- "version": "1.0.0",
- "dependencies": {
- "@angular/common": {
- "version": "2.0.0-rc.1",
- "from": "@angular/common@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/common/-/common-2.0.0-rc.1.tgz"
- },
- "@angular/compiler": {
- "version": "2.0.0-rc.1",
- "from": "@angular/compiler@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-2.0.0-rc.1.tgz"
- },
- "@angular/core": {
- "version": "2.0.0-rc.1",
- "from": "@angular/core@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/core/-/core-2.0.0-rc.1.tgz"
- },
- "@angular/http": {
- "version": "2.0.0-rc.1",
- "from": "@angular/http@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/http/-/http-2.0.0-rc.1.tgz"
- },
- "@angular/platform-browser": {
- "version": "2.0.0-rc.1",
- "from": "@angular/platform-browser@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-2.0.0-rc.1.tgz"
- },
- "@angular/platform-browser-dynamic": {
- "version": "2.0.0-rc.1",
- "from": "@angular/platform-browser-dynamic@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-2.0.0-rc.1.tgz"
- },
- "@angular/platform-server": {
- "version": "2.0.0-rc.1",
- "from": "@angular/platform-server@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-2.0.0-rc.1.tgz"
- },
- "@angular/router-deprecated": {
- "version": "2.0.0-rc.1",
- "from": "@angular/router-deprecated@2.0.0-rc.1",
- "resolved": "https://registry.npmjs.org/@angular/router-deprecated/-/router-deprecated-2.0.0-rc.1.tgz"
- },
- "abbrev": {
- "version": "1.0.7",
- "from": "abbrev@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz"
- },
- "accepts": {
- "version": "1.2.13",
- "from": "accepts@>=1.2.12 <1.3.0",
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz"
- },
- "acorn": {
- "version": "1.2.2",
- "from": "acorn@>=1.0.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz"
- },
- "agent-base": {
- "version": "2.0.1",
- "from": "agent-base@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-2.0.1.tgz",
- "dependencies": {
- "extend": {
- "version": "3.0.0",
- "from": "extend@>=3.0.0 <3.1.0",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz"
- },
- "semver": {
- "version": "5.0.3",
- "from": "semver@>=5.0.1 <5.1.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz"
- }
- }
- },
- "align-text": {
- "version": "0.1.4",
- "from": "align-text@>=0.1.3 <0.2.0",
- "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz"
- },
- "amdefine": {
- "version": "1.0.0",
- "from": "amdefine@>=0.0.4",
- "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz"
- },
- "angular2-express-engine": {
- "version": "0.13.1",
- "from": "angular2-express-engine@>=0.13.1 <0.14.0",
- "resolved": "https://registry.npmjs.org/angular2-express-engine/-/angular2-express-engine-0.13.1.tgz"
- },
- "angular2-hapi-engine": {
- "version": "0.13.1",
- "from": "angular2-hapi-engine@>=0.13.1 <0.14.0",
- "resolved": "https://registry.npmjs.org/angular2-hapi-engine/-/angular2-hapi-engine-0.13.1.tgz"
- },
- "angular2-universal": {
- "version": "0.101.9",
- "from": "angular2-universal@>=0.101.3 <0.102.0",
- "resolved": "https://registry.npmjs.org/angular2-universal/-/angular2-universal-0.101.9.tgz"
- },
- "angular2-universal-polyfills": {
- "version": "0.4.1",
- "from": "angular2-universal-polyfills@>=0.4.1 <0.5.0",
- "resolved": "https://registry.npmjs.org/angular2-universal-polyfills/-/angular2-universal-polyfills-0.4.1.tgz"
- },
- "ansi-regex": {
- "version": "2.0.0",
- "from": "ansi-regex@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz"
- },
- "ansi-styles": {
- "version": "2.2.1",
- "from": "ansi-styles@>=2.2.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz"
- },
- "any-promise": {
- "version": "1.3.0",
- "from": "any-promise@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz"
- },
- "anymatch": {
- "version": "1.3.0",
- "from": "anymatch@>=1.3.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.0.tgz"
- },
- "archy": {
- "version": "1.0.0",
- "from": "archy@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz"
- },
- "arr-diff": {
- "version": "2.0.0",
- "from": "arr-diff@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz"
- },
- "arr-flatten": {
- "version": "1.0.1",
- "from": "arr-flatten@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.1.tgz"
- },
- "array-differ": {
- "version": "1.0.0",
- "from": "array-differ@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz"
- },
- "array-filter": {
- "version": "0.0.1",
- "from": "array-filter@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz"
- },
- "array-find-index": {
- "version": "1.0.1",
- "from": "array-find-index@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.1.tgz"
- },
- "array-flatten": {
- "version": "1.1.1",
- "from": "array-flatten@1.1.1",
- "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
- },
- "array-map": {
- "version": "0.0.0",
- "from": "array-map@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz"
- },
- "array-reduce": {
- "version": "0.0.0",
- "from": "array-reduce@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz"
- },
- "array-union": {
- "version": "1.0.1",
- "from": "array-union@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.1.tgz"
- },
- "array-uniq": {
- "version": "1.0.2",
- "from": "array-uniq@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.2.tgz"
- },
- "array-unique": {
- "version": "0.2.1",
- "from": "array-unique@>=0.2.1 <0.3.0",
- "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz"
- },
- "arrify": {
- "version": "1.0.1",
- "from": "arrify@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz"
- },
- "asn1.js": {
- "version": "4.6.2",
- "from": "asn1.js@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.6.2.tgz"
- },
- "assert": {
- "version": "1.3.0",
- "from": "assert@>=1.3.0 <1.4.0",
- "resolved": "https://registry.npmjs.org/assert/-/assert-1.3.0.tgz"
- },
- "astw": {
- "version": "2.0.0",
- "from": "astw@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/astw/-/astw-2.0.0.tgz"
- },
- "async": {
- "version": "0.2.10",
- "from": "async@>=0.2.6 <0.3.0",
- "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz"
- },
- "async-each": {
- "version": "1.0.0",
- "from": "async-each@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.0.tgz"
- },
- "atob": {
- "version": "1.1.3",
- "from": "atob@>=1.1.0 <1.2.0",
- "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz"
- },
- "balanced-match": {
- "version": "0.4.1",
- "from": "balanced-match@>=0.4.1 <0.5.0",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.1.tgz"
- },
- "Base64": {
- "version": "0.2.1",
- "from": "Base64@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/Base64/-/Base64-0.2.1.tgz"
- },
- "base64-js": {
- "version": "1.1.2",
- "from": "base64-js@>=1.0.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.1.2.tgz"
- },
- "batch": {
- "version": "0.5.3",
- "from": "batch@0.5.3",
- "resolved": "https://registry.npmjs.org/batch/-/batch-0.5.3.tgz"
- },
- "beeper": {
- "version": "1.1.0",
- "from": "beeper@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.0.tgz"
- },
- "big.js": {
- "version": "3.1.3",
- "from": "big.js@>=3.1.3 <4.0.0",
- "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.1.3.tgz"
- },
- "binary-extensions": {
- "version": "1.4.1",
- "from": "binary-extensions@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.4.1.tgz"
- },
- "bl": {
- "version": "0.9.5",
- "from": "bl@>=0.9.1 <0.10.0",
- "resolved": "https://registry.npmjs.org/bl/-/bl-0.9.5.tgz",
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.0.34",
- "from": "readable-stream@>=1.0.26 <1.1.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz"
- }
- }
- },
- "bluebird": {
- "version": "3.4.0",
- "from": "bluebird@>=3.1.1 <4.0.0",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.0.tgz"
- },
- "bn.js": {
- "version": "4.11.4",
- "from": "bn.js@>=4.1.1 <5.0.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.4.tgz"
- },
- "body-parser": {
- "version": "1.15.1",
- "from": "body-parser@>=1.15.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.15.1.tgz"
- },
- "bootstrap": {
- "version": "3.3.6",
- "from": "bootstrap@>=3.3.6 <4.0.0",
- "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-3.3.6.tgz"
- },
- "boxen": {
- "version": "0.3.1",
- "from": "boxen@>=0.3.1 <0.4.0",
- "resolved": "https://registry.npmjs.org/boxen/-/boxen-0.3.1.tgz"
- },
- "brace-expansion": {
- "version": "1.1.4",
- "from": "brace-expansion@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.4.tgz"
- },
- "braces": {
- "version": "1.8.5",
- "from": "braces@>=1.8.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz"
- },
- "brorand": {
- "version": "1.0.5",
- "from": "brorand@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.0.5.tgz"
- },
- "browser-pack": {
- "version": "6.0.1",
- "from": "browser-pack@>=6.0.1 <7.0.0",
- "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.0.1.tgz"
- },
- "browser-resolve": {
- "version": "1.11.2",
- "from": "browser-resolve@>=1.11.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz"
- },
- "browserify": {
- "version": "13.0.1",
- "from": "browserify@>=13.0.0 <14.0.0",
- "resolved": "https://registry.npmjs.org/browserify/-/browserify-13.0.1.tgz"
- },
- "browserify-aes": {
- "version": "1.0.6",
- "from": "browserify-aes@>=1.0.4 <2.0.0",
- "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.0.6.tgz"
- },
- "browserify-cipher": {
- "version": "1.0.0",
- "from": "browserify-cipher@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.0.tgz"
- },
- "browserify-des": {
- "version": "1.0.0",
- "from": "browserify-des@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.0.tgz"
- },
- "browserify-rsa": {
- "version": "4.0.1",
- "from": "browserify-rsa@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz"
- },
- "browserify-sign": {
- "version": "4.0.0",
- "from": "browserify-sign@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.0.tgz"
- },
- "browserify-zlib": {
- "version": "0.1.4",
- "from": "browserify-zlib@>=0.1.2 <0.2.0",
- "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz"
- },
- "buffer": {
- "version": "4.6.0",
- "from": "buffer@>=4.1.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.6.0.tgz"
- },
- "buffer-shims": {
- "version": "1.0.0",
- "from": "buffer-shims@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz"
- },
- "buffer-xor": {
- "version": "1.0.3",
- "from": "buffer-xor@>=1.0.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz"
- },
- "builtin-modules": {
- "version": "1.1.1",
- "from": "builtin-modules@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz"
- },
- "builtin-status-codes": {
- "version": "2.0.0",
- "from": "builtin-status-codes@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-2.0.0.tgz"
- },
- "bytes": {
- "version": "2.3.0",
- "from": "bytes@2.3.0",
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.3.0.tgz"
- },
- "camelcase": {
- "version": "2.1.1",
- "from": "camelcase@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz"
- },
- "camelcase-keys": {
- "version": "2.1.0",
- "from": "camelcase-keys@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz"
- },
- "capture-stack-trace": {
- "version": "1.0.0",
- "from": "capture-stack-trace@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz"
- },
- "center-align": {
- "version": "0.1.3",
- "from": "center-align@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz"
- },
- "chalk": {
- "version": "1.1.3",
- "from": "chalk@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz"
- },
- "chokidar": {
- "version": "1.5.1",
- "from": "chokidar@>=1.4.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.5.1.tgz"
- },
- "cipher-base": {
- "version": "1.0.2",
- "from": "cipher-base@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.2.tgz"
- },
- "cliui": {
- "version": "2.1.0",
- "from": "cliui@>=2.1.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz"
- },
- "clone": {
- "version": "1.0.2",
- "from": "clone@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz"
- },
- "clone-stats": {
- "version": "0.0.1",
- "from": "clone-stats@>=0.0.1 <0.0.2",
- "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz"
- },
- "code-point-at": {
- "version": "1.0.0",
- "from": "code-point-at@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.0.0.tgz"
- },
- "colors": {
- "version": "1.1.2",
- "from": "colors@>=1.0.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz"
- },
- "columnify": {
- "version": "1.5.4",
- "from": "columnify@>=1.5.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/columnify/-/columnify-1.5.4.tgz"
- },
- "combine-source-map": {
- "version": "0.7.2",
- "from": "combine-source-map@>=0.7.1 <0.8.0",
- "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz",
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "from": "source-map@>=0.5.3 <0.6.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz"
- }
- }
- },
- "combined-stream": {
- "version": "0.0.7",
- "from": "combined-stream@>=0.0.4 <0.1.0",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz"
- },
- "compressible": {
- "version": "2.0.8",
- "from": "compressible@>=2.0.8 <2.1.0",
- "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.8.tgz"
- },
- "compression": {
- "version": "1.6.2",
- "from": "compression@>=1.5.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/compression/-/compression-1.6.2.tgz",
- "dependencies": {
- "accepts": {
- "version": "1.3.3",
- "from": "accepts@>=1.3.3 <1.4.0",
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz"
- },
- "negotiator": {
- "version": "0.6.1",
- "from": "negotiator@0.6.1",
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz"
- },
- "vary": {
- "version": "1.1.0",
- "from": "vary@>=1.1.0 <1.2.0",
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.0.tgz"
- }
- }
- },
- "concat-map": {
- "version": "0.0.1",
- "from": "concat-map@0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
- },
- "concat-stream": {
- "version": "1.5.1",
- "from": "concat-stream@>=1.5.1 <1.6.0",
- "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.1.tgz",
- "dependencies": {
- "readable-stream": {
- "version": "2.0.6",
- "from": "readable-stream@>=2.0.0 <2.1.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
- }
- }
- },
- "config-chain": {
- "version": "1.1.10",
- "from": "config-chain@>=1.1.5 <1.2.0",
- "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.10.tgz"
- },
- "configstore": {
- "version": "2.0.0",
- "from": "configstore@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/configstore/-/configstore-2.0.0.tgz"
- },
- "connect-history-api-fallback": {
- "version": "1.1.0",
- "from": "connect-history-api-fallback@1.1.0",
- "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.1.0.tgz"
- },
- "console-browserify": {
- "version": "1.1.0",
- "from": "console-browserify@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz"
- },
- "constants-browserify": {
- "version": "1.0.0",
- "from": "constants-browserify@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz"
- },
- "content-disposition": {
- "version": "0.5.1",
- "from": "content-disposition@0.5.1",
- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.1.tgz"
- },
- "content-type": {
- "version": "1.0.2",
- "from": "content-type@>=1.0.1 <1.1.0",
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.2.tgz"
- },
- "convert-source-map": {
- "version": "1.1.3",
- "from": "convert-source-map@>=1.1.0 <1.2.0",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz"
- },
- "cookie": {
- "version": "0.1.5",
- "from": "cookie@0.1.5",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.5.tgz"
- },
- "cookie-signature": {
- "version": "1.0.6",
- "from": "cookie-signature@1.0.6",
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz"
- },
- "core-util-is": {
- "version": "1.0.2",
- "from": "core-util-is@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
- },
- "create-ecdh": {
- "version": "4.0.0",
- "from": "create-ecdh@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz"
- },
- "create-error-class": {
- "version": "3.0.2",
- "from": "create-error-class@>=3.0.1 <4.0.0",
- "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz"
- },
- "create-hash": {
- "version": "1.1.2",
- "from": "create-hash@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.2.tgz"
- },
- "create-hmac": {
- "version": "1.1.4",
- "from": "create-hmac@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.4.tgz"
- },
- "crypto-browserify": {
- "version": "3.11.0",
- "from": "crypto-browserify@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.11.0.tgz"
- },
- "css": {
- "version": "2.2.1",
- "from": "css@>=2.2.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz"
- },
- "currently-unhandled": {
- "version": "0.4.1",
- "from": "currently-unhandled@>=0.4.1 <0.5.0",
- "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz"
- },
- "date-now": {
- "version": "0.1.4",
- "from": "date-now@>=0.1.4 <0.2.0",
- "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz"
- },
- "dateformat": {
- "version": "1.0.12",
- "from": "dateformat@>=1.0.11 <2.0.0",
- "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz"
- },
- "deap": {
- "version": "1.0.0",
- "from": "deap@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/deap/-/deap-1.0.0.tgz"
- },
- "debug": {
- "version": "2.2.0",
- "from": "debug@>=2.2.0 <2.3.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz"
- },
- "decamelize": {
- "version": "1.2.0",
- "from": "decamelize@>=1.1.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz"
- },
- "deep-extend": {
- "version": "0.4.1",
- "from": "deep-extend@>=0.4.0 <0.5.0",
- "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.1.tgz"
- },
- "defaults": {
- "version": "1.0.3",
- "from": "defaults@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz"
- },
- "defined": {
- "version": "1.0.0",
- "from": "defined@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz"
- },
- "del": {
- "version": "2.2.0",
- "from": "del@>=2.2.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/del/-/del-2.2.0.tgz"
- },
- "del-cli": {
- "version": "0.2.0",
- "from": "del-cli@0.2.0",
- "resolved": "https://registry.npmjs.org/del-cli/-/del-cli-0.2.0.tgz"
- },
- "delayed-stream": {
- "version": "0.0.5",
- "from": "delayed-stream@0.0.5",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz"
- },
- "depd": {
- "version": "1.1.0",
- "from": "depd@>=1.1.0 <1.2.0",
- "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz"
- },
- "deprecated": {
- "version": "0.0.1",
- "from": "deprecated@>=0.0.1 <0.0.2",
- "resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz"
- },
- "deps-sort": {
- "version": "2.0.0",
- "from": "deps-sort@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz"
- },
- "des.js": {
- "version": "1.0.0",
- "from": "des.js@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz"
- },
- "destroy": {
- "version": "1.0.4",
- "from": "destroy@>=1.0.4 <1.1.0",
- "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz"
- },
- "detect-indent": {
- "version": "4.0.0",
- "from": "detect-indent@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz"
- },
- "detective": {
- "version": "4.3.1",
- "from": "detective@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/detective/-/detective-4.3.1.tgz"
- },
- "diffie-hellman": {
- "version": "5.0.2",
- "from": "diffie-hellman@>=5.0.0 <6.0.0",
- "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz"
- },
- "domain-browser": {
- "version": "1.1.7",
- "from": "domain-browser@>=1.1.0 <1.2.0",
- "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz"
- },
- "dot-prop": {
- "version": "2.4.0",
- "from": "dot-prop@>=2.3.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz"
- },
- "duplexer": {
- "version": "0.1.1",
- "from": "duplexer@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz"
- },
- "duplexer2": {
- "version": "0.1.4",
- "from": "duplexer2@>=0.1.2 <0.2.0",
- "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz"
- },
- "duplexify": {
- "version": "3.4.3",
- "from": "duplexify@>=3.2.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.4.3.tgz",
- "dependencies": {
- "end-of-stream": {
- "version": "1.0.0",
- "from": "end-of-stream@1.0.0",
- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.0.0.tgz"
- }
- }
- },
- "ee-first": {
- "version": "1.1.1",
- "from": "ee-first@1.1.1",
- "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz"
- },
- "elliptic": {
- "version": "6.2.8",
- "from": "elliptic@>=6.0.0 <7.0.0",
- "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.2.8.tgz"
- },
- "emojis-list": {
- "version": "2.0.1",
- "from": "emojis-list@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.0.1.tgz"
- },
- "end-of-stream": {
- "version": "0.1.5",
- "from": "end-of-stream@>=0.1.5 <0.2.0",
- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz"
- },
- "enhanced-resolve": {
- "version": "0.9.1",
- "from": "enhanced-resolve@>=0.9.0 <0.10.0",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz"
- },
- "errno": {
- "version": "0.1.4",
- "from": "errno@>=0.1.3 <0.2.0",
- "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz"
- },
- "error-ex": {
- "version": "1.3.0",
- "from": "error-ex@>=1.2.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.0.tgz"
- },
- "es6-promise": {
- "version": "3.0.2",
- "from": "es6-promise@>=3.0.2 <3.1.0",
- "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.0.2.tgz"
- },
- "es6-shim": {
- "version": "0.35.1",
- "from": "es6-shim@>=0.35.0 <0.36.0",
- "resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.1.tgz"
- },
- "escape-html": {
- "version": "1.0.3",
- "from": "escape-html@>=1.0.3 <1.1.0",
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz"
- },
- "escape-string-regexp": {
- "version": "1.0.5",
- "from": "escape-string-regexp@>=1.0.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz"
- },
- "etag": {
- "version": "1.7.0",
- "from": "etag@>=1.7.0 <1.8.0",
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz"
- },
- "event-stream": {
- "version": "3.3.2",
- "from": "event-stream@>=3.3.2 <4.0.0",
- "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.2.tgz"
- },
- "eventemitter3": {
- "version": "1.2.0",
- "from": "eventemitter3@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.2.0.tgz"
- },
- "events": {
- "version": "1.1.0",
- "from": "events@>=1.1.0 <1.2.0",
- "resolved": "https://registry.npmjs.org/events/-/events-1.1.0.tgz"
- },
- "eventsource": {
- "version": "0.1.6",
- "from": "eventsource@>=0.1.6 <0.2.0",
- "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-0.1.6.tgz"
- },
- "evp_bytestokey": {
- "version": "1.0.0",
- "from": "evp_bytestokey@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.0.tgz"
- },
- "expand-brackets": {
- "version": "0.1.5",
- "from": "expand-brackets@>=0.1.4 <0.2.0",
- "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz"
- },
- "expand-range": {
- "version": "1.8.2",
- "from": "expand-range@>=1.8.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz"
- },
- "express": {
- "version": "4.13.4",
- "from": "express@>=4.13.3 <5.0.0",
- "resolved": "https://registry.npmjs.org/express/-/express-4.13.4.tgz",
- "dependencies": {
- "qs": {
- "version": "4.0.0",
- "from": "qs@4.0.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-4.0.0.tgz"
- }
- }
- },
- "extend": {
- "version": "2.0.1",
- "from": "extend@>=2.0.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/extend/-/extend-2.0.1.tgz"
- },
- "extglob": {
- "version": "0.3.2",
- "from": "extglob@>=0.3.1 <0.4.0",
- "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz"
- },
- "fancy-log": {
- "version": "1.2.0",
- "from": "fancy-log@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.2.0.tgz"
- },
- "faye-websocket": {
- "version": "0.10.0",
- "from": "faye-websocket@>=0.10.0 <0.11.0",
- "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz"
- },
- "filename-regex": {
- "version": "2.0.0",
- "from": "filename-regex@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.0.tgz"
- },
- "fill-range": {
- "version": "2.2.3",
- "from": "fill-range@>=2.1.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz"
- },
- "filled-array": {
- "version": "1.1.0",
- "from": "filled-array@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/filled-array/-/filled-array-1.1.0.tgz"
- },
- "finalhandler": {
- "version": "0.4.1",
- "from": "finalhandler@0.4.1",
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.4.1.tgz"
- },
- "find-index": {
- "version": "0.1.1",
- "from": "find-index@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz"
- },
- "find-up": {
- "version": "1.1.2",
- "from": "find-up@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz"
- },
- "findup-sync": {
- "version": "0.3.0",
- "from": "findup-sync@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz"
- },
- "first-chunk-stream": {
- "version": "1.0.0",
- "from": "first-chunk-stream@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz"
- },
- "flagged-respawn": {
- "version": "0.3.2",
- "from": "flagged-respawn@>=0.3.2 <0.4.0",
- "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-0.3.2.tgz"
- },
- "for-in": {
- "version": "0.1.5",
- "from": "for-in@>=0.1.5 <0.2.0",
- "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.5.tgz"
- },
- "for-own": {
- "version": "0.1.4",
- "from": "for-own@>=0.1.3 <0.2.0",
- "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.4.tgz"
- },
- "form-data": {
- "version": "0.2.0",
- "from": "form-data@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-0.2.0.tgz",
- "dependencies": {
- "async": {
- "version": "0.9.2",
- "from": "async@>=0.9.0 <0.10.0",
- "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz"
- },
- "mime-db": {
- "version": "1.12.0",
- "from": "mime-db@>=1.12.0 <1.13.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.12.0.tgz"
- },
- "mime-types": {
- "version": "2.0.14",
- "from": "mime-types@>=2.0.3 <2.1.0",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.0.14.tgz"
- }
- }
- },
- "forwarded": {
- "version": "0.1.0",
- "from": "forwarded@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.0.tgz"
- },
- "fresh": {
- "version": "0.3.0",
- "from": "fresh@0.3.0",
- "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz"
- },
- "from": {
- "version": "0.1.3",
- "from": "from@>=0.0.0 <1.0.0",
- "resolved": "https://registry.npmjs.org/from/-/from-0.1.3.tgz"
- },
- "function-bind": {
- "version": "1.1.0",
- "from": "function-bind@>=1.0.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz"
- },
- "gaze": {
- "version": "0.5.2",
- "from": "gaze@>=0.5.1 <0.6.0",
- "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz"
- },
- "get-stdin": {
- "version": "4.0.1",
- "from": "get-stdin@>=4.0.1 <5.0.0",
- "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz"
- },
- "glob": {
- "version": "5.0.15",
- "from": "glob@>=5.0.15 <6.0.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz"
- },
- "glob-base": {
- "version": "0.3.0",
- "from": "glob-base@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz"
- },
- "glob-parent": {
- "version": "2.0.0",
- "from": "glob-parent@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz"
- },
- "glob-stream": {
- "version": "3.1.18",
- "from": "glob-stream@>=3.1.5 <4.0.0",
- "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-3.1.18.tgz",
- "dependencies": {
- "glob": {
- "version": "4.5.3",
- "from": "glob@>=4.3.1 <5.0.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz"
- },
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "minimatch": {
- "version": "2.0.10",
- "from": "minimatch@>=2.0.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz"
- },
- "readable-stream": {
- "version": "1.0.34",
- "from": "readable-stream@>=1.0.33-1 <1.1.0-0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz"
- },
- "through2": {
- "version": "0.6.5",
- "from": "through2@>=0.6.1 <0.7.0",
- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz"
- }
- }
- },
- "glob-watcher": {
- "version": "0.0.6",
- "from": "glob-watcher@>=0.0.6 <0.0.7",
- "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-0.0.6.tgz"
- },
- "glob2base": {
- "version": "0.0.12",
- "from": "glob2base@>=0.0.12 <0.0.13",
- "resolved": "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz"
- },
- "globby": {
- "version": "4.1.0",
- "from": "globby@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/globby/-/globby-4.1.0.tgz",
- "dependencies": {
- "glob": {
- "version": "6.0.4",
- "from": "glob@>=6.0.1 <7.0.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz"
- }
- }
- },
- "globule": {
- "version": "0.1.0",
- "from": "globule@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz",
- "dependencies": {
- "glob": {
- "version": "3.1.21",
- "from": "glob@>=3.1.21 <3.2.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz"
- },
- "graceful-fs": {
- "version": "1.2.3",
- "from": "graceful-fs@>=1.2.0 <1.3.0",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz"
- },
- "inherits": {
- "version": "1.0.2",
- "from": "inherits@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz"
- },
- "lodash": {
- "version": "1.0.2",
- "from": "lodash@>=1.0.1 <1.1.0",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz"
- },
- "minimatch": {
- "version": "0.2.14",
- "from": "minimatch@>=0.2.11 <0.3.0",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz"
- }
- }
- },
- "glogg": {
- "version": "1.0.0",
- "from": "glogg@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.0.tgz"
- },
- "got": {
- "version": "5.6.0",
- "from": "got@>=5.0.0 <6.0.0",
- "resolved": "https://registry.npmjs.org/got/-/got-5.6.0.tgz"
- },
- "graceful-fs": {
- "version": "4.1.4",
- "from": "graceful-fs@>=4.1.2 <5.0.0",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.4.tgz"
- },
- "gulp": {
- "version": "3.9.1",
- "from": "gulp@>=3.9.1 <4.0.0",
- "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz",
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "from": "minimist@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
- },
- "semver": {
- "version": "4.3.6",
- "from": "semver@>=4.1.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz"
- }
- }
- },
- "gulp-insert": {
- "version": "0.5.0",
- "from": "gulp-insert@>=0.5.0 <0.6.0",
- "resolved": "https://registry.npmjs.org/gulp-insert/-/gulp-insert-0.5.0.tgz",
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.1.14",
- "from": "readable-stream@>=1.0.26-4 <2.0.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
- }
- }
- },
- "gulp-rename": {
- "version": "1.2.2",
- "from": "gulp-rename@>=1.2.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.2.2.tgz"
- },
- "gulp-uglify": {
- "version": "1.5.3",
- "from": "gulp-uglify@>=1.5.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-1.5.3.tgz"
- },
- "gulp-util": {
- "version": "3.0.7",
- "from": "gulp-util@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.7.tgz",
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "from": "minimist@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
- },
- "object-assign": {
- "version": "3.0.0",
- "from": "object-assign@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz"
- }
- }
- },
- "gulplog": {
- "version": "1.0.0",
- "from": "gulplog@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz"
- },
- "has": {
- "version": "1.0.1",
- "from": "has@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz"
- },
- "has-ansi": {
- "version": "2.0.0",
- "from": "has-ansi@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz"
- },
- "has-flag": {
- "version": "1.0.0",
- "from": "has-flag@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz"
- },
- "has-gulplog": {
- "version": "0.1.0",
- "from": "has-gulplog@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz"
- },
- "hash.js": {
- "version": "1.0.3",
- "from": "hash.js@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.0.3.tgz"
- },
- "hosted-git-info": {
- "version": "2.1.5",
- "from": "hosted-git-info@>=2.1.4 <3.0.0",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.5.tgz"
- },
- "htmlescape": {
- "version": "1.1.1",
- "from": "htmlescape@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz"
- },
- "http-browserify": {
- "version": "1.7.0",
- "from": "http-browserify@>=1.3.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/http-browserify/-/http-browserify-1.7.0.tgz"
- },
- "http-errors": {
- "version": "1.4.0",
- "from": "http-errors@>=1.4.0 <1.5.0",
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.4.0.tgz"
- },
- "http-proxy": {
- "version": "1.13.3",
- "from": "http-proxy@>=1.11.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.13.3.tgz"
- },
- "http-proxy-agent": {
- "version": "1.0.0",
- "from": "http-proxy-agent@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-1.0.0.tgz",
- "dependencies": {
- "extend": {
- "version": "3.0.0",
- "from": "extend@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz"
- }
- }
- },
- "https-browserify": {
- "version": "0.0.1",
- "from": "https-browserify@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz"
- },
- "https-proxy-agent": {
- "version": "1.0.0",
- "from": "https-proxy-agent@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz",
- "dependencies": {
- "extend": {
- "version": "3.0.0",
- "from": "extend@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz"
- }
- }
- },
- "iconv-lite": {
- "version": "0.4.13",
- "from": "iconv-lite@0.4.13",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz"
- },
- "ie-shim": {
- "version": "0.1.0",
- "from": "ie-shim@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/ie-shim/-/ie-shim-0.1.0.tgz"
- },
- "ieee754": {
- "version": "1.1.6",
- "from": "ieee754@>=1.1.4 <2.0.0",
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.6.tgz"
- },
- "ignore-by-default": {
- "version": "1.0.1",
- "from": "ignore-by-default@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz"
- },
- "imurmurhash": {
- "version": "0.1.4",
- "from": "imurmurhash@>=0.1.4 <0.2.0",
- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz"
- },
- "indent-string": {
- "version": "2.1.0",
- "from": "indent-string@>=2.1.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz"
- },
- "indexof": {
- "version": "0.0.1",
- "from": "indexof@0.0.1",
- "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz"
- },
- "infinity-agent": {
- "version": "2.0.3",
- "from": "infinity-agent@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/infinity-agent/-/infinity-agent-2.0.3.tgz"
- },
- "inflight": {
- "version": "1.0.5",
- "from": "inflight@>=1.0.4 <2.0.0",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.5.tgz"
- },
- "inherits": {
- "version": "2.0.1",
- "from": "inherits@>=2.0.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
- },
- "ini": {
- "version": "1.3.4",
- "from": "ini@>=1.3.4 <2.0.0",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz"
- },
- "inline-source-map": {
- "version": "0.6.2",
- "from": "inline-source-map@>=0.6.0 <0.7.0",
- "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz",
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "from": "source-map@>=0.5.3 <0.6.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz"
- }
- }
- },
- "insert-module-globals": {
- "version": "7.0.1",
- "from": "insert-module-globals@>=7.0.0 <8.0.0",
- "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.0.1.tgz"
- },
- "interpret": {
- "version": "1.0.1",
- "from": "interpret@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.1.tgz"
- },
- "invariant": {
- "version": "2.2.1",
- "from": "invariant@>=2.2.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.1.tgz"
- },
- "ipaddr.js": {
- "version": "1.0.5",
- "from": "ipaddr.js@1.0.5",
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.0.5.tgz"
- },
- "is-absolute": {
- "version": "0.2.5",
- "from": "is-absolute@>=0.2.3 <0.3.0",
- "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.5.tgz"
- },
- "is-arrayish": {
- "version": "0.2.1",
- "from": "is-arrayish@>=0.2.1 <0.3.0",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz"
- },
- "is-binary-path": {
- "version": "1.0.1",
- "from": "is-binary-path@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz"
- },
- "is-buffer": {
- "version": "1.1.3",
- "from": "is-buffer@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.3.tgz"
- },
- "is-builtin-module": {
- "version": "1.0.0",
- "from": "is-builtin-module@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz"
- },
- "is-dotfile": {
- "version": "1.0.2",
- "from": "is-dotfile@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.2.tgz"
- },
- "is-equal-shallow": {
- "version": "0.1.3",
- "from": "is-equal-shallow@>=0.1.3 <0.2.0",
- "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz"
- },
- "is-extendable": {
- "version": "0.1.1",
- "from": "is-extendable@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz"
- },
- "is-extglob": {
- "version": "1.0.0",
- "from": "is-extglob@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz"
- },
- "is-finite": {
- "version": "1.0.1",
- "from": "is-finite@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.1.tgz"
- },
- "is-fullwidth-code-point": {
- "version": "1.0.0",
- "from": "is-fullwidth-code-point@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz"
- },
- "is-glob": {
- "version": "2.0.1",
- "from": "is-glob@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz"
- },
- "is-npm": {
- "version": "1.0.0",
- "from": "is-npm@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz"
- },
- "is-number": {
- "version": "2.1.0",
- "from": "is-number@>=2.1.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz"
- },
- "is-obj": {
- "version": "1.0.1",
- "from": "is-obj@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz"
- },
- "is-path-cwd": {
- "version": "1.0.0",
- "from": "is-path-cwd@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz"
- },
- "is-path-in-cwd": {
- "version": "1.0.0",
- "from": "is-path-in-cwd@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz"
- },
- "is-path-inside": {
- "version": "1.0.0",
- "from": "is-path-inside@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz"
- },
- "is-plain-obj": {
- "version": "1.1.0",
- "from": "is-plain-obj@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz"
- },
- "is-posix-bracket": {
- "version": "0.1.1",
- "from": "is-posix-bracket@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz"
- },
- "is-primitive": {
- "version": "2.0.0",
- "from": "is-primitive@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz"
- },
- "is-redirect": {
- "version": "1.0.0",
- "from": "is-redirect@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz"
- },
- "is-relative": {
- "version": "0.2.1",
- "from": "is-relative@>=0.2.1 <0.3.0",
- "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz"
- },
- "is-retry-allowed": {
- "version": "1.0.0",
- "from": "is-retry-allowed@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.0.0.tgz"
- },
- "is-stream": {
- "version": "1.1.0",
- "from": "is-stream@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz"
- },
- "is-unc-path": {
- "version": "0.1.1",
- "from": "is-unc-path@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.1.tgz"
- },
- "is-utf8": {
- "version": "0.2.1",
- "from": "is-utf8@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz"
- },
- "is-windows": {
- "version": "0.1.1",
- "from": "is-windows@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.1.1.tgz"
- },
- "isarray": {
- "version": "1.0.0",
- "from": "isarray@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
- },
- "isobject": {
- "version": "2.1.0",
- "from": "isobject@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz"
- },
- "js-beautify": {
- "version": "1.6.3",
- "from": "js-beautify@>=1.6.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.6.3.tgz"
- },
- "js-tokens": {
- "version": "1.0.3",
- "from": "js-tokens@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.3.tgz"
- },
- "json-stable-stringify": {
- "version": "0.0.1",
- "from": "json-stable-stringify@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz"
- },
- "json3": {
- "version": "3.3.2",
- "from": "json3@>=3.3.2 <4.0.0",
- "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz"
- },
- "json5": {
- "version": "0.5.0",
- "from": "json5@>=0.5.0 <0.6.0",
- "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.0.tgz"
- },
- "jsonify": {
- "version": "0.0.0",
- "from": "jsonify@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz"
- },
- "jsonparse": {
- "version": "1.2.0",
- "from": "jsonparse@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.2.0.tgz"
- },
- "JSONStream": {
- "version": "1.1.1",
- "from": "JSONStream@>=1.0.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.1.1.tgz"
- },
- "kind-of": {
- "version": "3.0.3",
- "from": "kind-of@>=3.0.2 <4.0.0",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.0.3.tgz"
- },
- "labeled-stream-splicer": {
- "version": "2.0.0",
- "from": "labeled-stream-splicer@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz",
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@>=0.0.1 <0.1.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- }
- }
- },
- "latest-version": {
- "version": "2.0.0",
- "from": "latest-version@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-2.0.0.tgz"
- },
- "lazy-cache": {
- "version": "1.0.4",
- "from": "lazy-cache@>=1.0.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz"
- },
- "lexical-scope": {
- "version": "1.2.0",
- "from": "lexical-scope@>=1.2.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz"
- },
- "liftoff": {
- "version": "2.2.1",
- "from": "liftoff@>=2.1.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.2.1.tgz"
- },
- "listify": {
- "version": "1.0.0",
- "from": "listify@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/listify/-/listify-1.0.0.tgz"
- },
- "load-json-file": {
- "version": "1.1.0",
- "from": "load-json-file@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz"
- },
- "loader-utils": {
- "version": "0.2.15",
- "from": "loader-utils@>=0.2.6 <0.3.0",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.15.tgz"
- },
- "lockfile": {
- "version": "1.0.1",
- "from": "lockfile@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/lockfile/-/lockfile-1.0.1.tgz"
- },
- "lodash": {
- "version": "4.13.1",
- "from": "lodash@>=4.7.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.13.1.tgz"
- },
- "lodash._arraycopy": {
- "version": "3.0.0",
- "from": "lodash._arraycopy@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz"
- },
- "lodash._arrayeach": {
- "version": "3.0.0",
- "from": "lodash._arrayeach@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz"
- },
- "lodash._baseassign": {
- "version": "3.2.0",
- "from": "lodash._baseassign@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz"
- },
- "lodash._basecallback": {
- "version": "3.3.1",
- "from": "lodash._basecallback@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basecallback/-/lodash._basecallback-3.3.1.tgz"
- },
- "lodash._basecopy": {
- "version": "3.0.1",
- "from": "lodash._basecopy@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz"
- },
- "lodash._baseeach": {
- "version": "3.0.4",
- "from": "lodash._baseeach@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._baseeach/-/lodash._baseeach-3.0.4.tgz"
- },
- "lodash._basefind": {
- "version": "3.0.0",
- "from": "lodash._basefind@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basefind/-/lodash._basefind-3.0.0.tgz"
- },
- "lodash._basefindindex": {
- "version": "3.6.0",
- "from": "lodash._basefindindex@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basefindindex/-/lodash._basefindindex-3.6.0.tgz"
- },
- "lodash._basefor": {
- "version": "3.0.3",
- "from": "lodash._basefor@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz"
- },
- "lodash._baseisequal": {
- "version": "3.0.7",
- "from": "lodash._baseisequal@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._baseisequal/-/lodash._baseisequal-3.0.7.tgz"
- },
- "lodash._basetostring": {
- "version": "3.0.1",
- "from": "lodash._basetostring@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz"
- },
- "lodash._basevalues": {
- "version": "3.0.0",
- "from": "lodash._basevalues@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz"
- },
- "lodash._bindcallback": {
- "version": "3.0.1",
- "from": "lodash._bindcallback@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz"
- },
- "lodash._createassigner": {
- "version": "3.1.1",
- "from": "lodash._createassigner@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz"
- },
- "lodash._getnative": {
- "version": "3.9.1",
- "from": "lodash._getnative@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz"
- },
- "lodash._isiterateecall": {
- "version": "3.0.9",
- "from": "lodash._isiterateecall@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz"
- },
- "lodash._reescape": {
- "version": "3.0.0",
- "from": "lodash._reescape@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz"
- },
- "lodash._reevaluate": {
- "version": "3.0.0",
- "from": "lodash._reevaluate@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz"
- },
- "lodash._reinterpolate": {
- "version": "3.0.0",
- "from": "lodash._reinterpolate@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz"
- },
- "lodash._root": {
- "version": "3.0.1",
- "from": "lodash._root@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz"
- },
- "lodash.assign": {
- "version": "3.2.0",
- "from": "lodash.assign@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz"
- },
- "lodash.defaults": {
- "version": "3.1.2",
- "from": "lodash.defaults@>=3.1.2 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-3.1.2.tgz"
- },
- "lodash.escape": {
- "version": "3.2.0",
- "from": "lodash.escape@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz"
- },
- "lodash.find": {
- "version": "3.2.1",
- "from": "lodash.find@>=3.2.1 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.find/-/lodash.find-3.2.1.tgz"
- },
- "lodash.isarguments": {
- "version": "3.0.8",
- "from": "lodash.isarguments@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.0.8.tgz"
- },
- "lodash.isarray": {
- "version": "3.0.4",
- "from": "lodash.isarray@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz"
- },
- "lodash.isplainobject": {
- "version": "3.2.0",
- "from": "lodash.isplainobject@>=3.2.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-3.2.0.tgz"
- },
- "lodash.istypedarray": {
- "version": "3.0.6",
- "from": "lodash.istypedarray@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.istypedarray/-/lodash.istypedarray-3.0.6.tgz"
- },
- "lodash.keys": {
- "version": "3.1.2",
- "from": "lodash.keys@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz"
- },
- "lodash.keysin": {
- "version": "3.0.8",
- "from": "lodash.keysin@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.keysin/-/lodash.keysin-3.0.8.tgz"
- },
- "lodash.memoize": {
- "version": "3.0.4",
- "from": "lodash.memoize@>=3.0.3 <3.1.0",
- "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz"
- },
- "lodash.merge": {
- "version": "3.3.2",
- "from": "lodash.merge@>=3.3.2 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-3.3.2.tgz"
- },
- "lodash.pairs": {
- "version": "3.0.1",
- "from": "lodash.pairs@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.pairs/-/lodash.pairs-3.0.1.tgz"
- },
- "lodash.restparam": {
- "version": "3.6.1",
- "from": "lodash.restparam@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz"
- },
- "lodash.template": {
- "version": "3.6.2",
- "from": "lodash.template@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz"
- },
- "lodash.templatesettings": {
- "version": "3.1.1",
- "from": "lodash.templatesettings@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz"
- },
- "lodash.toplainobject": {
- "version": "3.0.0",
- "from": "lodash.toplainobject@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.toplainobject/-/lodash.toplainobject-3.0.0.tgz"
- },
- "longest": {
- "version": "1.0.1",
- "from": "longest@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz"
- },
- "loose-envify": {
- "version": "1.2.0",
- "from": "loose-envify@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.2.0.tgz"
- },
- "loud-rejection": {
- "version": "1.4.1",
- "from": "loud-rejection@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.4.1.tgz"
- },
- "lowercase-keys": {
- "version": "1.0.0",
- "from": "lowercase-keys@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz"
- },
- "lru-cache": {
- "version": "2.7.3",
- "from": "lru-cache@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz"
- },
- "make-error": {
- "version": "1.1.1",
- "from": "make-error@>=1.1.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.1.1.tgz"
- },
- "make-error-cause": {
- "version": "1.1.0",
- "from": "make-error-cause@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/make-error-cause/-/make-error-cause-1.1.0.tgz"
- },
- "map-obj": {
- "version": "1.0.1",
- "from": "map-obj@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz"
- },
- "map-stream": {
- "version": "0.1.0",
- "from": "map-stream@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz"
- },
- "media-typer": {
- "version": "0.3.0",
- "from": "media-typer@0.3.0",
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz"
- },
- "memory-fs": {
- "version": "0.2.0",
- "from": "memory-fs@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz"
- },
- "meow": {
- "version": "3.7.0",
- "from": "meow@>=3.6.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "from": "minimist@>=1.1.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
- }
- }
- },
- "merge-descriptors": {
- "version": "1.0.1",
- "from": "merge-descriptors@1.0.1",
- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz"
- },
- "methods": {
- "version": "1.1.2",
- "from": "methods@>=1.1.2 <1.2.0",
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz"
- },
- "micromatch": {
- "version": "2.3.8",
- "from": "micromatch@>=2.1.5 <3.0.0",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.8.tgz"
- },
- "miller-rabin": {
- "version": "4.0.0",
- "from": "miller-rabin@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.0.tgz"
- },
- "mime": {
- "version": "1.3.4",
- "from": "mime@1.3.4",
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz"
- },
- "mime-db": {
- "version": "1.23.0",
- "from": "mime-db@>=1.23.0 <1.24.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.23.0.tgz"
- },
- "mime-types": {
- "version": "2.1.11",
- "from": "mime-types@>=2.1.11 <2.2.0",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz"
- },
- "minimalistic-assert": {
- "version": "1.0.0",
- "from": "minimalistic-assert@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz"
- },
- "minimatch": {
- "version": "3.0.0",
- "from": "minimatch@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.0.tgz"
- },
- "minimist": {
- "version": "0.0.8",
- "from": "minimist@0.0.8",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz"
- },
- "mkdirp": {
- "version": "0.5.1",
- "from": "mkdirp@>=0.5.0 <0.6.0",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz"
- },
- "module-deps": {
- "version": "4.0.7",
- "from": "module-deps@>=4.0.2 <5.0.0",
- "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.0.7.tgz"
- },
- "ms": {
- "version": "0.7.1",
- "from": "ms@0.7.1",
- "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz"
- },
- "multipipe": {
- "version": "0.1.2",
- "from": "multipipe@>=0.1.2 <0.2.0",
- "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz",
- "dependencies": {
- "duplexer2": {
- "version": "0.0.2",
- "from": "duplexer2@0.0.2",
- "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz"
- },
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.1.14",
- "from": "readable-stream@>=1.1.9 <1.2.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
- }
- }
- },
- "negotiator": {
- "version": "0.5.3",
- "from": "negotiator@0.5.3",
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.5.3.tgz"
- },
- "nested-error-stacks": {
- "version": "1.0.2",
- "from": "nested-error-stacks@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-1.0.2.tgz"
- },
- "node-libs-browser": {
- "version": "0.5.3",
- "from": "node-libs-browser@>=0.4.0 <=0.6.0",
- "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-0.5.3.tgz",
- "dependencies": {
- "base64-js": {
- "version": "0.0.8",
- "from": "base64-js@0.0.8",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz"
- },
- "buffer": {
- "version": "3.6.0",
- "from": "buffer@>=3.0.3 <4.0.0",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-3.6.0.tgz"
- },
- "constants-browserify": {
- "version": "0.0.1",
- "from": "constants-browserify@0.0.1",
- "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-0.0.1.tgz"
- },
- "crypto-browserify": {
- "version": "3.2.8",
- "from": "crypto-browserify@>=3.2.6 <3.3.0",
- "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.2.8.tgz"
- },
- "https-browserify": {
- "version": "0.0.0",
- "from": "https-browserify@0.0.0",
- "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.0.tgz"
- },
- "readable-stream": {
- "version": "1.1.14",
- "from": "readable-stream@>=1.1.13 <2.0.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- }
- }
- },
- "ripemd160": {
- "version": "0.2.0",
- "from": "ripemd160@0.2.0",
- "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-0.2.0.tgz"
- },
- "sha.js": {
- "version": "2.2.6",
- "from": "sha.js@2.2.6",
- "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz"
- },
- "stream-browserify": {
- "version": "1.0.0",
- "from": "stream-browserify@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-1.0.0.tgz"
- },
- "url": {
- "version": "0.10.3",
- "from": "url@>=0.10.1 <0.11.0",
- "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz",
- "dependencies": {
- "punycode": {
- "version": "1.3.2",
- "from": "punycode@1.3.2",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz"
- }
- }
- }
- }
- },
- "node-status-codes": {
- "version": "1.0.0",
- "from": "node-status-codes@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz"
- },
- "nopt": {
- "version": "3.0.6",
- "from": "nopt@>=3.0.1 <3.1.0",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz"
- },
- "normalize-package-data": {
- "version": "2.3.5",
- "from": "normalize-package-data@>=2.3.4 <3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.5.tgz"
- },
- "normalize-path": {
- "version": "2.0.1",
- "from": "normalize-path@>=2.0.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz"
- },
- "number-is-nan": {
- "version": "1.0.0",
- "from": "number-is-nan@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.0.tgz"
- },
- "object-assign": {
- "version": "4.1.0",
- "from": "object-assign@>=4.0.1 <5.0.0",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz"
- },
- "object.omit": {
- "version": "2.0.0",
- "from": "object.omit@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.0.tgz"
- },
- "object.pick": {
- "version": "1.1.2",
- "from": "object.pick@>=1.1.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.1.2.tgz"
- },
- "on-finished": {
- "version": "2.3.0",
- "from": "on-finished@>=2.3.0 <2.4.0",
- "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz"
- },
- "on-headers": {
- "version": "1.0.1",
- "from": "on-headers@>=1.0.1 <1.1.0",
- "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz"
- },
- "once": {
- "version": "1.3.3",
- "from": "once@>=1.3.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz"
- },
- "optimist": {
- "version": "0.6.1",
- "from": "optimist@>=0.6.0 <0.7.0",
- "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz"
- },
- "orchestrator": {
- "version": "0.3.7",
- "from": "orchestrator@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.7.tgz"
- },
- "ordered-read-streams": {
- "version": "0.1.0",
- "from": "ordered-read-streams@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz"
- },
- "original": {
- "version": "1.0.0",
- "from": "original@>=0.0.5",
- "resolved": "https://registry.npmjs.org/original/-/original-1.0.0.tgz",
- "dependencies": {
- "url-parse": {
- "version": "1.0.5",
- "from": "url-parse@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.0.5.tgz"
- }
- }
- },
- "os-browserify": {
- "version": "0.1.2",
- "from": "os-browserify@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.1.2.tgz"
- },
- "os-homedir": {
- "version": "1.0.1",
- "from": "os-homedir@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.1.tgz"
- },
- "os-tmpdir": {
- "version": "1.0.1",
- "from": "os-tmpdir@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.1.tgz"
- },
- "osenv": {
- "version": "0.1.3",
- "from": "osenv@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.3.tgz"
- },
- "package-json": {
- "version": "2.3.2",
- "from": "package-json@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/package-json/-/package-json-2.3.2.tgz"
- },
- "pako": {
- "version": "0.2.8",
- "from": "pako@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.8.tgz"
- },
- "parents": {
- "version": "1.0.1",
- "from": "parents@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz"
- },
- "parse-asn1": {
- "version": "5.0.0",
- "from": "parse-asn1@>=5.0.0 <6.0.0",
- "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.0.0.tgz"
- },
- "parse-glob": {
- "version": "3.0.4",
- "from": "parse-glob@>=3.0.4 <4.0.0",
- "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz"
- },
- "parse-json": {
- "version": "2.2.0",
- "from": "parse-json@>=2.2.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz"
- },
- "parse5": {
- "version": "1.5.1",
- "from": "parse5@>=1.5.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/parse5/-/parse5-1.5.1.tgz"
- },
- "parseurl": {
- "version": "1.3.1",
- "from": "parseurl@>=1.3.1 <1.4.0",
- "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz"
- },
- "path-browserify": {
- "version": "0.0.0",
- "from": "path-browserify@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz"
- },
- "path-exists": {
- "version": "2.1.0",
- "from": "path-exists@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz"
- },
- "path-is-absolute": {
- "version": "1.0.0",
- "from": "path-is-absolute@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz"
- },
- "path-is-inside": {
- "version": "1.0.1",
- "from": "path-is-inside@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz"
- },
- "path-platform": {
- "version": "0.11.15",
- "from": "path-platform@>=0.11.15 <0.12.0",
- "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz"
- },
- "path-to-regexp": {
- "version": "0.1.7",
- "from": "path-to-regexp@0.1.7",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
- },
- "path-type": {
- "version": "1.1.0",
- "from": "path-type@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz"
- },
- "pause-stream": {
- "version": "0.0.11",
- "from": "pause-stream@0.0.11",
- "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz"
- },
- "pbkdf2": {
- "version": "3.0.4",
- "from": "pbkdf2@>=3.0.3 <4.0.0",
- "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.4.tgz"
- },
- "pbkdf2-compat": {
- "version": "2.0.1",
- "from": "pbkdf2-compat@2.0.1",
- "resolved": "https://registry.npmjs.org/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz"
- },
- "pify": {
- "version": "2.3.0",
- "from": "pify@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz"
- },
- "pinkie": {
- "version": "2.0.4",
- "from": "pinkie@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz"
- },
- "pinkie-promise": {
- "version": "2.0.1",
- "from": "pinkie-promise@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz"
- },
- "popsicle": {
- "version": "5.0.1",
- "from": "popsicle@>=5.0.0 <6.0.0",
- "resolved": "https://registry.npmjs.org/popsicle/-/popsicle-5.0.1.tgz"
- },
- "popsicle-proxy-agent": {
- "version": "1.0.0",
- "from": "popsicle-proxy-agent@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/popsicle-proxy-agent/-/popsicle-proxy-agent-1.0.0.tgz"
- },
- "popsicle-retry": {
- "version": "2.0.0",
- "from": "popsicle-retry@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/popsicle-retry/-/popsicle-retry-2.0.0.tgz"
- },
- "popsicle-status": {
- "version": "1.0.2",
- "from": "popsicle-status@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/popsicle-status/-/popsicle-status-1.0.2.tgz"
- },
- "preboot": {
- "version": "2.1.2",
- "from": "preboot@>=2.1.2 <3.0.0",
- "resolved": "https://registry.npmjs.org/preboot/-/preboot-2.1.2.tgz"
- },
- "prepend-http": {
- "version": "1.0.4",
- "from": "prepend-http@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz"
- },
- "preserve": {
- "version": "0.2.0",
- "from": "preserve@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz"
- },
- "pretty-hrtime": {
- "version": "1.0.2",
- "from": "pretty-hrtime@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.2.tgz"
- },
- "process": {
- "version": "0.11.3",
- "from": "process@>=0.11.0 <0.12.0",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.3.tgz"
- },
- "process-nextick-args": {
- "version": "1.0.7",
- "from": "process-nextick-args@>=1.0.6 <1.1.0",
- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz"
- },
- "promise-finally": {
- "version": "2.2.0",
- "from": "promise-finally@>=2.0.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/promise-finally/-/promise-finally-2.2.0.tgz"
- },
- "proto-list": {
- "version": "1.2.4",
- "from": "proto-list@>=1.2.1 <1.3.0",
- "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz"
- },
- "proxy-addr": {
- "version": "1.0.10",
- "from": "proxy-addr@>=1.0.10 <1.1.0",
- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.10.tgz"
- },
- "prr": {
- "version": "0.0.0",
- "from": "prr@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz"
- },
- "ps-tree": {
- "version": "1.1.0",
- "from": "ps-tree@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.1.0.tgz"
- },
- "public-encrypt": {
- "version": "4.0.0",
- "from": "public-encrypt@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz"
- },
- "punycode": {
- "version": "1.4.1",
- "from": "punycode@>=1.3.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz"
- },
- "q": {
- "version": "1.4.1",
- "from": "q@>=1.4.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz"
- },
- "qs": {
- "version": "6.1.0",
- "from": "qs@6.1.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.1.0.tgz"
- },
- "querystring": {
- "version": "0.2.0",
- "from": "querystring@0.2.0",
- "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz"
- },
- "querystring-es3": {
- "version": "0.2.1",
- "from": "querystring-es3@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz"
- },
- "querystringify": {
- "version": "0.0.3",
- "from": "querystringify@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-0.0.3.tgz"
- },
- "randomatic": {
- "version": "1.1.5",
- "from": "randomatic@>=1.1.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.5.tgz"
- },
- "randombytes": {
- "version": "2.0.3",
- "from": "randombytes@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.3.tgz"
- },
- "range-parser": {
- "version": "1.0.3",
- "from": "range-parser@>=1.0.3 <1.1.0",
- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz"
- },
- "raw-body": {
- "version": "2.1.6",
- "from": "raw-body@>=2.1.6 <2.2.0",
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.1.6.tgz"
- },
- "rc": {
- "version": "1.1.6",
- "from": "rc@>=1.1.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/rc/-/rc-1.1.6.tgz",
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "from": "minimist@>=1.2.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
- }
- }
- },
- "read-all-stream": {
- "version": "3.1.0",
- "from": "read-all-stream@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/read-all-stream/-/read-all-stream-3.1.0.tgz"
- },
- "read-only-stream": {
- "version": "2.0.0",
- "from": "read-only-stream@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz"
- },
- "read-pkg": {
- "version": "1.1.0",
- "from": "read-pkg@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz"
- },
- "read-pkg-up": {
- "version": "1.0.1",
- "from": "read-pkg-up@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz"
- },
- "readable-stream": {
- "version": "2.1.4",
- "from": "readable-stream@>=2.0.2 <3.0.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.1.4.tgz"
- },
- "readdirp": {
- "version": "2.0.0",
- "from": "readdirp@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.0.0.tgz",
- "dependencies": {
- "minimatch": {
- "version": "2.0.10",
- "from": "minimatch@>=2.0.10 <3.0.0",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz"
- }
- }
- },
- "rechoir": {
- "version": "0.6.2",
- "from": "rechoir@>=0.6.0 <0.7.0",
- "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz"
- },
- "redent": {
- "version": "1.0.0",
- "from": "redent@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz"
- },
- "reflect-metadata": {
- "version": "0.1.2",
- "from": "reflect-metadata@0.1.2",
- "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.2.tgz"
- },
- "regex-cache": {
- "version": "0.4.3",
- "from": "regex-cache@>=0.4.2 <0.5.0",
- "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz"
- },
- "registry-url": {
- "version": "3.1.0",
- "from": "registry-url@>=3.0.3 <4.0.0",
- "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz"
- },
- "repeat-element": {
- "version": "1.1.2",
- "from": "repeat-element@>=1.1.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz"
- },
- "repeat-string": {
- "version": "1.5.4",
- "from": "repeat-string@>=1.5.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.4.tgz"
- },
- "repeating": {
- "version": "2.0.1",
- "from": "repeating@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz"
- },
- "replace-ext": {
- "version": "0.0.1",
- "from": "replace-ext@0.0.1",
- "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz"
- },
- "requires-port": {
- "version": "1.0.0",
- "from": "requires-port@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz"
- },
- "resolve": {
- "version": "1.1.7",
- "from": "resolve@>=1.1.4 <2.0.0",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz"
- },
- "resolve-url": {
- "version": "0.2.1",
- "from": "resolve-url@>=0.2.1 <0.3.0",
- "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz"
- },
- "right-align": {
- "version": "0.1.3",
- "from": "right-align@>=0.1.1 <0.2.0",
- "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz"
- },
- "rimraf": {
- "version": "2.5.2",
- "from": "rimraf@>=2.2.8 <3.0.0",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.2.tgz",
- "dependencies": {
- "glob": {
- "version": "7.0.3",
- "from": "glob@>=7.0.0 <8.0.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.3.tgz"
- }
- }
- },
- "ripemd160": {
- "version": "1.0.1",
- "from": "ripemd160@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-1.0.1.tgz"
- },
- "rxjs": {
- "version": "5.0.0-beta.6",
- "from": "rxjs@5.0.0-beta.6",
- "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.0.0-beta.6.tgz"
- },
- "semver": {
- "version": "5.1.0",
- "from": "semver@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0||>=4.0.0 <5.0.0||>=5.0.0 <6.0.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz"
- },
- "semver-diff": {
- "version": "2.1.0",
- "from": "semver-diff@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz"
- },
- "send": {
- "version": "0.13.1",
- "from": "send@0.13.1",
- "resolved": "https://registry.npmjs.org/send/-/send-0.13.1.tgz",
- "dependencies": {
- "http-errors": {
- "version": "1.3.1",
- "from": "http-errors@>=1.3.1 <1.4.0",
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz"
- },
- "statuses": {
- "version": "1.2.1",
- "from": "statuses@>=1.2.1 <1.3.0",
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz"
- }
- }
- },
- "sequencify": {
- "version": "0.0.7",
- "from": "sequencify@>=0.0.7 <0.1.0",
- "resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz"
- },
- "serve-index": {
- "version": "1.7.3",
- "from": "serve-index@>=1.7.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.7.3.tgz",
- "dependencies": {
- "http-errors": {
- "version": "1.3.1",
- "from": "http-errors@>=1.3.1 <1.4.0",
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz"
- }
- }
- },
- "serve-static": {
- "version": "1.10.3",
- "from": "serve-static@>=1.10.2 <1.11.0",
- "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.10.3.tgz",
- "dependencies": {
- "http-errors": {
- "version": "1.3.1",
- "from": "http-errors@>=1.3.1 <1.4.0",
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz"
- },
- "send": {
- "version": "0.13.2",
- "from": "send@0.13.2",
- "resolved": "https://registry.npmjs.org/send/-/send-0.13.2.tgz"
- },
- "statuses": {
- "version": "1.2.1",
- "from": "statuses@>=1.2.1 <1.3.0",
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz"
- }
- }
- },
- "sha.js": {
- "version": "2.4.5",
- "from": "sha.js@>=2.3.6 <3.0.0",
- "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.5.tgz"
- },
- "shasum": {
- "version": "1.0.2",
- "from": "shasum@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz"
- },
- "shell-quote": {
- "version": "1.6.0",
- "from": "shell-quote@>=1.4.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.0.tgz"
- },
- "sigmund": {
- "version": "1.0.1",
- "from": "sigmund@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz"
- },
- "signal-exit": {
- "version": "2.1.2",
- "from": "signal-exit@>=2.1.2 <3.0.0",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-2.1.2.tgz"
- },
- "slide": {
- "version": "1.1.6",
- "from": "slide@>=1.1.5 <2.0.0",
- "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz"
- },
- "sockjs": {
- "version": "0.3.17",
- "from": "sockjs@>=0.3.15 <0.4.0",
- "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.17.tgz"
- },
- "sockjs-client": {
- "version": "1.1.1",
- "from": "sockjs-client@>=1.0.3 <2.0.0",
- "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.1.1.tgz",
- "dependencies": {
- "faye-websocket": {
- "version": "0.11.0",
- "from": "faye-websocket@>=0.11.0 <0.12.0",
- "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.0.tgz"
- }
- }
- },
- "sort-keys": {
- "version": "1.1.2",
- "from": "sort-keys@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz"
- },
- "source-list-map": {
- "version": "0.1.6",
- "from": "source-list-map@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.6.tgz"
- },
- "source-map": {
- "version": "0.1.43",
- "from": "source-map@>=0.1.38 <0.2.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz"
- },
- "source-map-resolve": {
- "version": "0.3.1",
- "from": "source-map-resolve@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz"
- },
- "source-map-url": {
- "version": "0.3.0",
- "from": "source-map-url@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz"
- },
- "sparkles": {
- "version": "1.0.0",
- "from": "sparkles@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz"
- },
- "spdx-correct": {
- "version": "1.0.2",
- "from": "spdx-correct@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz"
- },
- "spdx-exceptions": {
- "version": "1.0.4",
- "from": "spdx-exceptions@>=1.0.4 <2.0.0",
- "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-1.0.4.tgz"
- },
- "spdx-expression-parse": {
- "version": "1.0.2",
- "from": "spdx-expression-parse@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz"
- },
- "spdx-license-ids": {
- "version": "1.2.1",
- "from": "spdx-license-ids@>=1.0.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.1.tgz"
- },
- "split": {
- "version": "0.3.3",
- "from": "split@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz"
- },
- "statuses": {
- "version": "1.3.0",
- "from": "statuses@>=1.2.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.0.tgz"
- },
- "stream-browserify": {
- "version": "2.0.1",
- "from": "stream-browserify@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz"
- },
- "stream-cache": {
- "version": "0.0.2",
- "from": "stream-cache@>=0.0.1 <0.1.0",
- "resolved": "https://registry.npmjs.org/stream-cache/-/stream-cache-0.0.2.tgz"
- },
- "stream-combiner": {
- "version": "0.0.4",
- "from": "stream-combiner@>=0.0.4 <0.1.0",
- "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz"
- },
- "stream-combiner2": {
- "version": "1.1.1",
- "from": "stream-combiner2@>=1.1.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz"
- },
- "stream-consume": {
- "version": "0.1.0",
- "from": "stream-consume@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz"
- },
- "stream-http": {
- "version": "2.3.0",
- "from": "stream-http@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.3.0.tgz"
- },
- "stream-splicer": {
- "version": "2.0.0",
- "from": "stream-splicer@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz"
- },
- "streamqueue": {
- "version": "0.0.6",
- "from": "streamqueue@0.0.6",
- "resolved": "https://registry.npmjs.org/streamqueue/-/streamqueue-0.0.6.tgz",
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.1.14",
- "from": "readable-stream@>=1.0.26-2 <2.0.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
- }
- }
- },
- "string_decoder": {
- "version": "0.10.31",
- "from": "string_decoder@>=0.10.0 <0.11.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"
- },
- "string-length": {
- "version": "1.0.1",
- "from": "string-length@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/string-length/-/string-length-1.0.1.tgz"
- },
- "string-template": {
- "version": "1.0.0",
- "from": "string-template@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/string-template/-/string-template-1.0.0.tgz"
- },
- "string-width": {
- "version": "1.0.1",
- "from": "string-width@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.1.tgz"
- },
- "strip-ansi": {
- "version": "3.0.1",
- "from": "strip-ansi@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz"
- },
- "strip-bom": {
- "version": "2.0.0",
- "from": "strip-bom@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz"
- },
- "strip-indent": {
- "version": "1.0.1",
- "from": "strip-indent@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz"
- },
- "strip-json-comments": {
- "version": "1.0.4",
- "from": "strip-json-comments@>=1.0.4 <1.1.0",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz"
- },
- "subarg": {
- "version": "1.0.0",
- "from": "subarg@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz",
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "from": "minimist@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
- }
- }
- },
- "supports-color": {
- "version": "2.0.0",
- "from": "supports-color@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz"
- },
- "syntax-error": {
- "version": "1.1.6",
- "from": "syntax-error@>=1.1.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.1.6.tgz",
- "dependencies": {
- "acorn": {
- "version": "2.7.0",
- "from": "acorn@>=2.7.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz"
- }
- }
- },
- "tapable": {
- "version": "0.1.10",
- "from": "tapable@>=0.1.8 <0.2.0",
- "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz"
- },
- "thenify": {
- "version": "3.2.0",
- "from": "thenify@>=3.1.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.2.0.tgz"
- },
- "throat": {
- "version": "2.0.2",
- "from": "throat@>=2.0.2 <3.0.0",
- "resolved": "https://registry.npmjs.org/throat/-/throat-2.0.2.tgz"
- },
- "through": {
- "version": "2.3.8",
- "from": "through@>=2.2.7 <3.0.0",
- "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz"
- },
- "through2": {
- "version": "2.0.1",
- "from": "through2@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz",
- "dependencies": {
- "readable-stream": {
- "version": "2.0.6",
- "from": "readable-stream@>=2.0.0 <2.1.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
- }
- }
- },
- "tildify": {
- "version": "1.2.0",
- "from": "tildify@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz"
- },
- "time-stamp": {
- "version": "1.0.1",
- "from": "time-stamp@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.0.1.tgz"
- },
- "timed-out": {
- "version": "2.0.0",
- "from": "timed-out@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-2.0.0.tgz"
- },
- "timers-browserify": {
- "version": "1.4.2",
- "from": "timers-browserify@>=1.0.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz"
- },
- "to-arraybuffer": {
- "version": "1.0.1",
- "from": "to-arraybuffer@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz"
- },
- "touch": {
- "version": "1.0.0",
- "from": "touch@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/touch/-/touch-1.0.0.tgz",
- "dependencies": {
- "nopt": {
- "version": "1.0.10",
- "from": "nopt@>=1.0.10 <1.1.0",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz"
- }
- }
- },
- "tough-cookie": {
- "version": "2.2.2",
- "from": "tough-cookie@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.2.tgz"
- },
- "trim-newlines": {
- "version": "1.0.0",
- "from": "trim-newlines@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz"
- },
- "tty-browserify": {
- "version": "0.0.0",
- "from": "tty-browserify@>=0.0.0 <0.1.0",
- "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz"
- },
- "type-is": {
- "version": "1.6.13",
- "from": "type-is@>=1.6.12 <1.7.0",
- "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.13.tgz"
- },
- "typedarray": {
- "version": "0.0.6",
- "from": "typedarray@>=0.0.5 <0.1.0",
- "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz"
- },
- "typescript": {
- "version": "1.8.10",
- "from": "typescript@1.8.10",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-1.8.10.tgz"
- },
- "typings": {
- "version": "0.8.1",
- "from": "typings@>=0.8.1 <0.9.0",
- "resolved": "https://registry.npmjs.org/typings/-/typings-0.8.1.tgz",
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "from": "minimist@>=1.2.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
- },
- "wordwrap": {
- "version": "1.0.0",
- "from": "wordwrap@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz"
- }
- }
- },
- "typings-core": {
- "version": "0.3.1",
- "from": "typings-core@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/typings-core/-/typings-core-0.3.1.tgz"
- },
- "uglify-js": {
- "version": "2.6.2",
- "from": "uglify-js@2.6.2",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.6.2.tgz",
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "from": "source-map@>=0.5.1 <0.6.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz"
- }
- }
- },
- "uglify-save-license": {
- "version": "0.4.1",
- "from": "uglify-save-license@>=0.4.1 <0.5.0",
- "resolved": "https://registry.npmjs.org/uglify-save-license/-/uglify-save-license-0.4.1.tgz"
- },
- "uglify-to-browserify": {
- "version": "1.0.2",
- "from": "uglify-to-browserify@>=1.0.0 <1.1.0",
- "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz"
- },
- "umd": {
- "version": "3.0.1",
- "from": "umd@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.1.tgz"
- },
- "unc-path-regex": {
- "version": "0.1.2",
- "from": "unc-path-regex@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz"
- },
- "undefsafe": {
- "version": "0.0.3",
- "from": "undefsafe@0.0.3",
- "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-0.0.3.tgz"
- },
- "unique-stream": {
- "version": "1.0.0",
- "from": "unique-stream@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz"
- },
- "unpipe": {
- "version": "1.0.0",
- "from": "unpipe@1.0.0",
- "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz"
- },
- "unzip-response": {
- "version": "1.0.0",
- "from": "unzip-response@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.0.tgz"
- },
- "update-notifier": {
- "version": "0.6.3",
- "from": "update-notifier@>=0.6.0 <0.7.0",
- "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-0.6.3.tgz"
- },
- "urix": {
- "version": "0.1.0",
- "from": "urix@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz"
- },
- "url": {
- "version": "0.11.0",
- "from": "url@>=0.11.0 <0.12.0",
- "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",
- "dependencies": {
- "punycode": {
- "version": "1.3.2",
- "from": "punycode@1.3.2",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz"
- }
- }
- },
- "url-parse": {
- "version": "1.1.1",
- "from": "url-parse@>=1.1.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.1.1.tgz"
- },
- "url-parse-lax": {
- "version": "1.0.0",
- "from": "url-parse-lax@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz"
- },
- "user-home": {
- "version": "1.1.1",
- "from": "user-home@>=1.1.1 <2.0.0",
- "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz"
- },
- "util": {
- "version": "0.10.3",
- "from": "util@>=0.10.1 <0.11.0",
- "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz"
- },
- "util-deprecate": {
- "version": "1.0.2",
- "from": "util-deprecate@>=1.0.1 <1.1.0",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
- },
- "utils-merge": {
- "version": "1.0.0",
- "from": "utils-merge@1.0.0",
- "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz"
- },
- "uuid": {
- "version": "2.0.2",
- "from": "uuid@>=2.0.1 <3.0.0",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz"
- },
- "v8flags": {
- "version": "2.0.11",
- "from": "v8flags@>=2.0.2 <3.0.0",
- "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.0.11.tgz"
- },
- "validate-npm-package-license": {
- "version": "3.0.1",
- "from": "validate-npm-package-license@>=3.0.1 <4.0.0",
- "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz"
- },
- "vary": {
- "version": "1.0.1",
- "from": "vary@>=1.0.1 <1.1.0",
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.0.1.tgz"
- },
- "vinyl": {
- "version": "0.5.3",
- "from": "vinyl@>=0.5.0 <0.6.0",
- "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz"
- },
- "vinyl-buffer": {
- "version": "1.0.0",
- "from": "vinyl-buffer@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/vinyl-buffer/-/vinyl-buffer-1.0.0.tgz",
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.0.34",
- "from": "readable-stream@>=1.0.33-1 <1.1.0-0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz"
- },
- "through2": {
- "version": "0.6.5",
- "from": "through2@>=0.6.1 <0.7.0",
- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz"
- }
- }
- },
- "vinyl-fs": {
- "version": "0.3.14",
- "from": "vinyl-fs@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.14.tgz",
- "dependencies": {
- "clone": {
- "version": "0.2.0",
- "from": "clone@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz"
- },
- "graceful-fs": {
- "version": "3.0.8",
- "from": "graceful-fs@>=3.0.0 <4.0.0",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.8.tgz"
- },
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.0.34",
- "from": "readable-stream@>=1.0.33-1 <1.1.0-0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz"
- },
- "strip-bom": {
- "version": "1.0.0",
- "from": "strip-bom@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz"
- },
- "through2": {
- "version": "0.6.5",
- "from": "through2@>=0.6.1 <0.7.0",
- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz"
- },
- "vinyl": {
- "version": "0.4.6",
- "from": "vinyl@>=0.4.0 <0.5.0",
- "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz"
- }
- }
- },
- "vinyl-source-stream": {
- "version": "1.1.0",
- "from": "vinyl-source-stream@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.0.tgz",
- "dependencies": {
- "clone": {
- "version": "0.2.0",
- "from": "clone@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz"
- },
- "isarray": {
- "version": "0.0.1",
- "from": "isarray@0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "readable-stream": {
- "version": "1.0.34",
- "from": "readable-stream@>=1.0.33-1 <1.1.0-0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz"
- },
- "through2": {
- "version": "0.6.5",
- "from": "through2@>=0.6.1 <0.7.0",
- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz"
- },
- "vinyl": {
- "version": "0.4.6",
- "from": "vinyl@>=0.4.3 <0.5.0",
- "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz"
- }
- }
- },
- "vinyl-sourcemaps-apply": {
- "version": "0.2.1",
- "from": "vinyl-sourcemaps-apply@>=0.2.0 <0.3.0",
- "resolved": "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz",
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "from": "source-map@>=0.5.1 <0.6.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz"
- }
- }
- },
- "vm-browserify": {
- "version": "0.0.4",
- "from": "vm-browserify@>=0.0.1 <0.1.0",
- "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz"
- },
- "watchpack": {
- "version": "0.2.9",
- "from": "watchpack@>=0.2.1 <0.3.0",
- "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-0.2.9.tgz",
- "dependencies": {
- "async": {
- "version": "0.9.2",
- "from": "async@>=0.9.0 <0.10.0",
- "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz"
- }
- }
- },
- "wcwidth": {
- "version": "1.0.1",
- "from": "wcwidth@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz"
- },
- "webpack-core": {
- "version": "0.6.8",
- "from": "webpack-core@>=0.6.0 <0.7.0",
- "resolved": "https://registry.npmjs.org/webpack-core/-/webpack-core-0.6.8.tgz",
- "dependencies": {
- "source-map": {
- "version": "0.4.4",
- "from": "source-map@>=0.4.1 <0.5.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz"
- }
- }
- },
- "webpack-dev-middleware": {
- "version": "1.6.1",
- "from": "webpack-dev-middleware@>=1.4.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.6.1.tgz",
- "dependencies": {
- "memory-fs": {
- "version": "0.3.0",
- "from": "memory-fs@>=0.3.0 <0.4.0",
- "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.3.0.tgz"
- }
- }
- },
- "websocket-driver": {
- "version": "0.6.5",
- "from": "websocket-driver@>=0.5.1",
- "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.6.5.tgz"
- },
- "websocket-extensions": {
- "version": "0.1.1",
- "from": "websocket-extensions@>=0.1.1",
- "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.1.tgz"
- },
- "widest-line": {
- "version": "1.0.0",
- "from": "widest-line@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-1.0.0.tgz"
- },
- "window-size": {
- "version": "0.1.0",
- "from": "window-size@0.1.0",
- "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz"
- },
- "wordwrap": {
- "version": "0.0.2",
- "from": "wordwrap@0.0.2",
- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz"
- },
- "wrappy": {
- "version": "1.0.2",
- "from": "wrappy@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
- },
- "write-file-atomic": {
- "version": "1.1.4",
- "from": "write-file-atomic@>=1.1.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.1.4.tgz"
- },
- "xdg-basedir": {
- "version": "2.0.0",
- "from": "xdg-basedir@>=2.0.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-2.0.0.tgz"
- },
- "xhr2": {
- "version": "0.1.3",
- "from": "xhr2@>=0.1.3 <0.2.0",
- "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.3.tgz"
- },
- "xtend": {
- "version": "4.0.1",
- "from": "xtend@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz"
- },
- "yargs": {
- "version": "3.10.0",
- "from": "yargs@>=3.10.0 <3.11.0",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",
- "dependencies": {
- "camelcase": {
- "version": "1.2.1",
- "from": "camelcase@>=1.0.2 <2.0.0",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz"
- }
- }
- },
- "zip-object": {
- "version": "0.1.0",
- "from": "zip-object@>=0.1.0 <0.2.0",
- "resolved": "https://registry.npmjs.org/zip-object/-/zip-object-0.1.0.tgz"
- },
- "zone.js": {
- "version": "0.6.12",
- "from": "zone.js@>=0.6.11 <0.7.0",
- "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.6.12.tgz"
- }
- }
-}
diff --git a/portal/package.json b/portal/package.json
deleted file mode 100644
index a234d45a..00000000
--- a/portal/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "uoa-services-portal",
- "version": "1.0.0",
- "description": "Open Access Infrastructure for Research in Europe ",
- "scripts": {
- "postinstall": "typings install",
- "watch": "webpack --watch",
- "prebuild": "rimraf dist",
- "build": "webpack",
- "prestart": "npm run build",
- "server": "nodemon dist/server/bundle.js",
- "start": "npm run server",
- "predebug": "npm run build",
- "debug": "node --debug-brk dist/server/bundle.js"
- },
- "license": "UOA",
- "dependencies": {
- "@angular/common": "2.0.0-rc.1",
- "@angular/compiler": "2.0.0-rc.1",
- "@angular/core": "2.0.0-rc.1",
- "@angular/http": "2.0.0-rc.1",
- "@angular/platform-browser": "2.0.0-rc.1",
- "@angular/platform-browser-dynamic": "2.0.0-rc.1",
- "@angular/platform-server": "2.0.0-rc.1",
- "@angular/router-deprecated": "2.0.0-rc.1",
- "angular2-universal": "~0.101.8",
- "body-parser": "^1.15.1",
- "bootstrap": "^3.3.6",
- "express": "^4.13.4",
- "preboot": "^2.1.2",
- "rxjs": "5.0.0-beta.6"
- },
- "devDependencies": {
- "nodemon": "^1.9.2",
- "rimraf": "^2.5.2",
- "ts-loader": "^0.8.2",
- "typescript": "^1.8.9",
- "typings": "~0.8.1",
- "webpack": "^1.13.1",
- "webpack-dev-server": "^1.14.0",
- "webpack-merge": "^0.13.0"
- }
-}
\ No newline at end of file
diff --git a/portal/src/app/app.component.ts b/portal/src/app/app.component.ts
deleted file mode 100644
index c07882ec..00000000
--- a/portal/src/app/app.component.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-import {Component, Directive, ElementRef, Renderer} from '@angular/core';
-import {RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {Http} from '@angular/http';
-import {SearchComponent} from './searchPages/search.component';
-import {ClaimComponent} from './claimPages/claim/claim.component';
-import {ClaimsAdminComponent} from './claimPages/claims/claimsAdmin.component';
-import {HomeComponent} from './home/home.component';
-import {LinkingComponent} from './claimPages/linking/linking.component';
-import {LinkingHomeComponent} from './claimPages/linking/linkingHome.component';
-import {MyClaimsComponent} from './claimPages/myClaims/myClaims.component';
-import {ProjectComponent} from './landingPages/project/project.component';
-import {PublicationComponent} from './landingPages/publication/publication.component';
-import {DatasetComponent} from './landingPages/dataset/dataset.component';
-import {PersonComponent} from './landingPages/person/person.component';
-import {MyClaimsDemoComponent} from './claimPages/myClaimsDemo.component';
-import {SearchPublicationsComponent} from './searchPages/searchPublications.component';
-import 'rxjs/Rx';
-
-
-
-@Component({
- selector: 'app',
- directives: [
- ...ROUTER_DIRECTIVES, SearchPublicationsComponent
- ],
- styles: [`
- .router-link-active {
- background-color: lightgray;
- }
- `],
- template: `
-
- `
-})
-@RouteConfig([
- { path: '/', component: HomeComponent, name: 'Home', useAsDefault: true },
- { path: '/home', component: HomeComponent, name: 'Home' },
- { path: '/claims', component: ClaimsAdminComponent, name: 'Claims' },
- { path: '/claim', component: ClaimComponent, name: 'Claim' },
- { path: '/search', component: SearchComponent, name: 'Search' },
- { path: '/linking', component: LinkingComponent, name: 'Linking' },
- { path: '/my-claims', component: MyClaimsComponent, name: 'MyClaims' },
- { path: '/demo', component: MyClaimsDemoComponent, name: 'MyClaimsDemo' },
- { path: '/project', component: ProjectComponent, name: 'Project' },
- { path: '/publication', component: PublicationComponent, name: 'Publication' },
- { path: '/dataset', component: DatasetComponent, name: 'Dataset' },
- { path: '/person', component: PersonComponent, name: 'Person' },
- { path: '/search-publications', component: SearchPublicationsComponent, name: 'SearchPublications' }
-
-])
-export class App {
- name: string = 'Angular 2';
- data = {};
- server;
-
- constructor(public http: Http ) {
-
- }
-
-
- ngOnInit() {
- setTimeout(() => {
- this.server = 'Rendered on the Server';
- }, 10);
-
- }
-
-}
diff --git a/portal/src/app/claimPages/bulkClaim/bulkLinking.component.ts b/portal/src/app/claimPages/bulkClaim/bulkLinking.component.ts
deleted file mode 100644
index a572591b..00000000
--- a/portal/src/app/claimPages/bulkClaim/bulkLinking.component.ts
+++ /dev/null
@@ -1,178 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-
-// import {ClaimsComponent} from '../claims/claims.component';
-
-
-@Component({
- selector: 'linking',
- directives: [ROUTER_DIRECTIVES ],
- template: `
-
-
-
-`
-
-})
-//[(ngModel)]="date"
-export class LinkingComponent {
- constructor ( private _router: Router ) {
- }
- sourceType:string;
- targetType:string;
- step:number = 1;
- contexts=[];
- projects=[];
- publications=[];
- datasets=[];
- show = "home";
- searchType="publication"; //publication or dataset
- date='8-6-2016';
- keyword: string = "";
- linkType:string ="project"; // link type (selected in home page) : project, context, software, etc
- ngOnInit() {
-
- }
- next(){
-
- if((this.show == 'project' || this.show == 'context' || this.show == 'software')){
- this.show='result';
- }else if((this.show == 'result' && this.keyword == '')||(this.show == 'dataset' || this.show == 'publication')){
- this.show='claim';
- // }else if(this.show == 'result' ){
- // if(this.searchType == 'publication' ){
- // this.show="publication";
- // }else{
- // this.show="dataset";
- // }
- }
- }
- prev(){
- if(this.show == 'result'){
- this.show = this.linkType;
- // if(this.linkType == 'project'){
- // this.show='project';
- // }else if(this.linkType == 'context'){
- // this.show='context';
- // }else if(this.linkType == 'software'){
- // this.show='software';
- // }else{
- // this.show='home';
- //
- // }
- }else if(this.show == 'context' || this.show == 'project' || this.show == 'software' ){
- this.show='home';
- // }else if(this.show == 'dataset' || this.show == 'publication'){
- // this.show='result';
- } else if(this.show == 'claim'){
- this.show='result';
- }
- }
- goto(term: string) {
- this._router.navigate( ['Search', { keyword: term }] );
- }
-
- search() {
- if(this.searchType == 'publication' ){
- this.show="publication";
- }else{
- this.show="dataset";
- }
-
- }
-
- sourceTypeChange($event) {
- this.sourceType=$event.value;
- console.log($event.value);
- }
- targetTypeChange($event) {
- this.targetType=$event.value;
- console.log($event.value);
- }
- contextsChange($event) {
- this.contexts=$event.value;
- console.log($event.value);
- }
- publicationsChange($event) {
- this.publications=$event.value;
- }
- datasetsChange($event) {
- this.datasets=$event.value;
- }
- projectsChange($event) {
- this.projects=$event.value;
- }
- typeChanged(type:string) {
- this.searchType = type;
- }
- linkTypeChange($event) {
- this.linkType =$event.value;
- this.show=$event.value;
-
- }
- showChange($event) {
- this.show=$event.value;
- this.showChangedType($event.value);
-
-
- }
- showChangedType(type:string) {
- this.show=type;
- if(this.show == 'project' || this.show == 'context' || this.show == 'software'){
- this.linkType = this.show;
- }
-
-
- }
-}
diff --git a/portal/src/app/claimPages/claim/claim.component.html b/portal/src/app/claimPages/claim/claim.component.html
deleted file mode 100644
index 41ecc151..00000000
--- a/portal/src/app/claimPages/claim/claim.component.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
Here is the claim with id : {{id}}
-
- {{claim.id }} || {{claim.userMail }} ||
- {{claim | json}} {{claim | json}}
-
-
-
diff --git a/portal/src/app/claimPages/claim/claim.component.ts b/portal/src/app/claimPages/claim/claim.component.ts
deleted file mode 100644
index f8cc6706..00000000
--- a/portal/src/app/claimPages/claim/claim.component.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import {Component} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-import {ClaimsService} from '../../services/claims.service';
-import {Claim} from '../../entities/claim';
-
-@Component({
- selector: 'claim',
- templateUrl: 'src/app/claimPages/claim/claim.component.html',
- providers:[ ClaimsService, JSONP_PROVIDERS, ...ROUTER_DIRECTIVES]
-
-})
-export class ClaimComponent {
- constructor (private _claimService: ClaimsService,
- private _routeParams: RouteParams) {}
- ngOnInit() {
-
- this.id = this._routeParams.get('id');
- if(this.id!=null){
- this.getClaim(this.id);
- }
-
-}
-
- id : string;
- claim : any;
- getClaim (id: string) {
- this._claimService.getClaim(id)
- .then(data => {
- this.claim = data;
- console.log(data);
- }) ;
- }
-
-
-}
diff --git a/portal/src/app/claimPages/claims/claims.component.html b/portal/src/app/claimPages/claims/claims.component.html
deleted file mode 100644
index 789da0d9..00000000
--- a/portal/src/app/claimPages/claims/claims.component.html
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
Claims related to
-
-
-
-
-
-
-
-
-
-
diff --git a/portal/src/app/claimPages/claims/claims.component.ts b/portal/src/app/claimPages/claims/claims.component.ts
deleted file mode 100644
index 3e83ad13..00000000
--- a/portal/src/app/claimPages/claims/claims.component.ts
+++ /dev/null
@@ -1,377 +0,0 @@
-import {Component, ViewChild, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Location} from '@angular/common';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimsService} from '../../services/claims.service';
-import {Claim} from '../../entities/claim';
-import {ClaimTextFilterPipe} from '../../pipes/claimTextFilter.pipe';
-import {ClaimTypeFilterPipe} from '../../pipes/claimTypeFilter.pipe';
-import {PagingFormatter} from '../../common/pagingFormatter.component';
-import {pagingFormatterNoLoad} from '../../common/pagingFormatterNoLoad.component';
-import {ClaimEntityFormatter} from '../../common/claimEntityFormatter.component';
-import {Alert} from '../../common/modal/alert';
-import {Loading} from '../../common/modal/loading.component';
-
-@Component({
- selector: 'claims',
- directives: [...ROUTER_DIRECTIVES, PagingFormatter, pagingFormatterNoLoad, ClaimEntityFormatter, Alert, Loading],
- templateUrl: 'src/app/claimPages/claims/claims.component.html',
- providers:[ ClaimsService, JSONP_PROVIDERS],
- pipes: [ClaimTextFilterPipe, ClaimTypeFilterPipe]
-
-})
-export class ClaimsComponent {
- constructor (private _claimService: ClaimsService, private _routeParams: RouteParams, private _router:Router, private location: Location) {
- }
-
- ngOnInit() {
- console.info(this.isAdmin+" "+this.myClaims+" Fetch by: "+this.fetchBy+" Fetch id: "+this.fetchId);
- if( this.myClaims == 'true' ){
- console.info("Is myclaims");
- this.fetchBy = "User";
- }else{
- console.info("Is admin");
-
- console.info(this.isAdmin);
-
- this.fetchBy = this._routeParams.get('fetchBy');
- this.fetchBy = (this.types.indexOf(this.fetchBy) != -1)? this.fetchBy:'All';
- this.fetchId = this._routeParams.get('fetchId');
- console.info("Fetch by:"+this.fetchBy+"Fetch id:"+this.fetchId);
- this.fetchId=this.fetchId?this.fetchId:'';
-
- }
- console.info(this.isAdmin+" "+this.myClaims+" Fetch by: "+this.fetchBy+" Fetch id: "+this.fetchId);
-
- let page = +this._routeParams.get('page');
- let size = +this._routeParams.get('size');
- this.keyword = (this._routeParams.get('keyword')?this._routeParams.get('keyword'):"");
- this.inputkeyword = this.keyword;
- this.page = ( page <= 0 ) ? 1 : page;
- this.size = ( size <= 0 ) ? 10 : size;
- this.entityTypes = (this._routeParams.get('types')?this._routeParams.get('types'):'');
- this.setTypes(); // check the appropriate checkboxes
- this.setSortby(this._routeParams.get('sort'));
- this.getClaims();
-
- }
- //string because comes as input from component directive
- @Input() enableDelete: string = 'false';
- @Input() myClaims: string= 'false' ;
- @Input() isAdmin:string = 'false';
- page : number;
- size:number;
- keyword:string; // the keyword string to give to the request as parameter
- inputkeyword:string; // the string written in the input field (keyword=inputkeyword when its length is bigger than 3 and the user stops typing)
- lengths = [10,20,30,50];
- types = ["All","Project","Context","Result","User"];
- @Input() fetchBy:string;
- @Input() fetchId:string;
-
- navigateTo: string = "Claims";
- resultsNum: number ;
- claims: string[];
-
- @ViewChild (Loading) loading : Loading ;
-
- //checkboxes:
- publicationCB = false;
- datasetCB = false;
- contextCB = false;
- projectCB = false;
- entityTypes : string ='' ;
-
- descending = true;
- sortby = "date";
-
- selected=[];
- selectAllClaims:boolean = false;
-
-
-
- //params for pagingFormatter to use when navigate to page
- params;
- @ViewChild(Alert) alert;
-
- claimsDeleted:number = 0;
-
- getClaims () {
- this.selectAllClaims = false;
- this.selected=[];
- if(this.fetchBy =="Project" ){
- this._claimService.getClaimsByProject(this.size,this.page,this.fetchId,this.keyword,this.sortby,this.descending, this.entityTypes).subscribe(
- data => {
- this.claims = data.data;
- this.resultsNum= data.total;
- },
- err => console.error(err)
- );
- }else if(this.fetchBy =="User"){
- console.info("Fetch by:"+this.fetchBy+"Fetch id:"+this.fetchId);
-
- this._claimService.getClaimsByUser(this.size,this.page,this.fetchId,this.keyword,this.sortby,this.descending, this.entityTypes).subscribe(
- data => {
- this.claims = data.data;
- this.resultsNum= data.total;
- },
- err => console.error(err)
- );
- }else if(this.fetchBy =="Result"){
- this._claimService.getClaimsByResult(this.size,this.page,this.fetchId,this.keyword,this.sortby,this.descending, this.entityTypes).subscribe(
- data => {
- this.claims = data.data;
- this.resultsNum= data.total;
- },
- err => console.error(err)
- );
- }else if(this.fetchBy =="Context"){
- this._claimService.getClaimsBycontext(this.size,this.page,this.fetchId,this.keyword,this.sortby,this.descending, this.entityTypes).subscribe(
- data => {
- this.claims = data.data;
- this.resultsNum= null;
- this.resultsNum= data.total;//data.length; //TODO get the total results num
- },
- err => console.error(err)
- );
- }else{
- this._claimService.getClaims(this.size,this.page,this.keyword,this.sortby,this.descending, this.entityTypes).subscribe(
- data => {
- this.claims = data.data;
- this.resultsNum = null;
- this.resultsNum= data.total;//data.length; //TODO get the total results num
- },
- err => console.error(err)
- );
- }
- }
-
- goToClaim(claimId: number){
- this._router.navigate( ['Claim', { id: claimId}] );
- }
- goTo(page:number = 1){
-
- this.page = page;
-
- this.location.go(location.pathname,this.getParametersString());
- this.getClaims();
- // console.info("In goto - params( page:"+params.page+", size: "+params.size+", fetchId:"+params.fetchId);
- //this._router.navigate( [this.navigateTo,this.getParameters()] );
- }
- getParameters(){
- let params={ page: this.page, size: this.size, types: this.entityTypes, fetchBy: this.fetchBy, fetchId:this.fetchId, keyword : this.keyword, sort: this.getSortby() };
- return params;
- }
- getParametersString(){
- var params='';
- params+=(this.page==1?"":(params.length>0?'&':'')+"page="+this.page);
- params+=(this.size==10?"":(params.length>0?'&':'')+"size="+this.size);
- params+=(this.entityTypes==''?"":(params.length>0?'&':'')+"types="+this.entityTypes);
- if(this.isAdmin === 'true'){
- params+=(this.fetchBy=='All'?"":(params.length>0?'&':'')+"fetchBy="+this.fetchBy);
- params+=(this.fetchId==''?"":(params.length>0?'&':'')+"fetchId="+this.fetchId);
- }
- params+=(this. getSortby()=='datedesc'?"":(params.length>0?'&':'')+"sort="+this. getSortby());
- params+=(this.keyword==''?"":(params.length>0?'&':'')+"keyword="+this.keyword);
- return params;
- }
- changeLength(){
- this.goTo();
- }
- clearFilters(){
- this.keyword = '';
- this.inputkeyword = '';
- this.publicationCB = false;
- this.projectCB = false;
- this.datasetCB = false;
- this.contextCB = false;
- this.entityTypes = '';
- this.goTo();
- }
- changeOrderby(sortby:string){
- if(sortby==this.sortby){
- this.descending = !this.descending;
- }else{
- this.sortby = sortby;
- this.descending = false;
- }
- this.goTo();
- }
- setSortby(sortby:string){
- if(!sortby|| sortby == "datedesc"){
- this.descending = true;
- this.sortby = "date";
- }else if(sortby == "dateasc"){
- this.descending = false;
- this.sortby = "date";
- }else if(sortby == "userasc"){
- this.descending = false;
- this.sortby = "user";
- }else if(sortby == "userdesc"){
- this.descending = true;
- this.sortby = "user";
- }if(sortby =="sourceasc"){
- this.descending = false;
- this.sortby = "source";
- }else if(sortby == "sourcedesc"){
- this.descending = true;
- this.sortby = "source";
- }else if(sortby == "targetasc"){
- this.descending = false;
- this.sortby = "target";
- }else if(sortby == "targetdesc"){
- this.descending = true;
- this.sortby = "target";
- }
- }
- getSortby():string{
- if(this.descending){
- return this.sortby+"desc";
- }else{
- return this.sortby+"asc";
- }
-
- }
- changeType(){
- console.debug("ChangingType: "+this.entityTypes+" types"+this.publicationCB+ this.datasetCB + this.contextCB + this.projectCB);
- if(this.publicationCB == true && this.datasetCB == true && this.contextCB == true && this.projectCB == true ){
- this.entityTypes="";
- }else{
- this.entityTypes = "";
- if(this.publicationCB == true){
- this.entityTypes = "publication";
- }
- if(this.datasetCB == true){
- this.entityTypes += (this.entityTypes.length > 0?",":"")+"dataset";
- }
- if(this.contextCB == true){
- this.entityTypes += (this.entityTypes.length > 0?",":"")+"context";
- }
- if(this.projectCB == true){
- this.entityTypes += (this.entityTypes.length > 0?",":"")+"project";
- }
- }
- console.debug("Type changed: "+this.entityTypes+" "+this.publicationCB+ this.datasetCB + this.contextCB + this.projectCB);
- this.goTo();
- }
- setTypes(){
- if(this.entityTypes.length > 0){
- if(this.entityTypes.indexOf("publication")!=-1){
- this.publicationCB = true;
- }
- if(this.entityTypes.indexOf("dataset")!=-1){
- this.datasetCB = true;
- }
- if(this.entityTypes.indexOf("project")!=-1){
- this.projectCB = true;
- }
- if(this.entityTypes.indexOf("context")!=-1){
- this.contextCB = true;
- }
- }
- if(this.publicationCB && this.datasetCB && this.contextCB && this.projectCB){
- this.entityTypes='';
- }else{
- if(this.publicationCB){
- this.entityTypes = "publication";
- }
- if(this.datasetCB){
- this.entityTypes = (this.entityTypes.length > 0?",":"")+"dataset";
- }
- if(this.contextCB){
- this.entityTypes = (this.entityTypes.length > 0?",":"")+"context";
- }
- if(this.projectCB){
- this.entityTypes = (this.entityTypes.length > 0?",":"")+"project";
- }
- }
- }
- changekeyword(){
-
- if(this.inputkeyword.length >= 3 || this.inputkeyword.length == 0 ){
- this.keyword = this.inputkeyword;
- this.page = 1;
- this.goTo();
- }
-
- }
- select(item:any,event){
- var value = event.currentTarget.checked;
- console.debug("value:"+value);
- if(value){
- this.selectAllClaims = false;
- this.selected.push(item);
- console.debug("select one more! with id:"+item.id);
- }else{
-
- var index:number =this.selected.indexOf(item);
- console.info("Try to remove item from :"+this.selected.indexOf(item));
- if (index > -1) {
- this.selected.splice(index, 1);
- }
- console.info("Item removed "+this.selected.indexOf(item));
- }
- }
- selectAll(){
- this.selectAllClaims = true;
- this.selected = this.claims;
- }
- deselectAll(){
- this.selectAllClaims = false;
- this.selected = [];
- }
-
- confirmOpen(){
- this.alert.cancelButton = true;
- this.alert.okButton = true;
- this.alert.alertTitle = "Delete "+this.selected.length+" claim(s)";
- this.alert.message = this.selected.length+" claims will be deleted. Do you want to proceed? ";
- this.alert.okButtonText = "Yes";
- this.alert.cancelButtonText = "No";
- this.alert.open();
- }
- confirmClose(data){
- this.delete();
- }
- delete(){
- this.loading.open();
- this.claimsDeleted = 0;
- for (var i = 0; i < this.selected.length; i++){
- var id =this.selected[i].id;
- var selected =this.selected[i].id;
- console.warn("Deleting claim with id:"+id);
- this.deleteById(id);
- //TODO for multiple concurrent
- }
- }
- deleteById(id:string){
-
- console.warn("Deleting claim with id:"+id);
- // this._claimService.deleteClaimById(id);
- this._claimService.deleteClaimById(id).subscribe(
- res => {
- console.info('Delete response'+res.code );
- console.warn("Deleted claim with id:"+ id);
- //remove this claim from the
- let newClaims=this.claims;
- for (var _i = 0; _i < this.claims.length; _i++) {
- let claim = this.claims[_i];
- if(claim['id'] == id){
- newClaims.splice(_i, 1);
- }
- }
- //TODO should call getClaims???
- this.claimsDeleted++;
- this.claims = newClaims;
- if(this.claimsDeleted == this.selected.length){
- this.loading.close();
- }
-
-
- });
- }
- pageChange($event) {
- var page:number = +$event.value
- this.goTo(page);
- }
-}
diff --git a/portal/src/app/claimPages/claims/claimsAdmin.component.ts b/portal/src/app/claimPages/claims/claimsAdmin.component.ts
deleted file mode 100644
index 7f946956..00000000
--- a/portal/src/app/claimPages/claims/claimsAdmin.component.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import {Component, ViewChild, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Location} from '@angular/common';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimsService} from '../../services/claims.service';
-import {Claim} from '../../entities/claim';
-import {ClaimTextFilterPipe} from '../../pipes/claimTextFilter.pipe';
-import {ClaimTypeFilterPipe} from '../../pipes/claimTypeFilter.pipe';
-import {PagingFormatter} from '../../common/pagingFormatter.component';
-import {pagingFormatterNoLoad} from '../../common/pagingFormatterNoLoad.component';
-import {ClaimEntityFormatter} from '../../common/claimEntityFormatter.component';
-import {Alert} from '../../common/modal/alert';
-import {Loading} from '../../common/modal/loading.component';
-import {ClaimsComponent} from './claims.component';
-
-@Component({
- selector: 'claims',
- directives: [...ROUTER_DIRECTIVES , ClaimsComponent],
- template: `
-
-
-
-
- TODO login
-
- `,
-
-})
-export class ClaimsAdminComponent {
- constructor ( ) {
-
- }
-user:string="argirok@di.uoa.gr";
- ngOnInit() {
-
-
- }
-
-
-}
diff --git a/portal/src/app/claimPages/inlineClaimContext/inlineClaimContext.component.ts b/portal/src/app/claimPages/inlineClaimContext/inlineClaimContext.component.ts
deleted file mode 100644
index 38672061..00000000
--- a/portal/src/app/claimPages/inlineClaimContext/inlineClaimContext.component.ts
+++ /dev/null
@@ -1,259 +0,0 @@
-import {Component, Input, ViewChild, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimContextComponent} from '../linking/claimContext/claimContext.component';
-import {ClaimSelectedComponent} from '../linking/selected/selected.component';
-import {ClaimInsertComponent} from '../linking/insertClaim/insertClaim.component';
-
-@Component({
- selector: 'inline-claim-context',
- directives: [ROUTER_DIRECTIVES, ClaimContextComponent, ClaimSelectedComponent, ClaimInsertComponent],
- template: `
-
-
-
-
-
-
-
-
-
-
Finish
-
Cancel
-
-
-
-
-
-
-`
-
-})
- export class InlineClaimContextComponent {
- constructor ( private _router: Router ) {
-
- }
-
- @Input() public inlineEntity:any;
- @Input() public inlineType:string;
-
-
- contexts=[];
- publications;
- datasets;
- private show = 'context';
- private showComp:string = 'false';
- private enableButton:boolean=true;
- keyword: string = "";
-
- @Output() contextAdded = new EventEmitter();
-
-@ViewChild (ClaimInsertComponent) claimInsert : ClaimInsertComponent ;
- ngOnInit() {
-
- }
- next(){
- if(this.inlineType === 'dataset'){
- this.datasets = [];
- this.datasets.push(this.inlineEntity[0]);
- }else if(this.inlineType === 'publication'){
- this.publications = [];
- this.publications.push(this.inlineEntity[0]);
- console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
- }
- if( this.show == 'context'){
- this.show='claim';
- }
- }
- prev(){
- if(this.show == 'claim'){
- this.show = 'context';
- }
- }
-
-
- contextsChange($event) {
- this.contexts=$event.value;
- console.log($event.value);
- }
-
- showChange($event) {
- this.show=$event.value;
- if(this.show == "end"){
- //TODO
- this.contextAdded.emit({
- value: this.contexts
- });
- this.contexts = [];
- this.hideComponent();
-
- }else if(this.show == "error"){
- this.showComponent();
- }
- }
- public toggle(){
- if(this.showComp == 'false'){
- this.showComponent();
- }else{
- this.hideComponent();
- }
- }
- private showComponent(){
- this.showComp='true';
- this.enableButton = true;
-
- }
- private hideComponent(){
- this.showComp='false';
- }
- private insert(){
- this.claimInsert.publications = [];
- this.claimInsert.publications.push(this.inlineEntity[0]);
- this.publications = [];
- this.publications.push(this.inlineEntity[0]);
- console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
- this.enableButton = false;
- this.claimInsert.insert();
-
- }
- private cancel(){
- this.contexts = [];
-
- this.hideComponent();
- }
-}
-
-// import {Component, Input} from '@angular/core';
-// import {JSONP_PROVIDERS} from '@angular/http';
-// import {Observable} from 'rxjs/Observable';
-// import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-// import {ClaimContextComponent} from '../linking/claimContext/claimContext.component';
-// import {ClaimSelectedComponent} from '../linking/selected/selected.component';
-// import {ClaimInsertComponent} from '../linking/insertClaim/insertClaim.component';
-//
-// @Component({
-// selector: 'inline-claim-context',
-// directives: [ROUTER_DIRECTIVES, ClaimContextComponent, ClaimSelectedComponent, ClaimInsertComponent],
-// template: `
-//
-//
-//
-//
-//
Find Context:
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-// `
-//
-// })
-// export class InlineClaimContextComponent {
-// constructor ( private _router: Router ) {
-//
-// }
-//
-// @Input() public inlineEntity:any;
-// @Input() public inlineType:string;
-//
-//
-// contexts=[];
-// publications;
-// datasets;
-// show = "context";
-// keyword: string = "";
-//
-// ngOnInit() {
-//
-// }
-// next(){
-// if(this.inlineType === 'dataset'){
-// this.datasets = [];
-// this.datasets.push(this.inlineEntity[0]);
-// }else if(this.inlineType === 'publication'){
-// this.publications = [];
-// this.publications.push(this.inlineEntity[0]);
-// console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
-// }
-// if( this.show == 'context'){
-// this.show='claim';
-// }
-// }
-// prev(){
-// if(this.show == 'claim'){
-// this.show = 'context';
-// }
-// }
-//
-//
-// contextsChange($event) {
-// this.contexts=$event.value;
-// console.log($event.value);
-// }
-//
-// showChange($event) {
-// this.show=$event.value;
-// if(this.show == "end"){
-// this.contexts = [];
-// this.show = "context";
-// }
-// }
-//
-// }
diff --git a/portal/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts b/portal/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts
deleted file mode 100644
index 4eae8400..00000000
--- a/portal/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts
+++ /dev/null
@@ -1,158 +0,0 @@
-import {Component, Input, ViewChild, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimProjectsComponent} from '../linking/claimProject/claimProject.component';
-import {ClaimSelectedComponent} from '../linking/selected/selected.component';
-import {ClaimInsertComponent} from '../linking/insertClaim/insertClaim.component';
-
-@Component({
- selector: 'inline-claim-project',
- directives: [ROUTER_DIRECTIVES, ClaimProjectsComponent, ClaimSelectedComponent, ClaimInsertComponent],
- template: `
-
-
-
-
-
-
-
-
-
-
Finish
-
Cancel
-
-
-
-
-
-`
-
-})
- export class InlineClaimProjectComponent {
- constructor ( private _router: Router ) {
-
- }
-
- @Input() public inlineEntity:any;
- @Input() public inlineType:string;
-
-
- projects=[];
- publications;
- datasets;
- private show = 'project';
- private showComp:boolean = false;
- private enableButton:boolean=true;
- keyword: string = "";
-
- @Output() projectAdded = new EventEmitter();
-
-@ViewChild (ClaimInsertComponent) claimInsert : ClaimInsertComponent ;
- ngOnInit() {
-
- }
- next(){
- if(this.inlineType === 'dataset'){
- this.datasets = [];
- this.datasets.push(this.inlineEntity[0]);
- }else if(this.inlineType === 'publication'){
- this.publications = [];
- this.publications.push(this.inlineEntity[0]);
- console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
- }
- if( this.show == 'project'){
- this.show='claim';
- }
- }
- prev(){
- if(this.show == 'claim'){
- this.show = 'project';
- }
- }
-
-
- projectsChange($event) {
- this.projects=$event.value;
- console.log($event.value);
- }
-
- showChange($event) {
- this.show=$event.value;
- if(this.show == "end"){
- //TODO
- this.projectAdded.emit({
- value: this.projects
- });
- this.projects = [];
- this.hideComponent();
-
- }else if(this.show == "error"){
- this.showComponent();
- }
- }
- public toggle(){
- console.info("TOOGLE pr ");
- if(!this.showComp){
- console.info("TOOGLE show ");
- this.showComponent();
- }else{
- console.info("TOOGLE hide ");
- this.hideComponent();
- }
- }
- private showComponent(){
- this.showComp=true;
- this.enableButton = true;
-
- }
- private hideComponent(){
- this.showComp=false;
- }
- private insert(){
- this.claimInsert.publications = [];
- this.claimInsert.publications.push(this.inlineEntity[0]);
- this.publications = [];
- this.publications.push(this.inlineEntity[0]);
- console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
- this.enableButton = false;
- this.claimInsert.insert();
-
- }
- private cancel(){
- this.projects = [];
-
- this.hideComponent();
- }
-}
diff --git a/portal/src/app/claimPages/linking/claimContext/claimContext.component.ts b/portal/src/app/claimPages/linking/claimContext/claimContext.component.ts
deleted file mode 100644
index d54dd180..00000000
--- a/portal/src/app/claimPages/linking/claimContext/claimContext.component.ts
+++ /dev/null
@@ -1,274 +0,0 @@
-import {Component, Input,Output, ElementRef, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-import {ContextsService} from '../../../services/contexts.service';
-
-
-@Component({
- selector: 'claim-contexts',
- template: `
-
-
0" class="alert alert-warning" role="alert">{{warningMessage}}
-
0" class="alert alert-info" role="alert">{{infoMessage}}
- `,
- providers:[ ContextsService ]
-
-})
-export class ClaimContextComponent {
- ngOnInit() {
-this.getCommunities();
-
-}
-@Input() public inline= 'false' ; // for claimed started from landing pages
-@Input() public showComponent= 'true' ; // for claimed started from landing pages
-
-public query = '';
-public filteredList = [];
-@Input() public selectedList ;
-public elementRef;
-@Output() contextsChange = new EventEmitter();
-
-public communities:string[];
-@Input() public selectedCommunityId:string = "0";
- selectedCommunityLabel:string = "Community:";
-@Output() cselectedCommunityChange = new EventEmitter();
-
-public categories:string[];
-@Input() public selectedCategoryId:string ="0";
-selectedCategoryLabel:string ="Category:";
-@Output() selectedCategoryChange = new EventEmitter();
-public concepts:string[];
-public warningMessage = "";
-public infoMessage = "";
-
-constructor(private _contextService: ContextsService,myElement: ElementRef) {
- this.elementRef = myElement;
-}
-
-filter() {
- this.warningMessage = "";
- this.infoMessage = "";
- if(this.selectedCommunityId == "0"){
- this.warningMessage = "Please select Community";
- }else if (this.query !== ""){
- this.warningMessage = "";
- this.infoMessage = "";
- if(this.selectedCategoryId == "0"){
- this.warningMessage = "Specify category for more concepts";
- }
- this.filteredList = this.concepts.filter(function(el){
- return el.label.toLowerCase().indexOf(this.query.toLowerCase()) > -1;
- }.bind(this));
- if(this.filteredList.length == 0 ){
- this.infoMessage = "No results found";
- }
- }else{
- this.filteredList = [];
- }
-}
-
-select(item){
- this.query = "";
- this.filteredList = [];
- var context= { community: this.selectedCommunityLabel, category: this.selectedCategoryLabel, concept: item };
- var found:boolean = false;
- this.warningMessage = "";
- for (var _i = 0; _i < this.selectedList.length; _i++) {
- let item = this.selectedList[_i];
- if(item.concept.id == context.concept.id){
- found=true;
- this.warningMessage = "Concept already in selected list";
- }
- }
- if (!found) {
- this.selectedList.push(context);
- this.contextsChange.emit({
- value: this.selectedList
- });
- }
- // var index:number =this.selectedList.indexOf(context);
- // if (index == -1) {
- // this.selectedList.push(context);
- // this.contextsChange.emit({
- // value: this.selectedList
- // });
- // }
-
-}
-// remove(item){
-// var index:number =this.selectedList.indexOf(item);
-// if (index > -1) {
-// this.selectedList.splice(index, 1);
-// }
-// this.contextsChange.emit({
-// value: this.selectedList
-// });
-// }
-handleClick(event){
- var clickedComponent = event.target;
- var inside = false;
- do {
- if (clickedComponent === this.elementRef.nativeElement) {
- inside = true;
- }
- clickedComponent = clickedComponent.parentNode;
- } while (clickedComponent);
- if(!inside){
- this.filteredList = [];
- }
-}
-getCommunities () {
- this._contextService.getCommunities().subscribe(
- data => {
- this.communities = data.communities;
- // var concept= ["{id: this.communities['id'], label: this.communities['label'] }"];
- // this.filteredList.push(concept);
- // this.concepts.push(concept);
- },
- err => console.error(err)
- );
- }
- getCategories () {
- this.categories=[];
- if(this.selectedCommunityId != '0'){
- this._contextService.getCategories(this.selectedCommunityId).subscribe(
- data => {
- this.categories = data.category;
- this.concepts = [];
- this.filteredList = [];
- if (this.query !== ""){
- this.filter();
- }
-
- },
- err => console.error(err)
- );
- }
- }
- getConcepts () {
- if(this.selectedCategoryId != '0'){
- this._contextService.getConcepts(this.selectedCategoryId, "").subscribe(
- data => {
- this.concepts = data.concept;
- if (this.query !== ""){
- this.filter();
- }
- },
- err => console.error(err)
- );
- }else{
- this.concepts=[];
- }
- }
-communityChanged(communityId:string, communityLabel:string){
- this.warningMessage = "";
- this.infoMessage = "";
- this.selectedCommunityId= communityId;
- this.selectedCommunityLabel= communityLabel;
- this.getCategories();
-
-}
-categoryChanged(categoryId:string, categoryLabel:string){
- this.warningMessage = "";
- this.infoMessage = "";
- this.selectedCategoryId = categoryId;
- this.selectedCategoryLabel = categoryLabel;
- this.getConcepts();
-
-}
-
-}
diff --git a/portal/src/app/claimPages/linking/claimProject/claimProject.component.ts b/portal/src/app/claimPages/linking/claimProject/claimProject.component.ts
deleted file mode 100644
index c37caa55..00000000
--- a/portal/src/app/claimPages/linking/claimProject/claimProject.component.ts
+++ /dev/null
@@ -1,205 +0,0 @@
-import {Component, Input,Output, ElementRef, EventEmitter, ViewChild} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-import {OpenaireProjectsService} from '../../../services/openaireProjects.service';
-import {Loading} from '../../../common/modal/loading.component';
-
-@Component({
- selector: 'claim-projects',
- template: `
-
-
-
0" class="alert alert-warning" role="alert">{{warningMessage}}
-
0" class="alert alert-info" role="alert">{{infoMessage}}
- `,
- providers:[ OpenaireProjectsService ],
- directives: [Loading]
-
-})
-export class ClaimProjectsComponent {
- ngOnInit() {
- console.info("Claim projects - init ....");
-this.getFunders();
-
-}
-@Input() public inline= 'false' ; // for claimed started from landing pages
-public query = '';
-public filteredList = [];
-@Input() public selectedProjects=[] ;
-public elementRef;
-@Output() projectsChange = new EventEmitter();
-
-public funders:string[];
-@Input() public selectedFunderId:string ="0";
-selectedFunderName:string ="Select funder:";
-@Output() cselectedFunderChange = new EventEmitter();
-
-public projects:string[];
-public warningMessage = "";
-public infoMessage = "";
-
-// @ViewChild (Loading) loading : Loading ;
-
-
-constructor(private _projectService: OpenaireProjectsService,myElement: ElementRef) {
- this.elementRef = myElement;
-}
-
-filter() {
- console.info("Search projects");
- if (this.selectedFunderId == '0' ){
- this.warningMessage = "Please select a funder first";
- this.infoMessage = "";
- }else if ( this.query == "" || this.query.length < 3){
- this.warningMessage = "Please type a keyword, containing at least 3 characters"
- this.infoMessage = "";
- }else{
- this.warningMessage = "";
- this.infoMessage = "";
- // this.loading.open();
- this._projectService.searchForProjects(this.query, this.selectedFunderId).subscribe(
- data => {
- this.filteredList =(data == null)?[]:data;
- this.infoMessage = (data == null)?"No Results found":"";
- // this.loading.close();
- },
- err => {
- console.error(err);
- // this.loading.close();
- this.warningMessage = "An error occured";
-
- }
- );
- }
-}
-
-select(item){
- this.query = "";
- this.filteredList = [];
- var project= { funderId: this.selectedFunderId,funderName: this.selectedFunderName, projectId: item.field[0]['@value'], projectName: item.field[3]['@value'] , projectAcronym: item.field[1]['@value'] };
- var index:number =this.selectedProjects.indexOf(project);
- var found:boolean = false;
- this.warningMessage = "";
- for (var _i = 0; _i < this.selectedProjects.length; _i++) {
- let item = this.selectedProjects[_i];
- if(item.projectId == project.projectId){
- found=true;
- this.warningMessage = "Project already in selected list";
- }
- }
- if (!found) {
- this.selectedProjects.push(project);
- this.projectsChange.emit({
- value: this.selectedProjects
- });
- }
-
-}
-remove(item){
- var index:number =this.selectedProjects.indexOf(item);
- if (index > -1) {
- this.selectedProjects.splice(index, 1);
- }
- this.projectsChange.emit({
- value: this.selectedProjects
- });
-}
-handleClick(event){
- var clickedComponent = event.target;
- var inside = false;
- do {
- if (clickedComponent === this.elementRef.nativeElement) {
- inside = true;
- }
- clickedComponent = clickedComponent.parentNode;
- } while (clickedComponent);
- if(!inside){
- this.filteredList = [];
- }
-}
-getFunders () {
- console.info("Getting Funders....");
- this._projectService.getFunders().subscribe(
- data => {
- this.funders = data;
- },
- err => console.error(err)
- );
- }
-
- getProjects () {
- if(this.selectedFunderId != '0'){
-
- }
- }
-funderChanged(funderId:string, funderName:string){
- this.selectedFunderId = funderId;
- this.selectedFunderName = funderName;
- console.info("Selected funder:"+this.selectedFunderId+ ' name:'+funderName );
-
-}
-
-}
diff --git a/portal/src/app/claimPages/linking/claimResult/claimDataset/claimDataset.component.ts b/portal/src/app/claimPages/linking/claimResult/claimDataset/claimDataset.component.ts
deleted file mode 100644
index 71f0f094..00000000
--- a/portal/src/app/claimPages/linking/claimResult/claimDataset/claimDataset.component.ts
+++ /dev/null
@@ -1,181 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {pagingFormatterNoLoad} from '../../../../common/pagingFormatterNoLoad.component';
-import {PublicationTitleFormatter} from '../../../../common/publicationTitleFormatter.component';
-import {SearchDataciteService} from '../../../../services/searchDatacite.service';
-
-
-@Component({
- selector: 'claim-dataset',
- directives: [...ROUTER_DIRECTIVES,pagingFormatterNoLoad, PublicationTitleFormatter],
- template: `
-
-
-
0" class="alert alert-warning" role="alert">{{warningMessage}}
-
0" class="alert alert-info" role="alert">{{infoMessage}}
-
-
-
-
-
-
-
-
-
0">
-
{{dataciteResultsNum }} Total Results
-
-
-
No results found
-
-
-
-
-
-
Under Development....
-
-
No results found
-
-
-
-
-
- `,
- providers:[JSONP_PROVIDERS, SearchDataciteService]
-})
-export class ClaimDatasetComponent {
- constructor (private _searchDataciteService: SearchDataciteService,
- private _routeParams: RouteParams) {
- var myDate = new Date();
- this.todayDate = myDate.getFullYear()+ "-" +(myDate.getMonth() + 1) + "-" + myDate.getDate() ;
- this.nextDate = (myDate.getFullYear()+100)+ "-" +(myDate.getMonth() + 1) + "-" + myDate.getDate() ;
-
- }
- ngOnInit() {
- if(this.keyword !=null && this.keyword.length > 0){
- this.searchDatacite(this.keyword,this.size,this.page);
- }
-}
-
- private page : number = 1;
- private size:number = 10;
- private navigateTo: string = "Search";
- private source: string = "datacite";
- private type : string = "dataset";
- @Input() public select:boolean = true ;
- @Input() public keyword:string = '';
- @Input() public selectedDatasets = [] ;
- @Output() datasetsChange = new EventEmitter();
-
- dataciteResults=[];
- dataciteResultsNum : Observable
= null;
- openaireResults=[];
- openaireResultsNum : Observable = null ;
-
- public warningMessage = "";
- public infoMessage = "";
-
- private todayDate = '';
- private nextDate = '';
- public search(term: string, size : number, page : number){
- this.searchDatacite(term,10,1);
- //TODO add openaire search
- }
- private searchDatacite (term: string, size : number, page : number) {
- this.getDataciteResults(term,size,page);
- this.warningMessage = "";
- this.infoMessage = "";
-
- }
-
- getDataciteResults (term: string, size : number, page : number) {
- this._searchDataciteService.searchDataciteResults(term, size, page).subscribe(
- data => {
- this.dataciteResults = data.docs;
- this.page=page;
- this.dataciteResultsNum = data.numFound;
- },
- err => console.error(err)
- );
- }
-
- add(item, itemId,itemType,itemSource,itemTitle, itemUrl){
- var result ;
- if(itemSource == 'datacite'){
- result = {id: itemId, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate};
- }else if (itemSource == 'openaire'){
-
- }
- var found:boolean = this.isSelected( result.id);
- this.warningMessage = "";
- if (!found) {
- this.selectedDatasets.push(result);
- this.datasetsChange.emit({
- value: this.selectedDatasets
- });
- }else{
- this.warningMessage = "Dataset already in selected list";
- }
-
- }
-
-
- pageChange($event) {
- this.page=$event.value;
- this.dataciteResults=[];
- this.searchDatacite(this.keyword,10,this.page);
- this.warningMessage = "";
- this.infoMessage = "";
-
- }
- isSelected(id:string){
-
- var found:boolean = false;
- this.warningMessage = "";
- for (var _i = 0; _i < this.selectedDatasets.length; _i++) {
- let item = this.selectedDatasets[_i];
- if(item.id == id){
- found=true;
- break;
- }
- }
- return found;
- }
-}
diff --git a/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.bck.html b/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.bck.html
deleted file mode 100644
index 455c518e..00000000
--- a/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.bck.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
0">
-
{{crossrefResultsNum }} Total Results
-
-
-
-
-
-
-
-
TODO put openaire results here...
-
-
-
-
- {{item['work-title']['title'].value}}
-
-
-
-
-
-
diff --git a/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.html b/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.html
deleted file mode 100644
index c94d759a..00000000
--- a/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
-
Under Development....
-
-
-
-
-
-
No results found
-
-
-
Not the right author? Choose one of these:
-
-
-
- Selected: {{authorGivenName}} {{authorFamilyName}}
-
-
-
-
-
-
-
Results for
- {{authorGivenName}} {{authorFamilyName}} - {{authorId}} :
-
-
-
0) && (totalPages > 1) && ( 0 < page && page <= totalPages )) " >
-
-
-
-
-
0 && orcidResultsToShow.length > 0 " class="list-group">
-
- {{item['work-title']['title'].value}}
-
-
-
-
No results found
-
-
-
-
-
-
diff --git a/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.ts b/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.ts
deleted file mode 100644
index 4a6b574f..00000000
--- a/portal/src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.ts
+++ /dev/null
@@ -1,246 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {SearchCrossrefService} from '../../../../services/searchCrossref.service';
-import {SearchOrcidService} from '../../../../services/searchOrcid.service';
-import {Publication} from '../../../../entities/publication';
-import {pagingFormatterNoLoad} from '../../../../common/pagingFormatterNoLoad.component';
-import {PublicationTitleFormatter} from '../../../../common/publicationTitleFormatter.component';
-
-
-@Component({
- selector: 'claim-publication',
- directives: [...ROUTER_DIRECTIVES,pagingFormatterNoLoad, PublicationTitleFormatter],
- templateUrl: 'src/app/claimPages/linking/claimResult/claimPublication/claimPublication.component.html',
- providers:[JSONP_PROVIDERS, SearchCrossrefService, SearchOrcidService]
-})
-export class ClaimPublicationComponent {
- constructor (private _searchCrossrefService: SearchCrossrefService,private _searchOrcidService: SearchOrcidService,
- private _routeParams: RouteParams) {
- var myDate = new Date();
- this.todayDate = myDate.getFullYear()+ "-" +(myDate.getMonth() + 1) + "-" + myDate.getDate() ;
- this.nextDate = (myDate.getFullYear()+100)+ "-" +(myDate.getMonth() + 1) + "-" + myDate.getDate() ;
-
- }
- ngOnInit() {
- let page = +this._routeParams.get('page');
- let size = +this._routeParams.get('size');
- this.page = ( page <= 0 ) ? 1 : page;
- this.size = ( size <= 0 ) ? 10 : size;
- if(this.keyword !=null && this.keyword.length > 0){
- this.search(this.keyword,this.size,this.page);
- }
-}
-
- page : number = 1;
- size:number = 10;
- @Input() public keyword:string = "";
- navigateTo: string = "Search";
- source: string = "crossref";
- type : string = "publication";
- @Input() public select:boolean = true ;
- @Input() public selectedPublications = [] ;
- @Output() publicationsChange = new EventEmitter();
-
- crossrefResults=[];
- crossrefResultsNum : Observable
;
-
- orcidResults: string[];
- orcidResultsNum: number ;
- totalPages: number;
- orcidResultsToShow: string[];
-
- authorId: string;
- authorGivenName: string;
- authorFamilyName: string;
-
- authorIds: string[];
- authorGivenNames: string[];
- authorFamilyNames: string[];
-
- authorsNum : number ;
-
- public warningMessage = "";
- public infoMessage = "";
-
- todayDate = '';
- nextDate = '';
-
- private searchOrcid (term: string) {
- this.authorIds = new Array();
- this.authorGivenNames = new Array();
- this.authorFamilyNames = new Array();
-
- this.getOrcidAuthor(term);
-
- console.info('searchOrcid in searchOrcid file');
- }
-
-private readData(data: any) {
- this.authorIds.push(data[2].path);
-
- if(data[0] != null) {
- this.authorGivenNames.push(data[0].value);
- } else {
- this.authorGivenNames.push("");
- }
- if(data[1] != null) {
- this.authorFamilyNames.push(data[1].value);
- } else {
- this.authorFamilyNames.push("");
- }
- }
-
- private getOrcidAuthor (term: string) {
- this.orcidResultsNum = null;
-
- this._searchOrcidService.searchOrcidAuthor(term).subscribe(
- data => {
- if(data[2] != null) {
- this.readData(data);
- this.getOrcidResultsById(0);
- }
-
- },
- err => this.errorHandler(err, term)
- );
- }
-
- private errorHandler(err: any, term: string) {
- if(err.status == 404){
- this.getOrcidAuthors(term);
- } else {
- console.error(err.status);
- }
- }
-
- private getOrcidAuthors (term: string) {
- this.orcidResultsNum = null;
-
- this._searchOrcidService.searchOrcidAuthors(term).subscribe(
- data => {
- if(data[2] != null) {
- this.readData(data);
- this.getOrcidResultsById(0);
- }
- },
- err => console.error(err)
- );
- }
-
-
-private getOrcidResultsById (index:number) {
- let id = this.authorIds[index];
-
- console.info("getOrcidResultsById: "+id);
- this._searchOrcidService.searchOrcidPublications(id).subscribe(
- data => {
- if(data != null) {
- this.orcidResults=data['orcid-work'];
- this.orcidResultsNum = data['orcid-work'].length;
- this.page = 1;
- if((this.orcidResultsNum % this.size) == 0){
- this.totalPages=parseInt(''+(this.orcidResultsNum/this.size));
- } else{
- this.totalPages=parseInt(''+(this.orcidResultsNum/this.size+1));
- }
-
- this.orcidResultsToShow = this.orcidResults.slice(0,10);
- } else {
- this.orcidResultsNum = 0;
- this.totalPages=0;
- }
- this.authorGivenName = this.authorGivenNames[index];
- this.authorFamilyName = this.authorFamilyNames[index];
- this.authorId = id;
- },
- err => console.error(err)
- );
-
- console.info("totalPages = " +this.totalPages);
- }
-
-public search(term: string, size : number, page : number){
- this.warningMessage = "";
- this.infoMessage = "";
- this.getCrossrefResults(term,size,page);
- this.searchOrcid(term);
-
-}
-
-
-private getCrossrefResults (term: string, size : number, page : number) {
- this._searchCrossrefService.searchCrossrefResults(term, size, page).subscribe(
- data => {
- this.crossrefResults = data.items;
- this.page=page;
- this.crossrefResultsNum = data['total-results'];
- },
- err => console.error(err)
- );
-
- }
-
-
- private add(item, id, itemSource, itemType, itemUrl, itemTitle){
- var result ;
- if(itemSource == 'crossref'){
- result = {id: id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate};
- }else if (itemSource == 'orcid'){
- result = {id:id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate};
- }else if (itemSource == 'openaire'){
-
- }
- var found:boolean = this.isSelected(result.id);
- this.warningMessage = "";
- if (!found) {
- this.selectedPublications.push(result);
- this.publicationsChange.emit({
- value: this.selectedPublications
- });
- }else{
- this.warningMessage = "Publication already in selected list";
- }
-
- }
- private remove(item){
- this.warningMessage = "";
- this.infoMessage = "";
- var index:number =this.selectedPublications.indexOf(item);
- item.selected=false;
- if (index > -1) {
- this.selectedPublications.splice(index, 1);
- this.publicationsChange.emit({
- value: this.selectedPublications
- });
- }
-
- }
-private pageChange($event) {
- this.page=$event.value;
- this.crossrefResults=[];
- this.getCrossrefResults(this.keyword,this.size,this.page);
- }
-private orcidPageChange($event) {
- this.page=$event.value;
- this.orcidResultsToShow=[];
- this.orcidResultsToShow = this.orcidResults.slice(($event.value-1)*this.size, $event.value*this.size);
- }
-
- private isSelected(id:string){
-
- var found:boolean = false;
- this.warningMessage = "";
- for (var _i = 0; _i < this.selectedPublications.length; _i++) {
- let item = this.selectedPublications[_i];
- if(item.id == id){
- found=true;
- this.warningMessage = "Publication already in selected list";
- }
- }
- return found;
-
-
- }
-}
diff --git a/portal/src/app/claimPages/linking/claimResult/claimResult.component.ts b/portal/src/app/claimPages/linking/claimResult/claimResult.component.ts
deleted file mode 100644
index 334ce228..00000000
--- a/portal/src/app/claimPages/linking/claimResult/claimResult.component.ts
+++ /dev/null
@@ -1,117 +0,0 @@
-import {Component, Input, Output, EventEmitter,ViewChild} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {pagingFormatterNoLoad} from '../../../common/pagingFormatterNoLoad.component';
-import {PublicationTitleFormatter} from '../../../common/publicationTitleFormatter.component';
-import {ClaimPublicationComponent} from './claimPublication/claimPublication.component';
-import {ClaimDatasetComponent} from './claimDataset/claimDataset.component';
-
-import {SearchDataciteService} from '../../../services/searchDatacite.service';
-
-@Component({
- selector: 'claim-result',
- directives: [...ROUTER_DIRECTIVES,pagingFormatterNoLoad, PublicationTitleFormatter, ClaimPublicationComponent, ClaimDatasetComponent],
- template: `
-
-
-
-
-
- `,
- providers:[JSONP_PROVIDERS, SearchDataciteService]
-})
-export class ClaimResultComponent {
- constructor (private _searchDataciteService: SearchDataciteService,
- private _routeParams: RouteParams) {
- var myDate = new Date();
- this.todayDate = myDate.getFullYear()+ "-" +(myDate.getMonth() + 1) + "-" + myDate.getDate() ;
- this.nextDate = (myDate.getFullYear()+100)+ "-" +(myDate.getMonth() + 1) + "-" + myDate.getDate() ;
-
- }
- ngOnInit() {
- // if(this.keyword !=null && this.keyword.length > 0){
- // this.searchDatacite(this.keyword,this.size,this.page);
- // }
-}
- @ViewChild (ClaimPublicationComponent) claimPublicationComponent : ClaimPublicationComponent ;
- @ViewChild (ClaimDatasetComponent) claimDatasetComponent : ClaimDatasetComponent ;
-
- page : number = 1;
- size:number = 10;
- navigateTo: string = "Search";
- source: string = "datacite";
- type : string = "dataset";
- searchType ="publication";
- @Input() public select:boolean = true ;
- @Input() public keyword:string = '';
- @Input() public selectedDatasets = [] ;
- @Input() public selectedPublications = [] ;
- @Output() datasetsChange = new EventEmitter();
- @Output() publicationsChange = new EventEmitter();
-
- todayDate = '';
- nextDate = '';
- search(){
- if(this.searchType=='dataset'){
- this.claimDatasetComponent.search(this.keyword,10,1);
- }else{
- this.claimPublicationComponent.search(this.keyword,10,1);
- }
- }
-
- typeChanged(type:string) {
- this.searchType = type;
- }
- publicationsChanged($event) {
- this.selectedPublications=$event.value;
- this.publicationsChange.emit({
- value: this.selectedPublications
- });
-
- }
- datasetsChanged($event) {
- this.selectedDatasets=$event.value;
- this.datasetsChange.emit({
- value: this.selectedDatasets
- });
- }
-}
diff --git a/portal/src/app/claimPages/linking/insertClaim/insertClaim.component.ts b/portal/src/app/claimPages/linking/insertClaim/insertClaim.component.ts
deleted file mode 100644
index db461a00..00000000
--- a/portal/src/app/claimPages/linking/insertClaim/insertClaim.component.ts
+++ /dev/null
@@ -1,157 +0,0 @@
-import {Component, Input, Output, EventEmitter, ViewChild} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimsService} from '../../../services/claims.service';
-import {PublicationTitleFormatter} from '../../../common/publicationTitleFormatter.component';
-import {Loading} from '../../../common/modal/loading.component';
-
-
-@Component({
- selector: 'claim-insert',
- directives: [...ROUTER_DIRECTIVES, Loading],
- template: `
-
- Finish
-
- 0 && claimsTODO == claims" >
- Now show my claims
-
-
-
- `,
- providers:[JSONP_PROVIDERS, ClaimsService]
-})
-export class ClaimInsertComponent {
- constructor (private claimService: ClaimsService, private _routeParams: RouteParams, private _router:Router) {}
- ngOnInit() {
-
-}
-
-
- @Input() public contexts;
- @Input() public projects;
- @Input() public publications;
- @Input() public datasets;
- @Input() public showButton:string = 'true';
- @Input() show='claim';
- @Input() inline='false';
- @Output() showChange = new EventEmitter();
-
- @ViewChild (Loading) loading : Loading ;
-
- claiming =false;
- error = false;
- errorMessage = "";
- claimsTODO:number = 0;
- claims:number = 0;
- errorclaims:number = 0;
-insert(){
- this.claiming = true;
- var user="argirok@di.uoa.gr"
- if( this.datasets && this.datasets.length == 0 && this.publications && this.publications.length == 0){
- this.showError("There are no publications or datasets selected.");
- }else if((!this.contexts|| this.contexts.length==0 )&&(!this.projects|| this.projects.length==0 )){
- this.showError("There are no projects or concepts to link.");
- }else if((!this.publications|| this.publications.length==0 )&&(!this.datasets|| this.datasets.length==0 )){
- this.showError("There are no publications or datasets to link.");
- }else{
- this.loading.open();
- if(this.publications){
-
- for (var i = 0; i < this.publications.length; i++) {
-
- var result=this.publications[i];
- this.insertClaim(result,user);
-
- }
- }
- if(this.datasets){
- for (var i = 0; i < this.datasets.length; i++) {
- var result=this.datasets[i];
- this.insertClaim(result,user);
-
- }
- }
- }
-}
-
- private claimInserted(){
- this.claims+=1;
- if(this.claims == this.claimsTODO){
- this.show = "context";
- this.loading.close();
- if(this.inline == "true"){
- this.show = "end";
- }else{
- this._router.navigate( ['MyClaims'] );
- }
- this.showChange.emit({
- value: this.show
- });
- }
- }
- private showError(error:string){
- this.errorMessage = error;
- this.error = true;
- if(this.inline == "true"){
- this.show = "error";
- this.showChange.emit({
- value: this.show
- });
- }
- }
- private claimFailed(){
- this.errorMessage = "An Error Occured.";
- this.errorclaims++;
- if((this.claims+this.errorclaims) == this.claimsTODO){
- this.show = "context";
- this.loading.close();
- if(this.inline == "true"){
- this.show = "end";
- }else{
- this._router.navigate( ['MyClaims'] );
- }
- this.showChange.emit({
- value: this.show
- });
- }
- }
- insertClaim(result:any, user:any){
- if(this.contexts){
- for (var j = 0; j < this.contexts.length; j++) {
- var context=this.contexts[j];
- var claim = { claimedBy : user, sourceId : context.concept.id, sourceType : "context", sourceCollectedFrom:"openaire", sourceAccessRights:"OPEN", sourceEmbargoEndDate:"no", targetId : result.id , targetType : result.type, targetCollectedFrom: result.source, targetAccessRights:result.accessRights, targetEmbargoEndDate:result.embargoEndDate};
- this.claimsTODO +=1;
- this.claimService.insertClaim(claim).subscribe(
- data => {
- this.claimInserted();
- },
- err => {
- console.error(err);
- this.claimFailed();
- }
- );
- }
- }
- if(this.projects){
- for (var j = 0; j < this.projects.length; j++) {
- var project=this.projects[j];
-
- var claim = { claimedBy : user, sourceId : project.projectId, sourceType : "project", sourceCollectedFrom:"openaire", sourceAccessRights:"OPEN", sourceEmbargoEndDate:"", targetId : result.id , targetType : result.type, targetCollectedFrom: result.source, targetAccessRights:result.accessRights, targetEmbargoEndDate:result.embargoEndDate};
- console.info("Trying to insert project - result relation: projectId: "+claim.sourceId +" resultId : " + claim.targetId + " "+ claim.targetEmbargoEndDate );
- this.claimsTODO +=1;
- this.claimService.insertClaim(claim).subscribe(
- data => {
- this.claimInserted();
- },
- err => {
- console.error(err);
- this.claimFailed();
- }
- );
- }
- }
- }
-}
diff --git a/portal/src/app/claimPages/linking/linking.component.ts b/portal/src/app/claimPages/linking/linking.component.ts
deleted file mode 100644
index d0a0fd40..00000000
--- a/portal/src/app/claimPages/linking/linking.component.ts
+++ /dev/null
@@ -1,222 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimContextComponent} from './claimContext/claimContext.component';
-import {ClaimResultComponent} from './claimResult/claimResult.component';
-import {ClaimSelectedComponent} from './selected/selected.component';
-import {ClaimInsertComponent} from './insertClaim/insertClaim.component';
-import {ClaimProjectsComponent} from './claimProject/claimProject.component';
-import {LinkingHomeComponent} from './linkingHome.component';
-
-@Component({
- selector: 'linking',
- //providers: [MdRadioDispatcher],
- directives: [ROUTER_DIRECTIVES, ClaimContextComponent, ClaimSelectedComponent, ClaimInsertComponent, ClaimProjectsComponent, LinkingHomeComponent, ClaimResultComponent],
- template: `
-
-
-
-`
-
-})
-//[(ngModel)]="date"
-export class LinkingComponent {
- constructor ( private _router: Router ) {
- }
- sourceType:string;
- targetType:string;
- step:number = 1;
- contexts=[];
- projects=[];
- publications=[];
- datasets=[];
- show = "home";
- searchType="publication"; //publication or dataset
- date='8-6-2016';
- keyword: string = "";
- linkType:string ="project"; // link type (selected in home page) : project, context, software, etc
- ngOnInit() {
-
- }
- next(){
-
- if((this.show == 'project' || this.show == 'context' || this.show == 'software')){
- this.show='result';
- }else if((this.show == 'result' && this.keyword == '')||(this.show == 'dataset' || this.show == 'publication')){
- this.show='claim';
- // }else if(this.show == 'result' ){
- // if(this.searchType == 'publication' ){
- // this.show="publication";
- // }else{
- // this.show="dataset";
- // }
- }
- }
- prev(){
- if(this.show == 'result'){
- this.show = this.linkType;
- // if(this.linkType == 'project'){
- // this.show='project';
- // }else if(this.linkType == 'context'){
- // this.show='context';
- // }else if(this.linkType == 'software'){
- // this.show='software';
- // }else{
- // this.show='home';
- //
- // }
- }else if(this.show == 'context' || this.show == 'project' || this.show == 'software' ){
- this.show='home';
- // }else if(this.show == 'dataset' || this.show == 'publication'){
- // this.show='result';
- } else if(this.show == 'claim'){
- this.show='result';
- }
- }
- goto(term: string) {
- this._router.navigate( ['Search', { keyword: term }] );
- }
-
- search() {
- if(this.searchType == 'publication' ){
- this.show="publication";
- }else{
- this.show="dataset";
- }
-
- }
-
- sourceTypeChange($event) {
- this.sourceType=$event.value;
- console.log($event.value);
- }
- targetTypeChange($event) {
- this.targetType=$event.value;
- console.log($event.value);
- }
- contextsChange($event) {
- this.contexts=$event.value;
- console.log($event.value);
- }
- publicationsChange($event) {
- this.publications=$event.value;
- }
- datasetsChange($event) {
- this.datasets=$event.value;
- }
- projectsChange($event) {
- this.projects=$event.value;
- }
- typeChanged(type:string) {
- this.searchType = type;
- }
- linkTypeChange($event) {
- this.linkType =$event.value;
- this.show=$event.value;
-
- }
- showChange($event) {
- this.show=$event.value;
- this.showChangedType($event.value);
-
-
- }
- showChangedType(type:string) {
- this.show=type;
- if(this.show == 'project' || this.show == 'context' || this.show == 'software'){
- this.linkType = this.show;
- }
-
-
- }
-}
diff --git a/portal/src/app/claimPages/linking/linkingHome.component.ts b/portal/src/app/claimPages/linking/linkingHome.component.ts
deleted file mode 100644
index 2c874f12..00000000
--- a/portal/src/app/claimPages/linking/linkingHome.component.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import {Component, Output, EventEmitter} from '@angular/core';
-import {RouteConfig, ROUTER_DIRECTIVES, Router} from '@angular/router-deprecated';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-
-@Component({
- selector: 'linking-home',
- template: `
-
-
-
-
-
-
Link with project
-
Link your research result with funded projects.
-
Link with project
-
-
-
-
-
-
Link with Community
-
Link your research result with research communities.
-
Link with community
-
-
-
-
-
-
- `,
- directives: [
- ...ROUTER_DIRECTIVES
- ],
-})
-
-export class LinkingHomeComponent {
- @Output() linkTypeChange = new EventEmitter();
- linkType:string = "project";
- select(type:string){
- this.linkType = type;
- this.linkTypeChange.emit({
- value: this.linkType
- });
- }
-
-}
diff --git a/portal/src/app/claimPages/linking/selected/selected.component.ts b/portal/src/app/claimPages/linking/selected/selected.component.ts
deleted file mode 100644
index af05343d..00000000
--- a/portal/src/app/claimPages/linking/selected/selected.component.ts
+++ /dev/null
@@ -1,212 +0,0 @@
-import {Component, Input,Output, EventEmitter} from '@angular/core';
- import {PublicationTitleFormatter} from '../../../common/publicationTitleFormatter.component';
-@Component({
- selector: 'claim-selected',
- template: `
-
-
-
-
-
-
-
- Selected Concepts ({{(contexts.length)}})
-
-
-
- {{context.community }} > {{context.category}} > {{context.concept.label}}
-
-
-
- There are no contexts
-
-
-
-
-
-
-
-
- Selected Projects ({{(projects.length)}})
-
-
-
-
- {{project.funderName}} | {{project.projectName}} {{(project.projectAcronym)?'('+project.projectAcronym+')':''}}
-
-
- There are no projects
-
-
-
-
-
-
-
- `,
- directives: [ PublicationTitleFormatter]
-
-
-})
-export class ClaimSelectedComponent {
- ngOnInit() {
- console.info("Show accessRights selection? :"+this.showAccessRights);
- var myDate = new Date();
- this.todayDate=( myDate.getFullYear()+ "-" +myDate.getMonth() + 1) + "-" + myDate.getDate() ;
- this.nextDate= ( (myDate.getFullYear()+100)+ "-" +myDate.getMonth() + 1) + "-" + myDate.getDate() ;
- //2015-05-01
-}
-
-
- @Input() contexts;
- @Input() projects;
- @Input() publications;
- @Input() datasets;
- @Input() showAccessRights=false;
- @Input() show='home';
- @Input() inline='false';
- @Input() inlineEntity;
- @Input() inlineType;
- @Output() projectsChange = new EventEmitter();
- @Output()publicationsChange = new EventEmitter();
- @Output() datasetsChange = new EventEmitter();
- @Output() contextsChange = new EventEmitter();
-
- @Output() showChange = new EventEmitter();
-
- todayDate = '';
- nextDate = '';
- removeContext(item:any){
- var index:number =this.contexts.indexOf(item);
- if (index > -1) {
- this.contexts.splice(index, 1);
- }
- this.contextsChange.emit({
- value: this.contexts
- });
- }
- removePublication(item:any){
- var index:number =this.publications.indexOf(item);
- if (index > -1) {
- this.publications.splice(index, 1);
- }
- this.publicationsChange.emit({
- value: this.publications
- });
- }
- removeDataset(item:any){
- var index:number =this.datasets.indexOf(item);
- if (index > -1) {
- this.datasets.splice(index, 1);
- }
- this.datasetsChange.emit({
- value: this.datasets
- });
- }
- removeProject(item:any){
- var index:number =this.projects.indexOf(item);
- if (index > -1) {
- this.projects.splice(index, 1);
- }
- this.projectsChange.emit({
- value: this.projects
- });
- }
- showType(type){
- if(type != this.show){
- this.show = type;
- this.showChange.emit({
- value: this.show
- });
- }
- }
- accessTypes = ["OPEN","CLOSED","EMBARGO","RESTRICTED"];
-
- dateChanged (event:any, item:any) {
- item.embargoEndDate = event.target.value ;
- }
-}
-
-
-
-@Component({
- selector: 'add-more',
- template: ``
-})
-export class Addmore {
- @Input() type = 'publication';
-}
diff --git a/portal/src/app/claimPages/myClaims/myClaims.component.ts b/portal/src/app/claimPages/myClaims/myClaims.component.ts
deleted file mode 100644
index b48ffc72..00000000
--- a/portal/src/app/claimPages/myClaims/myClaims.component.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {ClaimsComponent} from '../claims/claims.component';
-
-
-
-@Component({
- selector: 'my-claims',
- directives: [ROUTER_DIRECTIVES, ClaimsComponent],
- template: `
-
-
-
-
- TODO login
-
-`
-
-})
- export class MyClaimsComponent {
- constructor ( private _router: Router ) {
- }
- user:string="argirok@di.uoa.gr";
- ngOnInit() {
-
- }
-
-}
diff --git a/portal/src/app/claimPages/myClaimsDemo.component.ts b/portal/src/app/claimPages/myClaimsDemo.component.ts
deleted file mode 100644
index 02535d02..00000000
--- a/portal/src/app/claimPages/myClaimsDemo.component.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-
-
-
-@Component({
- selector: 'my-claims-demo',
- directives: [ROUTER_DIRECTIVES],
- template: `
-
-
-
-
-
-
-
Extra parameters for claims admin
-
-
-
-
-
-
-
-
-
-
-
-
-`
-//(click)="changeOrderby('target')"
-//od_______908::3a5b2885656a91307156325644e73b92
-
-})
- export class MyClaimsDemoComponent {
- constructor ( private _router: Router ) {
- }
- user:string="argirok@di.uoa.gr";
- ngOnInit() {
-
- }
- goToPub(id: number){
- this._router.navigate( ['Publication', { articleId: id}] );
- }
-}
diff --git a/portal/src/app/common/autoComplete.component.ts b/portal/src/app/common/autoComplete.component.ts
deleted file mode 100644
index f7190ea9..00000000
--- a/portal/src/app/common/autoComplete.component.ts
+++ /dev/null
@@ -1,91 +0,0 @@
-import {Component, ElementRef} from '@angular/core';
-
-
-@Component({
- selector: 'autocomplete',
- template: `
-
-
-
-
-
Country
-
-
-
-
-
-
-
- `
-})
-export class AutocompleteComponent {
- public query = '';
- public countries = [ "Albania","Andorra","Armenia","Austria","Azerbaijan","Belarus",
- "Belgium","Bosnia & Herzegovina","Bulgaria","Croatia","Cyprus",
- "Czech Republic","Denmark","Estonia","Finland","France","Georgia",
- "Germany","Greece","Hungary","Iceland","Ireland","Italy","Kosovo",
- "Latvia","Liechtenstein","Lithuania","Luxembourg","Macedonia","Malta",
- "Moldova","Monaco","Montenegro","Netherlands","Norway","Poland",
- "Portugal","Romania","Russia","San Marino","Serbia","Slovakia","Slovenia",
- "Spain","Sweden","Switzerland","Turkey","Ukraine","United Kingdom","Vatican City"];
- public filteredList = [];
- public selectedList = [];
- public elementRef;
-
- constructor(myElement: ElementRef) {
- this.elementRef = myElement;
- }
-
- filter() {
- if (this.query !== ""){
- this.filteredList = this.countries.filter(function(el){
- return el.toLowerCase().indexOf(this.query.toLowerCase()) > -1;
- }.bind(this));
- }else{
- this.filteredList = [];
- }
- }
-
- select(item){
- this.query = "";
- this.filteredList = [];
- this.selectedList.push(item);
- console.info("Select:"+this.selectedList);
- for (var i = 0; i < this.selectedList.length; i++) {
- console.log(this.selectedList[i]);
- }
- }
- remove(item){
- var index:number =this.selectedList.indexOf(item);
- console.info("Try to remove item from :"+this.selectedList.indexOf(item));
- if (index > -1) {
- this.selectedList.splice(index, 1);
- }
- console.info("Item removed "+this.selectedList.indexOf(item));
- }
- handleClick(event){
- var clickedComponent = event.target;
- var inside = false;
- do {
- if (clickedComponent === this.elementRef.nativeElement) {
- inside = true;
- }
- clickedComponent = clickedComponent.parentNode;
- } while (clickedComponent);
- if(!inside){
- this.filteredList = [];
- }
- }
-}
diff --git a/portal/src/app/common/claimEntityFormatter.component.ts b/portal/src/app/common/claimEntityFormatter.component.ts
deleted file mode 100644
index 15adaa26..00000000
--- a/portal/src/app/common/claimEntityFormatter.component.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {PublicationTitleFormatter} from './publicationTitleFormatter.component';
-import {ProjectTitleFormatter} from './projectTitleFormatter.component';
-
-//Usage Example " "
-
-//externalUrl
-@Component({
- selector: 'claim-entity',
- template: `
-
-
-
-
- `,
- directives: [PublicationTitleFormatter,ProjectTitleFormatter]
-})
-
-export class ClaimEntityFormatter {
- @Input() entity: string[];
- @Input() type: string;
-
- constructor () {}
-
- ngOnInit() {
-
- }
-
-
-}
diff --git a/portal/src/app/common/modal/alert.ts b/portal/src/app/common/modal/alert.ts
deleted file mode 100644
index d9f84fd2..00000000
--- a/portal/src/app/common/modal/alert.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-import {Component, ViewEncapsulation, ComponentRef, DynamicComponentLoader,ElementRef, Input, EventEmitter, Output} from '@angular/core';
-import {Open} from './open.component';
-
-@Component({
- selector: 'alert',
- template: `
-
- `,
- providers: [],
- directives: [Open],
- encapsulation: ViewEncapsulation.None,
- pipes: []
-})
-/**
- * API to an open alert window.
- */
-export class Alert{
- /**
- * Caption for the title.
- */
- public alertTitle:string;
- /**
- * Describes if the alert contains Ok Button.
- * The default Ok button will close the alert and emit the callback.
- * Defaults to true.
- */
- public okButton:boolean = true;
- /**
- * Caption for the OK button.
- * Default: Ok
- */
- public okButtonText:string= 'Ok';
- /**
- * Describes if the alert contains cancel Button.
- * The default Cancelbutton will close the alert.
- * Defaults to true.
- */
- public cancelButton:boolean = true;
- /**
- * Caption for the Cancel button.
- * Default: Cancel
- */
- public cancelButtonText:string = 'Cancel';
- /**
- * if the alertMessage is true it will show the contentString inside alert body.
- */
- public alertMessage:boolean = true;
- /**
- * Some message/content can be set in message which will be shown in alert body.
- */
- public message:string;
- /**
- * if the value is true alert footer will be visible or else it will be hidden.
- */
- public alertFooter:boolean= true;
- /**
- * shows alert header if the value is true.
- */
- public alertHeader:boolean = true;
- /**
- * if the value is true alert will be visible or else it will be hidden.
- */
- public isOpen:boolean=false;
- /**
- * Emitted when a ok button was clicked
- * or when Ok method is called.
- */
- @Output() public alertOutput:EventEmitter = new EventEmitter();
- constructor(public dcl:DynamicComponentLoader, public _elementRef: ElementRef){}
- /**
- * Opens a alert window creating backdrop.
- */
- open(){
- this.isOpen= true;
- }
- /**
- * ok method closes the modal and emits modalOutput.
- */
- ok(){
- this.isOpen = false;
- this.alertOutput.emit(true);
- }
- /**
- * cancel method closes the moda.
- */
- cancel(){
- this.isOpen = false;
- }
-}
diff --git a/portal/src/app/common/modal/loading.component.ts b/portal/src/app/common/modal/loading.component.ts
deleted file mode 100644
index 18722dbe..00000000
--- a/portal/src/app/common/modal/loading.component.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import {Component, ViewEncapsulation, ComponentRef, DynamicComponentLoader,ElementRef, Input, EventEmitter, Output} from '@angular/core';
-import {Open} from './open.component';
-
-@Component({
- selector: 'loading',
- template: `
-
- `,
- providers: [],
- directives: [Open],
- encapsulation: ViewEncapsulation.None,
- pipes: []
-})
-/**
- * API to an open alert window.
- */
-export class Loading{
-
-@Input() public message:string ="Loading";
-
- /**
- * if the value is true alert will be visible or else it will be hidden.
- */
- public isOpen:boolean=false;
- /**
- * Emitted when a ok button was clicked
- * or when Ok method is called.
- */
- @Output() public alertOutput:EventEmitter = new EventEmitter();
- constructor(public dcl:DynamicComponentLoader, public _elementRef: ElementRef){}
- /**
- * Opens a alert window creating backdrop.
- */
- open(){
- this.isOpen= true;
- }
-
- close(){
- this.isOpen = false;
- }
-}
diff --git a/portal/src/app/common/modal/open.component.ts b/portal/src/app/common/modal/open.component.ts
deleted file mode 100644
index 95add08d..00000000
--- a/portal/src/app/common/modal/open.component.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import {Directive, Input, HostBinding} from '@angular/core';
-
-// todo: add animate
-// todo: add init and on change
-@Directive({selector: '[open]'})
-export class Open {
- @HostBinding('style.display')
- private display:string;
- @HostBinding('class.in')
- @HostBinding('attr.aria-expanded')
- private isExpanded:boolean = true;
-
- @Input()
- private set open(value:boolean) {
- this.isExpanded = value;
- this.toggle();
- }
-
- private get open():boolean {
- return this.isExpanded;
- }
-
- constructor() {
- }
- init() {
- this.isExpanded = false;
- this.display = 'none';
- }
- toggle() {
- if (this.isExpanded) {
- this.hide();
- } else {
- this.show();
- }
- }
-
- hide() {
- this.isExpanded = false;
- this.display = 'none';
- if (typeof document !== 'undefined') {
- let backDrop = document.getElementsByClassName("modal-backdrop");
- if(backDrop.length>0){
- document.body.removeChild(backDrop[0]);
- }
- }
- }
-
- show() {
- let backDrop = document.createElement('div');
- backDrop.className="modal-backdrop fade in";
- document.body.appendChild(backDrop);
- this.isExpanded = true;
- this.display = 'block';
- }
-}
diff --git a/portal/src/app/common/pagingFormatter.component.ts b/portal/src/app/common/pagingFormatter.component.ts
deleted file mode 100644
index d3e591c1..00000000
--- a/portal/src/app/common/pagingFormatter.component.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-//Usage Example
-
-@Component({
- selector: 'paging',
- template: `
- 0 ) && (getTotalPages() > 1) && ( 0 < currentPage && currentPage <= getTotalPages() ) " >
-
-
- `,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
-})
-
-export class PagingFormatter {
- @Input() currentPage: number = 1;
- @Input() navigateTo: string;
- @Input() term: string='';
- @Input() size: number=10;
- @Input() totalResults: number = 10;
- @Input() params;
-
- constructor ( private _router: Router) {
- }
-
- ngOnInit() {
- console.info("In paging -- CurrentPage:"+this.currentPage+" "+"total Pages = "+this.getTotalPages() +" Results num:"+this.totalResults);
- }
- getTotalPages(){
- var i:number =parseInt(''+(this.totalResults/this.size));
- return (((this.totalResults/this.size) == i )? i :(i+1)) ;
- }
- onPrev(){
- if(this.params){
- let pageparams= this.params;
- pageparams.page=this.currentPage -1
- this._router.navigate( [this.navigateTo, pageparams] );
- }else{
- this._router.navigate( [this.navigateTo, { keyword: this.term, page: (this.currentPage -1) }] );
- }
- }
-
- onNext(){
- if(this.params){
- let pageparams= this.params;
- pageparams.page=this.currentPage +1;
- this._router.navigate( [this.navigateTo, pageparams] );
- }else{
- this._router.navigate( [this.navigateTo, { keyword: this.term, page: (this.currentPage +1) }] );
- }
- }
- onPage(pageNum: number){
- if(this.params){
- let pageparams= this.params;
- pageparams.page=pageNum;
- this._router.navigate( [this.navigateTo, pageparams] );
- }else if(this.term!=''){
- this._router.navigate( [this.navigateTo, { keyword: this.term, page: pageNum, size: this.size }] );
- }else{
- this._router.navigate( [this.navigateTo, { page: pageNum, size: this.size }] );
- }
- }
-}
diff --git a/portal/src/app/common/pagingFormatterNoLoad.component.ts b/portal/src/app/common/pagingFormatterNoLoad.component.ts
deleted file mode 100644
index 626109ab..00000000
--- a/portal/src/app/common/pagingFormatterNoLoad.component.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-//Usage Example
-
-@Component({
- selector: 'paging-no-load',
- template: `
- 0 ) && (getTotalPages() > 1) && ( 0 < currentPage && currentPage <= getTotalPages() ) " >
-
-
- `,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
-})
-
-export class pagingFormatterNoLoad {
- @Input() currentPage: number = 1;
- @Input() navigateTo: string;
- @Input() term: string='';
- @Input() size: number=10;
- @Input() totalResults: number = 10;
- @Input() params;
-
- @Output() pageChange = new EventEmitter();
-
- constructor ( private _router: Router) {
- }
-
- ngOnInit() {
- console.info("In paging -- CurrentPage:"+this.currentPage+" "+"total Pages = "+this.getTotalPages() +" Results num:"+this.totalResults);
- }
- getTotalPages(){
- var i= this.totalResults/this.size;
- var integerI=parseInt(''+i);
- return parseInt(''+((i==integerI)?i:i+1));
- }
- onPrev(){
- this.currentPage=this.currentPage-1;
- this.pageChange.emit({
- value: this.currentPage
- });
-
- }
-
- onNext(){
-
- this.currentPage=this.currentPage+1;
- this.pageChange.emit({
- value: this.currentPage
- });
- }
- onPage(pageNum: number){
-
- this.currentPage=pageNum;
- this.pageChange.emit({
- value: this.currentPage
- });
- }
-}
diff --git a/portal/src/app/common/projectTitleFormatter.component.ts b/portal/src/app/common/projectTitleFormatter.component.ts
deleted file mode 100644
index 357a2d70..00000000
--- a/portal/src/app/common/projectTitleFormatter.component.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import {Component, Input} from '@angular/core';
-
-//Usage Example " "
-
-@Component({
- selector: 'project-title',
- template: `
-
-
{{project.name}} ( {{project.funderName}} )
-
- `
-})
-
-export class ProjectTitleFormatter {
- @Input() project: string[];
-
- constructor () {}
-
- ngOnInit() {}
-}
diff --git a/portal/src/app/common/publicationTitleFormatter.component.ts b/portal/src/app/common/publicationTitleFormatter.component.ts
deleted file mode 100644
index 2c87c50a..00000000
--- a/portal/src/app/common/publicationTitleFormatter.component.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import {Component, Input} from '@angular/core';
-
-//Usage Example " "
-
-@Component({
- selector: 'publication-title',
- template: `
-
- `
-})
-
-export class PublicationTitleFormatter {
- @Input() title: string[];
- @Input() url: string[];
-
- constructor () {}
-
- ngOnInit() {
-
- }
-
-
-}
diff --git a/portal/src/app/entities/claim.ts b/portal/src/app/entities/claim.ts
deleted file mode 100644
index b5378c5f..00000000
--- a/portal/src/app/entities/claim.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-export class Claim {
- id: string;
- sourceType: string;
- targetType: string;
- sourceId: string;
- targetId: string;
- date: string;
- DOI: string;
- project: Project
- userMail: string;
-
-}
-export class Project{
-
-}
diff --git a/portal/src/app/entities/datasetInfo.ts b/portal/src/app/entities/datasetInfo.ts
deleted file mode 100644
index 47ac8120..00000000
--- a/portal/src/app/entities/datasetInfo.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-export class DatasetInfo {
- title: { "name": string, "url": string, "accessMode": string};
- authors: { "name": string, "url": string}[];
- date: string;
- embargoEndDate: string;
- type: string;
- downloadFrom: Map; //key is name
- publishedIn: Map; //key is name
- identifiers: Map;
- publisher: string;
- subjects: string[];
- classifiedSubjects: Map;
- description: string;
- bestlicense: string;
- collectedFrom: { "name": string, "url": string}[];
- fundedByProjects: { "url": string, "acronym": string, "title": string,
- "funderShortname": string, "funderName": string,
- "funding": string, "new": boolean}[];
- //relatedPublications: { "name": string, "url": string, "date": string, "trust": string}[];
- //relatedResearchData: { "name": string, "url": string, "date": string, "trust": string}[];
- //similarPublications: { "name": string, "url": string, "date": string, "trust": string}[];
- //similarDatasets: { "name": string, "url": string, "date": string, "trust": string}[];
- relatedResearchResults: { "name": string, "url": string, "date": string, "trust": string, "class": string}[];
- similarResearchResults: {"name": string, "url": string, "date": string, "trust": string, "class": string}[];
- contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string}[];
-}
diff --git a/portal/src/app/entities/personInfo.ts b/portal/src/app/entities/personInfo.ts
deleted file mode 100644
index 046e6f1f..00000000
--- a/portal/src/app/entities/personInfo.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export class PersonInfo {
- fullname: string;
- firstname: string;
- secondnames: string;
- country: string;
-
- publications: any;
- researchData: any;
-}
diff --git a/portal/src/app/entities/projectInfo.ts b/portal/src/app/entities/projectInfo.ts
deleted file mode 100644
index e08e5043..00000000
--- a/portal/src/app/entities/projectInfo.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-export class ProjectInfo {
- acronym: string;
- title: string;
- callIdentifier: string;
- funder: string;
- funding: string;
- contractNum: string;
- startDate: string;
- endDate: string;
- openAccessMandate: string;
- specialClause39: string;
- organizations: Map;
- url: string;
- urlInfo: string;
-
- publications: any;
- researchData: any;
- statistics: any;
-}
diff --git a/portal/src/app/entities/publication.ts b/portal/src/app/entities/publication.ts
deleted file mode 100644
index c3904b15..00000000
--- a/portal/src/app/entities/publication.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export class Publication {
- title: string;
- publisher: string;
- DOI: string;
- source: string;
- type: string;
-}
diff --git a/portal/src/app/entities/publicationInfo.ts b/portal/src/app/entities/publicationInfo.ts
deleted file mode 100644
index 598c5907..00000000
--- a/portal/src/app/entities/publicationInfo.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-export class PublicationInfo {
- title: { "name": string, "url": string, "accessMode": string};
- authors: { "name": string, "url": string}[];
- date: string;
- embargoEndDate: string;
- types: string[];
- downloadFrom: Map; //key is name
- publishedIn: Map; //key is name
- bioentities: Map>; //>
- identifiers: Map; //key is the classname
- publisher: string;
- journal: {"journal": string, "issn": string, "lissn": string};
- languages: string[];
- subjects: string[];
- classifiedSubjects: Map; //
- description: string;
- bestlicense: string;
- collectedFrom: { "name": string, "url": string}[];
- fundedByProjects: { "url": string, "acronym": string, "title": string,
- "funderShortname": string, "funderName": string,
- "funding": string, "new": boolean}[];
- //relatedPublications: { "name": string, "url": string, "date": string, "trust": string}[];
- //relatedResearchData: { "name": string, "url": string, "date": string, "trust": string}[];
- //similarPublications: {"name": string, "url": string, "date": string, "trust": string}[];
- //similarDatasets: {"name": string, "url": string, "date": string, "trust": string}[];
- relatedResearchResults: { "name": string, "url": string, "date": string, "trust": string, "class": string}[];
- similarResearchResults: {"name": string, "url": string, "date": string, "trust": string, "class": string}[];
- references: { "name": string, "url": string}[];
- contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string}[];
-}
diff --git a/portal/src/app/home/home.component.html b/portal/src/app/home/home.component.html
deleted file mode 100644
index 6ae03c49..00000000
--- a/portal/src/app/home/home.component.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
diff --git a/portal/src/app/home/home.component.ts b/portal/src/app/home/home.component.ts
deleted file mode 100644
index 01f853fb..00000000
--- a/portal/src/app/home/home.component.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import {Component} from '@angular/core';
-import {RouteConfig, ROUTER_DIRECTIVES, Router} from '@angular/router-deprecated';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {SearchComponent} from '../searchPages/search.component';
-import {AutocompleteComponent} from '../common/autoComplete.component';
-@Component({
- selector: 'home',
- templateUrl: 'src/app/home/home.component.html',
- directives: [
- ...ROUTER_DIRECTIVES, AutocompleteComponent
- ],
-})
-
-export class HomeComponent {
- constructor ( private _router: Router) {}
-
- searchTerm(term: string) {
- this._router.navigate( ['Search', { keyword: term }] );
- }
-}
diff --git a/portal/src/app/landingPages/dataset/dataset.component.ts b/portal/src/app/landingPages/dataset/dataset.component.ts
deleted file mode 100644
index 8af4dcaf..00000000
--- a/portal/src/app/landingPages/dataset/dataset.component.ts
+++ /dev/null
@@ -1,326 +0,0 @@
-import {Component, ViewChild} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {DatasetService} from '../../services/dataset.service';
-import {DatasetInfo} from '../../entities/datasetInfo';
-import { RouteParams} from '@angular/router-deprecated';
-import { InlineClaimContextComponent} from '../../claimPages/inlineClaimContext/inlineClaimContext.component';
-import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/inlineClaimProject.component';
-
-import {TabPagingComponent} from '../tabPaging.component.ts';
-import {TabTableComponent} from '../tabTable.component.ts';
-import {ShowTitleComponent} from '../showTitle.component.ts';
-import {ShowAuthorsComponent} from '../showAuthors.component.ts';
-import {ShowIdentifiersComponent} from '../showIdentifiers.component.ts';
-import {ShowSubjectsComponent} from '../showSubjects.component.ts';
-
-@Component({
- selector: 'dataset',
- template: `
-
- `,
- providers:[JSONP_PROVIDERS, DatasetService],
- directives:[InlineClaimContextComponent, InlineClaimProjectComponent,
- TabTableComponent, ShowTitleComponent, ShowAuthorsComponent,
- ShowIdentifiersComponent, ShowSubjectsComponent]
-})
-
-export class DatasetComponent {
- constructor (private _datasetService: DatasetService, private _routeParams: RouteParams) {
- console.info('dataset constructor');
- this.params = _routeParams;
- }
- ngOnInit() {
- this.getDatasetInfo();
- }
-
- private datasetInfo: DatasetInfo;
- private params: RouteParams;
-
- private showStyle: boolean = false;
- private showAllReferences: boolean = false;
- private showAllRelResData: boolean = false;
- private showAllSimilPubl: boolean = false;
- private showAllBioentities: boolean = false;
-
- private result ;
- private claimInline:string = "none" ;
-
- @ViewChild (InlineClaimProjectComponent) inlineClaimProject : InlineClaimProjectComponent ;
- @ViewChild (InlineClaimContextComponent) inlineClaimContext : InlineClaimContextComponent ;
-
- public warningMessage = "";
- public errorMessage = "";
-
- getDatasetInfo() {
- this.warningMessage = '';
- this.errorMessage=""
- if(this.params.get("datasetId")==null || this.params.get("datasetId")==''){
- this.warningMessage="No valid dataset id";
- console.info("novalid");
- }else{
- console.info("do request");
- this._datasetService.getDatasetInfo(this.params.get("datasetId")).subscribe(
- data => {
- this.datasetInfo = data;
-
- this.result = []
- let result_ ={id: this.params.get("datasetId"), type :"dataset", source : "openaire", title: this.datasetInfo.title,url: '', result: '', accessRights: this.datasetInfo.bestlicense, embargoEndDate: ''};
- this.result.push(result_);
- },
- err => {
- console.error(err)
- console.info("error");
-
- this.errorMessage = 'No dataset found';
- }
- );
- }
- }
-
- /********** Methods for Inline Claim of project / dataset ******/
- toggleClaimProject(){
- this.inlineClaimProject.toggle();
- }
- projectAdded($event){
- var projects =$event.value;
- if(projects){
- for(var i=0; i < projects.length; i++){
-
- if(this.datasetInfo.fundedByProjects == undefined) {
- this.datasetInfo.fundedByProjects = new Array<
- { "url": string, "acronym": string, "title": string,
- "funderShortname": string, "funderName": string,
- "funding": string, "new": boolean
- }>();
- }
- var project =projects[i];
-
- let counter = this.datasetInfo.fundedByProjects.length;
- this.datasetInfo.fundedByProjects[counter]['url'] =
- "http://localhost:3000/project?projectId="+project.projectId;
- this.datasetInfo.fundedByProjects[counter]['acronym'] = project.projectAcronym;
- this.datasetInfo.fundedByProjects[counter]['title'] = project.projectName;
- this.datasetInfo.fundedByProjects[counter]['funderShortname'] = project.selectedFunderId;
- this.datasetInfo.fundedByProjects[counter]['funderName'] = project.selectedFunderName;
- this.datasetInfo.fundedByProjects[counter]['new'] = true;
- }
- }
- }
- toggleClaimContext(){
- this.inlineClaimContext.toggle();
- }
- contextAdded($event){
- var contexts =$event.value;
- if(contexts){
- for(var i=0; i < contexts.length; i++){
- }
- }
- }
-}
diff --git a/portal/src/app/landingPages/person/person.component.ts b/portal/src/app/landingPages/person/person.component.ts
deleted file mode 100644
index b4e4d5f0..00000000
--- a/portal/src/app/landingPages/person/person.component.ts
+++ /dev/null
@@ -1,137 +0,0 @@
-import {Component} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams } from '@angular/router-deprecated';
-import {PersonService} from '../../services/person.service';
-import {PersonInfo} from '../../entities/personInfo';
-
-@Component({
- selector: 'person',
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
- Share - Bookmark
-
-
-
-
-
-
-
-
-
-
- `,
- providers:[JSONP_PROVIDERS, PersonService]
-})
-
-export class PersonComponent {
- constructor (private _personService: PersonService,
- private _routeParams: RouteParams) {
- console.info('person constructor');
- this.params = _routeParams;
- }
-
- ngOnInit() {
- console.info('person init');
- this.getPersonInfo();
- }
-
- personInfo: PersonInfo;
- params: RouteParams;
-
- public warningMessage = "";
- public errorMessage = "";
-
- getPersonInfo () {
- console.info("inside getProjectInfo of component");
-
- this.warningMessage = '';
- this.errorMessage=""
- if(this.params.get("personId")==null || this.params.get("personId")==''){
- this.warningMessage="No valid person id";
- console.info("novalid");
- } else {
- console.info("do request");
-
- this._personService.getPersonInfo(this.params.get('personId')).subscribe(
- data => {
- this.personInfo = data;
- },
- err => {
- console.error(err)
- console.info("error");
-
- this.errorMessage = 'No person found';
- }
- );
- }
- }
-}
diff --git a/portal/src/app/landingPages/project/project.component.ts b/portal/src/app/landingPages/project/project.component.ts
deleted file mode 100644
index 06e4d1fa..00000000
--- a/portal/src/app/landingPages/project/project.component.ts
+++ /dev/null
@@ -1,238 +0,0 @@
-import {Component} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams } from '@angular/router-deprecated';
-import {ProjectService} from '../../services/project.service';
-import {ProjectInfo} from '../../entities/projectInfo';
-
-@Component({
- selector: 'project',
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
- Share - Bookmark
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- providers:[JSONP_PROVIDERS, ProjectService]
-})
-export class ProjectComponent {
- constructor (private _projectService: ProjectService,
- private _routeParams: RouteParams) {
- console.info('project constructor');
- this.params = _routeParams;
- }
-
- ngOnInit() {
- console.info('project init');
- this.getProjectInfo();
- }
-
- results : String[];
- orcidresults : String[];
- resultsNum : number ;
-
- projectInfo: ProjectInfo;
- params: RouteParams;
-
- public warningMessage = "";
- public errorMessage = "";
-
- getProjectInfo () {
- console.info("inside getProjectInfo of component");
-
- this.warningMessage = '';
- this.errorMessage=""
- if(this.params.get("projectId")==null || this.params.get("projectId")==''){
- this.warningMessage="No valid project id";
- console.info("novalid");
- } else {
- console.info("do request");
-
- this._projectService.getProjectInfo(this.params.get('projectId')).subscribe(
- data => {
- this.projectInfo = data;
- },
- err => {
- console.error(err)
- console.info("error");
-
- this.errorMessage = 'No project found';
- }
- );
- }
- }
-}
diff --git a/portal/src/app/landingPages/publication/publication.component.ts b/portal/src/app/landingPages/publication/publication.component.ts
deleted file mode 100644
index 91ae7c8e..00000000
--- a/portal/src/app/landingPages/publication/publication.component.ts
+++ /dev/null
@@ -1,450 +0,0 @@
-import {Component, ViewChild} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {PublicationService} from '../../services/publication.service';
-import {PublicationInfo} from '../../entities/publicationInfo';
-import { RouteParams} from '@angular/router-deprecated';
-import { InlineClaimContextComponent} from '../../claimPages/inlineClaimContext/inlineClaimContext.component';
-import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/inlineClaimProject.component';
-
-import {TabPagingComponent} from '../tabPaging.component.ts';
-import {TabTableComponent} from '../tabTable.component.ts';
-import {ShowTitleComponent} from '../showTitle.component.ts';
-import {ShowAuthorsComponent} from '../showAuthors.component.ts';
-import {ShowIdentifiersComponent} from '../showIdentifiers.component.ts';
-import {ShowSubjectsComponent} from '../showSubjects.component.ts';
-
-@Component({
- selector: 'publication',
- template: `
-
- `,
- providers:[JSONP_PROVIDERS, PublicationService],
- directives:[InlineClaimContextComponent, InlineClaimProjectComponent,
- TabPagingComponent, TabTableComponent, ShowTitleComponent,
- ShowAuthorsComponent, ShowIdentifiersComponent, ShowSubjectsComponent]
-})
-
-export class PublicationComponent {
- constructor (private _publicationService: PublicationService, private _routeParams: RouteParams) {
- console.info('publication constructor');
- this.params = _routeParams;
- }
-
- ngOnInit() {
- this.getPublicationInfo();
- }
-
- private publicationInfo: PublicationInfo;
- private params: RouteParams;
-
- private showAllReferences: boolean = false;
- private showAllRelResData: boolean = false;
- private showAllSimilPubl: boolean = false;
- private showAllBioentities: boolean = false;
- private showFundingDetails: boolean = false;
-
- private bioentitiesNum: number = 0;
-
- private result;
- private claimInline:string = "none" ;
-
- @ViewChild (InlineClaimProjectComponent) inlineClaimProject : InlineClaimProjectComponent ;
- @ViewChild (InlineClaimContextComponent) inlineClaimContext : InlineClaimContextComponent ;
-
- public warningMessage = "";
- public errorMessage = "";
-
- getPublicationInfo() {
- this.warningMessage = '';
- this.errorMessage=""
- if(this.params.get("articleId")==null || this.params.get("articleId")==''){
- this.warningMessage="No valid publication id";
- console.info("novalid");
- }else{
- console.info("do request");
- this._publicationService.getPublicationInfo(this.params.get("articleId")).subscribe(
- data => {
- this.publicationInfo = data;
-
- let bioentitiesNum = 0;
- if(this.publicationInfo.bioentities != undefined) {
- this.publicationInfo.bioentities.forEach(function (value, key, map) {
- bioentitiesNum += value.size;
- });
- }
- this.bioentitiesNum = bioentitiesNum;
-
- this.result = []
- let result_ ={id: this.params.get("articleId"), type :"publication", source : "openaire", title: this.publicationInfo.title,url: '', result: '', accessRights: this.publicationInfo.bestlicense, embargoEndDate: ''};
- this.result.push(result_);
- },
- err => {
- console.error(err)
- console.info("error");
-
- this.errorMessage = 'No publication found';
- }
- );
- }
- }
-
- /********** Methods for Inline Claim of project / publication ******/
- toggleClaimProject(){
- this.inlineClaimProject.toggle();
- }
- projectAdded($event){
- var projects =$event.value;
- if(projects){
- for(var i=0; i < projects.length; i++){
-
- if(this.publicationInfo.fundedByProjects == undefined) {
- this.publicationInfo.fundedByProjects = new Array<
- { "url": string, "acronym": string, "title": string,
- "funderShortname": string, "funderName": string,
- "funding": string, "new": boolean
- }>();
- }
- var project =projects[i];
-
- let counter = this.publicationInfo.fundedByProjects.length;
- this.publicationInfo.fundedByProjects[counter]['url'] =
- "http://localhost:3000/project?projectId="+project.projectId;
- this.publicationInfo.fundedByProjects[counter]['acronym'] = project.projectAcronym;
- this.publicationInfo.fundedByProjects[counter]['title'] = project.projectName;
- this.publicationInfo.fundedByProjects[counter]['funderShortname'] = project.selectedFunderId;
- this.publicationInfo.fundedByProjects[counter]['funderName'] = project.selectedFunderName;
- this.publicationInfo.fundedByProjects[counter]['new'] = true;
- }
- }
- }
- toggleClaimContext(){
- this.inlineClaimContext.toggle();
- }
- contextAdded($event){
- var contexts =$event.value;
- if(contexts){
- for(var i=0; i < contexts.length; i++){
- }
- }
- }
-
- showChange($event) {
- this.showAllReferences=$event.value;
- }
-}
diff --git a/portal/src/app/landingPages/showAuthors.component.ts b/portal/src/app/landingPages/showAuthors.component.ts
deleted file mode 100644
index cf6fa8db..00000000
--- a/portal/src/app/landingPages/showAuthors.component.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-
-@Component({
- selector: 'showAuthors',
- template: `
-
-
-
-
- {{item['name']}};
-
-
- 30"> ...
-
-
-
- {{item['name']}};
-
-
-
- 30">
-
- view all {{authors.length}} authors
-
-
-
- View less authors
-
-
-
- `
- ,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
- })
-
-export class ShowAuthorsComponent {
- @Input() authors: { [key: string]: string }[];
- private showAll: boolean = false;
-
- constructor (private _router: Router) {
- console.info('showAuthors constructor');
- }
-
- ngOnInit() {
- }
-}
diff --git a/portal/src/app/landingPages/showIdentifiers.component.ts b/portal/src/app/landingPages/showIdentifiers.component.ts
deleted file mode 100644
index 8b662355..00000000
--- a/portal/src/app/landingPages/showIdentifiers.component.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-
-@Component({
- selector: 'showIdentifiers',
- template: `
- 0">
-
Identifiers:
-
-
-
-
-
- `
- ,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
- })
-
-export class ShowIdentifiersComponent {
- @Input() identifiers: Map;//Map;
-
- constructor (private _router: Router) {
- console.info('showIdentifiers constructor');
- }
-
- ngOnInit() {
- }
-}
diff --git a/portal/src/app/landingPages/showSubjects.component.ts b/portal/src/app/landingPages/showSubjects.component.ts
deleted file mode 100644
index da180fd7..00000000
--- a/portal/src/app/landingPages/showSubjects.component.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-
-@Component({
- selector: 'showSubjects',
- template: `
-
- `
- ,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
- })
-
-export class ShowSubjectsComponent {
- @Input() subjects: string[];
- @Input() classifiedSubjects: Map;
- private showClassifiedSbj: boolean = false;
-
- constructor (private _router: Router) {
- console.info('showSubjects constructor');
- }
-
- ngOnInit() {
- }
-}
diff --git a/portal/src/app/landingPages/showTitle.component.ts b/portal/src/app/landingPages/showTitle.component.ts
deleted file mode 100644
index 805d58db..00000000
--- a/portal/src/app/landingPages/showTitle.component.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-
-@Component({
- selector: 'showTitle',
- template: `
-
-
-
-
- `
- ,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
- })
-
-export class ShowTitleComponent {
- @Input() title: { [key: string]: string };
-
- constructor (private _router: Router) {
- console.info('title constructor');
- }
-
- ngOnInit() {
- }
-}
diff --git a/portal/src/app/landingPages/tabPaging.component.ts b/portal/src/app/landingPages/tabPaging.component.ts
deleted file mode 100644
index b9709214..00000000
--- a/portal/src/app/landingPages/tabPaging.component.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-
-@Component({
- selector: 'tabPaging',
- template: `
-
- `
- ,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
- })
-
-export class TabPagingComponent {
- @Input() showAll: boolean;
- @Input() length: number;
- @Output() changeShowAll: EventEmitter = new EventEmitter();
-
- constructor (private _router: Router) {
- console.info('publication:paging constructor');
- }
-
- ngOnInit() {
- }
-}
diff --git a/portal/src/app/landingPages/tabTable.component.ts b/portal/src/app/landingPages/tabTable.component.ts
deleted file mode 100644
index e65588a6..00000000
--- a/portal/src/app/landingPages/tabTable.component.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
-
-
-@Component({
- selector: 'tabTable',
- template: `
-
-
-
- Title
- Trust
-
-
-
-
-
-
-
-
-
- {{item['name']}}
-
- {{item['name']}}
-
- ({{item['date']}})
-
-
-
-
-
- {{item['trust']}}
-
-
-
-
-
-
-
- `
- ,
- directives: [
- ...ROUTER_DIRECTIVES
- ]
- })
-
-export class TabTableComponent {
- @Input() info: { "name": string, "url": string, "date": string, "trust": string}[];//Map;
-
- constructor (private _router: Router) {
- console.info('tabTable constructor');
- }
-
- ngOnInit() {
- }
-}
diff --git a/portal/src/app/pipes/claimTextFilter.pipe.ts b/portal/src/app/pipes/claimTextFilter.pipe.ts
deleted file mode 100644
index e1d402f0..00000000
--- a/portal/src/app/pipes/claimTextFilter.pipe.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import {Pipe, PipeTransform} from '@angular/core';
-
-@Pipe({
- name: 'claimTextFilter'
-})
-export class ClaimTextFilterPipe implements PipeTransform {
-
- transform(value: any, filter: string): any {
- console.info('ClaimTextFilterPipe word to filter : '+filter);
- filter = filter?filter.toLocaleLowerCase():'';
- return filter ? value.filter(claim=> (
- claim.sourceType.toLocaleLowerCase().indexOf(filter)!=-1|| //sourceType
- claim.targetType.toLocaleLowerCase().indexOf(filter)!=-1|| //targetType
- claim.userMail.toLocaleLowerCase().indexOf(filter)!=-1|| //mail
- ((claim.source.title && claim.source.title.toLocaleLowerCase().indexOf(filter)!=-1)||(claim.source.name && claim.source.name.toLocaleLowerCase().indexOf(filter)!=-1))|| //source title
- ((claim.target.title && claim.target.title.toLocaleLowerCase().indexOf(filter)!=-1)||(claim.target.name && claim.target.name.toLocaleLowerCase().indexOf(filter)!=-1))|| //target title
- ((claim.source.funderName && claim.source.funderName.toLocaleLowerCase().indexOf(filter)!=-1)||(claim.source.funderName && claim.source.funderName.toLocaleLowerCase().indexOf(filter)!=-1))|| //source funder name
- ((claim.target.funderName && claim.target.funderName.toLocaleLowerCase().indexOf(filter)!=-1)||(claim.target.funderName && claim.target.funderName.toLocaleLowerCase().indexOf(filter)!=-1)) //target funder name
- )) : value;
- }
-}
diff --git a/portal/src/app/pipes/claimTypeFilter.pipe.ts b/portal/src/app/pipes/claimTypeFilter.pipe.ts
deleted file mode 100644
index 0c386c76..00000000
--- a/portal/src/app/pipes/claimTypeFilter.pipe.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-
-import {Pipe, PipeTransform} from '@angular/core';
-
-@Pipe({name: 'claimTypeFilter'})
-export class ClaimTypeFilterPipe implements PipeTransform {
- transform(value: any, publication:boolean,dataset:boolean,project:boolean,context:boolean) : any {
- let filter = publication;
- console.info('ClaimTypeFilterPipe types to show : '+(publication?'publication ':' ')+(dataset?'dataset ':' ')+(project?'project ':' ')+(context?'context ':' '));
- return (value)?value.filter((claim) =>{
- let filter =publication;
- if(publication||dataset||project||context) {
- let filter = publication
- if(filter && (claim.sourceType.toLocaleLowerCase().indexOf('publication')!=-1 || claim.targetType.toLocaleLowerCase().indexOf('publication')!=-1 )) {
- return true;
- }
- filter = dataset;
- if(filter && (claim.sourceType.toLocaleLowerCase().indexOf('dataset')!=-1 || claim.targetType.toLocaleLowerCase().indexOf('dataset')!=-1 )) {
- return true;
- }
- filter = project;
- if(filter && (claim.sourceType.toLocaleLowerCase().indexOf('project')!=-1 || claim.targetType.toLocaleLowerCase().indexOf('project')!=-1 )) {
- return true;
- }
- filter = context;
- if(filter && (claim.sourceType.toLocaleLowerCase().indexOf('context')!=-1 || claim.targetType.toLocaleLowerCase().indexOf('context')!=-1 )) {
- return true;
- }
- return false;
- }else{
- return true;
- }
- }):value;
- }
-
-}
diff --git a/portal/src/app/searchAll/searchAll.component.ts b/portal/src/app/searchAll/searchAll.component.ts
deleted file mode 100644
index f504584b..00000000
--- a/portal/src/app/searchAll/searchAll.component.ts
+++ /dev/null
@@ -1,127 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {SearchCrossrefService} from '../services/searchCrossref.service';
-import {Publication} from '../entities/publication';
-import {PagingFormatter} from '../common/pagingFormatter.component';
-import {PublicationTitleFormatter} from '../common/publicationTitleFormatter.component';
-
-
-@Component({
- selector: 'search-all',
- directives: [...ROUTER_DIRECTIVES,PagingFormatter, PublicationTitleFormatter],
- template: `
-
-
-
-
Selected publications:
-
{{item.DOI}} --{{item.publisher}} Remove
-
-
- Search
-
-
-
0">
-
{{resultsNum }} Total Results
-
-
-
-
-
{{item.DOI}} --{{item.publisher}} Select
-
-
-
-
- `,
- providers:[JSONP_PROVIDERS, SearchCrossrefService]
-})
-export class SearchAllComponent {
- constructor (private _searchService: SearchCrossrefService,
- private _routeParams: RouteParams) {}
- ngOnInit() {
- let page = +this._routeParams.get('page');
- let size = +this._routeParams.get('size');
- this.page = ( page <= 0 ) ? 1 : page;
- this.size = ( size <= 0 ) ? 10 : size;
- this.keyword = this._routeParams.get('keyword');
- if(this.keyword !=null){
- this.searchCrossref(this.keyword,this.size,this.page);
- }
- }
-
- page : number;
- size:number;
- keyword:string;
- navigateTo: string = "Search";
-
- @Input() public claim:boolean = true ; // add selection for claiming
- @Input() public publication:boolean = true ; // true for publication/ false for dataset
- @Input() public source:string = 'openaire' ; // other values : crossref/ datacite/orcid
- @Input() public selected = [] ;
- @Output() selectedChange = new EventEmitter();
- results:string[];
- resultsNum : Observable ;
- search(term: string, size : number, page : number) {
- // if(this.source == 'crossref' && this.publication){
- this.searchCrossref(term,size,page);
- // }else if(this.source == 'openaire' && this.publication){
- //
- // }else if(this.source == 'openaire' && this.publication){
- //
- // }else if(this.source == 'openaire' && !this.publication){
- //
- // }else if(this.source == 'orcid' && this.publication){
- //
- // }else if(this.source == 'datacite' && !this.publication){
- //
- // }
- }
- searchCrossref (term: string, size : number, page : number) {
- this._searchService.searchCrossrefResults(term, size, page).subscribe(
- data => {
- this.results = data.items;
- this.page=page;
- this.resultsNum = data['total-results'];
- },
- err => console.error(err)
- );
- }
- searchOpenaire (term2: string) {
- //this.items = this._searchService.httpSearchOpenaire(term2);
- }
-
-
-
- add(item){
- this.selected.push(item);
- console.info("Select:"+this.selected);
- for (var i = 0; i < this.selected.length; i++) {
- console.log(this.selected[i]);
- }
-
-
- var index:number =this.results.indexOf(item);
- if (index > -1) {
- this.results.splice(index, 1);
- }
- console.info("Item removed "+this.selected.indexOf(item));
- this.selectedChange.emit({
- value: this.selected
- });
- }
- remove(item){
- var index:number =this.selected.indexOf(item);
- if (index > -1) {
- this.selected.splice(index, 1);
- }
- this.selectedChange.emit({
- value: this.selected
- });
-
- }
-
-}
diff --git a/portal/src/app/searchPages/common/search.class.ts b/portal/src/app/searchPages/common/search.class.ts
deleted file mode 100644
index 95094d78..00000000
--- a/portal/src/app/searchPages/common/search.class.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-export class Filter{
- public title: string;
- public filterId: string;
- public countSelectedValues: number;
- public values: Value[];
-
-}
-export class Value{
- public name: string;
- public id: string;
- public selected: boolean;
- public number: number;
-
-}
diff --git a/portal/src/app/searchPages/common/searchFilter.component.ts b/portal/src/app/searchPages/common/searchFilter.component.ts
deleted file mode 100644
index 20d1072c..00000000
--- a/portal/src/app/searchPages/common/searchFilter.component.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import { Filter, Value} from './search.class';
-
-@Component({
- selector: 'search-filter',
- template: `
- {{filter.title}}
-
- {{value.name}} ({{value.number}})
-
-
- 5" (click)="toggleShowAll()" > More
- 5 && showAll" >
-
- {{value.name}} ({{value.number}})
-
- Less
-
-
- `
-})
-export class SearchFilterComponent {
- @Input() title;
- @Input() filterId;
- @Input() values; //array[] " name, id, number, selected"
- @Input() countSelectedValues:number = 0; //array[] " name, id, number, selected"
- @Output() change = new EventEmitter();
- @Input() test:{value:number} ;
- @Input() filter:Filter;
- private showAll:boolean = false;
- constructor () {
-
- }
- ngOnInit() {
-
- }
-
- toggleShowAll(){
- this.showAll = !this.showAll;
- }
-
- filterChange(selected:boolean){
- if(selected){
- this.filter.countSelectedValues++;
- }else{
- this.filter.countSelectedValues--;
- }
- this.change.emit({
- value: true
- });
- }
-
-
-}
diff --git a/portal/src/app/searchPages/common/searchPage.component.ts b/portal/src/app/searchPages/common/searchPage.component.ts
deleted file mode 100644
index 2ae05616..00000000
--- a/portal/src/app/searchPages/common/searchPage.component.ts
+++ /dev/null
@@ -1,170 +0,0 @@
-import {Component, Input, ViewChild, Output, EventEmitter} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {Location} from '@angular/common';
-import {SearchResultComponent} from './searchResult.component';
-import {SearchFilterComponent} from './searchFilter.component';
-import {pagingFormatterNoLoad} from '../../common/pagingFormatterNoLoad.component';
-import { Filter, Value} from './search.class';
-
-@Component({
- selector: 'search-page',
- template: `
-
-
-
- `,
- directives:[SearchResultComponent, SearchFilterComponent, pagingFormatterNoLoad]
-})
-export class SearchPageComponent {
- @Input() pageTitle = "";
- @Input() results = [];
- @Input() filters = [];
- @Input() type;
- @Input() page:number = 1;
- @Input() size: number = 10;
- @Input() totalResults: number = 0;
- @Input() keyword:string = '';
-
- test= { value: 0};
-
- @Output() queryChange = new EventEmitter();
- constructor (private location: Location) {
-
- }
- ngOnInit() {
- console.info(" page - value: "+this.page);
-
- }
-
- changekeyword(){
-
- }
-
- private createUrlParameters(){
- var allLimits="";
- for (let filter of this.filters){
- var filterLimits="";
- if(filter.countSelectedValues > 0){
- for (let value of filter.values){
- if(value.selected == true){
- filterLimits+=((filterLimits.length == 0)?'':',') + value.id;
- }
- }
- allLimits+=((filterLimits.length == 0 )?'':((allLimits.length == 0)?'':'&') +filter.filterId + '='+ filterLimits) ;
- }
- }
- if(this.keyword.length > 0 ){
- allLimits+=((allLimits.length == 0)?'':'&') + 'keyword=' + this.keyword;
- }
- if(this.page != 1 ){
- allLimits+=((allLimits.length == 0)?'':'&') + 'page=' + this.page;
- }
- return allLimits;
- }
- private createQueryParameters(){
- var allLimits="";
- for (let filter of this.filters){
- if(filter.countSelectedValues > 0){
- var filterLimits="";
- for (let value of filter.values){
- if(value.selected == true){
- filterLimits+=((filterLimits.length == 0)?'':' or ') + filter.filterId + '='+ value.id;
- }
- }
- allLimits+=((filterLimits.length == 0 )?'':((allLimits.length == 0)?'':' and ')+'('+filterLimits +')') ;
- }
- }
- if(this.keyword.length > 0 ){
- allLimits+=((allLimits.length == 0)?'':' and ') + ' keyword=' + this.keyword;
- }
- return allLimits;
- }
- private isFiltered(){
- var filtered=false;
- for (let filter of this.filters){
- if(filter.countSelectedValues > 0){
- filtered = true;
- break;
- }
- }
- if(this.keyword.length > 0 ){
- filtered = true;
- }
- return filtered;
- }
- clearFilters(){
- for (let filter of this.filters){
- if(filter.countSelectedValues > 0){
- for (let value of filter.values){
- if(value.selected == true){
- value.selected = false;
- }
- }
- filter.countSelectedValues = 0;
- }
- }
- if(this.keyword.length > 0 ){
- this.keyword ='';
- }
- }
-
- goTo(page:number = 1){
- this.page = page;
- var urlParameters = this.createUrlParameters();
- var queryParameters = this.createQueryParameters();
- this.location.go(location.pathname,urlParameters);
- this.queryChange.emit({
- value: queryParameters
- });
-
- }
- filterChanged($event){
- this.goTo(1);
- }
- pageChanged($event) {
- this.page = +$event.value
- this.goTo(this.page);
- }
-
-}
diff --git a/portal/src/app/searchPages/common/searchResult.component.ts b/portal/src/app/searchPages/common/searchResult.component.ts
deleted file mode 100644
index cd766828..00000000
--- a/portal/src/app/searchPages/common/searchResult.component.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import {Component, Input} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-
-@Component({
- selector: 'search-result',
- template: `
- {{title}}
-
- `
-})
-export class SearchResultComponent {
- @Input() title;
- @Input() id;
- //publications & organizations:
- @Input() projects;
- //datasets & publications
- @Input() description;
- @Input() year;
- @Input() authors;
- //datasets:
- @Input() publisher;
- //dataproviders & projects:
- @Input() organizations;
- //projects:
- @Input() funders;
- //organizations:
- @Input() country;
- //dataproviders:
- @Input() type;
- @Input() websiteURL;
- @Input() OAIPMHURL;
-
- constructor () {
-
- }
- ngOnInit() {
-
- }
-
-}
diff --git a/portal/src/app/searchPages/search.component.ts b/portal/src/app/searchPages/search.component.ts
deleted file mode 100644
index 1636b90a..00000000
--- a/portal/src/app/searchPages/search.component.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import {Component} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {SearchCrossrefService} from '../services/searchCrossref.service';
-import {Publication} from '../entities/publication';
-import {PagingFormatter} from '../common/pagingFormatter.component';
-import {PublicationTitleFormatter} from '../common/publicationTitleFormatter.component';
-import {SearchAllComponent} from '../searchAll/searchAll.component';
-
-@Component({
- selector: 'search',
- directives: [...ROUTER_DIRECTIVES,PagingFormatter, PublicationTitleFormatter,SearchAllComponent],
- template: `
- Search Demo
- Fetches from crossref
-
-
-
0">
-
{{resultsNum }} Total Results
-
-
-
-
{{item.DOI}} --{{item.publisher}}
-
-
-
-
-
- `,
- providers:[JSONP_PROVIDERS, SearchCrossrefService]
-})
-export class SearchComponent {
- constructor (private _searchService: SearchCrossrefService,
- private _routeParams: RouteParams) {
- console.info('search constructor');
- }
- ngOnInit() {
- console.info('search init');
-
- let page = +this._routeParams.get('page');
- let size = +this._routeParams.get('size');
- this.page = ( page <= 0 ) ? 1 : page;
- this.size = ( size <= 0 ) ? 10 : size;
- this.keyword = this._routeParams.get('keyword');
- if(this.keyword !=null){
- this.search(this.keyword,this.size,this.page);
- }
-}
-
- page : number;
- size:number;
- keyword:string;
- navigateTo: string = "Search";
-
- results : String[];
- orcidresults : String[];
- resultsNum : number ;
- search (term: string, size : number, page : number) {
- this.getCrossrefResults(term,size,page);
- }
-
-
- getCrossrefResults (term: string, size : number, page : number) {
- this._searchService.searchCrossrefResults(term, size, page).subscribe(
- data => {
- this.results = data.items;
- this.page=page;
- this.resultsNum = data['total-results'];
- },
- err => console.error(err)
- );
- }
-
-}
diff --git a/portal/src/app/searchPages/searchPublications.component.ts b/portal/src/app/searchPages/searchPublications.component.ts
deleted file mode 100644
index 16888c87..00000000
--- a/portal/src/app/searchPages/searchPublications.component.ts
+++ /dev/null
@@ -1,99 +0,0 @@
-import {Component, Input, ViewChild} from '@angular/core';
-import {JSONP_PROVIDERS} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
-import {SearchPageComponent} from './common/searchPage.component';
-import { Filter, Value} from './common/search.class';
-
-@Component({
- selector: 'search-publications',
- template: `
-
-
-
- `,
- directives:[SearchPageComponent]
-})
-export class SearchPublicationsComponent {
- results =[];
- filters =[];
- totalResults:number = 0 ;
- keyword = '';
- page :number = 1;
- constructor (private _routeParams: RouteParams) {
- this.results =[];
- this.filters =[];
- this.totalResults = 123;
- for(var i=0; i<10 ; i++){
- var result = {title: "title"+i, id: "id"+i}
- this.results.push(result);
- }
-
- for(var i=0; i<5 ; i++){
- var values = [];
- for(var j=0; j<10 ; j++){
- var value:Value = {name: "name"+j, id: "filter_"+i+ "_id_"+j, number:j, selected:false}
- values.push(value);
- }
- values.sort((n2,n1) => {
- if (n1.number > n2.number) {
- return 1;
- }
-
- if (n1.number < n2.number) {
- return -1;
- }
-
- return 0;
- });
- var filter:Filter = {title: "title"+i, filterId: "filter_"+i, values : values, countSelectedValues:0}
- this.filters.push(filter);
- }
-
-
- }
- ngOnInit() {
-
- let page = +this._routeParams.get('page');
- let size = +this._routeParams.get('size');
- this.page= (page?page:1);
- this.keyword = (this._routeParams.get('keyword')?this._routeParams.get('keyword'):'');
- //TODO get the rest parameters to create query
-
-
- }
-
- getResults(parameters:string){
- //http://rudie.di.uoa.gr:8080/dnet-functionality-services-1.2.0-SNAPSHOT/search?action=searchNrefine&sTransformer=results_openaire&rTransformer=results_openaire_browse&query=%28oaftype+exact+result%29+and+%28resulttypeid+exact+publication%29&page=5&size=10&fields=instancetypenameid&fields=resultlanguageid&fields=relfunderid&fields=relprojectid&fields=resultacceptanceyear&fields=resultbestlicense&fields=resulthostingdatasourceid&fields=communityid&locale=en_GB
- console.info("Execute search query "+parameters);
- // this.results =[];
- // this.filters =[];
- // for(var i=0; i<30 ; i++){
- // var result = {title: "title"+i, id: "id"+i}
- // this.results.push(result);
- // }
- //
- // for(var i=0; i<5 ; i++){
- // var values = [];
- // for(var j=0; j<10 ; j++){
- // var value = {name: "name"+j, id: "id"+j, number:j, selected:false}
- // values.push(value);
- // }
- // var filter = {title: "title"+i, filterId: "id"+i, values : values}
- // this.filters.push(filter);
- // }
-
- }
- private setFilters(){
- //TODO set filters from
- }
-
- private queryChanged($event) {
- var parameters = $event.value
- this.getResults(parameters)
- console.info("Execute search query "+parameters);
-
- }
-
-
-}
diff --git a/portal/src/app/services/claims.service.ts b/portal/src/app/services/claims.service.ts
deleted file mode 100644
index ef4c73a1..00000000
--- a/portal/src/app/services/claims.service.ts
+++ /dev/null
@@ -1,101 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Jsonp, URLSearchParams,ResponseOptions, RequestOptions, Headers} from '@angular/http';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {Claim} from '../entities/claim';
-
-@Injectable()
-export class ClaimsService {
- // baseUrl='http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/';
- baseUrl='http://scoobydoo.di.uoa.gr:8181/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/';
- constructor(private jsonp: Jsonp, private http: Http) {
-
- }
-
- private getClaimRequest(size : number, page : number, url :string):any {
- console.info('ClaimsService: Claims request: '+url);
- return this.http.get( url)
- .map(request => request.json())
- .do(request => console.info("Get claims: offset = "+(size*(page-1)) + " limit ="+size ))
- .catch(this.handleError);
- }
- getClaims( size : number, page : number, keyword:string, sortby: string, descending: boolean, types: string):any {
- console.info('ClaimsService: getClaims ' );
- console.info('ClaimsService: Types : '+types );
- let url = this.baseUrl +"claims"+"?offset="+(size*(page-1) + "&limit="+size)+"&keyword="+keyword+"&sortby="+sortby+"&descending="+descending+"&types="+types;
- return this.getClaimRequest(size,page,url);
-
- }
- getClaimsByUser( size : number, page : number, user:string, keyword:string, sortby: string, descending: boolean, types: string):any {
- console.info('ClaimsService: getClaims for user : '+user);
- let url = this.baseUrl +"users/"+user+"/claims"+"?offset="+(size*(page-1) + "&limit="+size)+"&keyword="+keyword+"&sortby="+sortby+"&descending="+descending+"&types="+types;
- return this.getClaimRequest(size,page,url);
-
- }
- getClaimsBycontext( size : number, page : number, contextId:string, keyword:string, sortby: string, descending: boolean, types: string):any {
- console.info('ClaimsService: getClaims for context : '+contextId);
- let url = this.baseUrl +"contexts/"+contextId+"/claims"+"?offset="+(size*(page-1) + "&limit="+size)+"&keyword="+keyword+"&sortby="+sortby+"&descending="+descending+"&types="+types;
- return this.getClaimRequest(size,page,url);
-
- }
- getClaimsByResult( size : number, page : number, resultId:string, keyword:string, sortby: string, descending: boolean, types: string):any {
- console.info('ClaimsService: getClaims for result : '+resultId);
- let url = this.baseUrl +"results/"+resultId+"/claims"+"?offset="+(size*(page-1) + "&limit="+size)+"&keyword="+keyword+"&sortby="+sortby+"&descending="+descending+"&types="+types;
- return this.getClaimRequest(size,page,url);
-
- }
- getClaimsByProject( size : number, page : number, projectId:string, keyword:string, sortby: string, descending: boolean, types: string):any {
- console.info('ClaimsService: getClaims for project : '+projectId);
- let url = this.baseUrl +"projects/"+projectId+"/claims"+"?offset="+(size*(page-1) + "&limit="+size)+"&keyword="+keyword+"&sortby="+sortby+"&descending="+descending+"&types="+types;
- return this.getClaimRequest(size,page,url);
- }
-
- deleteClaimById(claimId:string):any{
- console.warn('Trying to delete claim with id : '+claimId);
- let url = this.baseUrl +"claims/"+claimId;
- console.warn('Delete url: '+url);
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.delete( url, options).map(request => request.json())
- .do(request => console.info("After delete" ))
- .catch(this.handleError);
-
- }
- insertClaim(claim):any{
- console.warn('Trying toinsert claim : '+claim);
- let url = this.baseUrl +"claims";
- let body = JSON.stringify( claim );
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.post(url, body, options)
- .map(res => res.json())
- .do(request => console.info("Insert Response:"+request.status) )
- .catch(this.handleError);
-
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
- getClaim(id:string):any {
- let url = this.baseUrl+"claims/"+id;
- return new Promise((resolve, reject) => {
- this.http.get(url)
- .map(res => res.json())
- .subscribe(
- data => {
- resolve(data.data);
- },
- err => {
- reject(err);
- }
- )
- ;
- });
- }
-
-}
diff --git a/portal/src/app/services/contexts.service.ts b/portal/src/app/services/contexts.service.ts
deleted file mode 100644
index 9b28a8b6..00000000
--- a/portal/src/app/services/contexts.service.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Jsonp, URLSearchParams,ResponseOptions} from '@angular/http';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {Claim} from '../entities/claim';
-
-@Injectable()
-export class ContextsService {
- // baseUrl='http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/';
- baseUrl='http://scoobydoo.di.uoa.gr:8181/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/';
- //'http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/communities';
-//http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/communities/egi/categories
-//http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/categories/egi::classification/concepts
- constructor(private http: Http) {
-
- }
-
- public getCommunities():any {
- let url = this.baseUrl + 'communities';
- console.info('ContextsService: request communities '+url);
- return this.http.get( url)
- .map(request => request.json().data)
- .do(request => console.info("Get claims: offset = "))
- .catch(this.handleError);
- }
- public getCategories(communityId :string):any {
- console.info('ContextsService: request categories for community with id '+communityId);
- let url= this.baseUrl + 'communities/' + communityId + '/categories';
- return this.http.get( url)
- .map(request => request.json().data)
- .do(request => console.info("Get claims: offset = " ))
- .catch(this.handleError);
- }
- public getConcepts(categoryId :string, keyword: string):any {
- console.info('ContextsService: request concept for category with id '+categoryId + ' and keyword '+ keyword);
- let url= this.baseUrl + 'categories/' + categoryId+ "/concepts";
- return this.http.get( url)
- .map(request => request.json().data)
- .do(request => console.info("Get claims: offset = " ))
- .catch(this.handleError);
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-}
diff --git a/portal/src/app/services/dataset.service.ts b/portal/src/app/services/dataset.service.ts
deleted file mode 100644
index bf870efd..00000000
--- a/portal/src/app/services/dataset.service.ts
+++ /dev/null
@@ -1,616 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {DatasetInfo} from '../entities/datasetInfo';
-
-@Injectable()
-export class DatasetService {
-
- constructor(private http: Http) {}
-
- datasetInfo: DatasetInfo;
-
- getDatasetInfo (id: string):any {
- console.info("getDatasetInfo in service");
-
- //let url = 'http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/datasets/'+id;
- //let url = 'http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/datasets/'+id;
- let url = 'http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/datasets/'+id;
-
-
- return this.http.get(url)
- .map(res => res.json())
- .do(res => console.info(res['result']['metadata']['oaf:entity']))
- .map(res => res['result']['metadata']['oaf:entity']['oaf:result'])
- .map(res => [res,
- res['title'],
- res['rels']['rel'],
- res['children'],
- res['pid'],
- res['subject'],
- res['bestlicense'],
- res['collectedfrom'],
- res['context'],
- res['resulttype']
- ])
- .map(res => this.parseDatasetInfo(res));
-
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
- parseDatasetInfo (data: any):any {
- this.datasetInfo = new DatasetInfo();
-
- if(data[0] != null) {
- this.datasetInfo.date = data[0].dateofacceptance.substring(0,4);
- this.datasetInfo.publisher = data[0].publisher;
- if(!Array.isArray(data[0].description)) {
- this.datasetInfo.description = data[0].description;
- } else {
- this.datasetInfo.description = data[0].description[0];
- }
- this.datasetInfo.embargoEndDate = data[0].embargoenddate;
- }
-
- if(data[1] != null) {
- this.datasetInfo.title = {"name": "", "url": "", "accessMode": ""};
- if(Array.isArray(data[1])) {
- this.datasetInfo.title['name'] = data[1][0].content;
- } else {
- this.datasetInfo.title['name'] = data[1].content;
- }
- }
-
- if(data[2] != null) {
- let mydata;
- let counter = 0;
- let length = data[2].length!=undefined ? data[2].length : 1;
-
- for(let i=0; i 1 ? data[2][i] : data[2];
- if(mydata.hasOwnProperty("to")) {
- if(mydata['to'].class == "hasAuthor") {
- if(this.datasetInfo.authors == undefined) {
- this.datasetInfo.authors = new Array<{"name": string, "url": string}>();
- }
-
- this.datasetInfo.authors[mydata.ranking-1] = {"name": "", "url": ""};
- this.datasetInfo.authors[mydata.ranking-1]['name'] = mydata.fullname;
- this.datasetInfo.authors[mydata.ranking-1]['url'] = "https://beta.openaire.eu/search/person?personId="+mydata['to'].content;
- } else if(mydata['to'].class == "isProducedBy") {
- if(this.datasetInfo.fundedByProjects == undefined) {
- this.datasetInfo.fundedByProjects = new Array<
- { "url": string, "acronym": string, "title": string,
- "funderShortname": string, "funderName": string,
- "funding": string, "new": boolean
- }>();
- }
-
- counter = this.datasetInfo.fundedByProjects.length;
-
- this.datasetInfo.fundedByProjects[counter] = {
- "url": "", "acronym": "", "title": "",
- "funderShortname": "", "funderName": "",
- "funding": "", "new": false
- }
-
- this.datasetInfo.fundedByProjects[counter]['url'] =
- "http://localhost:3000/project?projectId="+mydata['to'].content;
- this.datasetInfo.fundedByProjects[counter]['acronym'] = mydata.acronym;
- this.datasetInfo.fundedByProjects[counter]['title'] = mydata.title;
-
- if(mydata.hasOwnProperty("funding")) {
- let length1 = Array.isArray(mydata['funding']) ? mydata['funding'].length : 1;
-
- for(let j=0; j 1 ? mydata['funding'][j] : mydata['funding'];
-
- if(mydata1.hasOwnProperty("funder")) {
- this.datasetInfo.fundedByProjects[counter]['funderShortname'] = mydata1['funder'].shortname;
- this.datasetInfo.fundedByProjects[counter]['funderName'] = mydata1['funder'].name;
- }
-
- if(mydata1.hasOwnProperty("funding_level_2")) {
- funding = mydata1['funding_level_2'].content;
- } else if(mydata1.hasOwnProperty("funding_level_1")) {
- funding = mydata1['funding_level_1'].content;
- } else if(mydata1.hasOwnProperty("funding_level_0")) {
- funding = mydata1['funding_level_0'].content;
- }
-
- if(funding != undefined) {
- funding = funding.split("::");
-
- if(this.datasetInfo.fundedByProjects[counter]['funding'] != "") {
- this.datasetInfo.fundedByProjects[counter]['funding'] += ", "+funding[1];
- } else {
- this.datasetInfo.fundedByProjects[counter]['funding'] = funding[1];
- }
- for(let i=2; i();
- }
-
- let url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- let counter = this.datasetInfo.similarPublications.length;
-
- this.datasetInfo.similarPublications[counter] = {"name": "", "url": "", "date": "", "trust": ""};
- this.datasetInfo.similarPublications[counter]['url'] = url;
- this.datasetInfo.similarPublications[counter]['name'] = mydata['title'].content;
- this.datasetInfo.similarPublications[counter]['date'] = mydata.dateofacceptance.substring(0,4);
- this.datasetInfo.similarPublications[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- } else if(mydata.hasOwnProperty('resulttype') && mydata['resulttype'].classname == "dataset") {
- if(this.datasetInfo.similarDatasets == undefined) {
- this.datasetInfo.similarDatasets = new Array<
- { "name": string, "url": string, "date": string, "trust": string}>();
- }
-
- let url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- let counter = this.datasetInfo.similarDatasets.length;
-
- this.datasetInfo.similarDatasets[counter] = {"name": "", "url": "", "date": "", "trust": ""};
- this.datasetInfo.similarDatasets[counter]['url'] = url;
- this.datasetInfo.similarDatasets[counter]['name'] = mydata['title'].content;
- this.datasetInfo.similarDatasets[counter]['date'] = mydata.dateofacceptance.substring(0,4);
- this.datasetInfo.similarDatasets[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- }*/
-
- if(this.datasetInfo.similarResearchResults == undefined) {
- this.datasetInfo.similarResearchResults = new Array<{
- "name": string, "url": string, "date": string,
- "trust": string, "class": string}>();
- }
-
- counter = this.datasetInfo.similarResearchResults.length;
- this.datasetInfo.similarResearchResults[counter] = {"name": "", "url": "", "date": "", "trust": "", "class": ""}
-
- let url;
- if(mydata['resulttype'].classname == "publication") {
- url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- this.datasetInfo.similarResearchResults[counter]['class'] = "publication";
- } else {
- url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- this.datasetInfo.similarResearchResults[counter]['class'] = "dataset";
- }
-
- this.datasetInfo.similarResearchResults[counter]['url'] = url;
- this.datasetInfo.similarResearchResults[counter]['name'] = mydata['title'].content;
- this.datasetInfo.similarResearchResults[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.datasetInfo.similarResearchResults[counter]['trust'] = Math.round(mydata.trust*100)+"%";
-
-
- } else if(mydata['to'].class == "isRelatedTo") {
- /*if(mydata.hasOwnProperty('resulttype')) {
- if(mydata['resulttype'].classname == "publication") {
- if(this.datasetInfo.relatedPublications == undefined) {
- this.datasetInfo.relatedPublications = new Array<{
- "name": string, "url": string, "date": string, "trust": string}>();
- }
- let url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- counter = this.datasetInfo.relatedPublications.length;
-
- this.datasetInfo.relatedPublications[counter] = {"name": "", "url": "", "date": "", "trust": ""}
-
- this.datasetInfo.relatedPublications[counter]['url'] = url;
- this.datasetInfo.relatedPublications[counter]['name'] = mydata['title'].content;
- this.datasetInfo.relatedPublications[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.datasetInfo.relatedPublications[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- } else {
- if(this.datasetInfo.relatedResearchData == undefined) {
- this.datasetInfo.relatedResearchData = new Array<{
- "name": string, "url": string, "date": string, "trust": string}>();
- }
- let url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- counter = this.datasetInfo.relatedResearchData.length;
-
- this.datasetInfo.relatedResearchData[counter] = {"name": "", "url": "", "date": "", "trust": ""}
-
- this.datasetInfo.relatedResearchData[counter]['url'] = url;
- this.datasetInfo.relatedResearchData[counter]['name'] = mydata['title'].content;
- this.datasetInfo.relatedResearchData[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.datasetInfo.relatedResearchData[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- }
- }*/
-
- if(this.datasetInfo.relatedResearchResults == undefined) {
- this.datasetInfo.relatedResearchResults = new Array<{
- "name": string, "url": string, "date": string,
- "trust": string, "class": string}>();
- }
-
- counter = this.datasetInfo.relatedResearchResults.length;
- this.datasetInfo.relatedResearchResults[counter] = {"name": "", "url": "", "date": "", "trust": "", "class": ""}
-
- let url;
- if(mydata['resulttype'].classname == "publication") {
- url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- this.datasetInfo.relatedResearchResults[counter]['class'] = "publication";
- } else {
- url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- this.datasetInfo.relatedResearchResults[counter]['class'] = "dataset";
- }
-
- this.datasetInfo.relatedResearchResults[counter]['url'] = url;
- this.datasetInfo.relatedResearchResults[counter]['name'] = mydata['title'].content;
- this.datasetInfo.relatedResearchResults[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.datasetInfo.relatedResearchResults[counter]['trust'] = Math.round(mydata.trust*100)+"%";
-
- }
- }
- }
-
- this.datasetInfo.authors = this.datasetInfo.authors.filter(function (item) {
- return (item != undefined);
- });
- }
-
- if(data[3] != null) {
- if(data[3].hasOwnProperty("instance")) {
- this.datasetInfo.downloadFrom = new Map();
- this.datasetInfo.publishedIn = new Map()
-
- let length = data[3]['instance'].length!=undefined ? data[3]['instance'].length : 1;
-
- let counter = 0;
- let counter1 = 0;
- let counter2 = 0;
- let mydata;
- for(let i=0; i 1 ? data[3]['instance'][i] : data[3]['instance'];
-
- if(mydata.hasOwnProperty("webresource")) {
- let url;
- if(mydata['webresource'].length == undefined) {
- url = mydata['webresource'].url;
- } else{
- url = mydata['webresource'][0].url;
- }
-
- if(!this.datasetInfo.downloadFrom.has(url) && mydata.hasOwnProperty("hostedby")) {
- if(mydata['hostedby'].name != "other resources" && mydata['hostedby'].name != "Unknown Repository") {
- if(!this.datasetInfo.downloadFrom.has(mydata['hostedby'].name)) {
- this.datasetInfo.downloadFrom.set(mydata['hostedby'].name, {"url": null, "accessMode": null});
- }
-
- if(this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['url'] == null) {
- this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['url'] = new Array();
- }
-
- counter2 = this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['url'].length;
- this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['url'][counter2] = url;
-
- if(this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'] == null) {
- this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'] = new Array();
- }
-
- if(mydata.hasOwnProperty("licence")) {
- this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'][counter2] = mydata['licence'].classid;
- } else {
- this.datasetInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'][counter2] = "";
- }
- } else {
- if(data[0] != null && data[0].hasOwnProperty("source")) {
- let key: string;
- if(Array.isArray(data[0].source)) {
- if(!this.datasetInfo.publishedIn.has(data[0]['source'][counter1])) {
- key = data[0]['source'][counter1];
- }
- } else {
- if(!this.datasetInfo.publishedIn.has(data[0]['source'])) {
- key = data[0]['source'];
- }
- }
-
- this.datasetInfo.publishedIn.set(key, {"url": null, "accessMode": null});
-
- if(this.datasetInfo.publishedIn.get(key)['url'] == null) {
- this.datasetInfo.publishedIn.get(key)['url'] = new Array();
- }
-
- counter2 = this.datasetInfo.publishedIn.get(key)['url'].length;
- this.datasetInfo.publishedIn.get(key)['url'][counter2] = url;
-
- if(this.datasetInfo.publishedIn.get(key)['accessMode'] == null) {
- this.datasetInfo.publishedIn.get(key)['accessMode'] = new Array();
- }
-
- if(mydata.hasOwnProperty("licence")) {
- this.datasetInfo.publishedIn.get(key)['accessMode'][counter2] = mydata['licence'].classid;
- } else {
- this.datasetInfo.publishedIn.get(key)['accessMode'][counter2] = "";
- }
- counter1++;
- }
- }
- if(this.datasetInfo.title != undefined) {
- if(this.datasetInfo.title['url'] == undefined) {
- this.datasetInfo.title['url'] = url;
- }
-
- switch (this.datasetInfo.title['licence']) {
- case undefined:
- this.datasetInfo.title['licence'] = mydata['licence'].classid;
- this.datasetInfo.title['url'] = url;
- break;
- case "CLOSED":
- if(mydata['licence'].classid == "OPEN" ||
- mydata['licence'].classid == "EMBARGO" ||
- mydata['licence'].classid == "RESTRICTED") {
- this.datasetInfo.title['licence'] = mydata['licence'].classid;
- this.datasetInfo.title['url'] = url;
- }
- break;
- case "RESTRICTED":
- if(mydata['licence'].classid == "OPEN" ||
- mydata['licence'].classid == "EMBARGO") {
- this.datasetInfo.title['licence'] = mydata['licence'].classid;
- this.datasetInfo.title['url'] = url;
- }
- break;
- case "EMBARGO":
- if(mydata['licence'].classid == "OPEN") {
- this.datasetInfo.title['licence'] = mydata['licence'].classid;
- this.datasetInfo.title['url'] = url;
- }
- break;
- }
- }
- }
- }
- }
- }
- }
-
- if(data[4] != null) {
- let counter = 0;
- this.datasetInfo.identifiers = new Map();
-
- if(data[4].hasOwnProperty("classname") && data[4]['classname'] != "") {
- if(data[4].classname == "doi" || data[4].classname == "pmc") {
- if(!this.datasetInfo.identifiers.has(data[4].classname)) {
- this.datasetInfo.identifiers.set(data[4].classname, new Array());
- }
- counter = this.datasetInfo.identifiers.get(data[4].classname).length;
- this.datasetInfo.identifiers.get(data[4].classname)[counter] = data[4].content;
- }
- } else {
- for(let i=0; i());
- }
- counter = this.datasetInfo.identifiers.get(data[4][i].classname).length;
- this.datasetInfo.identifiers.get(data[4][i].classname)[counter] = data[4][i].content;
- }
- }
- }
- }
-
- if(data[5] != null) {
- this.datasetInfo.classifiedSubjects = new Map();
- this.datasetInfo.subjects = new Array();
-
- let mydata;
- let length = data[5].length!=undefined ? data[5].length : 1;
-
- for(let i=0; i 1 ? data[5][i] : data[5];
-
- if(mydata.classid != "") {
- if(mydata.inferred == true) {
- if(!this.datasetInfo.classifiedSubjects.has(mydata.classid)) {
- this.datasetInfo.classifiedSubjects.set(mydata.classid, new Array());
- }
-
- let counter = this.datasetInfo.classifiedSubjects.get(mydata.classid).length;
- this.datasetInfo.classifiedSubjects.get(mydata.classid)[counter] = mydata.content;
- } else {
- let counter = this.datasetInfo.subjects.length;
- this.datasetInfo.subjects[counter] = mydata.content;
- }
- }
- }
- }
-
- if(data[6] != null) {
- this.datasetInfo.bestlicense = data[6].classid;
- }
-
- if(data[7] != null) {
- this.datasetInfo.collectedFrom = new Array<{"name": string, "url": string}>();
-
- let mydata;
- let length = data[7].length!=undefined ? data[7].length : 1;
- for(let i=0; i 1 ? data[7][i] : data[7];
- let link = "https://beta.openaire.eu/search/dataprovider?datasourceId=";
- this.datasetInfo.collectedFrom[i] = {"name": "", "url": ""};
- this.datasetInfo.collectedFrom[i]['name'] = mydata.name;
- this.datasetInfo.collectedFrom[i]['url'] = link+mydata.id;
- }
- }
-
- if(this.datasetInfo.publisher != null
- && this.datasetInfo.identifiers != null
- && this.datasetInfo.identifiers.has("doi")) {
-
- if( this.datasetInfo.downloadFrom == null) {
- this.datasetInfo.downloadFrom = new Map();
- }
-
- this.datasetInfo.downloadFrom.set(this.datasetInfo.publisher, {"url": null, "accessMode": null});
-
- let url = "http://dx.doi.org/"+this.datasetInfo.identifiers.get("doi");
- this.datasetInfo.downloadFrom.get(this.datasetInfo.publisher)['url'] = new Array();
- this.datasetInfo.downloadFrom.get(this.datasetInfo.publisher)['accessMode'] = new Array();
-
- this.datasetInfo.downloadFrom.get(this.datasetInfo.publisher)['url'][0] = url;
- this.datasetInfo.downloadFrom.get(this.datasetInfo.publisher)['accessMode'][0] = "";
-
- if(this.datasetInfo.title != undefined && this.datasetInfo.title['url'] == "") {
- this.datasetInfo.title['url'] = url;
- }
- }
-
- if(data[8] != null) {
- this.datasetInfo.contexts = new Array<
- { "labelContext": string, "labelCategory": string, "labelConcept": string}>();
-
- let position = 0;
- let labels = "";
- let mydata;
- let length = data[8].length!=undefined ? data[8].length : 1;
- for(let i=0; i 1 ? data[8][i] : data[8];
-
- if(mydata.hasOwnProperty("type") && mydata['type'] == "community") {
- if(mydata.hasOwnProperty("category")) {
- if(mydata['category'].hasOwnProperty("concept")) {
- let mydata1;
- let length1 = mydata['category']['concept'].length!=undefined ? mydata['category']['concept'].length : 1;
- for(let j=0; j 1 ? mydata['category']['concept'][j] : mydata['category']['concept'];
-
- this.datasetInfo.contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": ""};
- this.datasetInfo.contexts[position]['labelContext'] = mydata.label;
- this.datasetInfo.contexts[position]['labelCategory'] = mydata['category'].label;;
- this.datasetInfo.contexts[position]['labelConcept'] = mydata1.label;
-
- position++;
- }
- } else {
- this.datasetInfo.contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": ""};
- this.datasetInfo.contexts[position]['labelContext'] = mydata.label;
- this.datasetInfo.contexts[position]['labelCategory'] = mydata['category'].label;;
- this.datasetInfo.contexts[position]['labelConcept'] = null;
- }
- } else {
- this.datasetInfo.contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": ""};
- this.datasetInfo.contexts[position]['labelContext'] = mydata.label;
- this.datasetInfo.contexts[position]['labelCategory'] = null;
- this.datasetInfo.contexts[position]['labelConcept'] = null;
- }
- }
- }
- }
-
- if(data[9] != null) {
- if(data[9].hasOwnProperty('classname')) {
- this.datasetInfo.type = data[9].classname;
- }
- }
-
-
- //this.printdatasetInfo();
- return this.datasetInfo;
-
- }
-
- printDatasetInfo() {
- console.info("DATE: "+this.datasetInfo.date);
- console.info("PUBLISHER: "+this.datasetInfo.publisher);
- console.info("DESCRIPTION: "+this.datasetInfo.description);
-
- console.info("TITLE: "+this.datasetInfo.title);
-
- console.info("AUTHORS: "+this.datasetInfo.authors);
- console.info("\nFUNDED BY PROJECTS:");
- if(this.datasetInfo.fundedByProjects != undefined) {
- this.datasetInfo.fundedByProjects.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-/*
- console.info("\nRELATED RESEARCH DATA:");
- if(this.datasetInfo.relatedResearchData != undefined) {
- this.datasetInfo.relatedResearchData.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("\nSIMILAR datasetS:");
- if(this.datasetInfo.similarPublications != undefined) {
- this.datasetInfo.similarPublications.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-*/
- console.info("TYPE: "+this.datasetInfo.type);
- console.info("\nDOWNLOAD FROM:");
- if(this.datasetInfo.downloadFrom != undefined) {
- this.datasetInfo.downloadFrom.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("\nIDENTIFIERS:");
- if(this.datasetInfo.identifiers != undefined) {
- this.datasetInfo.identifiers.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("SUBJECTS: "+this.datasetInfo.subjects);
- console.info("\nCLASSIFIED OBJECTS:");
- if(this.datasetInfo.classifiedSubjects != undefined) {
- this.datasetInfo.classifiedSubjects.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("BEST LICENSE: "+this.datasetInfo.bestlicense);
-
- console.info("\nCOLLECTED FROM:");
- if(this.datasetInfo.collectedFrom != undefined) {
- this.datasetInfo.collectedFrom.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("\nDOWNLOAD FROM:");
- if(this.datasetInfo.downloadFrom != undefined) {
- this.datasetInfo.downloadFrom.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
- }
-}
diff --git a/portal/src/app/services/openaireProjects.service.ts b/portal/src/app/services/openaireProjects.service.ts
deleted file mode 100644
index c0c8e69f..00000000
--- a/portal/src/app/services/openaireProjects.service.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-import {Injectable} from '@angular/core';
-// import {Http, Response, Headers} from '@angular/http';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-// import {Publication} from '../entities/publication';
-@Injectable()
-export class OpenaireProjectsService {
- constructor( private http: Http) {}
- // searchUrl="http://services.openaire.eu:8380/search/";
- // searchUrl="http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
- searchUrl="http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/";
- getFunders():any {
- let url = this.searchUrl+'search?action=refine&rTransformer=results_openaire_browse&fields=funderid&query=%28oaftype+exact+project%29&locale=en_GB&format=json';
- ////"&rows=".$size."&offset=".($page-1)*$size
- return this.http.get( url)
- .map(request => request.json().response.browseResults.result)
- .do(funders => console.log("getFunders : "+funders))
- .catch(this.handleError);
-
- }
-
- searchForProjects(keyword:string, funderId:string):any {
- let url = this.searchUrl+'search?action=search&sTransformer=projects_openaire&query='+
- '%28oaftype+exact+project%29+and+%28%28projecttitle+%3D+%22'+keyword+'%22%29+or+%28projectacronym+%3D+%22'+keyword+'%22%29+or+%28projectcode+%3D+%22'+keyword+'%22%29%29+and+%28funderid+exact+'+funderId+'%29&size=10&locale=en_GB&format=json';
-
- ////"&rows=".$size."&offset=".($page-1)*$size
- return this.http.get( url)
- .map(request => (request.json().response.results)?request.json().response.results.result:request.json().response.results)
- .do(funders => console.log("getFunders : "+funders))
- .catch(this.handleError);
-
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
-}
-
-/*
-http://services.openaire.eu:8380/search/search?action=search&sTransformer=projects_openaire&query=%28oaftype+exact+project%29+and+%28%28projecttitle+%3D+%22ope%22%29+or+%28projectacronym+%3D+%22ope%22%29+or+%28projectcode+%3D+%22ope%22%29%29+and+%28funderid+exact+ec__________%3A%3AEC%29&size=10&locale=en_GB&format=json
-
-http://services.openaire.eu:8380/search/search?action=refine&rTransformer=results_openaire_browse&fields=funderid&query=%28oaftype+exact+project%29&locale=en_GB&format=json
-
-*/
diff --git a/portal/src/app/services/person.service.ts b/portal/src/app/services/person.service.ts
deleted file mode 100644
index 2c376751..00000000
--- a/portal/src/app/services/person.service.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {PersonInfo} from '../entities/personInfo';
-
-@Injectable()
-export class PersonService {
-
- constructor(private http: Http) {}
-
- personInfo: PersonInfo;
-
- getPersonInfo (id: string):any {
- console.info("getPersonInfo in service");
-
- //let url = 'http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/projects/'+id;
- //let url = 'http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/projects/'+id;
- let url = 'http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/people/'+id;
-
- return this.http.get(url)
- .map(res => res.json())
- .map(res => res['result']['metadata']['oaf:entity']['oaf:person'])
- .map(res => this.parsePersonInfo(res));
-
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
- parsePersonInfo (data: any):any {
- console.info("parsePersonInfo");
- this.personInfo = new PersonInfo();
-
- if(data != null) {
- if(data.hasOwnProperty('firstname')) {
- this.personInfo.firstname = data.firstname;
- }
- if(data.hasOwnProperty('secondnames')) {
- this.personInfo.secondnames = data.secondnames;
- }
- if(data.hasOwnProperty('fullname')) {
- this.personInfo.fullname = data.fullname;
- }
- }
-
- return this.personInfo;
-
- }
-
-}
diff --git a/portal/src/app/services/project.service.ts b/portal/src/app/services/project.service.ts
deleted file mode 100644
index 57fbf7de..00000000
--- a/portal/src/app/services/project.service.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-import {ProjectInfo} from '../entities/projectInfo';
-
-@Injectable()
-export class ProjectService {
-
- constructor(private http: Http) {}
-
- projectInfo: ProjectInfo;
-
- getProjectInfo (id: string):any {
- console.info("getProjectInfo in service");
-
- //let url = 'http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/projects/'+id;
- //let url = 'http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/projects/'+id;
- let url = 'http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/projects/'+id;
-
- return this.http.get(url)
- .map(res => res.json())
- .map(res => res['result']['metadata']['oaf:entity']['oaf:project'])
- .do(res => console.info(res))
- .map(res => [res,
- res['fundingtree'],
- res['rels']['rel']])
- .map(res => this.parseProjectInfo(res));
-
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
- parseProjectInfo (data: any):any {
- this.projectInfo = new ProjectInfo();
-
- if(data[0] != null) {
- this.projectInfo.acronym = data[0].acronym;
- this.projectInfo.title = data[0].title;
- this.projectInfo.callIdentifier = data[0].callidentifier;
- this.projectInfo.contractNum = data[0].code;
- this.projectInfo.startDate = data[0].startdate;
- this.projectInfo.endDate = data[0].enddate;
- this.projectInfo.openAccessMandate = data[0].oamandatepublications;
- this.projectInfo.specialClause39 = data[0].ecsc39;
- }
- if(data[1] != null) {
- if(data[1]['funder'] != null) {
- this.projectInfo.funder = data[1]['funder'].shortname;
- }
-
- let funding;
- this.projectInfo.funding = "";
-
- if(data[1]['funding_level_2'] != null) {
- funding = data[1]['funding_level_2'].id;
- } else if(data[1]['funding_level_1'] != null) {
- funding = data[1]['funding_level_1'].id;
- } else if(data[1]['funding_level_0'] != null) {
- funding = data[1]['funding_level_0'].id;
- }
-
- if(funding != undefined) {
- funding = funding.split("::");
- for(let i=1; i();
-
- let name = "";
- let url = "";
-
- if(!Array.isArray(data[2])) {
- if(data[2].hasOwnProperty("legalshortname")) {
- name = data[2].legalshortname;
- } else if(data[2].hasOwnProperty("legalname")) {
- name = data[2].legalname;
- }
-
- if(data[2].hasOwnProperty("to")) {
- url = "https://beta.openaire.eu/search/organization?organizationId="+data[2]['to'].content;
- }
- this.projectInfo.organizations.set(name, url);
- } else {
- for(let i=0; i res.json())
- .do(res => console.info(res['result']['metadata']['oaf:entity']))
- .map(res => res['result']['metadata']['oaf:entity'])
- .map(res => [res['oaf:result'],
- res['oaf:result']['title'],
- res['oaf:result']['rels']['rel'],
- res['oaf:result']['children'],
- res['oaf:result']['pid'],
- res['oaf:result']['journal'],
- res['oaf:result']['language'],
- res['oaf:result']['subject'],
- res['oaf:result']['bestlicense'],
- res['oaf:result']['collectedfrom'],
- (res['extraInfo']!= undefined && res['extraInfo']['citations']!= undefined)? res['extraInfo']['citations']['citation']:null,
- res['oaf:result']['context']
- ])
- .map(res => this.parsePublicationInfo(res));
-
- }
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
- parsePublicationInfo (data: any):any {
- this.publicationInfo = new PublicationInfo();
-
- if(data[0] != null) {
- this.publicationInfo.date = data[0].dateofacceptance.substring(0,4);
- this.publicationInfo.publisher = data[0].publisher;
- if(!Array.isArray(data[0].description)) {
- this.publicationInfo.description = data[0].description;
- } else {
- this.publicationInfo.description = data[0].description[0];
- }
- this.publicationInfo.embargoEndDate = data[0].embargoenddate;
- }
-
- if(data[1] != null) {
- this.publicationInfo.title = {"name": "", "url": "", "accessMode": ""};
-
- if(Array.isArray(data[1])) {
- this.publicationInfo.title['name'] = data[1][0].content;
- } else {
- this.publicationInfo.title['name'] = data[1].content;
- }
- }
-
- if(data[2] != null) {
- let mydata;
- let counter = 0;
- let length = data[2].length!=undefined ? data[2].length : 1;
-
- for(let i=0; i 1 ? data[2][i] : data[2];
- if(mydata.hasOwnProperty("to")) {
- if(mydata['to'].class == "hasAuthor") {
- if(this.publicationInfo.authors == undefined) {
- this.publicationInfo.authors = new Array<{"name": string, "url": string}>();
- }
-
- this.publicationInfo.authors[mydata.ranking-1] = {"name": "", "url": ""};
- this.publicationInfo.authors[mydata.ranking-1]['name'] = mydata.fullname;
- this.publicationInfo.authors[mydata.ranking-1]['url'] = "https://beta.openaire.eu/search/person?personId="+mydata['to'].content;
- } else if(mydata['to'].class == "isProducedBy") {
- if(this.publicationInfo.fundedByProjects == undefined) {
- this.publicationInfo.fundedByProjects = new Array<
- { "url": string, "acronym": string, "title": string,
- "funderShortname": string, "funderName": string,
- "funding": string, "new": boolean
- }>();
- }
-
- counter = this.publicationInfo.fundedByProjects.length;
-
- this.publicationInfo.fundedByProjects[counter] = {
- "url": "", "acronym": "", "title": "",
- "funderShortname": "", "funderName": "",
- "funding": "", "new": false
- }
-
- this.publicationInfo.fundedByProjects[counter]['url'] =
- "http://localhost:3000/project?projectId="+mydata['to'].content;
- this.publicationInfo.fundedByProjects[counter]['acronym'] = mydata.acronym;
- this.publicationInfo.fundedByProjects[counter]['title'] = mydata.title;
-
- if(mydata.hasOwnProperty("funding")) {
- let length1 = Array.isArray(mydata['funding']) ? mydata['funding'].length : 1;
-
- for(let j=0; j 1 ? mydata['funding'][j] : mydata['funding'];
-
- if(mydata1.hasOwnProperty("funder")) {
- this.publicationInfo.fundedByProjects[counter]['funderShortname'] = mydata1['funder'].shortname;
- this.publicationInfo.fundedByProjects[counter]['funderName'] = mydata1['funder'].name;
- }
-
- if(mydata1.hasOwnProperty("funding_level_2")) {
- funding = mydata1['funding_level_2'].content;
- } else if(mydata1.hasOwnProperty("funding_level_1")) {
- funding = mydata1['funding_level_1'].content;
- } else if(mydata1.hasOwnProperty("funding_level_0")) {
- funding = mydata1['funding_level_0'].content;
- }
-
- if(funding != undefined) {
- funding = funding.split("::");
-
- if(this.publicationInfo.fundedByProjects[counter]['funding'] != "") {
- this.publicationInfo.fundedByProjects[counter]['funding'] += ", "+funding[1];
- } else {
- this.publicationInfo.fundedByProjects[counter]['funding'] = funding[1];
- }
- for(let i=2; i();
- }
-
- let url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- counter = this.publicationInfo.relatedPublications.length;
-
- this.publicationInfo.relatedPublications[counter] = {"name": "", "url": "", "date": "", "trust": ""}
-
- this.publicationInfo.relatedPublications[counter]['url'] = url;
- this.publicationInfo.relatedPublications[counter]['name'] = mydata['title'].content;
- this.publicationInfo.relatedPublications[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.publicationInfo.relatedPublications[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- } else {
- if(this.publicationInfo.relatedResearchData == undefined) {
- this.publicationInfo.relatedResearchData = new Array<{
- "name": string, "url": string, "date": string, "trust": string}>();
- }
-
- let url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- counter = this.publicationInfo.relatedResearchData.length;
-
- this.publicationInfo.relatedResearchData[counter] = {"name": "", "url": "", "date": "", "trust": ""}
-
- this.publicationInfo.relatedResearchData[counter]['url'] = url;
- this.publicationInfo.relatedResearchData[counter]['name'] = mydata['title'].content;
- this.publicationInfo.relatedResearchData[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.publicationInfo.relatedResearchData[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- }*/
- if(this.publicationInfo.relatedResearchResults == undefined) {
- this.publicationInfo.relatedResearchResults = new Array<{
- "name": string, "url": string, "date": string,
- "trust": string, "class": string}>();
- }
-
- counter = this.publicationInfo.relatedResearchResults.length;
- this.publicationInfo.relatedResearchResults[counter] = {"name": "", "url": "", "date": "", "trust": "", "class": ""}
-
- let url;
- if(mydata['resulttype'].classname == "publication") {
- url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- this.publicationInfo.relatedResearchResults[counter]['class'] = "publication";
- } else {
- url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- this.publicationInfo.relatedResearchResults[counter]['class'] = "dataset";
- }
-
- this.publicationInfo.relatedResearchResults[counter]['url'] = url;
- this.publicationInfo.relatedResearchResults[counter]['name'] = mydata['title'].content;
- this.publicationInfo.relatedResearchResults[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.publicationInfo.relatedResearchResults[counter]['trust'] = Math.round(mydata.trust*100)+"%";
-
- } else if(mydata['to'].class == "hasAmongTopNSimilarDocuments") {
- /*if(mydata.hasOwnProperty('resulttype') && mydata['resulttype'].classname == "publication") {
- if(this.publicationInfo.similarPublications == undefined) {
- this.publicationInfo.similarPublications = new Array<
- { "name": string, "url": string, "date": string, "trust": string}>();
- }
-
- let url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- let counter = this.publicationInfo.similarPublications.length;
-
- this.publicationInfo.similarPublications[counter] = {"name": "", "url": "", "date": "", "trust": ""};
- this.publicationInfo.similarPublications[counter]['url'] = url;
- this.publicationInfo.similarPublications[counter]['name'] = mydata['title'].content;
- this.publicationInfo.similarPublications[counter]['date'] = mydata.dateofacceptance.substring(0,4);
- this.publicationInfo.similarPublications[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- } else if(mydata.hasOwnProperty('resulttype') && mydata['resulttype'].classname == "dataset") {
- if(this.publicationInfo.similarDatasets == undefined) {
- this.publicationInfo.similarDatasets = new Array<
- { "name": string, "url": string, "date": string, "trust": string}>();
- }
-
- let url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- let counter = this.publicationInfo.similarDatasets.length;
-
- this.publicationInfo.similarDatasets[counter] = {"name": "", "url": "", "date": "", "trust": ""};
- this.publicationInfo.similarDatasets[counter]['url'] = url;
- this.publicationInfo.similarDatasets[counter]['name'] = mydata['title'].content;
- this.publicationInfo.similarDatasets[counter]['date'] = mydata.dateofacceptance.substring(0,4);
- this.publicationInfo.similarDatasets[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- }*/
-
- if(this.publicationInfo.similarResearchResults == undefined) {
- this.publicationInfo.similarResearchResults = new Array<{
- "name": string, "url": string, "date": string,
- "trust": string, "class": string}>();
- }
-
- counter = this.publicationInfo.similarResearchResults.length;
- this.publicationInfo.similarResearchResults[counter] = {"name": "", "url": "", "date": "", "trust": "", "class": ""}
-
- let url;
- if(mydata['resulttype'].classname == "publication") {
- url = "http://localhost:3000/publication?articleId="+mydata['to'].content;
- this.publicationInfo.similarResearchResults[counter]['class'] = "publication";
- } else {
- url = "http://localhost:3000/dataset?datasetId="+mydata['to'].content;
- this.publicationInfo.similarResearchResults[counter]['class'] = "dataset";
- }
-
- this.publicationInfo.similarResearchResults[counter]['url'] = url;
- this.publicationInfo.similarResearchResults[counter]['name'] = mydata['title'].content;
- this.publicationInfo.similarResearchResults[counter]['date'] = mydata.dateofacceptance.substring(0,4);;
- this.publicationInfo.similarResearchResults[counter]['trust'] = Math.round(mydata.trust*100)+"%";
- }
- }
- }
-
- this.publicationInfo.authors = this.publicationInfo.authors.filter(function (item) {
- return (item != undefined);
- });
- }
-
- if(data[3] != null) {
- if(data[3].hasOwnProperty("instance")) {
- this.publicationInfo.downloadFrom = new Map();
- this.publicationInfo.publishedIn = new Map();
-
- this.publicationInfo.types = new Array();
-
- let length = data[3]['instance'].length!=undefined ? data[3]['instance'].length : 1;
-
- let types = new Set();
- let counter = 0;
- let counter1 = 0;
- let counter2 = 0;
- let mydata;
- for(let i=0; i 1 ? data[3]['instance'][i] : data[3]['instance'];
-
- if(mydata.hasOwnProperty("instancetype")) {
- if(!types.has(mydata['instancetype'].classname)) {
- this.publicationInfo.types[counter] = mydata['instancetype'].classname;
- types.add(mydata['instancetype'].classname);
- counter++;
- }
- }
-
- if(mydata.hasOwnProperty("webresource")) {
- let url;
- if(mydata['webresource'].length == undefined) {
- url = mydata['webresource'].url;
- } else{
- url = mydata['webresource'][0].url;
- }
-
- if(mydata.hasOwnProperty("hostedby")) {
- if(mydata['hostedby'].name != "other resources" && mydata['hostedby'].name != "Unknown Repository") {
- if(!this.publicationInfo.downloadFrom.has(mydata['hostedby'].name)) {
- this.publicationInfo.downloadFrom.set(mydata['hostedby'].name, {"url": null, "accessMode": null});
- }
-
- if(this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['url'] == null) {
- this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['url'] = new Array();
- }
-
- counter2 = this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['url'].length;
- this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['url'][counter2] = url;
-
- if(this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'] == null) {
- this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'] = new Array();
- }
-
- if(mydata.hasOwnProperty("licence")) {
- this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'][counter2] = mydata['licence'].classid;
- } else {
- this.publicationInfo.downloadFrom.get(mydata['hostedby'].name)['accessMode'][counter2] = "";
- }
- } else {
- if(data[0] != null && data[0].hasOwnProperty("source")) {
- let key: string;
- if(Array.isArray(data[0].source)) {
- if(!this.publicationInfo.publishedIn.has(data[0]['source'][counter1])) {
- key = data[0]['source'][counter1];
- }
- } else {
- if(!this.publicationInfo.publishedIn.has(data[0]['source'])) {
- key = data[0]['source'];
- }
- }
-
- this.publicationInfo.publishedIn.set(key, {"url": null, "accessMode": null});
-
- if(this.publicationInfo.publishedIn.get(key)['url'] == null) {
- this.publicationInfo.publishedIn.get(key)['url'] = new Array();
- }
-
- counter2 = this.publicationInfo.publishedIn.get(key)['url'].length;
- this.publicationInfo.publishedIn.get(key)['url'][counter2] = url;
-
- if(this.publicationInfo.publishedIn.get(key)['accessMode'] == null) {
- this.publicationInfo.publishedIn.get(key)['accessMode'] = new Array();
- }
-
- if(mydata.hasOwnProperty("licence")) {
- this.publicationInfo.publishedIn.get(key)['accessMode'][counter2] = mydata['licence'].classid;
- } else {
- this.publicationInfo.publishedIn.get(key)['accessMode'][counter2] = "";
- }
- counter1++;
- }
- }
- if(this.publicationInfo.title != undefined) {
- if(this.publicationInfo.title['url'] == "") {
- this.publicationInfo.title['url'] = url;
- }
-
- switch (this.publicationInfo.title['accessMode']) {
- case undefined:
- this.publicationInfo.title['accessMode'] = mydata['accessMode'].classid;
- this.publicationInfo.title['url'] = url;
- break;
- case "CLOSED":
- if(mydata['licence'].classid == "OPEN" ||
- mydata['licence'].classid == "EMBARGO" ||
- mydata['licence'].classid == "RESTRICTED") {
- this.publicationInfo.title['accessMode'] = mydata['licence'].classid;
- this.publicationInfo.title['url'] = url;
- }
- break;
- case "RESTRICTED":
- if(mydata['licence'].classid == "OPEN" ||
- mydata['licence'].classid == "EMBARGO") {
- this.publicationInfo.title['accessMode'] = mydata['licence'].classid;
- this.publicationInfo.title['url'] = url;
- }
- break;
- case "EMBARGO":
- if(mydata['licence'].classid == "OPEN") {
- this.publicationInfo.title['accessMode'] = mydata['licence'].classid;
- this.publicationInfo.title['url'] = url;
- }
- break;
- }
- }
- }
- }
- }
- }
-
- if(data[3].hasOwnProperty("externalreference")) {
- this.publicationInfo.bioentities = new Map>();
-
- let length = data[3]['externalreference'].length!=undefined ? data[3]['externalreference'].length : 1;
-
- let mydata;
- for(let i=0; i 1 ? data[3]['externalreference'][i] : data[3]['externalreference'];
-
- if(!this.publicationInfo.bioentities.has(mydata.sitename)) {
- this.publicationInfo.bioentities.set(mydata.sitename, new Map());
- }
- this.publicationInfo.bioentities.get(mydata.sitename).set(mydata.refidentifier, mydata.url);
- }
- }
- }
-
- if(data[4] != null) {
- let counter = 0;
- this.publicationInfo.identifiers = new Map();
-
- if(data[4].hasOwnProperty("classname") && data[4]['classname'] != "") {
- if(data[4].classname == "doi" || data[4].classname == "pmc") {
- if(!this.publicationInfo.identifiers.has(data[4].classname)) {
- this.publicationInfo.identifiers.set(data[4].classname, new Array());
- }
- counter = this.publicationInfo.identifiers.get(data[4].classname).length;
- this.publicationInfo.identifiers.get(data[4].classname)[counter] = data[4].content;
- }
- } else {
- for(let i=0; i());
- }
- counter = this.publicationInfo.identifiers.get(data[4][i].classname).length;
- this.publicationInfo.identifiers.get(data[4][i].classname)[counter] = data[4][i].content;
- }
- }
- }
- }
-
- if(data[5] != null) {
- this.publicationInfo.journal = {"journal": "", "issn": "", "lissn": ""}
-
- this.publicationInfo.journal['journal'] = data[5].content;
- this.publicationInfo.journal['issn'] = data[5].issn;
- this.publicationInfo.journal['lissn'] = data[5].lissn;
- }
-
- if(data[6] != null) {
- this.publicationInfo.languages = new Array();
-
- if(data[6].hasOwnProperty("classname")) {
- this.publicationInfo.languages[0] = data[6].classname;
- } else {
- for(let i=0; i();
- this.publicationInfo.subjects = new Array();
-
- let mydata;
- let length = data[7].length!=undefined ? data[7].length : 1;
-
- for(let i=0; i 1 ? data[7][i] : data[7];
-
- if(mydata.classid != "") {
- if(mydata.inferred == true) {
- if(!this.publicationInfo.classifiedSubjects.has(mydata.classid)) {
- this.publicationInfo.classifiedSubjects.set(mydata.classid, new Array());
- }
-
- let counter = this.publicationInfo.classifiedSubjects.get(mydata.classid).length;
- this.publicationInfo.classifiedSubjects.get(mydata.classid)[counter] = mydata.content;
- } else {
- let counter = this.publicationInfo.subjects.length;
- this.publicationInfo.subjects[counter] = mydata.content;
- }
- }
- }
- }
-
- if(data[8] != null) {
- this.publicationInfo.bestlicense = data[8].classid;
- }
-
- if(data[9] != null) {
- this.publicationInfo.collectedFrom = new Array<{"name": string, "url": string}>();
-
- let mydata;
- let length = data[9].length!=undefined ? data[9].length : 1;
- for(let i=0; i 1 ? data[9][i] : data[9];
- let link = "https://beta.openaire.eu/search/dataprovider?datasourceId=";
- this.publicationInfo.collectedFrom[i] = {"name": "", "url": ""};
- this.publicationInfo.collectedFrom[i]['name'] = mydata.name;
- this.publicationInfo.collectedFrom[i]['url'] = link+mydata.id;
- }
- }
-
- if(this.publicationInfo.publisher != null
- && this.publicationInfo.identifiers != null
- && this.publicationInfo.identifiers.has('doi')) {
-
- if( this.publicationInfo.downloadFrom == null) {
- this.publicationInfo.downloadFrom = new Map();
- }
-
- let key: string;
- if(this.publicationInfo.journal != null) {
- key = this.publicationInfo.publisher + "/ "+this.publicationInfo.journal
- } else {
- key = this.publicationInfo.publisher;
- }
- this.publicationInfo.downloadFrom.set(key, {"url": null, "accessMode": null});
-
- let url = "http://dx.doi.org/"+this.publicationInfo.identifiers.get("doi")[0];
-
- this.publicationInfo.downloadFrom.get(key)['url'] = new Array();
- this.publicationInfo.downloadFrom.get(key)['accessMode'] = new Array();
-
- this.publicationInfo.downloadFrom.get(key)['url'][0] = url;
- this.publicationInfo.downloadFrom.get(key)['accessMode'][0] = "";
-
- if(this.publicationInfo.title != undefined && this.publicationInfo.title['url'] == "") {
- this.publicationInfo.title['url'] = url;
- }
- }
-
- if(data[10] != null) {
- this.publicationInfo.references = new Array<{"name": string, "url": string}>();
-
- let mydata;
- let length = data[10].length!=undefined ? data[10].length : 1;
- for(let i=0; i 1 ? data[10][i] : data[10];
-
- let url;
- if(mydata.hasOwnProperty("id")) {
- let mydata1;
- let length1 = mydata['id'].length!=undefined ? mydata['id'].length : 1;
- for(let j=0; j 1 ? mydata['id'][j] : mydata['id'];
-
- if(mydata1.type == "pmid") {
- url = "http://www.ncbi.nlm.nih.gov/pubmed/"+mydata1.value;
- }
- }
- }
-
- this.publicationInfo.references[mydata.position-1] = { "name": "", "url": ""};
- this.publicationInfo.references[mydata.position-1]['name'] = mydata.rawText;
- this.publicationInfo.references[mydata.position-1]['url'] = url;
- }
- }
-
- if(data[11] != null) {
- this.publicationInfo.contexts = new Array<
- { "labelContext": string, "labelCategory": string, "labelConcept": string}>();
-
- let position = 0;
- let labels = "";
- let mydata;
- let length = data[11].length!=undefined ? data[11].length : 1;
- for(let i=0; i 1 ? data[11][i] : data[11];
-
- if(mydata.hasOwnProperty("type") && mydata['type'] == "community") {
- if(mydata.hasOwnProperty("category")) {
- if(mydata['category'].hasOwnProperty("concept")) {
- let mydata1;
- let length1 = mydata['category']['concept'].length!=undefined ? mydata['category']['concept'].length : 1;
- for(let j=0; j 1 ? mydata['category']['concept'][j] : mydata['category']['concept'];
-
- this.publicationInfo.contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": ""};
- this.publicationInfo.contexts[position]['labelContext'] = mydata.label;
- this.publicationInfo.contexts[position]['labelCategory'] = mydata['category'].label;;
- this.publicationInfo.contexts[position]['labelConcept'] = mydata1.label;
-
- position++;
- }
- } else {
- this.publicationInfo.contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": ""};
- this.publicationInfo.contexts[position]['labelContext'] = mydata.label;
- this.publicationInfo.contexts[position]['labelCategory'] = mydata['category'].label;;
- this.publicationInfo.contexts[position]['labelConcept'] = null;
- }
- } else {
- this.publicationInfo.contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": ""};
- this.publicationInfo.contexts[position]['labelContext'] = mydata.label;
- this.publicationInfo.contexts[position]['labelCategory'] = null;
- this.publicationInfo.contexts[position]['labelConcept'] = null;
- }
- }
- }
- }
-
- //this.printPublicationInfo();
- return this.publicationInfo;
-
- }
-
- printPublicationInfo() {
- console.info("DATE: "+this.publicationInfo.date);
- console.info("PUBLISHER: "+this.publicationInfo.publisher);
- console.info("DESCRIPTION: "+this.publicationInfo.description);
-
- console.info("TITLE: "+this.publicationInfo.title);
-
- console.info("AUTHORS: "+this.publicationInfo.authors);
- console.info("\nFUNDED BY PROJECTS:");
- if(this.publicationInfo.fundedByProjects != undefined) {
- this.publicationInfo.fundedByProjects.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-/*
- console.info("\nRELATED RESEARCH DATA:");
- if(this.publicationInfo.relatedResearchData != undefined) {
- this.publicationInfo.relatedResearchData.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("\nSIMILAR PUBLICATIONS:");
- if(this.publicationInfo.similarPublications != undefined) {
- this.publicationInfo.similarPublications.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-*/
- console.info("TYPES: "+this.publicationInfo.types);
- console.info("\nDOWNLOAD FROM:");
- if(this.publicationInfo.downloadFrom != undefined) {
- this.publicationInfo.downloadFrom.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
- console.info("\nBIOENTITIES:");
- if(this.publicationInfo.bioentities != undefined) {
- this.publicationInfo.bioentities.forEach(function (value, key, map) {
- value.forEach(function (value1, key1, map1) {
- console.info(key + " = " + key1 + " = " + value1);
- })
- })
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("\nIDENTIFIERS:");
- if(this.publicationInfo.identifiers != undefined) {
- this.publicationInfo.identifiers.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("JOURNAL: "+this.publicationInfo.journal);
-
-
- console.info("LANGUAGES: "+this.publicationInfo.languages);
-
-
- console.info("SUBJECTS: "+this.publicationInfo.subjects);
- console.info("\nCLASSIFIED OBJECTS:");
- if(this.publicationInfo.classifiedSubjects != undefined) {
- this.publicationInfo.classifiedSubjects.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("BEST LICENSE: "+this.publicationInfo.bestlicense);
-
- console.info("\nCOLLECTED FROM:");
- if(this.publicationInfo.collectedFrom != undefined) {
- this.publicationInfo.collectedFrom.forEach(function (value, key, map) {
- console.info(key + " = " + value);
- });
- } else {
- console.info("undefined");
- }
- console.info("\n");
-
- console.info("\nREFERENCES:");
- if(this.publicationInfo.references != undefined) {
- for(let i in this.publicationInfo.references) {
- for(let key in this.publicationInfo.references[i]) {
- console.info(key+" : "+this.publicationInfo.references[i][key]);
- }
- }
- } else {
- console.info("undefined");
- }
- }
-
-}
diff --git a/portal/src/app/services/searchCrossref.service.ts b/portal/src/app/services/searchCrossref.service.ts
deleted file mode 100644
index 493c480c..00000000
--- a/portal/src/app/services/searchCrossref.service.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import {Injectable} from '@angular/core';
-// import {Http, Response, Headers} from '@angular/http';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-// import {Publication} from '../entities/publication';
-@Injectable()
-export class SearchCrossrefService {
- constructor( private http: Http) {}
-
-
- searchCrossrefResults (term: string, size : number, page : number):any {
- let url = 'http://api.crossref.org/works?query='+term+'&rows='+size+'&offset='+(size*(page-1));
- ////"&rows=".$size."&offset=".($page-1)*$size
- return this.http.get( url)
- .map(request => request.json().message)
- .do(items => console.log("Crossref Results: total results = "+items['total-results']+" keyword = "+term))
- .catch(this.handleError);
-
- }
-
-
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
-
-}
diff --git a/portal/src/app/services/searchDatacite.service.ts b/portal/src/app/services/searchDatacite.service.ts
deleted file mode 100644
index c2709f51..00000000
--- a/portal/src/app/services/searchDatacite.service.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Jsonp, URLSearchParams} from '@angular/http';
-import {Http, Response} from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-
-@Injectable()
-export class SearchDataciteService {
- constructor(private jsonp: Jsonp, private http: Http) {}
-
- searchDataciteResults (term: string, size : number, page : number):any {
- console.info("In search datacite results "+term);
- let url = 'http://search.datacite.org/api?q='+term+'&fl=doi,title,creator,publisher&wt=json&rows='+size+'&start='+(size*(page-1));
-
- return this.http.get( url)
- .map(request => request.json().response)
- .do(items => console.log("Datacite Results: total results = "+items['numFound']+" keyword = "+term))
- .catch(this.handleError);
- }
-
-
- private handleError (error: Response) {
- // in a real world app, we may send the error to some remote logging infrastructure
- // instead of just logging it to the console
- console.error(error);
- return Observable.throw(error || 'Server error');
- }
- private extractData(res: Response) {
- if (res.status < 200 || res.status >= 300) {
- throw new Error('Bad response status: ' + res.status);
- }
- let body = res.json();
- return body.data || { };
- }
-}
diff --git a/portal/src/app/services/searchOrcid.service.ts b/portal/src/app/services/searchOrcid.service.ts
deleted file mode 100644
index ed70e3c7..00000000
--- a/portal/src/app/services/searchOrcid.service.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import {Injectable} from '@angular/core';
-import {Jsonp, URLSearchParams} from '@angular/http';
-import {Http, Response} from '@angular/http';
-import { Headers, RequestOptions } from '@angular/http';
-import {Observable} from 'rxjs/Observable';
-
-@Injectable()
-export class SearchOrcidService {
- constructor(private jsonp: Jsonp, private http: Http) {}
-
- searchOrcidAuthor (term: string):any {
- console.info("In searchOrcidAuthor: "+term);
-
- var headers = new Headers();
- headers.append('Accept', 'application/orcid+json');
-
- let url = 'https://pub.orcid.org/'+term+'/orcid-bio';
-
- return this.http.get(url, { headers: headers })
- .map(res => res.json()['orcid-profile'])
- .map(res => [res['orcid-bio']['personal-details']['given-names'],
- res['orcid-bio']['personal-details']['family-name'],
- res['orcid-identifier']]);
- }
-
- searchOrcidAuthors (term: string):any {
- console.info("In search Orcid authors for keyword: "+term);
-
- var headers = new Headers();
- headers.append('Accept', 'application/orcid+json');
-
- let url = 'https://pub.orcid.org/search/orcid-bio?defType=edismax&q='+term+'&qf=given-name^1.0+family-name^2.0+other-names^1.0+credit-name^1.0&start=0&rows=10';
-
- return this.http.get(url, { headers: headers })
- .map(res => res.json()['orcid-search-results'])
- .flatMap(res => res['orcid-search-result'])
- .map(res => res['orcid-profile'])
- .map(res => [res['orcid-bio']['personal-details']['given-names'],
- res['orcid-bio']['personal-details']['family-name'],
- res['orcid-identifier']]);
- }
-
- searchOrcidPublications (id: string):any {
- console.info("In search Orcid publications for author: "+id);
-
- var headers = new Headers();
- headers.append('Accept', 'application/orcid+json');
-
- let url = 'https://pub.orcid.org/'+id+'/orcid-works';
-
- return this.http.get(url, { headers: headers })
- .map(res => res.json()['orcid-profile']['orcid-activities']['orcid-works'])
- }
-}
diff --git a/portal/src/client.ts b/portal/src/client.ts
deleted file mode 100644
index 479ad902..00000000
--- a/portal/src/client.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'angular2-universal/polyfills';
-
-import {bootstrap, enableProdMode, BROWSER_ROUTER_PROVIDERS, BROWSER_HTTP_PROVIDERS} from 'angular2-universal';
-
-import {App} from './app/app.component';
-
-enableProdMode();
-
-bootstrap(App, [
- ...BROWSER_ROUTER_PROVIDERS,
- ...BROWSER_HTTP_PROVIDERS
-]);
diff --git a/portal/src/index.html b/portal/src/index.html
deleted file mode 100644
index 5c7bed67..00000000
--- a/portal/src/index.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- OpenAIRE
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ... Loading ...
-
-
-
-
-
-
diff --git a/portal/src/logo.png b/portal/src/logo.png
deleted file mode 100644
index afea237f..00000000
Binary files a/portal/src/logo.png and /dev/null differ
diff --git a/portal/src/server.ts b/portal/src/server.ts
deleted file mode 100644
index e20cfcc7..00000000
--- a/portal/src/server.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import 'angular2-universal/polyfills';
-
-import * as path from 'path';
-import * as express from 'express';
-import * as bodyParser from 'body-parser';
-
-// Angular 2 Universal
-import {
- provide,
- enableProdMode,
- expressEngine,
- REQUEST_URL,
- ORIGIN_URL,
- BASE_URL,
- NODE_ROUTER_PROVIDERS,
- NODE_HTTP_PROVIDERS,
- ExpressEngineConfig
-} from 'angular2-universal';
-
-// Application
-import {App} from './app/app.component';
-
-const app = express();
-const ROOT = path.join(path.resolve(__dirname, '..'));
-
-enableProdMode();
-
-// Express View
-app.engine('.html', expressEngine);
-app.set('views', __dirname);
-app.set('view engine', 'html');
-
-app.use(bodyParser.json());
-
-
-function ngApp(req, res) {
- let baseUrl = '/';
- let url = req.originalUrl || '/';
-
- let config: ExpressEngineConfig = {
- directives: [ App ],
- platformProviders: [
- provide(ORIGIN_URL, {useValue: 'http://localhost:3000'}),
- provide(BASE_URL, {useValue: baseUrl}),
- ],
- providers: [
- provide(REQUEST_URL, {useValue: url}),
- NODE_ROUTER_PROVIDERS,
- NODE_HTTP_PROVIDERS,
- ],
- async: true,
- preboot: false // { appRoot: 'app' } // your top level app component selector
- };
-
- res.render('index', config);
-}
-
-function indexFile(req, res) {
- res.sendFile('/index.html', {root: __dirname});
-}
-
-// Serve static files
-app.use(express.static(ROOT, {index: false}));
-
-// Our API for demos only
-app.get('/data.json', (req, res) => {
- res.json({
- data: 'This fake data came from the server.'
- });
-});
-
-// Routes with html5pushstate
-app.use('/', ngApp);
-app.use('/home', ngApp);
-app.use('/search', ngApp);
-// Server
-app.listen(3000, () => {
- console.log('Listening on: http://localhost:3000');
-});
diff --git a/portal/src/typings.d.ts b/portal/src/typings.d.ts
deleted file mode 100644
index bf633427..00000000
--- a/portal/src/typings.d.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Custom Type Definitions
- * When including 3rd party modules you also need to include the type definition for the module
- * if they don't provide one within the module. You can try to install it with typings
-typings install node --save
- * If you can't find the type definition in the registry we can make an ambient definition in
- * this file for now. For example
-declare module "my-module" {
- export function doesSomething(value: string): string;
-}
- *
- * If you're prototying and you will fix the types later you can also declare it as type any
- *
-declare var assert: any;
- *
- * If you're importing a module that uses Node.js modules which are CommonJS you need to import as
- *
-import * as _ from 'lodash'
- * You can include your type definitions in this file until you create one for the typings registry
- * see https://github.com/typings/registry
- *
- */
-
-
-// Extra variables that live on Global that will be replaced by webpack DefinePlugin
-declare var ENV: string;
-declare var HMR: boolean;
-interface GlobalEnvironment {
- ENV;
- HMR;
-}
-
-interface WebpackModule {
- hot: {
- data?: any,
- idle: any,
- accept(dependencies?: string | string[], callback?: (updatedDependencies?: any) => void): void;
- decline(dependencies?: string | string[]): void;
- dispose(callback?: (data?: any) => void): void;
- addDisposeHandler(callback?: (data?: any) => void): void;
- removeDisposeHandler(callback?: (data?: any) => void): void;
- check(autoApply?: any, callback?: (err?: Error, outdatedModules?: any[]) => void): void;
- apply(options?: any, callback?: (err?: Error, outdatedModules?: any[]) => void): void;
- status(callback?: (status?: string) => void): void | string;
- removeStatusHandler(callback?: (status?: string) => void): void;
- };
-}
-
-interface WebpackRequire {
- context(file: string, flag?: boolean, exp?: RegExp): any;
-}
-
-
-interface ErrorStackTraceLimit {
- stackTraceLimit: number;
-}
-
-
-// Extend typings
-interface NodeRequire extends WebpackRequire {}
-interface ErrorConstructor extends ErrorStackTraceLimit {}
-interface NodeModule extends WebpackModule {}
-interface Global extends GlobalEnvironment {}
-
-
-interface Thenable {
- then(
- onFulfilled?: (value: T) => U | Thenable,
- onRejected?: (error: any) => U | Thenable): Thenable;
- then(
- onFulfilled?: (value: T) => U | Thenable,
- onRejected?: (error: any) => void): Thenable;
- catch(onRejected?: (error: any) => U | Thenable): Thenable;
-}
diff --git a/portal/tsconfig.json b/portal/tsconfig.json
deleted file mode 100644
index a6757c02..00000000
--- a/portal/tsconfig.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "compilerOptions": {
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "target": "es5",
- "module": "commonjs",
- "removeComments": true,
- "sourceMap": true
- },
- "exclude": [
- "typings/main.d.ts",
- "typings/main",
- "node_modules"
- ],
- "compileOnSave": false,
- "buildOnSave": false,
- "atom": { "rewriteTsconfig": false }
-}
diff --git a/portal/typings.json b/portal/typings.json
deleted file mode 100644
index 4dd09099..00000000
--- a/portal/typings.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "ambientDependencies": {
- "body-parser": "registry:dt/body-parser#0.0.0+20160317120654",
- "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
- "express": "registry:dt/express#4.0.0+20160317120654",
- "express-serve-static-core": "registry:dt/express-serve-static-core#0.0.0+20160322035842",
- "mime": "registry:dt/mime#0.0.0+20160316155526",
- "node": "registry:dt/node#4.0.0+20160412142033",
- "serve-static": "registry:dt/serve-static#0.0.0+20160317120654"
- }
-}
diff --git a/portal/webpack.config.js b/portal/webpack.config.js
deleted file mode 100644
index 89003715..00000000
--- a/portal/webpack.config.js
+++ /dev/null
@@ -1,89 +0,0 @@
-var webpack = require('webpack');
-var path = require('path');
-
-var commonConfig = {
- resolve: {
- extensions: ['', '.ts', '.js']
- },
- module: {
- loaders: [
- // TypeScript
- { test: /\.ts$/, loader: 'ts-loader' }
- ]
- },
- plugins: [
- new webpack.optimize.OccurenceOrderPlugin(true)
- ]
-};
-
-
-var clientConfig = {
- target: 'web',
- entry: './src/client',
- output: {
- path: path.join(__dirname, 'dist', 'client')
- },
- node: {
- global: true,
- __dirname: true,
- __filename: true,
- process: true,
- Buffer: false
- }
-};
-
-
-var serverConfig = {
- target: 'node',
- entry: './src/server',
- output: {
- path: path.join(__dirname, 'dist', 'server')
- },
- externals: checkNodeImport,
- node: {
- global: true,
- __dirname: true,
- __filename: true,
- process: true,
- Buffer: true
- }
-};
-
-
-
-// Default config
-var defaultConfig = {
- module: {
- noParse: [
- path.join(__dirname, 'zone.js', 'dist'),
- path.join(__dirname, 'angular2', 'bundles')
- ]
- },
- context: __dirname,
- resolve: {
- root: path.join(__dirname, '/src')
- },
- output: {
- publicPath: path.resolve(__dirname),
- filename: 'bundle.js'
- }
-}
-
-
-
-var webpackMerge = require('webpack-merge');
-module.exports = [
- // Client
- webpackMerge({}, defaultConfig, commonConfig, clientConfig),
-
- // Server
- webpackMerge({}, defaultConfig, commonConfig, serverConfig)
-]
-
-// Helpers
-function checkNodeImport(context, request, cb) {
- if (!path.isAbsolute(request) && request.charAt(0) !== '.') {
- cb(null, 'commonjs ' + request); return;
- }
- cb();
-}