-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ezpaarse-project/ezpaarse…
- Loading branch information
Showing
11 changed files
with
123 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
out-online_identifier;out-unitid;out-rtype;out-mime;in-url | ||
9782247156900;9782247156900;BOOK;HTML;https://bibliotheque-lefebvre-dalloz-fr.ezpaarse.univ-paris1.fr/ouvrage/mementos/droit-administratif-biens_9782247156900 | ||
;;SEARCH;HTML;https://bibliotheque-lefebvre-dalloz-fr.ezpaarse.univ-paris1.fr/recherche?query=droit+administratif+des+biens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
out-publication_date;out-title_id;out-unitid;out-rtype;out-mime;in-url | ||
;;GAZPAL-la-gazette-du-palais;RECORD;HTML;https://www.doctrinal.fr/revue-juridique/GAZPAL-la-gazette-du-palais | ||
;;;SEARCH;HTML;https://www-doctrinal-fr.ezpaarse.univ-paris1.fr/recherche-notices-juridiques |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"longname": "Hospimedia", | ||
"name": "hospimedia", | ||
"describe": "Recognizes the accesses to the platform Hospimedia", | ||
"contact": "Frederic Truong inist, ezPAARSE", | ||
"pkb": false, | ||
"docurl": "https://analyses.ezpaarse.org/platforms/6723986a8e33b361a62282a8", | ||
"domains": [ | ||
"www.hospimedia.fr" | ||
], | ||
"version": "2024-11-20", | ||
"status": "beta" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
const Parser = require('../.lib/parser.js'); | ||
|
||
/** | ||
* Recognizes the accesses to the platform Hospimedia | ||
* @param {Object} parsedUrl an object representing the URL to analyze | ||
* main attributes: pathname, query, hostname | ||
* @param {Object} ec an object representing the EC whose URL is being analyzed | ||
* @return {Object} the result | ||
*/ | ||
module.exports = new Parser(function analyseEC(parsedUrl, ec) { | ||
let result = {}; | ||
let path = parsedUrl.pathname; | ||
// uncomment this line if you need parameters | ||
// let param = parsedUrl.query || {}; | ||
|
||
// use console.error for debuging | ||
// console.error(parsedUrl); | ||
|
||
let match; | ||
|
||
if ((match = /^\/fiches-pratiques\/([0-9a-z-]+)$/i.exec(path)) !== null) { | ||
// http://www.hospimedia.fr/fiches-pratiques/20241029-droit-quelles-sont-les-obligations-du-professionnel-de | ||
result.rtype = 'ARTICLE'; | ||
result.mime = 'HTML'; | ||
result.unitid = match[1]; | ||
|
||
} else if ((match = /^\/studio\/medias\/([0-9a-z-]+)$/i.exec(path)) !== null) { | ||
// http://www.hospimedia.fr/studio/medias/20240911-les-rendez-vous-de-semaine-de-quatre-jours | ||
result.rtype = 'VIDEO'; | ||
result.mime = 'MISC'; | ||
result.unitid = match[1]; | ||
|
||
} else if (/^\/recherche$/i.test(path)) { | ||
// http://www.hospimedia.fr/recherche?q=ehpad | ||
result.rtype = 'SEARCH'; | ||
result.mime = 'HTML'; | ||
} | ||
|
||
return result; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
out-unitid;out-rtype;out-mime;in-url | ||
;SEARCH;HTML;https://abonnes-hospimedia-fr.proxybib-pp.cnam.fr/recherche?q=ehpad | ||
20241029-droit-quelles-sont-les-obligations-du-professionnel-de;ARTICLE;HTML;https://abonnes-hospimedia-fr.proxybib-pp.cnam.fr/fiches-pratiques/20241029-droit-quelles-sont-les-obligations-du-professionnel-de | ||
20240911-les-rendez-vous-de-semaine-de-quatre-jours;VIDEO;MISC;https://abonnes-hospimedia-fr.proxybib-pp.cnam.fr/studio/medias/20240911-les-rendez-vous-de-semaine-de-quatre-jours |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
out-title_id;out-doi;out-unitid;out-rtype;out-mime;in-url | ||
;10.14375/NP.9782072798238;NP.9782072798238;BOOK;PDF;https://www-numeriquepremium-com.ezpaarse.univ-paris1.fr/doi/epdf/10.14375/NP.9782072798238 | ||
;10.14375/NP.9782072798238;NP.9782072798238;TOC;HTML;https://www-numeriquepremium-com.ezpaarse.univ-paris1.fr/doi/book/10.14375/NP.9782072798238#toc-containter | ||
;;;SEARCH;HTML;https://www-numeriquepremium-com.ezpaarse.univ-paris1.fr/action/doSearch?AllField=14-18%2C+penser+le+patriotisme | ||
books/9782728801749;;9782728801749;ABS;HTML;http://www.numeriquepremium.com/content/books/9782728801749 | ||
;;;;;http://www.numeriquepremium.com.ezproxy.univ-paris3.fr/deliver/fulltext/books/editions-rue-dulm/9782728801749/9782728801749_fulltext_PAGENUMBERPLACEHOLDER.gif?itemId=/content/books/9782728801749&fmt=ahah&logEvent=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,10 @@ module.exports = new Parser(function analyseEC(parsedUrl, ec) { | |
|
||
let match; | ||
|
||
if (ec['User-Agent'] === 'node') { | ||
const userAgentezPAARSE = 'ezPAARSE (https://readmetrics.org; mailto:[email protected])'; | ||
const userAgentezPAARSEAnon = 'ezPAARSE (https://readmetrics.org; mailto:)'; | ||
|
||
if ((ec['User-Agent'] === 'node') || (ec['User-Agent'] === userAgentezPAARSE) || (ec['User-Agent'] === userAgentezPAARSEAnon)) { | ||
//NOP | ||
|
||
} else if ( | ||
|
@@ -133,4 +136,4 @@ module.exports = new Parser(function analyseEC(parsedUrl, ec) { | |
} | ||
|
||
return result; | ||
}); | ||
}); |