From f52176337a9391a2863d44fce0edd6e7284d6960 Mon Sep 17 00:00:00 2001 From: nojhamster Date: Thu, 12 Sep 2024 14:06:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20ezpaarse?= =?UTF-8?q?-project/ezpaarse@ba137454374b247c9f4a92d7ea25e197858892b6=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 4 ++-- assets/js/24.22842ea3.js | 1 - assets/js/24.ec3e95a7.js | 1 + assets/js/{25.45ba19a5.js => 25.ecc3f6d9.js} | 2 +- assets/js/{26.ff668d07.js => 26.c11a2586.js} | 2 +- assets/js/{27.848aaf73.js => 27.97322374.js} | 2 +- assets/js/{28.276432b9.js => 28.db7df42b.js} | 2 +- assets/js/{29.6cbfc546.js => 29.4fe31c6f.js} | 2 +- assets/js/{30.f3081c1d.js => 30.9b418c08.js} | 2 +- assets/js/{32.237ed509.js => 32.b7c3976b.js} | 2 +- assets/js/{36.680e2532.js => 36.5f487fa4.js} | 2 +- assets/js/{37.e337077f.js => 37.2eebdbf6.js} | 2 +- assets/js/{38.d2914b5a.js => 38.9dc731cc.js} | 2 +- assets/js/{39.7ef4442a.js => 39.cce0da7e.js} | 2 +- assets/js/{40.3d89b34b.js => 40.c491b3a3.js} | 2 +- assets/js/{41.a328ff42.js => 41.e69fa331.js} | 2 +- assets/js/{45.b75672d8.js => 45.24de892a.js} | 2 +- assets/js/{46.6644530d.js => 46.536ff2d2.js} | 2 +- assets/js/{47.ad650894.js => 47.dc697db1.js} | 2 +- assets/js/{48.f2051aa4.js => 48.a9382aff.js} | 2 +- assets/js/{49.1a45eefe.js => 49.f43994ce.js} | 2 +- assets/js/{50.d0c5a129.js => 50.f9aadf3a.js} | 2 +- assets/js/{51.e34c2448.js => 51.ef77625a.js} | 2 +- assets/js/{52.d8dd4c20.js => 52.57b0f71d.js} | 2 +- assets/js/{54.ab538ec6.js => 54.13231ebd.js} | 2 +- assets/js/{55.96f157dd.js => 55.8d718162.js} | 2 +- assets/js/{57.5985beca.js => 57.c8829c66.js} | 2 +- assets/js/{62.198c71df.js => 62.639bb6c9.js} | 2 +- assets/js/{64.fc785f26.js => 64.db02d73b.js} | 2 +- assets/js/{71.5206b032.js => 71.15dd803f.js} | 2 +- assets/js/{73.0243ff0c.js => 73.df7d2f26.js} | 2 +- assets/js/{74.2a665139.js => 74.9c25c103.js} | 2 +- assets/js/{75.b5db511e.js => 75.79e79b9d.js} | 2 +- assets/js/{76.180b8a1a.js => 76.a1aabcb9.js} | 2 +- assets/js/{81.a41fe674.js => 81.762bb2a8.js} | 2 +- assets/js/{82.93b00592.js => 82.e56b9d9c.js} | 2 +- assets/js/{83.cfcece06.js => 83.de0febc9.js} | 2 +- assets/js/{89.cc430ce3.js => 89.a696475b.js} | 2 +- assets/js/{90.11a24e99.js => 90.9ac01d81.js} | 2 +- assets/js/{92.e55ecb4c.js => 92.d6ff6986.js} | 2 +- assets/js/app.3c9f5b83.js | 16 ---------------- assets/js/app.b8254966.js | 16 ++++++++++++++++ config/index.html | 6 +++--- configuration/config.html | 6 +++--- configuration/parametres.html | 6 +++--- development/admin.html | 6 +++--- development/core.html | 6 +++--- development/doc.html | 6 +++--- development/makefile.html | 6 +++--- development/middlewares.html | 6 +++--- development/multilinguisme.html | 6 +++--- development/platforms.html | 6 +++--- development/routes.html | 6 +++--- development/tools.html | 6 +++--- development/tree.html | 6 +++--- essential/ec-attributes.html | 6 +++--- essential/formats.html | 6 +++--- essential/knowledge-base.html | 6 +++--- essential/report.html | 6 +++--- essential/updates.html | 6 +++--- features/alerts.html | 6 +++--- features/doubleclick.html | 6 +++--- features/exclusions.html | 6 +++--- features/geolocalisation.html | 6 +++--- features/metadata-enrichment.html | 6 +++--- features/outputfields.html | 6 +++--- features/qualification.html | 6 +++--- guide/index.html | 6 +++--- guide/using-vue.html | 6 +++--- index.html | 4 ++-- middlewares/anonymizer/README.html | 4 ++-- middlewares/bot-ua-detector/README.html | 4 ++-- middlewares/crossref/README.html | 4 ++-- middlewares/cut/README.html | 4 ++-- middlewares/datacite/README.html | 4 ++-- middlewares/deduplicator/README.html | 4 ++-- middlewares/ebscohost/README.html | 4 ++-- middlewares/enhancer/README.html | 4 ++-- middlewares/eprints/README.html | 4 ++-- middlewares/ezunpaywall/README.html | 4 ++-- middlewares/field-splitter/README.html | 4 ++-- middlewares/filter/README.html | 4 ++-- middlewares/geolocalizer/README.html | 4 ++-- middlewares/hal/README.html | 4 ++-- middlewares/host-chain/README.html | 4 ++-- middlewares/istex/README.html | 4 ++-- middlewares/labelize/README.html | 4 ++-- middlewares/ncbi/README.html | 4 ++-- middlewares/omeka/README.html | 4 ++-- middlewares/omekas/README.html | 4 ++-- middlewares/on-campus-counter/README.html | 4 ++-- middlewares/panist/README.html | 4 ++-- middlewares/parser/README.html | 4 ++-- middlewares/populate/README.html | 4 ++-- middlewares/qualifier/README.html | 4 ++-- middlewares/robots/README.html | 4 ++-- middlewares/session-id/README.html | 4 ++-- middlewares/sudoc/README.html | 4 ++-- middlewares/throttler/README.html | 4 ++-- middlewares/trackcode-generator/README.html | 4 ++-- middlewares/unpaywall/README.html | 4 ++-- middlewares/user-agent-parser/README.html | 4 ++-- middlewares/zotero/README.html | 4 ++-- start/install.html | 12 ++++++++---- start/requirements.html | 6 +++--- start/uninstall.html | 6 +++--- start/usage.html | 6 +++--- troubleshooting/core-dumped.html | 6 +++--- troubleshooting/mongodb-connection.html | 6 +++--- 109 files changed, 228 insertions(+), 224 deletions(-) delete mode 100644 assets/js/24.22842ea3.js create mode 100644 assets/js/24.ec3e95a7.js rename assets/js/{25.45ba19a5.js => 25.ecc3f6d9.js} (96%) rename assets/js/{26.ff668d07.js => 26.c11a2586.js} (95%) rename assets/js/{27.848aaf73.js => 27.97322374.js} (97%) rename assets/js/{28.276432b9.js => 28.db7df42b.js} (97%) rename assets/js/{29.6cbfc546.js => 29.4fe31c6f.js} (95%) rename assets/js/{30.f3081c1d.js => 30.9b418c08.js} (96%) rename assets/js/{32.237ed509.js => 32.b7c3976b.js} (95%) rename assets/js/{36.680e2532.js => 36.5f487fa4.js} (99%) rename assets/js/{37.e337077f.js => 37.2eebdbf6.js} (96%) rename assets/js/{38.d2914b5a.js => 38.9dc731cc.js} (99%) rename assets/js/{39.7ef4442a.js => 39.cce0da7e.js} (96%) rename assets/js/{40.3d89b34b.js => 40.c491b3a3.js} (97%) rename assets/js/{41.a328ff42.js => 41.e69fa331.js} (96%) rename assets/js/{45.b75672d8.js => 45.24de892a.js} (96%) rename assets/js/{46.6644530d.js => 46.536ff2d2.js} (95%) rename assets/js/{47.ad650894.js => 47.dc697db1.js} (96%) rename assets/js/{48.f2051aa4.js => 48.a9382aff.js} (94%) rename assets/js/{49.1a45eefe.js => 49.f43994ce.js} (95%) rename assets/js/{50.d0c5a129.js => 50.f9aadf3a.js} (95%) rename assets/js/{51.e34c2448.js => 51.ef77625a.js} (96%) rename assets/js/{52.d8dd4c20.js => 52.57b0f71d.js} (95%) rename assets/js/{54.ab538ec6.js => 54.13231ebd.js} (95%) rename assets/js/{55.96f157dd.js => 55.8d718162.js} (96%) rename assets/js/{57.5985beca.js => 57.c8829c66.js} (97%) rename assets/js/{62.198c71df.js => 62.639bb6c9.js} (99%) rename assets/js/{64.fc785f26.js => 64.db02d73b.js} (99%) rename assets/js/{71.5206b032.js => 71.15dd803f.js} (98%) rename assets/js/{73.0243ff0c.js => 73.df7d2f26.js} (99%) rename assets/js/{74.2a665139.js => 74.9c25c103.js} (98%) rename assets/js/{75.b5db511e.js => 75.79e79b9d.js} (99%) rename assets/js/{76.180b8a1a.js => 76.a1aabcb9.js} (97%) rename assets/js/{81.a41fe674.js => 81.762bb2a8.js} (99%) rename assets/js/{82.93b00592.js => 82.e56b9d9c.js} (98%) rename assets/js/{83.cfcece06.js => 83.de0febc9.js} (93%) rename assets/js/{89.cc430ce3.js => 89.a696475b.js} (98%) rename assets/js/{90.11a24e99.js => 90.9ac01d81.js} (96%) rename assets/js/{92.e55ecb4c.js => 92.d6ff6986.js} (90%) delete mode 100644 assets/js/app.3c9f5b83.js create mode 100644 assets/js/app.b8254966.js diff --git a/404.html b/404.html index 0e8e9f93..23fe1f5c 100644 --- a/404.html +++ b/404.html @@ -11,13 +11,13 @@ - +

404

How did we get here?
Take me home.
- + diff --git a/assets/js/24.22842ea3.js b/assets/js/24.22842ea3.js deleted file mode 100644 index b394f92b..00000000 --- a/assets/js/24.22842ea3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{301:function(a,e,t){a.exports=t.p+"assets/img/install-warning-mongo.766cddbd.png"},302:function(a,e,t){a.exports=t.p+"assets/img/install-result.94c91ea7.png"},405:function(a,e,t){"use strict";t.r(e);var s=t(10),r=Object(s.a)({},(function(){var a=this,e=a._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[e("h1",{attrs:{id:"installation"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[a._v("#")]),a._v(" Installation")]),a._v(" "),e("p",[a._v("Make sure you fulfilled the "),e("RouterLink",{attrs:{to:"/start/requirements.html"}},[a._v("requirements")]),a._v(" before going any further.")],1),a._v(" "),e("p",[a._v("For an ezPAARSE installation on a "),e("strong",[a._v("Windows")]),a._v(" OS, you will have to use a dockerized container. Please see "),e("RouterLink",{attrs:{to:"/start/install.html#docker-and-compose"}},[a._v("below")]),a._v(".")],1),a._v(" "),e("h2",{attrs:{id:"ezpaarse"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse"}},[a._v("#")]),a._v(" ezPAARSE")]),a._v(" "),e("h3",{attrs:{id:"with-source-code"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#with-source-code"}},[a._v("#")]),a._v(" With source code")]),a._v(" "),e("ol",[e("li",[a._v("Clone the repository")])]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" clone https://github.com/ezpaarse-project/ezpaarse\n")])])]),e("ol",{attrs:{start:"2"}},[e("li",[a._v("Go to ezPAARSE directory and use the command "),e("strong",[a._v("make")]),a._v(" to install.")])]),a._v(" "),e("p",[a._v("This command will will check whether your server has all the necessary prerequisites and download all dependencies and resources to enable ezPAARSE to work properly.")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("cd")]),a._v(" ezpaarse\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" checkout "),e("span",{pre:!0,attrs:{class:"token variable"}},[e("span",{pre:!0,attrs:{class:"token variable"}},[a._v("`")]),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" describe "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--tags")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--abbrev")]),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),e("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),e("span",{pre:!0,attrs:{class:"token variable"}},[a._v("`")])]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("make")]),a._v("\n")])])]),e("blockquote",[e("p",[a._v("[!NOTE]"),e("br"),a._v("\nThere may be an error saying that it is impossible to connect to mongodb. If there is only this error, it still means that ezPAARSE has been installed correctly, but that no mongoDB is installed.")])]),a._v(" "),e("p",[e("img",{attrs:{src:t(301),alt:"image"}})]),a._v(" "),e("p",[a._v("At the end of the command, you should see this type of result.")]),a._v(" "),e("p",[e("img",{attrs:{src:t(302),alt:"image"}})]),a._v(" "),e("h3",{attrs:{id:"with-docker"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#with-docker"}},[a._v("#")]),a._v(" With docker")]),a._v(" "),e("p",[a._v("ezPAARSE is available as a "),e("a",{attrs:{href:"https://registry.hub.docker.com/r/ezpaarseproject/ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("docker image"),e("OutboundLink")],1),a._v(".")]),a._v(" "),e("p",[a._v("To run it with docker, you will need to install "),e("a",{attrs:{href:"https://docs.docker.com/engine/install/",target:"_blank",rel:"noopener noreferrer"}},[a._v("Docker"),e("OutboundLink")],1),a._v(" and "),e("a",{attrs:{href:"https://docs.docker.com/compose/install/",target:"_blank",rel:"noopener noreferrer"}},[a._v("Docker-Compose"),e("OutboundLink")],1),a._v(".")]),a._v(" "),e("p",[a._v("Then, you can either grab the "),e("code",[a._v("docker-compose.yml")]),a._v(" file alone:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("mkdir")]),a._v(" ezpaarse/\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("wget")]),a._v(" https://raw.githubusercontent.com/ezpaarse-project/ezpaarse/master/docker-compose.yml\n"),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("test")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-f")]),a._v(" config.local.json "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("||")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("echo")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[a._v("'{}'")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" config.local.json\n")])])]),e("p",[a._v("or clone the github repository:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" clone https://github.com/ezpaarse-project/ezpaarse.git\n"),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("cd")]),a._v(" ezpaarse\n"),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("test")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-f")]),a._v(" config.local.json "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("||")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("echo")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[a._v("'{}'")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" config.local.json\n")])])]),e("blockquote",[e("p",[a._v("[!NOTE]"),e("br"),a._v("\nIf you install ezPAARSE with docker compose, there's no need to install mongodb in addition.")])]),a._v(" "),e("h2",{attrs:{id:"mongodb"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#mongodb"}},[a._v("#")]),a._v(" MongoDB")]),a._v(" "),e("p",[a._v("ezPAARSE needs a mongodb to work, it can store the admin account, PKBs cache and processing history.\nby default,\nezPAARSE tries to connect to a mongodb which is available on port 27017.")]),a._v(" "),e("blockquote",[e("p",[a._v("[!NOTE]"),e("br"),a._v("\nezPAARSE loads PKBs on mongodb. As of mongodb version 6, this feature is no longer available.")])]),a._v(" "),e("h3",{attrs:{id:"official-packages"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#official-packages"}},[a._v("#")]),a._v(" Official packages")]),a._v(" "),e("p",[a._v("You can install mongodb on your server via "),e("a",{attrs:{href:"https://www.mongodb.com/docs/manual/installation/",target:"_blank",rel:"noopener noreferrer"}},[a._v("official packages"),e("OutboundLink")],1),a._v(".")]),a._v(" "),e("h3",{attrs:{id:"docker"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#docker"}},[a._v("#")]),a._v(" Docker")]),a._v(" "),e("p",[a._v("It's easier to install mongodb at the right version with docker.")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Create mongodb image.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# You can use other versions but this may have an impact on PKB.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("docker")]),a._v(" run "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-p")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[a._v("27017")]),a._v(":27017 "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--name")]),a._v(" ezpaarse-db "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-d")]),a._v(" mongo:3.6.23\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Start mongodb.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("docker")]),a._v(" start ezpaarse-db\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Stop mongodb.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("docker")]),a._v(" stop ezpaarse-db\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/24.ec3e95a7.js b/assets/js/24.ec3e95a7.js new file mode 100644 index 00000000..ea1461e1 --- /dev/null +++ b/assets/js/24.ec3e95a7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{301:function(a,e,t){a.exports=t.p+"assets/img/install-warning-mongo.766cddbd.png"},302:function(a,e,t){a.exports=t.p+"assets/img/install-result.94c91ea7.png"},405:function(a,e,t){"use strict";t.r(e);var s=t(10),r=Object(s.a)({},(function(){var a=this,e=a._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[e("h1",{attrs:{id:"installation"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[a._v("#")]),a._v(" Installation")]),a._v(" "),e("p",[a._v("Make sure you fulfilled the "),e("RouterLink",{attrs:{to:"/start/requirements.html"}},[a._v("requirements")]),a._v(" before going any further.")],1),a._v(" "),e("p",[a._v("For an ezPAARSE installation on a "),e("strong",[a._v("Windows")]),a._v(" OS, you will have to use a dockerized container. Please see "),e("RouterLink",{attrs:{to:"/start/install.html#docker-and-compose"}},[a._v("below")]),a._v(".")],1),a._v(" "),e("h2",{attrs:{id:"ezpaarse"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse"}},[a._v("#")]),a._v(" ezPAARSE")]),a._v(" "),e("h3",{attrs:{id:"with-source-code"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#with-source-code"}},[a._v("#")]),a._v(" With source code")]),a._v(" "),e("ol",[e("li",[a._v("Clone the repository")])]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" clone https://github.com/ezpaarse-project/ezpaarse\n")])])]),e("ol",{attrs:{start:"2"}},[e("li",[a._v("Open the ezPAARSE directory and get the latest stable version")])]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("cd")]),a._v(" ezpaarse\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" checkout "),e("span",{pre:!0,attrs:{class:"token variable"}},[e("span",{pre:!0,attrs:{class:"token variable"}},[a._v("`")]),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" describe "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--tags")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--abbrev")]),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),e("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),e("span",{pre:!0,attrs:{class:"token variable"}},[a._v("`")])]),a._v("\n")])])]),e("ol",{attrs:{start:"2"}},[e("li",[a._v("Use the command "),e("strong",[a._v("make")]),a._v(" to install.")])]),a._v(" "),e("p",[a._v("This command will check whether your server has all the necessary prerequisites and download all dependencies and resources to enable ezPAARSE to work properly.")]),a._v(" "),e("p",[a._v("If you're planning to use ezPAARSE only from the command line and don't need the web interface, you can set the "),e("code",[a._v("EZPAARSE_NO_WEB_CLIENT")]),a._v(" environment variable to prevent client side dependencies from being installed.")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Full setup")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("make")]),a._v("\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Setup without web client")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token assign-left variable"}},[a._v("EZPAARSE_NO_WEB_CLIENT")]),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),e("span",{pre:!0,attrs:{class:"token number"}},[a._v("1")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("make")]),a._v("\n")])])]),e("blockquote",[e("p",[a._v("[!NOTE]"),e("br"),a._v("\nThere may be an error saying that it is impossible to connect to mongodb. If there is only this error, it still means that ezPAARSE has been installed correctly, but that no mongoDB is installed.")])]),a._v(" "),e("p",[e("img",{attrs:{src:t(301),alt:"image"}})]),a._v(" "),e("p",[a._v("At the end of the command, you should see this type of result.")]),a._v(" "),e("p",[e("img",{attrs:{src:t(302),alt:"image"}})]),a._v(" "),e("h3",{attrs:{id:"with-docker"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#with-docker"}},[a._v("#")]),a._v(" With docker")]),a._v(" "),e("p",[a._v("ezPAARSE is available as a "),e("a",{attrs:{href:"https://registry.hub.docker.com/r/ezpaarseproject/ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("docker image"),e("OutboundLink")],1),a._v(".")]),a._v(" "),e("p",[a._v("To run it with docker, you will need to install "),e("a",{attrs:{href:"https://docs.docker.com/engine/install/",target:"_blank",rel:"noopener noreferrer"}},[a._v("Docker"),e("OutboundLink")],1),a._v(" and "),e("a",{attrs:{href:"https://docs.docker.com/compose/install/",target:"_blank",rel:"noopener noreferrer"}},[a._v("Docker-Compose"),e("OutboundLink")],1),a._v(".")]),a._v(" "),e("p",[a._v("Then, you can either grab the "),e("code",[a._v("docker-compose.yml")]),a._v(" file alone:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("mkdir")]),a._v(" ezpaarse/\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("wget")]),a._v(" https://raw.githubusercontent.com/ezpaarse-project/ezpaarse/master/docker-compose.yml\n"),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("test")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-f")]),a._v(" config.local.json "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("||")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("echo")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[a._v("'{}'")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" config.local.json\n")])])]),e("p",[a._v("or clone the github repository:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("git")]),a._v(" clone https://github.com/ezpaarse-project/ezpaarse.git\n"),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("cd")]),a._v(" ezpaarse\n"),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("test")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-f")]),a._v(" config.local.json "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("||")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("echo")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[a._v("'{}'")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" config.local.json\n")])])]),e("blockquote",[e("p",[a._v("[!NOTE]"),e("br"),a._v("\nIf you install ezPAARSE with docker compose, there's no need to install mongodb in addition.")])]),a._v(" "),e("h2",{attrs:{id:"mongodb"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#mongodb"}},[a._v("#")]),a._v(" MongoDB")]),a._v(" "),e("p",[a._v("ezPAARSE needs a mongodb to work, it can store the admin account, PKBs cache and processing history.\nby default,\nezPAARSE tries to connect to a mongodb which is available on port 27017.")]),a._v(" "),e("blockquote",[e("p",[a._v("[!NOTE]"),e("br"),a._v("\nezPAARSE loads PKBs on mongodb. As of mongodb version 6, this feature is no longer available.")])]),a._v(" "),e("h3",{attrs:{id:"official-packages"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#official-packages"}},[a._v("#")]),a._v(" Official packages")]),a._v(" "),e("p",[a._v("You can install mongodb on your server via "),e("a",{attrs:{href:"https://www.mongodb.com/docs/manual/installation/",target:"_blank",rel:"noopener noreferrer"}},[a._v("official packages"),e("OutboundLink")],1),a._v(".")]),a._v(" "),e("h3",{attrs:{id:"docker"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#docker"}},[a._v("#")]),a._v(" Docker")]),a._v(" "),e("p",[a._v("It's easier to install mongodb at the right version with docker.")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Create mongodb image.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# You can use other versions but this may have an impact on PKB.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("docker")]),a._v(" run "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-p")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[a._v("27017")]),a._v(":27017 "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--name")]),a._v(" ezpaarse-db "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-d")]),a._v(" mongo:3.6.23\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Start mongodb.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("docker")]),a._v(" start ezpaarse-db\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Stop mongodb.")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("docker")]),a._v(" stop ezpaarse-db\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/25.45ba19a5.js b/assets/js/25.ecc3f6d9.js similarity index 96% rename from assets/js/25.45ba19a5.js rename to assets/js/25.ecc3f6d9.js index 5b21fe04..b174d4f8 100644 --- a/assets/js/25.45ba19a5.js +++ b/assets/js/25.ecc3f6d9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{303:function(a,t,e){a.exports=e.p+"assets/img/admin-interface.33831706.png"},304:function(a,t,e){a.exports=e.p+"assets/img/process-interface.8a19c3e8.png"},410:function(a,t,e){"use strict";e.r(t);var s=e(10),r=Object(s.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"anonymizer"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#anonymizer"}},[a._v("#")]),a._v(" anonymizer")]),a._v(" "),t("p",[a._v("Anonymizes a list of fields.")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[a._v("#")]),a._v(" Prerequisites")]),a._v(" "),t("p",[a._v("Your EC needs a print_identifier for enrichment.")]),a._v(" "),t("p",[t("strong",[a._v("You must use anonymizer after filter, parser, deduplicator middleware.")])]),a._v(" "),t("p",[t("strong",[a._v("It is recommended to use it after all middleware. Depending on its settings and if it is placed at the beginning, it may cancel some enrichment.")])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("Crypted-Fields")]),a._v(" : name of the fields to be encrypted "),t("em",[a._v("(default: host,login)")])]),a._v(" "),t("li",[t("strong",[a._v("Crypting-Algorithm")]),a._v(" : Encryption algorithm "),t("em",[a._v("(default: sha1)")])]),a._v(" "),t("li",[t("strong",[a._v("Crypting-Salt")]),a._v(" : Encryption salt")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add anonymizer by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(303),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use anonymizer for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(304),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("p",[a._v("You can use anonymizer for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("ezp"),t("OutboundLink")],1),a._v(" like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: anonymizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Fields: login, user"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Salt: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: anonymizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Fields: login, user"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Salt: "')]),a._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use anonymizer for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: anonymizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Fields: login, user"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Salt: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{321:function(a,t,e){a.exports=e.p+"assets/img/admin-interface.33831706.png"},322:function(a,t,e){a.exports=e.p+"assets/img/process-interface.8a19c3e8.png"},419:function(a,t,e){"use strict";e.r(t);var s=e(10),r=Object(s.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"anonymizer"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#anonymizer"}},[a._v("#")]),a._v(" anonymizer")]),a._v(" "),t("p",[a._v("Anonymizes a list of fields.")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[a._v("#")]),a._v(" Prerequisites")]),a._v(" "),t("p",[a._v("Your EC needs a print_identifier for enrichment.")]),a._v(" "),t("p",[t("strong",[a._v("You must use anonymizer after filter, parser, deduplicator middleware.")])]),a._v(" "),t("p",[t("strong",[a._v("It is recommended to use it after all middleware. Depending on its settings and if it is placed at the beginning, it may cancel some enrichment.")])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("Crypted-Fields")]),a._v(" : name of the fields to be encrypted "),t("em",[a._v("(default: host,login)")])]),a._v(" "),t("li",[t("strong",[a._v("Crypting-Algorithm")]),a._v(" : Encryption algorithm "),t("em",[a._v("(default: sha1)")])]),a._v(" "),t("li",[t("strong",[a._v("Crypting-Salt")]),a._v(" : Encryption salt")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add anonymizer by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(321),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use anonymizer for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(322),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("p",[a._v("You can use anonymizer for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("ezp"),t("OutboundLink")],1),a._v(" like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: anonymizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Fields: login, user"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Salt: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: anonymizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Fields: login, user"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Salt: "')]),a._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use anonymizer for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: anonymizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Fields: login, user"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Crypted-Salt: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/26.ff668d07.js b/assets/js/26.c11a2586.js similarity index 95% rename from assets/js/26.ff668d07.js rename to assets/js/26.c11a2586.js index 61a81b87..5c2417f8 100644 --- a/assets/js/26.ff668d07.js +++ b/assets/js/26.c11a2586.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{307:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.dfe0d0c7.png"},308:function(t,a,e){t.exports=e.p+"assets/img/process-interface.4838532b.png"},412:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bot-ua-detector"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bot-ua-detector"}},[t._v("#")]),t._v(" bot-ua-detector")]),t._v(" "),a("p",[t._v("Mark ECs as robots if their user-agent string match a regex in the COUNTER "),a("a",{attrs:{href:"https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/generated/COUNTER_Robots_list.txt",target:"_blank",rel:"noopener noreferrer"}},[t._v("robot list"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("robot")]),t._v(" "),a("td",[t._v("boolean")]),t._v(" "),a("td",[t._v("Is robot or not.")])])])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[a("strong",[t._v("You must use bot-ua-detector after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("robot-refresh-timeout")]),t._v(" : Robot refresh time "),a("em",[t._v("(default: 5000ms)")])])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove bot-ua-detector by default to all your enrichments. To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(307),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use bot-ua-detector for an enrichment process.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(308),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("p",[t._v("You can use bot-ua-detector for an enrichment process with "),a("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),a("OutboundLink")],1),t._v(" like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: bot-ua-detector"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: bot-ua-detector"')]),t._v(" \n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use bot-ua-detector for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: bot-ua-detector"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{303:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.dfe0d0c7.png"},304:function(t,a,e){t.exports=e.p+"assets/img/process-interface.4838532b.png"},410:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bot-ua-detector"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bot-ua-detector"}},[t._v("#")]),t._v(" bot-ua-detector")]),t._v(" "),a("p",[t._v("Mark ECs as robots if their user-agent string match a regex in the COUNTER "),a("a",{attrs:{href:"https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/generated/COUNTER_Robots_list.txt",target:"_blank",rel:"noopener noreferrer"}},[t._v("robot list"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("robot")]),t._v(" "),a("td",[t._v("boolean")]),t._v(" "),a("td",[t._v("Is robot or not.")])])])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[a("strong",[t._v("You must use bot-ua-detector after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("robot-refresh-timeout")]),t._v(" : Robot refresh time "),a("em",[t._v("(default: 5000ms)")])])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove bot-ua-detector by default to all your enrichments. To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(303),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use bot-ua-detector for an enrichment process.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(304),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("p",[t._v("You can use bot-ua-detector for an enrichment process with "),a("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),a("OutboundLink")],1),t._v(" like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: bot-ua-detector"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: bot-ua-detector"')]),t._v(" \n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use bot-ua-detector for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: bot-ua-detector"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/27.848aaf73.js b/assets/js/27.97322374.js similarity index 97% rename from assets/js/27.848aaf73.js rename to assets/js/27.97322374.js index 12ad4da6..069a6668 100644 --- a/assets/js/27.848aaf73.js +++ b/assets/js/27.97322374.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{305:function(e,t,r){e.exports=r.p+"assets/img/admin-interface.3eace1ad.png"},306:function(e,t,r){e.exports=r.p+"assets/img/process-interface.dffd82d4.png"},411:function(e,t,r){"use strict";r.r(t);var s=r(10),a=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"crossref"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#crossref"}},[e._v("#")]),e._v(" crossref")]),e._v(" "),t("p",[e._v("Fetches "),t("a",{attrs:{href:"http://search.crossref.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("crossref"),t("OutboundLink")],1),e._v(" data from their "),t("a",{attrs:{href:"http://search.crossref.org/help/api",target:"_blank",rel:"noopener noreferrer"}},[e._v("API"),t("OutboundLink")],1),e._v(".")]),e._v(" "),t("p",[t("strong",[e._v("This middleware is activated by default.")])]),e._v(" "),t("h2",{attrs:{id:"enriched-fields"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[e._v("#")]),e._v(" Enriched fields")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Type")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("publication_title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Name of publication.")])]),e._v(" "),t("tr",[t("td",[e._v("title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Title of publication.")])]),e._v(" "),t("tr",[t("td",[e._v("type")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("type of document (journal-article, book-chapter, conference-paper, dissertation, report, dataset etc.)")])]),e._v(" "),t("tr",[t("td",[e._v("rtype")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Variation of type")])]),e._v(" "),t("tr",[t("td",[e._v("publication_date")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Date of resource.")])]),e._v(" "),t("tr",[t("td",[e._v("publisher_name")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Name of publisher.")])]),e._v(" "),t("tr",[t("td",[e._v("print_identifier")]),e._v(" "),t("td",[e._v("Number")]),e._v(" "),t("td",[e._v("ISBN or ISSN.")])]),e._v(" "),t("tr",[t("td",[e._v("online_identifier")]),e._v(" "),t("td",[e._v("Number")]),e._v(" "),t("td",[e._v("EISBN or EISSN.")])]),e._v(" "),t("tr",[t("td",[e._v("subject")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("subject, thematic of publication")])]),e._v(" "),t("tr",[t("td",[e._v("doi")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("DOI of publication.")])]),e._v(" "),t("tr",[t("td",[e._v("license")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Licence.")])])])]),e._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),t("p",[e._v("Your EC needs a DOI or alternative ID (any other identifier a publisher may have provided) for enrichment.")]),e._v(" "),t("p",[t("strong",[e._v("You must use crossref after filter, parser, deduplicator middleware.")])]),e._v(" "),t("h2",{attrs:{id:"recommendation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#recommendation"}},[e._v("#")]),e._v(" Recommendation")]),e._v(" "),t("p",[e._v("You can use ezunpaywall with crossreft by placing it in front. This will save you processing time.")]),e._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),t("ul",[t("li",[t("strong",[e._v("crossref-enrich")]),e._v(" : Set to "),t("code",[e._v("false")]),e._v(" to disable crossref enrichment. Enabled by default.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-cache")]),e._v(" : Enable/Disable cache.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-license")]),e._v(" : Set to "),t("code",[e._v("true")]),e._v(" to get the "),t("code",[e._v("license")]),e._v(" field as JSON. Disabled by default.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-ttl")]),e._v(" : Lifetime of cached documents, in seconds. Defaults to "),t("code",[e._v("7 days (3600 * 24 * 7)")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-throttle")]),e._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),t("code",[e._v("200")]),e._v("ms.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-paquet-size")]),e._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),t("code",[e._v("50")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-buffer-size")]),e._v(" : Maximum number of memorised access events before sending a request. Defaults to "),t("code",[e._v("1000")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-max-tries")]),e._v(" : Maximum number of attempts if an enrichment fails. Defaults to "),t("code",[e._v("5")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-on-fail")]),e._v(" : Strategy to adopt if an enrichment reaches the maximum number of attempts. Can be either of "),t("code",[e._v("abort")]),e._v(", "),t("code",[e._v("ignore")]),e._v(" or "),t("code",[e._v("retry")]),e._v(". Defaults to "),t("code",[e._v("abort")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-base-wait-time")]),e._v(" : Time to wait before retrying after a query fails, in milliseconds. Defaults to "),t("code",[e._v("1000")]),e._v("ms. This time "),t("code",[e._v("doubles")]),e._v(" after each attempt.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-plus-api-token")]),e._v(" : If you signed up for the "),t("code",[e._v("Plus")]),e._v(" service, put your token in this header.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-user-agent")]),e._v(" : Specify what to send in the "),t("code",[e._v("User-Agent")]),e._v(" header when querying Crossref. Defaults to "),t("code",[e._v("ezPAARSE (https://readmetrics.org; mailto:ezteam@couperin.org)")]),e._v(".")])]),e._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),t("p",[e._v("You can add crossref by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),t("p",[t("img",{attrs:{src:r(305),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),t("p",[e._v("You can use crossref for an enrichment process. You just add the middleware.")]),e._v(" "),t("p",[t("img",{attrs:{src:r(306),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),t("p",[e._v("You can use crossref for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[e._v("ezp"),t("OutboundLink")],1),e._v(" like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: crossref"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: crossref"')]),e._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),t("p",[e._v("You can use crossref for an enrichment process with curl like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: crossref"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{307:function(e,t,r){e.exports=r.p+"assets/img/admin-interface.3eace1ad.png"},308:function(e,t,r){e.exports=r.p+"assets/img/process-interface.dffd82d4.png"},412:function(e,t,r){"use strict";r.r(t);var s=r(10),a=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"crossref"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#crossref"}},[e._v("#")]),e._v(" crossref")]),e._v(" "),t("p",[e._v("Fetches "),t("a",{attrs:{href:"http://search.crossref.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("crossref"),t("OutboundLink")],1),e._v(" data from their "),t("a",{attrs:{href:"http://search.crossref.org/help/api",target:"_blank",rel:"noopener noreferrer"}},[e._v("API"),t("OutboundLink")],1),e._v(".")]),e._v(" "),t("p",[t("strong",[e._v("This middleware is activated by default.")])]),e._v(" "),t("h2",{attrs:{id:"enriched-fields"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[e._v("#")]),e._v(" Enriched fields")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Type")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("publication_title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Name of publication.")])]),e._v(" "),t("tr",[t("td",[e._v("title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Title of publication.")])]),e._v(" "),t("tr",[t("td",[e._v("type")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("type of document (journal-article, book-chapter, conference-paper, dissertation, report, dataset etc.)")])]),e._v(" "),t("tr",[t("td",[e._v("rtype")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Variation of type")])]),e._v(" "),t("tr",[t("td",[e._v("publication_date")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Date of resource.")])]),e._v(" "),t("tr",[t("td",[e._v("publisher_name")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Name of publisher.")])]),e._v(" "),t("tr",[t("td",[e._v("print_identifier")]),e._v(" "),t("td",[e._v("Number")]),e._v(" "),t("td",[e._v("ISBN or ISSN.")])]),e._v(" "),t("tr",[t("td",[e._v("online_identifier")]),e._v(" "),t("td",[e._v("Number")]),e._v(" "),t("td",[e._v("EISBN or EISSN.")])]),e._v(" "),t("tr",[t("td",[e._v("subject")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("subject, thematic of publication")])]),e._v(" "),t("tr",[t("td",[e._v("doi")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("DOI of publication.")])]),e._v(" "),t("tr",[t("td",[e._v("license")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Licence.")])])])]),e._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),t("p",[e._v("Your EC needs a DOI or alternative ID (any other identifier a publisher may have provided) for enrichment.")]),e._v(" "),t("p",[t("strong",[e._v("You must use crossref after filter, parser, deduplicator middleware.")])]),e._v(" "),t("h2",{attrs:{id:"recommendation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#recommendation"}},[e._v("#")]),e._v(" Recommendation")]),e._v(" "),t("p",[e._v("You can use ezunpaywall with crossreft by placing it in front. This will save you processing time.")]),e._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),t("ul",[t("li",[t("strong",[e._v("crossref-enrich")]),e._v(" : Set to "),t("code",[e._v("false")]),e._v(" to disable crossref enrichment. Enabled by default.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-cache")]),e._v(" : Enable/Disable cache.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-license")]),e._v(" : Set to "),t("code",[e._v("true")]),e._v(" to get the "),t("code",[e._v("license")]),e._v(" field as JSON. Disabled by default.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-ttl")]),e._v(" : Lifetime of cached documents, in seconds. Defaults to "),t("code",[e._v("7 days (3600 * 24 * 7)")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-throttle")]),e._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),t("code",[e._v("200")]),e._v("ms.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-paquet-size")]),e._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),t("code",[e._v("50")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-buffer-size")]),e._v(" : Maximum number of memorised access events before sending a request. Defaults to "),t("code",[e._v("1000")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-max-tries")]),e._v(" : Maximum number of attempts if an enrichment fails. Defaults to "),t("code",[e._v("5")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-on-fail")]),e._v(" : Strategy to adopt if an enrichment reaches the maximum number of attempts. Can be either of "),t("code",[e._v("abort")]),e._v(", "),t("code",[e._v("ignore")]),e._v(" or "),t("code",[e._v("retry")]),e._v(". Defaults to "),t("code",[e._v("abort")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("crossref-base-wait-time")]),e._v(" : Time to wait before retrying after a query fails, in milliseconds. Defaults to "),t("code",[e._v("1000")]),e._v("ms. This time "),t("code",[e._v("doubles")]),e._v(" after each attempt.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-plus-api-token")]),e._v(" : If you signed up for the "),t("code",[e._v("Plus")]),e._v(" service, put your token in this header.")]),e._v(" "),t("li",[t("strong",[e._v("crossref-user-agent")]),e._v(" : Specify what to send in the "),t("code",[e._v("User-Agent")]),e._v(" header when querying Crossref. Defaults to "),t("code",[e._v("ezPAARSE (https://readmetrics.org; mailto:ezteam@couperin.org)")]),e._v(".")])]),e._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),t("p",[e._v("You can add crossref by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),t("p",[t("img",{attrs:{src:r(307),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),t("p",[e._v("You can use crossref for an enrichment process. You just add the middleware.")]),e._v(" "),t("p",[t("img",{attrs:{src:r(308),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),t("p",[e._v("You can use crossref for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[e._v("ezp"),t("OutboundLink")],1),e._v(" like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: crossref"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: crossref"')]),e._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),t("p",[e._v("You can use crossref for an enrichment process with curl like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: crossref"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/28.276432b9.js b/assets/js/28.db7df42b.js similarity index 97% rename from assets/js/28.276432b9.js rename to assets/js/28.db7df42b.js index 4834bbd3..bcdd188a 100644 --- a/assets/js/28.276432b9.js +++ b/assets/js/28.db7df42b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{309:function(t,a,s){t.exports=s.p+"assets/img/admin-interface.c1d5eba9.png"},310:function(t,a,s){t.exports=s.p+"assets/img/process-interface.12eeba02.png"},413:function(t,a,s){"use strict";s.r(a);var e=s(10),r=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"cut"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cut"}},[t._v("#")]),t._v(" cut")]),t._v(" "),a("p",[t._v("Separates any unique field into two or more distinct fields, based on a given separator or regular expression.")]),t._v(" "),a("p",[a("strong",[t._v("This middleware is activated by default.")]),t._v("\nNo config is set by default.")]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("destinationFields")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("custom fields")])])])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[t._v("Your EC needs sourceField that exist.")]),t._v(" "),a("p",[a("strong",[t._v("You must use cut after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("extract")]),t._v(" : This header takes 3 parameters which are "),a("code",[t._v("sourceField")]),t._v(", "),a("code",[t._v("expression")]),t._v(" and "),a("code",[t._v("destinationFields")]),t._v(", e.g: "),a("code",[t._v("sourceField=>expression=>destinationFields")])])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove cut by default to all your enrichments. To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(309),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use cut for an enrichment process.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(310),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("p",[t._v("You can use cut for an enrichment process with "),a("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),a("OutboundLink")],1),t._v(" like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with split function")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: email => split(@) => identifiant,domainName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: email => split(@) => identifiant,domainName"')]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with regex")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: login => /^([a-z]+)\\.([a-z]+)$/ => lastName,firstName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: login => /^([a-z]+)\\.([a-z]+)$/ => lastName,firstName"')]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use cut for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with split function")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: email => split(@) => identifiant,domainName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with regex")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: login => /^([a-z]+)\\.([a-z]+)$/ => lastName,firstName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{305:function(t,a,s){t.exports=s.p+"assets/img/admin-interface.c1d5eba9.png"},306:function(t,a,s){t.exports=s.p+"assets/img/process-interface.12eeba02.png"},411:function(t,a,s){"use strict";s.r(a);var e=s(10),r=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"cut"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cut"}},[t._v("#")]),t._v(" cut")]),t._v(" "),a("p",[t._v("Separates any unique field into two or more distinct fields, based on a given separator or regular expression.")]),t._v(" "),a("p",[a("strong",[t._v("This middleware is activated by default.")]),t._v("\nNo config is set by default.")]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("destinationFields")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("custom fields")])])])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[t._v("Your EC needs sourceField that exist.")]),t._v(" "),a("p",[a("strong",[t._v("You must use cut after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("extract")]),t._v(" : This header takes 3 parameters which are "),a("code",[t._v("sourceField")]),t._v(", "),a("code",[t._v("expression")]),t._v(" and "),a("code",[t._v("destinationFields")]),t._v(", e.g: "),a("code",[t._v("sourceField=>expression=>destinationFields")])])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove cut by default to all your enrichments. To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(305),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use cut for an enrichment process.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(306),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("p",[t._v("You can use cut for an enrichment process with "),a("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),a("OutboundLink")],1),t._v(" like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with split function")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: email => split(@) => identifiant,domainName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: email => split(@) => identifiant,domainName"')]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with regex")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: login => /^([a-z]+)\\.([a-z]+)$/ => lastName,firstName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: login => /^([a-z]+)\\.([a-z]+)$/ => lastName,firstName"')]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use cut for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with split function")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: email => split(@) => identifiant,domainName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Use with regex")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: cut"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"extract: login => /^([a-z]+)\\.([a-z]+)$/ => lastName,firstName"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/29.6cbfc546.js b/assets/js/29.4fe31c6f.js similarity index 95% rename from assets/js/29.6cbfc546.js rename to assets/js/29.4fe31c6f.js index 401fee72..6410b089 100644 --- a/assets/js/29.6cbfc546.js +++ b/assets/js/29.4fe31c6f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{311:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.a54672bf.png"},312:function(t,a,e){t.exports=e.p+"assets/img/process-interface.0cfe332b.png"},414:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"datacite"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datacite"}},[t._v("#")]),t._v(" datacite")]),t._v(" "),a("p",[t._v("Fetches metadata from the API "),a("a",{attrs:{href:"https://datacite.org/",target:"_blank",rel:"noopener noreferrer"}},[t._v("datacite"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("publication_title")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("Name of publication.")])]),t._v(" "),a("tr",[a("td",[t._v("publication_date")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("Date of publication.")])]),t._v(" "),a("tr",[a("td",[t._v("publisher_name")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("Name of publisher.")])])])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[t._v("Your EC needs a DOI for enrichment.")]),t._v(" "),a("p",[a("strong",[t._v("You must use datacite after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("datacite-cache")]),t._v(" : Enable/Disable cache.")]),t._v(" "),a("li",[a("strong",[t._v("datacite-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),a("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("datacite-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),a("code",[t._v("100")]),t._v("ms.")]),t._v(" "),a("li",[a("strong",[t._v("datacite-paquet-size")]),t._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),a("code",[t._v("50")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("datacite-buffer-size")]),t._v(" : Maximum number of memorised access events before sending a request. Defaults to "),a("code",[t._v("1000")]),t._v(".")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove datacite by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(311),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use datacite for an enrichment process. You just add the middleware.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(312),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: datacite"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: datacite"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: datacite"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{309:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.a54672bf.png"},310:function(t,a,e){t.exports=e.p+"assets/img/process-interface.0cfe332b.png"},413:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"datacite"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datacite"}},[t._v("#")]),t._v(" datacite")]),t._v(" "),a("p",[t._v("Fetches metadata from the API "),a("a",{attrs:{href:"https://datacite.org/",target:"_blank",rel:"noopener noreferrer"}},[t._v("datacite"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("publication_title")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("Name of publication.")])]),t._v(" "),a("tr",[a("td",[t._v("publication_date")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("Date of publication.")])]),t._v(" "),a("tr",[a("td",[t._v("publisher_name")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td",[t._v("Name of publisher.")])])])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[t._v("Your EC needs a DOI for enrichment.")]),t._v(" "),a("p",[a("strong",[t._v("You must use datacite after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("datacite-cache")]),t._v(" : Enable/Disable cache.")]),t._v(" "),a("li",[a("strong",[t._v("datacite-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),a("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("datacite-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),a("code",[t._v("100")]),t._v("ms.")]),t._v(" "),a("li",[a("strong",[t._v("datacite-paquet-size")]),t._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),a("code",[t._v("50")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("datacite-buffer-size")]),t._v(" : Maximum number of memorised access events before sending a request. Defaults to "),a("code",[t._v("1000")]),t._v(".")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove datacite by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(309),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use datacite for an enrichment process. You just add the middleware.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(310),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: datacite"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: datacite"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: datacite"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/30.f3081c1d.js b/assets/js/30.9b418c08.js similarity index 96% rename from assets/js/30.f3081c1d.js rename to assets/js/30.9b418c08.js index fc998aa4..32e09ff4 100644 --- a/assets/js/30.f3081c1d.js +++ b/assets/js/30.9b418c08.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{315:function(e,t,s){e.exports=s.p+"assets/img/admin-interface.2a603d21.png"},316:function(e,t,s){e.exports=s.p+"assets/img/process-interface.b2b5a498.png"},416:function(e,t,s){"use strict";s.r(t);var a=s(10),r=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"deduplicator"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#deduplicator"}},[e._v("#")]),e._v(" deduplicator")]),e._v(" "),t("p",[e._v("Removes duplicate consultation events, based on the COUNTER algorithm for double-clicks.")]),e._v(" "),t("p",[t("a",{attrs:{href:"https://ezpaarse-project.github.io/ezpaarse/features/doubleclick.html",target:"_blank",rel:"noopener noreferrer"}},[e._v("See this"),t("OutboundLink")],1),e._v(" for more details.")]),e._v(" "),t("p",[t("strong",[e._v("This middleware is activated by default.")])]),e._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),t("p",[t("strong",[e._v("You must use deduplicator after filter middleware.")])]),e._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),t("ul",[t("li",[t("strong",[e._v("Double-Click-Removal")]),e._v(": COUNTER deduplication activated (true by default). If this header is used, it means the deduplication is not activated (with the false value) and the other Double-Click- headers are useless.")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-HTML")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to an HTML resource (10 by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-PDF")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to a PDF resource (30 by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-MISC")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to a MISC resource (neither HTML, nor PDF) (20 by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-MIXED")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to a resource, whatever its format (ie. the access to a same resource in HTML then in PDF can be considered as a double-click). The delays set for each format are then ignored.")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-Strategy")]),e._v(": the strategy (in the form of a sequence of ordered letters) used to define the uniqueness of the user accessing a resource. The fields are searched sequentially. If one field is lacking, the following one is used. The letter C corresponds to the field containing the cookie (or session ID). The letter L corresponds to the login of the user. The letter I corresponds to the IP address contained in the host field. (CLI by default)\n"),t("ul",[t("li",[t("strong",[e._v("Double-Click-C-field")]),e._v(": field name that will be looked for in the logs. This field coming from the custom log format parameters will be used to trace the cookie identifying the user (or its session ID). By default, it is not possible for ezPAARSE to know the field if it's not specified in the custom log format parameter. (ignored by default)")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-L-field")]),e._v(": field name that will be looked for in the logs to identify the user login (corresponds to %u in the log format syntax). (%u by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-I-field")]),e._v(": field name that will be looked for in the logs to identify the user host (corresponds to %h in the log format syntax). (%h by default).")])])])]),e._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),t("p",[e._v("You can add or remove deduplicator by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),t("p",[t("img",{attrs:{src:s(315),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),t("p",[e._v("You can use deduplicator for an enrichment process. You just add the middleware.")]),e._v(" "),t("p",[t("img",{attrs:{src:s(316),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: deduplicator"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: deduplicator"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: deduplicator"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{311:function(e,t,s){e.exports=s.p+"assets/img/admin-interface.2a603d21.png"},312:function(e,t,s){e.exports=s.p+"assets/img/process-interface.b2b5a498.png"},414:function(e,t,s){"use strict";s.r(t);var a=s(10),r=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"deduplicator"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#deduplicator"}},[e._v("#")]),e._v(" deduplicator")]),e._v(" "),t("p",[e._v("Removes duplicate consultation events, based on the COUNTER algorithm for double-clicks.")]),e._v(" "),t("p",[t("a",{attrs:{href:"https://ezpaarse-project.github.io/ezpaarse/features/doubleclick.html",target:"_blank",rel:"noopener noreferrer"}},[e._v("See this"),t("OutboundLink")],1),e._v(" for more details.")]),e._v(" "),t("p",[t("strong",[e._v("This middleware is activated by default.")])]),e._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),t("p",[t("strong",[e._v("You must use deduplicator after filter middleware.")])]),e._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),t("ul",[t("li",[t("strong",[e._v("Double-Click-Removal")]),e._v(": COUNTER deduplication activated (true by default). If this header is used, it means the deduplication is not activated (with the false value) and the other Double-Click- headers are useless.")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-HTML")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to an HTML resource (10 by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-PDF")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to a PDF resource (30 by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-MISC")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to a MISC resource (neither HTML, nor PDF) (20 by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-MIXED")]),e._v(": sets the minimum delay (in seconds) between two requests considered identical to a resource, whatever its format (ie. the access to a same resource in HTML then in PDF can be considered as a double-click). The delays set for each format are then ignored.")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-Strategy")]),e._v(": the strategy (in the form of a sequence of ordered letters) used to define the uniqueness of the user accessing a resource. The fields are searched sequentially. If one field is lacking, the following one is used. The letter C corresponds to the field containing the cookie (or session ID). The letter L corresponds to the login of the user. The letter I corresponds to the IP address contained in the host field. (CLI by default)\n"),t("ul",[t("li",[t("strong",[e._v("Double-Click-C-field")]),e._v(": field name that will be looked for in the logs. This field coming from the custom log format parameters will be used to trace the cookie identifying the user (or its session ID). By default, it is not possible for ezPAARSE to know the field if it's not specified in the custom log format parameter. (ignored by default)")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-L-field")]),e._v(": field name that will be looked for in the logs to identify the user login (corresponds to %u in the log format syntax). (%u by default).")]),e._v(" "),t("li",[t("strong",[e._v("Double-Click-I-field")]),e._v(": field name that will be looked for in the logs to identify the user host (corresponds to %h in the log format syntax). (%h by default).")])])])]),e._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),t("p",[e._v("You can add or remove deduplicator by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),t("p",[t("img",{attrs:{src:s(311),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),t("p",[e._v("You can use deduplicator for an enrichment process. You just add the middleware.")]),e._v(" "),t("p",[t("img",{attrs:{src:s(312),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: deduplicator"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: deduplicator"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: deduplicator"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/32.237ed509.js b/assets/js/32.b7c3976b.js similarity index 95% rename from assets/js/32.237ed509.js rename to assets/js/32.b7c3976b.js index a23182e7..f63b3df6 100644 --- a/assets/js/32.237ed509.js +++ b/assets/js/32.b7c3976b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{321:function(a,t,e){a.exports=e.p+"assets/img/admin-interface.449a0360.png"},322:function(a,t,e){a.exports=e.p+"assets/img/process-interface.a0a9b6b1.png"},419:function(a,t,e){"use strict";e.r(t);var s=e(10),r=Object(s.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"enhancer"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enhancer"}},[a._v("#")]),a._v(" enhancer")]),a._v(" "),t("p",[a._v("Enhances consultation events with information found in a pkb (issn, eissn, doi, title_id).")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[a._v("#")]),a._v(" Prerequisites")]),a._v(" "),t("p",[t("strong",[a._v("You must use enhancer after filter, parser, deduplicator middleware.")])]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("ezpaarse-enrich")]),a._v(" : Set "),t("code",[a._v("false")]),a._v(" to disable enrichment. Enabled by default.")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove enhancer by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(321),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use enhancer for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(322),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: enhancer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: enhancer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: enhancer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{315:function(a,t,e){a.exports=e.p+"assets/img/admin-interface.449a0360.png"},316:function(a,t,e){a.exports=e.p+"assets/img/process-interface.a0a9b6b1.png"},416:function(a,t,e){"use strict";e.r(t);var s=e(10),r=Object(s.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"enhancer"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enhancer"}},[a._v("#")]),a._v(" enhancer")]),a._v(" "),t("p",[a._v("Enhances consultation events with information found in a pkb (issn, eissn, doi, title_id).")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[a._v("#")]),a._v(" Prerequisites")]),a._v(" "),t("p",[t("strong",[a._v("You must use enhancer after filter, parser, deduplicator middleware.")])]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("ezpaarse-enrich")]),a._v(" : Set "),t("code",[a._v("false")]),a._v(" to disable enrichment. Enabled by default.")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove enhancer by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(315),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use enhancer for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(316),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: enhancer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: enhancer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: enhancer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/36.680e2532.js b/assets/js/36.5f487fa4.js similarity index 99% rename from assets/js/36.680e2532.js rename to assets/js/36.5f487fa4.js index c3bb72c8..c5ef7815 100644 --- a/assets/js/36.680e2532.js +++ b/assets/js/36.5f487fa4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{325:function(a,t,e){a.exports=e.p+"assets/img/admin-interface.21598165.png"},326:function(a,t,e){a.exports=e.p+"assets/img/process-interface.83c903d3.png"},421:function(a,t,e){"use strict";e.r(t);var s=e(10),r=Object(s.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"geocalizer"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#geocalizer"}},[a._v("#")]),a._v(" geocalizer")]),a._v(" "),t("p",[a._v("Geolocalize consultation events based on an IP address.")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"enriched-fields"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[a._v("#")]),a._v(" Enriched fields")]),a._v(" "),t("table",[t("thead",[t("tr",[t("th",[a._v("Name")]),a._v(" "),t("th",[a._v("Type")]),a._v(" "),t("th",[a._v("Description")])])]),a._v(" "),t("tbody",[t("tr",[t("td",[a._v("geoip-host")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[a._v("IP address being geolocalized")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-country")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[t("code",[a._v("2 characters code indicating the country (eg:")]),a._v("FR"),t("code",[a._v("for")]),a._v("France``)")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-region")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[a._v("2 characters code indicating the region (eg: "),t("code",[a._v("A8")]),a._v(" for "),t("code",[a._v("Île-de-France")]),a._v(")")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-city")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[a._v("complete name of the city (eg: "),t("code",[a._v("Paris")]),a._v(")")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-latitude")]),a._v(" "),t("td",[a._v("Number")]),a._v(" "),t("td",[a._v("self-explanatory")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-longitude")]),a._v(" "),t("td",[a._v("Number")]),a._v(" "),t("td",[a._v("self-explanatory")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-coordinates")]),a._v(" "),t("td",[a._v("Array")]),a._v(" "),t("td",[a._v("concatenation of latitude and longitude between brackets (eg: "),t("code",[a._v("[48.8592,2.3417]")]),a._v(")")])])])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("Geoip")]),a._v(" : Geolocation data that can be added to the results (none, all, geoip-host, geoip-country, geoip-region, geoip-city, geoip-latitude, geoip-longitude, geoip-coordinates).")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add geolocalizer by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(325),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use geolocalizer for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(326),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("p",[a._v("You can use geolocalizer for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("ezp"),t("OutboundLink")],1),a._v(" like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: geolocalizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Geoip: all"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: geolocalizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Geoip: all"')]),a._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use geolocalizer for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: geolocalizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Geoip: all"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])]),t("h3",{attrs:{id:"advanced-usage-example"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#advanced-usage-example"}},[a._v("#")]),a._v(" Advanced usage example")]),a._v(" "),t("p",[a._v("This example uses the ''csv2geojson'' and ''geojsonio-cli'' librairies.")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("npm")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" csv2geojson geojsonio-cli\n")])])]),t("p",[a._v("It is then possible to directly visualize the results on a map.")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST http://127.0.0.1:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--proxy")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('""')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n --no-buffer "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n --data-binary @./test/dataset/edp.2013-01-23.log "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v("'Geoip: geoip-latitude, geoip-longitude'")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v("'Output-Fields: -doi,-identd,-url,-status,-size,+datetime'")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("|")]),a._v(" csv2geojson "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--lat")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"geoip-latitude"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--lon")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"geoip-longitude"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--delimiter")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('";"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[t("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[a._v("2")]),a._v(">")]),a._v(" /dev/null "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("|")]),a._v(" geojsonio\n")])])]),t("p",[a._v("That opens a web browser with the following graphical representation of the access events.")]),a._v(" "),t("h4",{attrs:{id:"video-demonstration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#video-demonstration"}},[a._v("#")]),a._v(" Video Demonstration")]),a._v(" "),t("p",[a._v("This "),t("a",{attrs:{href:"https://www.youtube.com/watch?v=SXSIb7oczbI",target:"_blank",rel:"noopener noreferrer"}},[a._v("screencast"),t("OutboundLink")],1),a._v(" demonstrates the previous usage (ie geolocation information visualized on a map)")])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{325:function(a,t,e){a.exports=e.p+"assets/img/admin-interface.21598165.png"},326:function(a,t,e){a.exports=e.p+"assets/img/process-interface.83c903d3.png"},422:function(a,t,e){"use strict";e.r(t);var s=e(10),r=Object(s.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"geocalizer"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#geocalizer"}},[a._v("#")]),a._v(" geocalizer")]),a._v(" "),t("p",[a._v("Geolocalize consultation events based on an IP address.")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"enriched-fields"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[a._v("#")]),a._v(" Enriched fields")]),a._v(" "),t("table",[t("thead",[t("tr",[t("th",[a._v("Name")]),a._v(" "),t("th",[a._v("Type")]),a._v(" "),t("th",[a._v("Description")])])]),a._v(" "),t("tbody",[t("tr",[t("td",[a._v("geoip-host")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[a._v("IP address being geolocalized")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-country")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[t("code",[a._v("2 characters code indicating the country (eg:")]),a._v("FR"),t("code",[a._v("for")]),a._v("France``)")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-region")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[a._v("2 characters code indicating the region (eg: "),t("code",[a._v("A8")]),a._v(" for "),t("code",[a._v("Île-de-France")]),a._v(")")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-city")]),a._v(" "),t("td",[a._v("String")]),a._v(" "),t("td",[a._v("complete name of the city (eg: "),t("code",[a._v("Paris")]),a._v(")")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-latitude")]),a._v(" "),t("td",[a._v("Number")]),a._v(" "),t("td",[a._v("self-explanatory")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-longitude")]),a._v(" "),t("td",[a._v("Number")]),a._v(" "),t("td",[a._v("self-explanatory")])]),a._v(" "),t("tr",[t("td",[a._v("geoip-coordinates")]),a._v(" "),t("td",[a._v("Array")]),a._v(" "),t("td",[a._v("concatenation of latitude and longitude between brackets (eg: "),t("code",[a._v("[48.8592,2.3417]")]),a._v(")")])])])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("Geoip")]),a._v(" : Geolocation data that can be added to the results (none, all, geoip-host, geoip-country, geoip-region, geoip-city, geoip-latitude, geoip-longitude, geoip-coordinates).")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add geolocalizer by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(325),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use geolocalizer for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:e(326),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("p",[a._v("You can use geolocalizer for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("ezp"),t("OutboundLink")],1),a._v(" like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: geolocalizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Geoip: all"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: geolocalizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Geoip: all"')]),a._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use geolocalizer for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: geolocalizer"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Geoip: all"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])]),t("h3",{attrs:{id:"advanced-usage-example"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#advanced-usage-example"}},[a._v("#")]),a._v(" Advanced usage example")]),a._v(" "),t("p",[a._v("This example uses the ''csv2geojson'' and ''geojsonio-cli'' librairies.")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("npm")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" csv2geojson geojsonio-cli\n")])])]),t("p",[a._v("It is then possible to directly visualize the results on a map.")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST http://127.0.0.1:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--proxy")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('""')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n --no-buffer "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n --data-binary @./test/dataset/edp.2013-01-23.log "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v("'Geoip: geoip-latitude, geoip-longitude'")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v("'Output-Fields: -doi,-identd,-url,-status,-size,+datetime'")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("|")]),a._v(" csv2geojson "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--lat")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"geoip-latitude"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--lon")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"geoip-longitude"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--delimiter")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('";"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[t("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[a._v("2")]),a._v(">")]),a._v(" /dev/null "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("|")]),a._v(" geojsonio\n")])])]),t("p",[a._v("That opens a web browser with the following graphical representation of the access events.")]),a._v(" "),t("h4",{attrs:{id:"video-demonstration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#video-demonstration"}},[a._v("#")]),a._v(" Video Demonstration")]),a._v(" "),t("p",[a._v("This "),t("a",{attrs:{href:"https://www.youtube.com/watch?v=SXSIb7oczbI",target:"_blank",rel:"noopener noreferrer"}},[a._v("screencast"),t("OutboundLink")],1),a._v(" demonstrates the previous usage (ie geolocation information visualized on a map)")])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/37.e337077f.js b/assets/js/37.2eebdbf6.js similarity index 96% rename from assets/js/37.e337077f.js rename to assets/js/37.2eebdbf6.js index b48f8299..d268d552 100644 --- a/assets/js/37.e337077f.js +++ b/assets/js/37.2eebdbf6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{329:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.935a8ec9.png"},330:function(t,a,e){t.exports=e.p+"assets/img/process-interface.666bf306.png"},423:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"hal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hal"}},[t._v("#")]),t._v(" hal")]),t._v(" "),a("p",[t._v("Fetches "),a("a",{attrs:{href:"https://hal.archives-ouvertes.fr/",target:"_blank",rel:"noopener noreferrer"}},[t._v("HAL"),a("OutboundLink")],1),t._v(" data from their "),a("a",{attrs:{href:"https://api.archives-ouvertes.fr/docs/search",target:"_blank",rel:"noopener noreferrer"}},[t._v("API"),a("OutboundLink")],1)]),t._v(" "),a("p",[a("strong",[t._v("This middleware is activated by default.")])]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("publication_title")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_consult_collection_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_endpoint_portail_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_endpoint_portail")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_redirect_portail_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_redirect_portail")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_identifiant")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_tampons")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_tampons_name")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_domains")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_redirection")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_docid")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_consult_collection")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_fulltext")]),t._v(" "),a("td"),t._v(" "),a("td")])])]),t._v(" "),a("p",[t._v("The HAL middleware uses the "),a("code",[t._v("hal-identifier")]),t._v(" found in the access events to request metadata using the "),a("a",{attrs:{href:"https://www.npmjs.com/package/methal",target:"_blank",rel:"noopener noreferrer"}},[t._v("node-hal"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("hal-enrich")]),t._v(" : Set to "),a("code",[t._v("true")]),t._v(" to enable HAL enrichment. Disabled by default.\nhal-cache")]),t._v(" "),a("li",[a("strong",[t._v("hal-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),a("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("hal-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),a("code",[t._v("500")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("hal-paquet-size")]),t._v(" :")]),t._v(" "),a("li",[a("strong",[t._v("hal-buffer-siz")]),t._v(" :")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove hal by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(329),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use hel for an enrichment process. You just add the middleware.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(330),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: hal"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: hal"')]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use hal for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: hal"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{331:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.935a8ec9.png"},332:function(t,a,e){t.exports=e.p+"assets/img/process-interface.666bf306.png"},425:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"hal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hal"}},[t._v("#")]),t._v(" hal")]),t._v(" "),a("p",[t._v("Fetches "),a("a",{attrs:{href:"https://hal.archives-ouvertes.fr/",target:"_blank",rel:"noopener noreferrer"}},[t._v("HAL"),a("OutboundLink")],1),t._v(" data from their "),a("a",{attrs:{href:"https://api.archives-ouvertes.fr/docs/search",target:"_blank",rel:"noopener noreferrer"}},[t._v("API"),a("OutboundLink")],1)]),t._v(" "),a("p",[a("strong",[t._v("This middleware is activated by default.")])]),t._v(" "),a("h2",{attrs:{id:"enriched-fields"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("publication_title")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_consult_collection_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_endpoint_portail_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_endpoint_portail")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_redirect_portail_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_redirect_portail")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_identifiant")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_tampons")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_tampons_name")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_domains")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_sid")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_redirection")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_docid")]),t._v(" "),a("td",[t._v("String")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_consult_collection")]),t._v(" "),a("td"),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[t._v("hal_fulltext")]),t._v(" "),a("td"),t._v(" "),a("td")])])]),t._v(" "),a("p",[t._v("The HAL middleware uses the "),a("code",[t._v("hal-identifier")]),t._v(" found in the access events to request metadata using the "),a("a",{attrs:{href:"https://www.npmjs.com/package/methal",target:"_blank",rel:"noopener noreferrer"}},[t._v("node-hal"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("hal-enrich")]),t._v(" : Set to "),a("code",[t._v("true")]),t._v(" to enable HAL enrichment. Disabled by default.\nhal-cache")]),t._v(" "),a("li",[a("strong",[t._v("hal-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),a("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("hal-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),a("code",[t._v("500")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("hal-paquet-size")]),t._v(" :")]),t._v(" "),a("li",[a("strong",[t._v("hal-buffer-siz")]),t._v(" :")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove hal by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(331),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use hel for an enrichment process. You just add the middleware.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(332),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: hal"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: hal"')]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use hal for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: hal"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/38.d2914b5a.js b/assets/js/38.9dc731cc.js similarity index 99% rename from assets/js/38.d2914b5a.js rename to assets/js/38.9dc731cc.js index 3042250b..70e6e59f 100644 --- a/assets/js/38.d2914b5a.js +++ b/assets/js/38.9dc731cc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{327:function(t,a,s){t.exports=s.p+"assets/img/admin-interface.e11e8c62.png"},328:function(t,a,s){t.exports=s.p+"assets/img/process-interface.ab318d58.png"},422:function(t,a,s){"use strict";s.r(a);var e=s(10),r=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"host-chain"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#host-chain"}},[t._v("#")]),t._v(" host-chain")]),t._v(" "),a("p",[t._v("Split a chain of multiple IPs and only keep the first one. The original value is stored in another field.")]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("host-chain-real-position")]),t._v(" : position of the real IP. Defaults to the "),a("code",[t._v("first")]),t._v(" one. Set it to "),a("code",[t._v("last")]),t._v(" to keep the last IP of the chain.")]),t._v(" "),a("li",[a("strong",[t._v("host-chain-field")]),t._v(" : the field that contains the host. Defaults to "),a("code",[t._v("host")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("host-chain-full-field")]),t._v(" : the field that will contain the original value. Defaults to "),a("code",[t._v("full_host")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("host-chain-separator")]),t._v(" : the separator used to separate hosts. Defaults to "),a("code",[t._v(",")]),t._v(".")])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[a("strong",[t._v("You must use host-chain after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove host-chain by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(327),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use host-chain for an enrichment process. You just add the middleware.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(328),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: host-chain"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: host-chain"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: host-chain"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{327:function(t,a,s){t.exports=s.p+"assets/img/admin-interface.e11e8c62.png"},328:function(t,a,s){t.exports=s.p+"assets/img/process-interface.ab318d58.png"},423:function(t,a,s){"use strict";s.r(a);var e=s(10),r=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"host-chain"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#host-chain"}},[t._v("#")]),t._v(" host-chain")]),t._v(" "),a("p",[t._v("Split a chain of multiple IPs and only keep the first one. The original value is stored in another field.")]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("host-chain-real-position")]),t._v(" : position of the real IP. Defaults to the "),a("code",[t._v("first")]),t._v(" one. Set it to "),a("code",[t._v("last")]),t._v(" to keep the last IP of the chain.")]),t._v(" "),a("li",[a("strong",[t._v("host-chain-field")]),t._v(" : the field that contains the host. Defaults to "),a("code",[t._v("host")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("host-chain-full-field")]),t._v(" : the field that will contain the original value. Defaults to "),a("code",[t._v("full_host")]),t._v(".")]),t._v(" "),a("li",[a("strong",[t._v("host-chain-separator")]),t._v(" : the separator used to separate hosts. Defaults to "),a("code",[t._v(",")]),t._v(".")])]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[a("strong",[t._v("You must use host-chain after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove host-chain by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(327),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use host-chain for an enrichment process. You just add the middleware.")]),t._v(" "),a("p",[a("img",{attrs:{src:s(328),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: host-chain"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: host-chain"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: host-chain"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/39.7ef4442a.js b/assets/js/39.cce0da7e.js similarity index 96% rename from assets/js/39.7ef4442a.js rename to assets/js/39.cce0da7e.js index 7cc5edc3..f46aa452 100644 --- a/assets/js/39.7ef4442a.js +++ b/assets/js/39.cce0da7e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{331:function(t,e,a){t.exports=a.p+"assets/img/admin-interface.7bfb652d.png"},332:function(t,e,a){t.exports=a.p+"assets/img/process-interface.66e0e230.png"},425:function(t,e,a){"use strict";a.r(e);var s=a(10),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"istex"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#istex"}},[t._v("#")]),t._v(" istex")]),t._v(" "),e("p",[t._v("Fetches "),e("a",{attrs:{href:"http://www.istex.fr/",target:"_blank",rel:"noopener noreferrer"}},[t._v("istex"),e("OutboundLink")],1),t._v(" data from their "),e("a",{attrs:{href:"https://api.istex.fr/documentation/",target:"_blank",rel:"noopener noreferrer"}},[t._v("API"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("This middleware is activated by default.")])]),t._v(" "),e("h2",{attrs:{id:"enriched-fields"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("mime")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("format of resource. (HTML, PDF, VIDEO, etc)")])]),t._v(" "),e("tr",[e("td",[t._v("publication_title")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("publisher_name")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publisher.")])]),t._v(" "),e("tr",[e("td",[t._v("print_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("ISBN or ISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("online_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("EISBN or EISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("subject")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("subject, thematic of resource.")])]),t._v(" "),e("tr",[e("td",[t._v("doi")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("DOI of resource.")])]),t._v(" "),e("tr",[e("td",[t._v("ark")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("ARK of resource.")])]),t._v(" "),e("tr",[e("td",[t._v("istex_genre")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("type of resource. (article, book, conference, thesis, report etc.)")])]),t._v(" "),e("tr",[e("td",[t._v("language")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Lang of resource.")])])])]),t._v(" "),e("h2",{attrs:{id:"prerequisites"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),e("p",[t._v("The ISTEX middleware uses the "),e("code",[t._v("istex-identifier")]),t._v(" found in the access events to request metadata using the "),e("a",{attrs:{href:"https://www.npmjs.com/package/node-istex",target:"_blank",rel:"noopener noreferrer"}},[t._v("node-istex"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("You must use istex after filter, parser, deduplicator middleware.")])]),t._v(" "),e("h2",{attrs:{id:"headers"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("istex-enrich")]),t._v(" : Set to "),e("code",[t._v("true")]),t._v(" to enable ISTEX enrichment. Disabled by default.")]),t._v(" "),e("li",[e("strong",[t._v("istex-cache")]),t._v(" : Enable/Disable cache.")]),t._v(" "),e("li",[e("strong",[t._v("istex-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),e("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("istex-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),e("code",[t._v("500")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("istex-paquet-size")]),t._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),e("code",[t._v("50")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("istex-buffer-size")]),t._v(" : Maximum number of memorised access events before sending a request. Defaults to "),e("code",[t._v("1000")]),t._v(".")])]),t._v(" "),e("h2",{attrs:{id:"how-to-use"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-admin-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),e("p",[t._v("You can add or remove istex by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(331),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-process-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),e("p",[t._v("You can use istex for an enrichment process. You just add the middleware.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(332),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: istex"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: istex"')]),t._v("\n\n")])])]),e("h3",{attrs:{id:"curl"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),e("p",[t._v("You can use istex for an enrichment process with curl like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: istex"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{329:function(t,e,a){t.exports=a.p+"assets/img/admin-interface.7bfb652d.png"},330:function(t,e,a){t.exports=a.p+"assets/img/process-interface.66e0e230.png"},424:function(t,e,a){"use strict";a.r(e);var s=a(10),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"istex"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#istex"}},[t._v("#")]),t._v(" istex")]),t._v(" "),e("p",[t._v("Fetches "),e("a",{attrs:{href:"http://www.istex.fr/",target:"_blank",rel:"noopener noreferrer"}},[t._v("istex"),e("OutboundLink")],1),t._v(" data from their "),e("a",{attrs:{href:"https://api.istex.fr/documentation/",target:"_blank",rel:"noopener noreferrer"}},[t._v("API"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("This middleware is activated by default.")])]),t._v(" "),e("h2",{attrs:{id:"enriched-fields"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("mime")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("format of resource. (HTML, PDF, VIDEO, etc)")])]),t._v(" "),e("tr",[e("td",[t._v("publication_title")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("publisher_name")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publisher.")])]),t._v(" "),e("tr",[e("td",[t._v("print_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("ISBN or ISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("online_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("EISBN or EISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("subject")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("subject, thematic of resource.")])]),t._v(" "),e("tr",[e("td",[t._v("doi")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("DOI of resource.")])]),t._v(" "),e("tr",[e("td",[t._v("ark")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("ARK of resource.")])]),t._v(" "),e("tr",[e("td",[t._v("istex_genre")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("type of resource. (article, book, conference, thesis, report etc.)")])]),t._v(" "),e("tr",[e("td",[t._v("language")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Lang of resource.")])])])]),t._v(" "),e("h2",{attrs:{id:"prerequisites"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),e("p",[t._v("The ISTEX middleware uses the "),e("code",[t._v("istex-identifier")]),t._v(" found in the access events to request metadata using the "),e("a",{attrs:{href:"https://www.npmjs.com/package/node-istex",target:"_blank",rel:"noopener noreferrer"}},[t._v("node-istex"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("You must use istex after filter, parser, deduplicator middleware.")])]),t._v(" "),e("h2",{attrs:{id:"headers"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("istex-enrich")]),t._v(" : Set to "),e("code",[t._v("true")]),t._v(" to enable ISTEX enrichment. Disabled by default.")]),t._v(" "),e("li",[e("strong",[t._v("istex-cache")]),t._v(" : Enable/Disable cache.")]),t._v(" "),e("li",[e("strong",[t._v("istex-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),e("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("istex-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),e("code",[t._v("500")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("istex-paquet-size")]),t._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),e("code",[t._v("50")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("istex-buffer-size")]),t._v(" : Maximum number of memorised access events before sending a request. Defaults to "),e("code",[t._v("1000")]),t._v(".")])]),t._v(" "),e("h2",{attrs:{id:"how-to-use"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-admin-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),e("p",[t._v("You can add or remove istex by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(329),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-process-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),e("p",[t._v("You can use istex for an enrichment process. You just add the middleware.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(330),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: istex"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: istex"')]),t._v("\n\n")])])]),e("h3",{attrs:{id:"curl"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),e("p",[t._v("You can use istex for an enrichment process with curl like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: istex"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/40.3d89b34b.js b/assets/js/40.c491b3a3.js similarity index 97% rename from assets/js/40.3d89b34b.js rename to assets/js/40.c491b3a3.js index b10d8407..683e2791 100644 --- a/assets/js/40.3d89b34b.js +++ b/assets/js/40.c491b3a3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{335:function(a,t,s){a.exports=s.p+"assets/img/admin-interface.463d683f.png"},336:function(a,t,s){a.exports=s.p+"assets/img/process-interface.a6002876.png"},427:function(a,t,s){"use strict";s.r(t);var e=s(10),r=Object(e.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"labelize"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#labelize"}},[a._v("#")]),a._v(" labelize")]),a._v(" "),t("p",[a._v("This middleware allows you to add a field to based on the content of another field.")]),a._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[a._v("#")]),a._v(" Prerequisites")]),a._v(" "),t("p",[t("strong",[a._v("You must use labelize after filter, parser, deduplicator middleware.")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-config"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-config"}},[a._v("#")]),a._v(" ezPAARSE config")]),a._v(" "),t("p",[a._v("You can add or remove your labelize on ezpaarse config. It will be used on every process that used labelize middleware. You need to add this code on your "),t("code",[a._v("config.local.json")]),a._v(".")]),a._v(" "),t("div",{staticClass:"language-json extra-class"},[t("pre",{pre:!0,attrs:{class:"language-json"}},[t("code",[t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"EZPAARSE_LABELIZE"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"from"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"domain"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"resultField"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"organization"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"mapping"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"psl.fr"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"PSL"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"paristech.com"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ParisTech"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"dauphine.org"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Dauphine"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"paris-dauphine.org"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Dauphine"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"from"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"code"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"resultField"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"status"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"mapping"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"200"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"202"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"400"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"404"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n \n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n")])])]),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove labelize by default to all your enrichments, provided you have added parameters in the config. To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(335),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use labelize for an enrichment process.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(336),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("p",[a._v("You can use labelize for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("ezp"),t("OutboundLink")],1),a._v(" like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: labelize"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: labelize"')]),a._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use labelize for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: labelize"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{333:function(a,t,s){a.exports=s.p+"assets/img/admin-interface.463d683f.png"},334:function(a,t,s){a.exports=s.p+"assets/img/process-interface.a6002876.png"},426:function(a,t,s){"use strict";s.r(t);var e=s(10),r=Object(e.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"labelize"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#labelize"}},[a._v("#")]),a._v(" labelize")]),a._v(" "),t("p",[a._v("This middleware allows you to add a field to based on the content of another field.")]),a._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[a._v("#")]),a._v(" Prerequisites")]),a._v(" "),t("p",[t("strong",[a._v("You must use labelize after filter, parser, deduplicator middleware.")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-config"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-config"}},[a._v("#")]),a._v(" ezPAARSE config")]),a._v(" "),t("p",[a._v("You can add or remove your labelize on ezpaarse config. It will be used on every process that used labelize middleware. You need to add this code on your "),t("code",[a._v("config.local.json")]),a._v(".")]),a._v(" "),t("div",{staticClass:"language-json extra-class"},[t("pre",{pre:!0,attrs:{class:"language-json"}},[t("code",[t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"EZPAARSE_LABELIZE"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"from"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"domain"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"resultField"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"organization"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"mapping"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"psl.fr"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"PSL"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"paristech.com"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ParisTech"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"dauphine.org"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Dauphine"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"paris-dauphine.org"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Dauphine"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"from"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"code"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"resultField"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"status"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"mapping"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"200"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"202"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"400"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[a._v('"404"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n \n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n")])])]),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove labelize by default to all your enrichments, provided you have added parameters in the config. To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(333),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use labelize for an enrichment process.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(334),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("p",[a._v("You can use labelize for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[a._v("ezp"),t("OutboundLink")],1),a._v(" like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: labelize"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: labelize"')]),a._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use labelize for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: labelize"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/41.a328ff42.js b/assets/js/41.e69fa331.js similarity index 96% rename from assets/js/41.a328ff42.js rename to assets/js/41.e69fa331.js index f74866ba..389d9f44 100644 --- a/assets/js/41.a328ff42.js +++ b/assets/js/41.e69fa331.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{333:function(e,t,a){e.exports=a.p+"assets/img/admin-interface.f05b6859.png"},334:function(e,t,a){e.exports=a.p+"assets/img/process-interface.8f3db800.png"},426:function(e,t,a){"use strict";a.r(t);var s=a(10),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"ncbi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ncbi"}},[e._v("#")]),e._v(" ncbi")]),e._v(" "),t("p",[e._v("Fetches "),t("a",{attrs:{href:"https://www.ncbi.nlm.nih.gov/",target:"_blank",rel:"noopener noreferrer"}},[e._v("ncbi"),t("OutboundLink")],1),e._v(" data from their "),t("a",{attrs:{href:"https://www.ncbi.nlm.nih.gov/books/NBK25501/",target:"_blank",rel:"noopener noreferrer"}},[e._v("API"),t("OutboundLink")],1),e._v(".")]),e._v(" "),t("h2",{attrs:{id:"enriched-fields"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[e._v("#")]),e._v(" Enriched fields")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Type")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("print_identifier")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("International Standard Serial Number for publications.")])]),e._v(" "),t("tr",[t("td",[e._v("online_identifier")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Electronic ISSN for publications.")])]),e._v(" "),t("tr",[t("td",[e._v("publication_title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("The full name of the journal.")])]),e._v(" "),t("tr",[t("td",[e._v("doi")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("The digital object identifier.")])]),e._v(" "),t("tr",[t("td",[e._v("title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("The article title.")])])])]),e._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),t("p",[e._v("The NCBI Enrichment middleware uses the "),t("code",[e._v("unit_id")]),e._v(" found in NCBI access events to request Pubmed metadata")]),e._v(" "),t("p",[t("strong",[e._v("You must use NCBI after filter, parser, deduplicator middleware.")])]),e._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),t("ul",[t("li",[t("strong",[e._v("ncbi-cache")]),e._v(" : Set to "),t("code",[e._v("false")]),e._v(" to disable result caching. Enabled by default.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-ttl")]),e._v(" : Lifetime of cached documents, in seconds. Defaults to "),t("code",[e._v("7 days (3600 * 24 * 7)")])]),e._v(" "),t("li",[t("strong",[e._v("ncbi-throttle")]),e._v(" : Minimum time to wait between each query, in milliseconds. Defaults to "),t("code",[e._v("500")]),e._v("ms. Make no more than 3 requests per second unless you are registered with the NCBI API.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-packet-size")]),e._v(" : Maximum number of memorized NCBI access events before sending requests. Defaults to "),t("code",[e._v("200")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-buffer-size")]),e._v(" : Maximum number of memorized access events before sending requests. Defaults to "),t("code",[e._v("1000")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-max-tries")]),e._v(" : Maximum number of attempts if an enrichment fails. Defaults to "),t("code",[e._v("5")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-email")]),e._v(" : The email for reference for API calls. Defaults to "),t("code",[e._v("ezteam@couperin.org")]),e._v(" (from config.json of ezPAARSE). The email and tool can be registered with NCBI to increase the number of requests per second for the application.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-tool")]),e._v(" : The tool for reference for API calls. Defaults to "),t("code",[e._v("ezPAARSE (https://readmetrics.org; mailto:ezteam@couperin.org)")]),e._v(". The email and tool can be registered with NCBI to increase the number of requests per second for the application.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-apikey")]),e._v(" : Apikey for rights holders to speed up processing (10 requests per second)")])]),e._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),t("p",[e._v("You can add ncbi by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),t("p",[t("img",{attrs:{src:a(333),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),t("p",[e._v("You can use ncbi for an enrichment process. You just add the middleware.")]),e._v(" "),t("p",[t("img",{attrs:{src:a(334),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),t("p",[e._v("You can use ncbi for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[e._v("ezp"),t("OutboundLink")],1),e._v(" like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: ncbi"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: ncbi"')]),e._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),t("p",[e._v("You can use ncbi for an enrichment process with curl like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: ncbi"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{335:function(e,t,a){e.exports=a.p+"assets/img/admin-interface.f05b6859.png"},336:function(e,t,a){e.exports=a.p+"assets/img/process-interface.8f3db800.png"},427:function(e,t,a){"use strict";a.r(t);var s=a(10),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"ncbi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ncbi"}},[e._v("#")]),e._v(" ncbi")]),e._v(" "),t("p",[e._v("Fetches "),t("a",{attrs:{href:"https://www.ncbi.nlm.nih.gov/",target:"_blank",rel:"noopener noreferrer"}},[e._v("ncbi"),t("OutboundLink")],1),e._v(" data from their "),t("a",{attrs:{href:"https://www.ncbi.nlm.nih.gov/books/NBK25501/",target:"_blank",rel:"noopener noreferrer"}},[e._v("API"),t("OutboundLink")],1),e._v(".")]),e._v(" "),t("h2",{attrs:{id:"enriched-fields"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[e._v("#")]),e._v(" Enriched fields")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Type")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("print_identifier")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("International Standard Serial Number for publications.")])]),e._v(" "),t("tr",[t("td",[e._v("online_identifier")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("Electronic ISSN for publications.")])]),e._v(" "),t("tr",[t("td",[e._v("publication_title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("The full name of the journal.")])]),e._v(" "),t("tr",[t("td",[e._v("doi")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("The digital object identifier.")])]),e._v(" "),t("tr",[t("td",[e._v("title")]),e._v(" "),t("td",[e._v("String")]),e._v(" "),t("td",[e._v("The article title.")])])])]),e._v(" "),t("h2",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),t("p",[e._v("The NCBI Enrichment middleware uses the "),t("code",[e._v("unit_id")]),e._v(" found in NCBI access events to request Pubmed metadata")]),e._v(" "),t("p",[t("strong",[e._v("You must use NCBI after filter, parser, deduplicator middleware.")])]),e._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),t("ul",[t("li",[t("strong",[e._v("ncbi-cache")]),e._v(" : Set to "),t("code",[e._v("false")]),e._v(" to disable result caching. Enabled by default.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-ttl")]),e._v(" : Lifetime of cached documents, in seconds. Defaults to "),t("code",[e._v("7 days (3600 * 24 * 7)")])]),e._v(" "),t("li",[t("strong",[e._v("ncbi-throttle")]),e._v(" : Minimum time to wait between each query, in milliseconds. Defaults to "),t("code",[e._v("500")]),e._v("ms. Make no more than 3 requests per second unless you are registered with the NCBI API.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-packet-size")]),e._v(" : Maximum number of memorized NCBI access events before sending requests. Defaults to "),t("code",[e._v("200")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-buffer-size")]),e._v(" : Maximum number of memorized access events before sending requests. Defaults to "),t("code",[e._v("1000")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-max-tries")]),e._v(" : Maximum number of attempts if an enrichment fails. Defaults to "),t("code",[e._v("5")]),e._v(".")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-email")]),e._v(" : The email for reference for API calls. Defaults to "),t("code",[e._v("ezteam@couperin.org")]),e._v(" (from config.json of ezPAARSE). The email and tool can be registered with NCBI to increase the number of requests per second for the application.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-tool")]),e._v(" : The tool for reference for API calls. Defaults to "),t("code",[e._v("ezPAARSE (https://readmetrics.org; mailto:ezteam@couperin.org)")]),e._v(". The email and tool can be registered with NCBI to increase the number of requests per second for the application.")]),e._v(" "),t("li",[t("strong",[e._v("ncbi-apikey")]),e._v(" : Apikey for rights holders to speed up processing (10 requests per second)")])]),e._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),t("p",[e._v("You can add ncbi by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),t("p",[t("img",{attrs:{src:a(335),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),t("p",[e._v("You can use ncbi for an enrichment process. You just add the middleware.")]),e._v(" "),t("p",[t("img",{attrs:{src:a(336),alt:"image"}})]),e._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),t("p",[e._v("You can use ncbi for an enrichment process with "),t("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[e._v("ezp"),t("OutboundLink")],1),e._v(" like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: ncbi"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: ncbi"')]),e._v(" \n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),t("p",[e._v("You can use ncbi for an enrichment process with curl like this:")]),e._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: ncbi"')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/45.b75672d8.js b/assets/js/45.24de892a.js similarity index 96% rename from assets/js/45.b75672d8.js rename to assets/js/45.24de892a.js index e9265f65..118576f9 100644 --- a/assets/js/45.b75672d8.js +++ b/assets/js/45.24de892a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{350:function(t,e,a){t.exports=a.p+"assets/img/admin-interface.1e6531e3.png"},351:function(t,e,a){t.exports=a.p+"assets/img/process-interface.1428dd74.png"},435:function(t,e,a){"use strict";a.r(e);var s=a(10),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"panist"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#panist"}},[t._v("#")]),t._v(" panist")]),t._v(" "),e("p",[t._v("Fetches "),e("a",{attrs:{href:"http://www.panist.fr/",target:"_blank",rel:"noopener noreferrer"}},[t._v("panist"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"enriched-fields"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("mime")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("type of document (HTML, PDF, VIDEO, etc)")])]),t._v(" "),e("tr",[e("td",[t._v("publication_title")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("publisher_name")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publisher.")])]),t._v(" "),e("tr",[e("td",[t._v("print_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("ISBN or ISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("online_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("EISBN or EISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("subject")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("doi")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("DOI of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("ark")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("ARK of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("istex_genre")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("genre of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("language")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Lang of publication")])])])]),t._v(" "),e("h2",{attrs:{id:"prerequisites"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),e("p",[t._v("The ISTEX middleware uses the "),e("code",[t._v("istex-identifier")]),t._v(" found in the access events to request metadata using the "),e("a",{attrs:{href:"https://www.npmjs.com/package/node-istex",target:"_blank",rel:"noopener noreferrer"}},[t._v("node-istex"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("You must use panist after filter, parser, deduplicator middleware.")])]),t._v(" "),e("h2",{attrs:{id:"headers"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("panist-enrich")]),t._v(" : Set to "),e("code",[t._v("false")]),t._v(" to disable PANIST enrichment. Enabled by default.")]),t._v(" "),e("li",[e("strong",[t._v("panist-cache")]),t._v(" : Enable/Disable cache.")]),t._v(" "),e("li",[e("strong",[t._v("panist-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),e("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("panist-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),e("code",[t._v("200")]),t._v("ms.")]),t._v(" "),e("li",[e("strong",[t._v("panist-paquet-size")]),t._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),e("code",[t._v("50")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("panist-buffer-size")]),t._v(" : Maximum number of memorised access events before sending a request. Defaults to "),e("code",[t._v("1000")]),t._v(".")])]),t._v(" "),e("h2",{attrs:{id:"how-to-use"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-admin-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),e("p",[t._v("You can add or remove panist by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(350),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-process-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),e("p",[t._v("You can use panist for an enrichment process. You just add the middleware.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(351),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: panist"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: panist"')]),t._v("\n\n")])])]),e("h3",{attrs:{id:"curl"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),e("p",[t._v("You can use panist for an enrichment process with curl like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: panist"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{343:function(t,e,a){t.exports=a.p+"assets/img/admin-interface.1e6531e3.png"},344:function(t,e,a){t.exports=a.p+"assets/img/process-interface.1428dd74.png"},431:function(t,e,a){"use strict";a.r(e);var s=a(10),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"panist"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#panist"}},[t._v("#")]),t._v(" panist")]),t._v(" "),e("p",[t._v("Fetches "),e("a",{attrs:{href:"http://www.panist.fr/",target:"_blank",rel:"noopener noreferrer"}},[t._v("panist"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"enriched-fields"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("mime")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("type of document (HTML, PDF, VIDEO, etc)")])]),t._v(" "),e("tr",[e("td",[t._v("publication_title")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("publisher_name")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Name of publisher.")])]),t._v(" "),e("tr",[e("td",[t._v("print_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("ISBN or ISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("online_identifier")]),t._v(" "),e("td",[t._v("Number")]),t._v(" "),e("td",[t._v("EISBN or EISSN.")])]),t._v(" "),e("tr",[e("td",[t._v("subject")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("doi")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("DOI of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("ark")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("ARK of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("istex_genre")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("genre of publication.")])]),t._v(" "),e("tr",[e("td",[t._v("language")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("Lang of publication")])])])]),t._v(" "),e("h2",{attrs:{id:"prerequisites"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),e("p",[t._v("The ISTEX middleware uses the "),e("code",[t._v("istex-identifier")]),t._v(" found in the access events to request metadata using the "),e("a",{attrs:{href:"https://www.npmjs.com/package/node-istex",target:"_blank",rel:"noopener noreferrer"}},[t._v("node-istex"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("You must use panist after filter, parser, deduplicator middleware.")])]),t._v(" "),e("h2",{attrs:{id:"headers"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("panist-enrich")]),t._v(" : Set to "),e("code",[t._v("false")]),t._v(" to disable PANIST enrichment. Enabled by default.")]),t._v(" "),e("li",[e("strong",[t._v("panist-cache")]),t._v(" : Enable/Disable cache.")]),t._v(" "),e("li",[e("strong",[t._v("panist-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),e("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("panist-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),e("code",[t._v("200")]),t._v("ms.")]),t._v(" "),e("li",[e("strong",[t._v("panist-paquet-size")]),t._v(" : Maximum number of identifiers to send for query in a single request. Defaults to "),e("code",[t._v("50")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("panist-buffer-size")]),t._v(" : Maximum number of memorised access events before sending a request. Defaults to "),e("code",[t._v("1000")]),t._v(".")])]),t._v(" "),e("h2",{attrs:{id:"how-to-use"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-admin-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),e("p",[t._v("You can add or remove panist by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(343),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-process-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),e("p",[t._v("You can use panist for an enrichment process. You just add the middleware.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(344),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: panist"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: panist"')]),t._v("\n\n")])])]),e("h3",{attrs:{id:"curl"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),e("p",[t._v("You can use panist for an enrichment process with curl like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: panist"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/46.6644530d.js b/assets/js/46.536ff2d2.js similarity index 95% rename from assets/js/46.6644530d.js rename to assets/js/46.536ff2d2.js index 99efc8b5..0250f514 100644 --- a/assets/js/46.6644530d.js +++ b/assets/js/46.536ff2d2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{343:function(a,t,s){a.exports=s.p+"assets/img/admin-interface.f6160cbb.png"},344:function(a,t,s){a.exports=s.p+"assets/img/process-interface.20b478b8.png"},431:function(a,t,s){"use strict";s.r(t);var e=s(10),r=Object(e.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"parser"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#parser"}},[a._v("#")]),a._v(" parser")]),a._v(" "),t("p",[a._v("Parses the URL associated with a consultation event (by calling the appropriate parser).")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("filter-platforms")]),a._v(" : comma-separated list of platforms to handle. Lines with a matching parser that is not specified are considered irrelevant and filtered out.")]),a._v(" "),t("li",[t("strong",[a._v("allow-domain-wildcards")]),a._v(" : set to "),t("code",[a._v("true")]),a._v(" to allow domain wildcards when looking for parsers associated with a domain. For example, a parser with "),t("code",[a._v("*.google.com")]),a._v(" in its manifest will handle "),t("code",[a._v("google.com")]),a._v(" as well as "),t("code",[a._v("www.google.com")]),a._v(".")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove parser by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(343),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use parser for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(344),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: parser"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: parser"')]),a._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use parser for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: parser"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{345:function(a,t,s){a.exports=s.p+"assets/img/admin-interface.f6160cbb.png"},346:function(a,t,s){a.exports=s.p+"assets/img/process-interface.20b478b8.png"},432:function(a,t,s){"use strict";s.r(t);var e=s(10),r=Object(e.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"parser"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#parser"}},[a._v("#")]),a._v(" parser")]),a._v(" "),t("p",[a._v("Parses the URL associated with a consultation event (by calling the appropriate parser).")]),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"headers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[a._v("#")]),a._v(" Headers")]),a._v(" "),t("ul",[t("li",[t("strong",[a._v("filter-platforms")]),a._v(" : comma-separated list of platforms to handle. Lines with a matching parser that is not specified are considered irrelevant and filtered out.")]),a._v(" "),t("li",[t("strong",[a._v("allow-domain-wildcards")]),a._v(" : set to "),t("code",[a._v("true")]),a._v(" to allow domain wildcards when looking for parsers associated with a domain. For example, a parser with "),t("code",[a._v("*.google.com")]),a._v(" in its manifest will handle "),t("code",[a._v("google.com")]),a._v(" as well as "),t("code",[a._v("www.google.com")]),a._v(".")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove parser by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(345),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use parser for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(346),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: parser"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: parser"')]),a._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use parser for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: parser"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/47.ad650894.js b/assets/js/47.dc697db1.js similarity index 96% rename from assets/js/47.ad650894.js rename to assets/js/47.dc697db1.js index 30d9b561..356ffbee 100644 --- a/assets/js/47.ad650894.js +++ b/assets/js/47.dc697db1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{345:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.f4490217.png"},346:function(t,a,e){t.exports=e.p+"assets/img/process-interface.09ac8622.png"},432:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"populate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#populate"}},[t._v("#")]),t._v(" populate")]),t._v(" "),a("p",[t._v("Allows for populating fields with arbitrary data. To use it, set the header "),a("code",[t._v("Populate-Fields")]),t._v(" with a JSON representation of the fields that should be populated. Any JSON compliant value will be affected to the EC with the corresponding key.")]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[a("strong",[t._v("You must use populate after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("populate-fields")]),t._v(" : JSON that insert key as value and value as column in EC")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("p",[t._v("Insert "),a("code",[t._v("website")]),t._v(" into the field "),a("code",[t._v("portal")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v('Populate-Fields: { "portal": "website" }\n')])])]),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove populate by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(345),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use populate for an enrichment process.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(346),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("p",[t._v("You can use populate for an enrichment process with "),a("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),a("OutboundLink")],1),t._v(" like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: populate"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Populate-Fields: { '),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("portal"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(": "),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("website"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(' }"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: populate"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Populate-Fields: { '),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("portal"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(": "),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("website"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(' }"')]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use populate for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: populate"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Populate-Fields: { '),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("portal"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(": "),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("website"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(' }"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{347:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.f4490217.png"},348:function(t,a,e){t.exports=e.p+"assets/img/process-interface.09ac8622.png"},433:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"populate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#populate"}},[t._v("#")]),t._v(" populate")]),t._v(" "),a("p",[t._v("Allows for populating fields with arbitrary data. To use it, set the header "),a("code",[t._v("Populate-Fields")]),t._v(" with a JSON representation of the fields that should be populated. Any JSON compliant value will be affected to the EC with the corresponding key.")]),t._v(" "),a("h2",{attrs:{id:"prerequisites"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),a("p",[a("strong",[t._v("You must use populate after filter, parser, deduplicator middleware.")])]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("populate-fields")]),t._v(" : JSON that insert key as value and value as column in EC")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("p",[t._v("Insert "),a("code",[t._v("website")]),t._v(" into the field "),a("code",[t._v("portal")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v('Populate-Fields: { "portal": "website" }\n')])])]),a("h3",{attrs:{id:"ezpaarse-admin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),a("p",[t._v("You can add or remove populate by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(347),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-process-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),a("p",[t._v("You can use populate for an enrichment process.")]),t._v(" "),a("p",[a("img",{attrs:{src:e(348),alt:"image"}})]),t._v(" "),a("h3",{attrs:{id:"ezp"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),a("p",[t._v("You can use populate for an enrichment process with "),a("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),a("OutboundLink")],1),t._v(" like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: populate"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Populate-Fields: { '),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("portal"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(": "),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("website"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(' }"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: populate"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Populate-Fields: { '),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("portal"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(": "),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("website"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(' }"')]),t._v("\n\n")])])]),a("h3",{attrs:{id:"curl"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),a("p",[t._v("You can use populate for an enrichment process with curl like this:")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: populate"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Populate-Fields: { '),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("portal"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(": "),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v("website"),a("span",{pre:!0,attrs:{class:"token entity",title:'\\"'}},[t._v('\\"')]),t._v(' }"')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/48.f2051aa4.js b/assets/js/48.a9382aff.js similarity index 94% rename from assets/js/48.f2051aa4.js rename to assets/js/48.a9382aff.js index e4a83cfd..6d0d8319 100644 --- a/assets/js/48.f2051aa4.js +++ b/assets/js/48.a9382aff.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{347:function(a,t,s){a.exports=s.p+"assets/img/admin-interface.e0047aa2.png"},348:function(a,t,s){a.exports=s.p+"assets/img/process-interface.05698f0c.png"},433:function(a,t,s){"use strict";s.r(t);var e=s(10),r=Object(e.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"qualifier"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#qualifier"}},[a._v("#")]),a._v(" qualifier")]),a._v(" "),t("p",[a._v("Checks consultation events' qualification. See the "),t("RouterLink",{attrs:{to:"/features/qualification.html"}},[a._v("dedicated page")]),a._v(" for more detail.")],1),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove qualifier by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(347),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use qualifier for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(348),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: qualifier"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: qualifier"')]),a._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use qualifier for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: qualifier"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{349:function(a,t,s){a.exports=s.p+"assets/img/admin-interface.e0047aa2.png"},350:function(a,t,s){a.exports=s.p+"assets/img/process-interface.05698f0c.png"},434:function(a,t,s){"use strict";s.r(t);var e=s(10),r=Object(e.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("h1",{attrs:{id:"qualifier"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#qualifier"}},[a._v("#")]),a._v(" qualifier")]),a._v(" "),t("p",[a._v("Checks consultation events' qualification. See the "),t("RouterLink",{attrs:{to:"/features/qualification.html"}},[a._v("dedicated page")]),a._v(" for more detail.")],1),a._v(" "),t("p",[t("strong",[a._v("This middleware is activated by default.")])]),a._v(" "),t("h2",{attrs:{id:"how-to-use"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[a._v("#")]),a._v(" How to use")]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-admin-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[a._v("#")]),a._v(" ezPAARSE admin interface")]),a._v(" "),t("p",[a._v("You can add or remove qualifier by default to all your enrichments, To do this, go to the middleware section of administration.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(349),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezpaarse-process-interface"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[a._v("#")]),a._v(" ezPAARSE process interface")]),a._v(" "),t("p",[a._v("You can use qualifier for an enrichment process. You just add the middleware.")]),a._v(" "),t("p",[t("img",{attrs:{src:s(350),alt:"image"}})]),a._v(" "),t("h3",{attrs:{id:"ezp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[a._v("#")]),a._v(" ezp")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with one file")]),a._v("\nezp process "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your file"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: qualifier"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--out")]),a._v(" ./result.csv\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# enrich with multiples files")]),a._v("\nezp bulk "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("path of your directory"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--host")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("host of your ezPAARSE instance"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--settings")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v("<")]),a._v("settings-id"),t("span",{pre:!0,attrs:{class:"token operator"}},[a._v(">")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--header")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: qualifier"')]),a._v("\n\n")])])]),t("h3",{attrs:{id:"curl"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[a._v("#")]),a._v(" curl")]),a._v(" "),t("p",[a._v("You can use qualifier for an enrichment process with curl like this:")]),a._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-X")]),a._v(" POST "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-v")]),a._v(" http://localhost:59599 "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"ezPAARSE-Middlewares: qualifier"')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-H")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"Log-Format-Ezproxy: "')]),a._v(" "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("\\")]),a._v("\n "),t("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-F")]),a._v(" "),t("span",{pre:!0,attrs:{class:"token string"}},[a._v('"file=@"')]),a._v("\n\n")])])])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/49.1a45eefe.js b/assets/js/49.f43994ce.js similarity index 95% rename from assets/js/49.1a45eefe.js rename to assets/js/49.f43994ce.js index 8b915426..1c8eca51 100644 --- a/assets/js/49.1a45eefe.js +++ b/assets/js/49.f43994ce.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{364:function(e,s,a){e.exports=a.p+"assets/img/admin-interface.a3dcda31.png"},365:function(e,s,a){e.exports=a.p+"assets/img/process-interface.8ab6ded9.png"},442:function(e,s,a){"use strict";a.r(s);var t=a(10),r=Object(t.a)({},(function(){var e=this,s=e._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[s("h1",{attrs:{id:"session-id"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#session-id"}},[e._v("#")]),e._v(" session-id")]),e._v(" "),s("p",[e._v("Generate a COUNTER compliant user ID and session ID in the fields "),s("code",[e._v("user_id")]),e._v(" and "),s("code",[e._v("session_id")]),e._v(".")]),e._v(" "),s("h2",{attrs:{id:"prerequisites"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),s("p",[e._v("The user ID can be one of the following, by order of priority :")]),e._v(" "),s("ul",[s("li",[e._v("the user login (default field: login)")]),e._v(" "),s("li",[e._v("the cookie ID (default field: cookie)")]),e._v(" "),s("li",[e._v("both the IP (default field: host) and the user agent (default field: user-agent)")])]),e._v(" "),s("p",[e._v("The session ID is generated by concatenating the date, hour of day, and user ID.")]),e._v(" "),s("p",[e._v("Default fields can be changed with the "),s("RouterLink",{attrs:{to:"/configuration/parametres.html#session-id-fields"}},[e._v("Session-ID-Fields")]),e._v(" header.")],1),e._v(" "),s("p",[e._v("Examples of generated user IDs :")]),e._v(" "),s("ul",[s("li",[e._v("john.doe")]),e._v(" "),s("li",[e._v("157.244.176.142|Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11")])]),e._v(" "),s("p",[e._v("Examples of generated session IDs :")]),e._v(" "),s("ul",[s("li",[e._v("2019-06-09|08|john.doe")]),e._v(" "),s("li",[e._v("2018-12-25|00|157.244.176.142|Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11")])]),e._v(" "),s("p",[s("strong",[e._v("You must use session-id after filter, parser, deduplicator middleware.")])]),e._v(" "),s("h2",{attrs:{id:"headers"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),s("ul",[s("li",[s("strong",[e._v("session-id-fields")]),e._v(' : custom key assigned to a value, example: "userid: userid" or "userid: iduser" or "userid: iduser, user: idaccount"')])]),e._v(" "),s("h2",{attrs:{id:"how-to-use"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),s("h3",{attrs:{id:"ezpaarse-admin-interface"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),s("p",[e._v("You can add or remove session-id by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),s("p",[s("img",{attrs:{src:a(364),alt:"image"}})]),e._v(" "),s("h3",{attrs:{id:"ezpaarse-process-interface"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),s("p",[e._v("You can use session-id for an enrichment process.")]),e._v(" "),s("p",[s("img",{attrs:{src:a(365),alt:"image"}})]),e._v(" "),s("h3",{attrs:{id:"ezp"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),s("p",[e._v("You can use session-id for an enrichment process with "),s("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[e._v("ezp"),s("OutboundLink")],1),e._v(" like this:")]),e._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: session-id"')]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: session-id"')]),e._v(" \n\n")])])]),s("h3",{attrs:{id:"curl"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),s("p",[e._v("You can use session-id for an enrichment process with curl like this:")]),e._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: session-id"')]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);s.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{351:function(e,s,a){e.exports=a.p+"assets/img/admin-interface.a3dcda31.png"},352:function(e,s,a){e.exports=a.p+"assets/img/process-interface.8ab6ded9.png"},435:function(e,s,a){"use strict";a.r(s);var t=a(10),r=Object(t.a)({},(function(){var e=this,s=e._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[s("h1",{attrs:{id:"session-id"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#session-id"}},[e._v("#")]),e._v(" session-id")]),e._v(" "),s("p",[e._v("Generate a COUNTER compliant user ID and session ID in the fields "),s("code",[e._v("user_id")]),e._v(" and "),s("code",[e._v("session_id")]),e._v(".")]),e._v(" "),s("h2",{attrs:{id:"prerequisites"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),s("p",[e._v("The user ID can be one of the following, by order of priority :")]),e._v(" "),s("ul",[s("li",[e._v("the user login (default field: login)")]),e._v(" "),s("li",[e._v("the cookie ID (default field: cookie)")]),e._v(" "),s("li",[e._v("both the IP (default field: host) and the user agent (default field: user-agent)")])]),e._v(" "),s("p",[e._v("The session ID is generated by concatenating the date, hour of day, and user ID.")]),e._v(" "),s("p",[e._v("Default fields can be changed with the "),s("RouterLink",{attrs:{to:"/configuration/parametres.html#session-id-fields"}},[e._v("Session-ID-Fields")]),e._v(" header.")],1),e._v(" "),s("p",[e._v("Examples of generated user IDs :")]),e._v(" "),s("ul",[s("li",[e._v("john.doe")]),e._v(" "),s("li",[e._v("157.244.176.142|Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11")])]),e._v(" "),s("p",[e._v("Examples of generated session IDs :")]),e._v(" "),s("ul",[s("li",[e._v("2019-06-09|08|john.doe")]),e._v(" "),s("li",[e._v("2018-12-25|00|157.244.176.142|Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11")])]),e._v(" "),s("p",[s("strong",[e._v("You must use session-id after filter, parser, deduplicator middleware.")])]),e._v(" "),s("h2",{attrs:{id:"headers"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[e._v("#")]),e._v(" Headers")]),e._v(" "),s("ul",[s("li",[s("strong",[e._v("session-id-fields")]),e._v(' : custom key assigned to a value, example: "userid: userid" or "userid: iduser" or "userid: iduser, user: idaccount"')])]),e._v(" "),s("h2",{attrs:{id:"how-to-use"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[e._v("#")]),e._v(" How to use")]),e._v(" "),s("h3",{attrs:{id:"ezpaarse-admin-interface"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[e._v("#")]),e._v(" ezPAARSE admin interface")]),e._v(" "),s("p",[e._v("You can add or remove session-id by default to all your enrichments, To do this, go to the middleware section of administration.")]),e._v(" "),s("p",[s("img",{attrs:{src:a(351),alt:"image"}})]),e._v(" "),s("h3",{attrs:{id:"ezpaarse-process-interface"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[e._v("#")]),e._v(" ezPAARSE process interface")]),e._v(" "),s("p",[e._v("You can use session-id for an enrichment process.")]),e._v(" "),s("p",[s("img",{attrs:{src:a(352),alt:"image"}})]),e._v(" "),s("h3",{attrs:{id:"ezp"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[e._v("#")]),e._v(" ezp")]),e._v(" "),s("p",[e._v("You can use session-id for an enrichment process with "),s("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[e._v("ezp"),s("OutboundLink")],1),e._v(" like this:")]),e._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with one file")]),e._v("\nezp process "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your file"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: session-id"')]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--out")]),e._v(" ./result.csv\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[e._v("# enrich with multiples files")]),e._v("\nezp bulk "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("path of your directory"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--host")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("host of your ezPAARSE instance"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--settings")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v("<")]),e._v("settings-id"),s("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("--header")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: session-id"')]),e._v(" \n\n")])])]),s("h3",{attrs:{id:"curl"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[e._v("#")]),e._v(" curl")]),e._v(" "),s("p",[e._v("You can use session-id for an enrichment process with curl like this:")]),e._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[e._v("curl")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-X")]),e._v(" POST "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-v")]),e._v(" http://localhost:59599 "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"ezPAARSE-Middlewares: session-id"')]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-H")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Log-Format-Ezproxy: "')]),e._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("\\")]),e._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter variable"}},[e._v("-F")]),e._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[e._v('"file=@"')]),e._v("\n\n")])])])])}),[],!1,null,null,null);s.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/50.d0c5a129.js b/assets/js/50.f9aadf3a.js similarity index 95% rename from assets/js/50.d0c5a129.js rename to assets/js/50.f9aadf3a.js index a2fc0602..aaed4cbb 100644 --- a/assets/js/50.d0c5a129.js +++ b/assets/js/50.f9aadf3a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{354:function(t,e,a){t.exports=a.p+"assets/img/admin-interface.b5768bd4.png"},355:function(t,e,a){t.exports=a.p+"assets/img/process-interface.336b5bba.png"},437:function(t,e,a){"use strict";a.r(e);var s=a(10),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"sudoc"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sudoc"}},[t._v("#")]),t._v(" sudoc")]),t._v(" "),e("p",[t._v("Fetches "),e("a",{attrs:{href:"http://www.sudoc.abes.fr",target:"_blank",rel:"noopener noreferrer"}},[t._v("Sudoc"),e("OutboundLink")],1),t._v(" data, especially the PPN (that identify Sudoc records).")]),t._v(" "),e("p",[e("strong",[t._v("This middleware is activated by default.")])]),t._v(" "),e("h2",{attrs:{id:"enriched-fields"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("sudoc-ppn")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("unique identifier used to precisely identify a bibliographic record in the Sudoc catalog.")])])])]),t._v(" "),e("h2",{attrs:{id:"prerequisites"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),e("p",[t._v("Your EC needs a print_identifier for enrichment.")]),t._v(" "),e("p",[e("strong",[t._v("You must use sudoc after filter, parser, deduplicator middleware.")])]),t._v(" "),e("h2",{attrs:{id:"headers"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("sudoc-enrich")]),t._v(" : Set to "),e("code",[t._v("false")]),t._v(" to disable sudoc enrichment. Enabled by default.")]),t._v(" "),e("li",[e("strong",[t._v("sudoc-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),e("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("sudoc-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),e("code",[t._v("200")]),t._v("ms.")])]),t._v(" "),e("h2",{attrs:{id:"how-to-use"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-admin-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),e("p",[t._v("You can add or remove sudoc by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(354),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-process-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),e("p",[t._v("You can use sudoc for an enrichment process. You just add the middleware.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(355),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),e("p",[t._v("You can use sudoc for an enrichment process with "),e("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),e("OutboundLink")],1),t._v(" like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: sudoc"')]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: sudoc"')]),t._v(" \n\n")])])]),e("h3",{attrs:{id:"curl"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),e("p",[t._v("You can use sudoc for an enrichment process with curl like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: sudoc"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{353:function(t,e,a){t.exports=a.p+"assets/img/admin-interface.b5768bd4.png"},354:function(t,e,a){t.exports=a.p+"assets/img/process-interface.336b5bba.png"},436:function(t,e,a){"use strict";a.r(e);var s=a(10),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"sudoc"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sudoc"}},[t._v("#")]),t._v(" sudoc")]),t._v(" "),e("p",[t._v("Fetches "),e("a",{attrs:{href:"http://www.sudoc.abes.fr",target:"_blank",rel:"noopener noreferrer"}},[t._v("Sudoc"),e("OutboundLink")],1),t._v(" data, especially the PPN (that identify Sudoc records).")]),t._v(" "),e("p",[e("strong",[t._v("This middleware is activated by default.")])]),t._v(" "),e("h2",{attrs:{id:"enriched-fields"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enriched-fields"}},[t._v("#")]),t._v(" Enriched fields")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("sudoc-ppn")]),t._v(" "),e("td",[t._v("String")]),t._v(" "),e("td",[t._v("unique identifier used to precisely identify a bibliographic record in the Sudoc catalog.")])])])]),t._v(" "),e("h2",{attrs:{id:"prerequisites"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[t._v("#")]),t._v(" Prerequisites")]),t._v(" "),e("p",[t._v("Your EC needs a print_identifier for enrichment.")]),t._v(" "),e("p",[e("strong",[t._v("You must use sudoc after filter, parser, deduplicator middleware.")])]),t._v(" "),e("h2",{attrs:{id:"headers"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("sudoc-enrich")]),t._v(" : Set to "),e("code",[t._v("false")]),t._v(" to disable sudoc enrichment. Enabled by default.")]),t._v(" "),e("li",[e("strong",[t._v("sudoc-ttl")]),t._v(" : Lifetime of cached documents, in seconds. Defaults to "),e("code",[t._v("7 days (3600 * 24 * 7)")]),t._v(".")]),t._v(" "),e("li",[e("strong",[t._v("sudoc-throttle")]),t._v(" : Minimum time to wait between queries, in milliseconds. Defaults to "),e("code",[t._v("200")]),t._v("ms.")])]),t._v(" "),e("h2",{attrs:{id:"how-to-use"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-admin-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-admin-interface"}},[t._v("#")]),t._v(" ezPAARSE admin interface")]),t._v(" "),e("p",[t._v("You can add or remove sudoc by default to all your enrichments, To do this, go to the middleware section of administration.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(353),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezpaarse-process-interface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-process-interface"}},[t._v("#")]),t._v(" ezPAARSE process interface")]),t._v(" "),e("p",[t._v("You can use sudoc for an enrichment process. You just add the middleware.")]),t._v(" "),e("p",[e("img",{attrs:{src:a(354),alt:"image"}})]),t._v(" "),e("h3",{attrs:{id:"ezp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ezp"}},[t._v("#")]),t._v(" ezp")]),t._v(" "),e("p",[t._v("You can use sudoc for an enrichment process with "),e("a",{attrs:{href:"https://github.com/ezpaarse-project/node-ezpaarse",target:"_blank",rel:"noopener noreferrer"}},[t._v("ezp"),e("OutboundLink")],1),t._v(" like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with one file")]),t._v("\nezp process "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your file"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: sudoc"')]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--out")]),t._v(" ./result.csv\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# enrich with multiples files")]),t._v("\nezp bulk "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("path of your directory"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--host")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("host of your ezPAARSE instance"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--settings")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("settings-id"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--header")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: sudoc"')]),t._v(" \n\n")])])]),e("h3",{attrs:{id:"curl"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curl"}},[t._v("#")]),t._v(" curl")]),t._v(" "),e("p",[t._v("You can use sudoc for an enrichment process with curl like this:")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-X")]),t._v(" POST "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-v")]),t._v(" http://localhost:59599 "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ezPAARSE-Middlewares: sudoc"')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-H")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Log-Format-Ezproxy: "')]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("-F")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"file=@"')]),t._v("\n\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/51.e34c2448.js b/assets/js/51.ef77625a.js similarity index 96% rename from assets/js/51.e34c2448.js rename to assets/js/51.ef77625a.js index 66e935fb..d0848ee1 100644 --- a/assets/js/51.e34c2448.js +++ b/assets/js/51.ef77625a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{352:function(t,a,e){t.exports=e.p+"assets/img/admin-interface.6a4cb37d.png"},353:function(t,a,e){t.exports=e.p+"assets/img/process-interface.efa05127.png"},436:function(t,a,e){"use strict";e.r(a);var s=e(10),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"throttler"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#throttler"}},[t._v("#")]),t._v(" throttler")]),t._v(" "),a("p",[t._v("Regulates the consultation events' stream by artificially adding time between each treatment")]),t._v(" "),a("h2",{attrs:{id:"headers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#headers"}},[t._v("#")]),t._v(" Headers")]),t._v(" "),a("ul",[a("li",[a("strong",[t._v("Throttling")]),t._v(" : Minimum time to wait between queries in milliseconds. Defaults to "),a("code",[t._v("0")]),t._v("ms.")])]),t._v(" "),a("h2",{attrs:{id:"how-to-use"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),a("h3",{attrs:{id:"ezpaarse-config"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ezpaarse-config"}},[t._v("#")]),t._v(" ezPAARSE config")]),t._v(" "),a("p",[t._v("You can add or remove your throttler on ezpaarse config. It will be used on every process that used throttler middleware. You need to add this code on your "),a("code",[t._v("config.local.json")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-json extra-class"},[a("pre",{pre:!0,attrs:{class:"language-json"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"EZPAARSE_DEFAULT_HEADERS"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"Throttling"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"