Conditions | 1 |
Paths | 1 |
Total Lines | 43 |
Code Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function mapLienwebFromOpenGraph(array $meta): array |
||
27 | { |
||
28 | return [ |
||
29 | 'DATA-TYPE' => 'Open Graph/Dublin Core', |
||
30 | 'DATA-ARTICLE' => $this->isAnArticle($meta['og:type'] ?? ''), |
||
1 ignored issue
–
show
|
|||
31 | 'site' => $this->clean($meta['og:site_name'] ?? null), |
||
1 ignored issue
–
show
|
|||
32 | 'titre' => $this->clean($meta['og:title'] ?? $meta['twitter:title'] ?? $meta['DC.title'] ?? null), |
||
33 | 'url' => $meta['og:url'] ?? $meta['URL'] ?? null, |
||
34 | 'langue' => $this->convertLangue( |
||
1 ignored issue
–
show
|
|||
35 | $meta['og:locale'] ?? $meta['DC.language'] ?? $meta['citation_language'] ?? null |
||
36 | ), |
||
37 | 'consulté le' => date('d-m-Y'), |
||
38 | 'auteur' => $this->clean( |
||
39 | $meta['og:article:author'] ?? $meta['article:author'] ?? $meta['citation_author'] ?? null |
||
40 | ), |
||
41 | 'format' => $this->convertOGtype2format($meta['og:type'] ?? null), |
||
1 ignored issue
–
show
|
|||
42 | 'date' => $this->convertDate( |
||
1 ignored issue
–
show
|
|||
43 | $meta['og:article:published_time'] ?? |
||
44 | $meta['article:published_time'] ?? $meta['DC.date'] ?? $meta['citation_date'] ?? null |
||
45 | ), |
||
46 | 'url-access' => $this->convertURLaccess($meta), |
||
1 ignored issue
–
show
|
|||
47 | |||
48 | // DUBLIN CORE ONLY |
||
49 | 'périodique' => $this->clean($meta['DC.isPartOf'] ?? $meta['citation_journal_title'] ?? null), |
||
50 | 'et al.' => $this->authorsEtAl( |
||
1 ignored issue
–
show
|
|||
51 | $meta['citation_authors'] ?? $meta['DC.Contributor'] ?? null, |
||
52 | true |
||
53 | ), |
||
54 | 'auteur1' => $this->wikifyPressAgency( |
||
1 ignored issue
–
show
|
|||
55 | $this->clean( |
||
56 | $this->authorsEtAl( |
||
57 | $meta['citation_authors'] ?? $meta['DC.Contributor'] ?? null |
||
58 | ) |
||
59 | ) |
||
60 | ), |
||
61 | 'volume' => $meta['citation_volume'] ?? null, |
||
62 | 'numéro' => $meta['citation_issue'] ?? null, |
||
63 | 'page' => $this->convertDCpage($meta), |
||
1 ignored issue
–
show
|
|||
64 | 'doi' => $meta['citation_doi'] ?? null, |
||
65 | 'éditeur' => $meta['DC.publisher'] ?? null, // Persée dégeulasse todo? |
||
66 | 'pmid' => $meta['citation_pmid'] ?? null, |
||
67 | 'issn' => $meta["citation_issn"] ?? null, |
||
68 | 'isbn' => $meta["citation_isbn"] ?? null, |
||
69 | // "prism.eIssn" => "2262-7197" |
||
73 |