Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMic authored Oct 1, 2024
2 parents 89f67cf + 93ddafc commit 2b0f736
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
4 changes: 4 additions & 0 deletions fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@
"description_en": "consultation of a reference or list of references in a citational database",
"comment": "cas de Web of Science",
"comment_en": "case of Web of Science"
},{
"code": "ORGANISATION",
"description": "consultation d'une fiche d'information sur une organisation",
"description_en": "consultation of the information sheet of on organisation"
}
],
"other": [
Expand Down
6 changes: 3 additions & 3 deletions thesesfr/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = new Parser(function analyseEC(parsedUrl, ec) {
//NOP

} else if (
((match = /^\/(([0-9]{4})([a-z]{2}[0-9a-z]{2})[0-9a-z]+)\/document$/i.exec(path)) !== null) ||
((match = /^\/(([0-9]{4})([a-z]{2}[0-9a-z]{2})[0-9a-z]+)\/(document|abes)$/i.exec(path)) !== null) ||
((match = apiDocumentRegex.exec(path)) !== null)
) {
// https://theses.fr/2020EMAC0007/document Accès au PDF d’une thèse soutenue PHD_THESIS disponible en ligne
Expand Down Expand Up @@ -69,7 +69,7 @@ module.exports = new Parser(function analyseEC(parsedUrl, ec) {
} else if ((match = apiPersonRegex.exec(path)) !== null) {
// RECORD person JSON, will be changed to BIO in middleware thesesfr-personne
// /api/v1/personnes/personne/264066944
result.rtype = 'RECORD';
result.rtype = 'BIO';
result.mime = 'JSON';
result.unitid = match[1];
result.ppn = match[1];
Expand All @@ -84,7 +84,7 @@ module.exports = new Parser(function analyseEC(parsedUrl, ec) {
} else if ((match = apiOrganismeRegex.exec(path)) !== null) {
// RECORD organism JSON
// /api/v1/theses/organisme/159502497
result.rtype = 'RECORD';
result.rtype = 'ORGANISATION';
result.mime = 'JSON';
result.unitid = match[1];
result.ppn = match[1];
Expand Down
9 changes: 0 additions & 9 deletions thesesfr/test/thesesfr.2024-07-18.csv

This file was deleted.

15 changes: 15 additions & 0 deletions thesesfr/test/thesesfr.2024-10-01.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
out-ppn;out-publication_date;out-institution_code;out-unitid;out-rtype;out-mime;in-url;in-status
;2024;UPAS;2024UPASL018;PHD_THESIS;PDF;https://theses.fr/api/v1/document/protected/2024UPASL018/125383_BOUDERKA_2024_archivage.pdf;200
;2024;UPAS;2024UPASL018;PHD_THESIS;PDF;https://theses.fr/api/v1/document/protected/2024UPASL018;200
;2010;AIX2;2010AIX22039;PHD_THESIS;PDF;https://theses.fr/2010AIX22039/abes;200
;2010;AIX2;2010AIX22039;PHD_THESIS;PDF;https://theses.fr/api/v1/document/2010AIX22039/THESE_2010_CALPAS_BETTY.pdf;200
;2010;AIX2;2010AIX22039;PHD_THESIS;PDF;https://theses.fr/2010AIX22039/document;200
;2010;AIX2;2010AIX22039;PHD_THESIS;PDF;https://theses.fr/api/v1/document/2010AIX22039;200
241345251;;;241345251;ORGANISATION;JSON;https://theses.fr/api/v1/theses/organisme/241345251;200
264066944;;;264066944;BIO;JSON;https://theses.fr/api/v1/personnes/personne/264066944;200
;;;s383095;ABS;JSON;https://theses.fr/api/v1/theses/these/s383095;200
;2024;BORD;2024BORD0122;ABS;JSON;https://theses.fr/api/v1/theses/these/2024BORD0122;200
;2019;LYSE;2019LYSE2053;PHD_THESIS;HTML;https://theses.fr/api/v1/document/2019LYSE2053;302
264066944;;;264066944;RECORD;HTML;https://theses.fr/264066944;200
;;;s383095;ABS;HTML;https://theses.fr/s383095;200
;2024;BORD;2024BORD0122;ABS;HTML;https://theses.fr/2024BORD0122;200

0 comments on commit 2b0f736

Please sign in to comment.