-
Notifications
You must be signed in to change notification settings - Fork 1
/
altmetric.epm
119 lines (119 loc) · 6.1 KB
/
altmetric.epm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version='1.0' encoding='utf-8'?>
<epm xmlns='http://eprints.org/ep2/data/2.0' id='http://localhost:8080/id/epm/altmetric'>
<epmid>altmetric</epmid>
<uri>http://192.168.23.142/id/epm/altmetric</uri>
<documents>
<document>
<files>
<file>
<datasetid>document</datasetid>
<filename>epm/altmetric/cfg/cfg.d/z_altmetric.pl</filename>
<mime_type>text/plain</mime_type>
<hash>663d05eef5eafc4441e9fb175d159196</hash>
<hash_type>MD5</hash_type>
<filesize>1716</filesize>
<data encoding='base64'>IyMjIEFsdG1ldHJpYyBTdW1tYXJ5IFBhZ2UgV2lkZ2V0CiMKIyBGb3IgdGhlIEFsdG1ldHJpYyBi
YWRnZXMgdG8gd29yayBwcm9wZXJseSB5b3UgbmVlZCB0byBjb250YWN0IHN1cHBvcnRAYWx0bWV0
cmljLmNvbSAKIyBhbmQgZ2l2ZSB0aGVtIHRoZSBkb21haW4geW91ciBJUiBpcyBob3N0ZWQgb24u
CiMgSWYgeW91IHNraXAgdGhpcyBzdGVwIHVzZXJzIG1heSBub3Qgc2VlIHRoZSBmdWxsIGRldGFp
bHMgZm9yIGVhY2ggYXJ0aWNsZQojICAgZS5nLiBvbmx5IHRoZSBtb3N0IHJlY2VudCB0d2VldHMg
b3IgbGlrZXMgbWF5IGJlIHNob3duLgojCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyM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lwZV9hbmRf
aWR9ID0gc3ViIHsKICAgICAgICBteSggJGVwcmludCApID0gQF87CgogICAgICAgIGlmKCAkZXBy
aW50LT5leGlzdHNfYW5kX3NldCggImRvaSIgKSApewogICAgICAgICAgICAgICAgcmV0dXJuKCAi
ZG9pIiwgJGVwcmludC0+dmFsdWUoICJkb2kiICkgKTsKICAgICAgICB9CiAgICAgICAgaWYoICRl
cHJpbnQtPmV4aXN0c19hbmRfc2V0KCAiaXNibiIgKSApewogICAgICAgICAgICAgICAgcmV0dXJu
KCAiaXNibiIsICRlcHJpbnQtPnZhbHVlKCAiaXNibiIgKSApOwogICAgICAgIH0KCgkJIyBpZF9u
dW1iZXJzIHRoYXQgaGF2ZSAxMC4gaW4gdGhlbSAocnVkaW1lbnRhcnkgZG9pIGNoZWNrKQogICAg
ICAgIGlmKCAkZXByaW50LT5leGlzdHNfYW5kX3NldCggImlkX251bWJlciIgKSAmJiAoICRlcHJp
bnQtPnZhbHVlKCAiaWRfbnVtYmVyIiApID1+IC9cYjEwLi8gKSApewoJCSAgICAgICAgCiAgICAg
ICAgICAgICAgICByZXR1cm4oICJkb2kiLCAkZXByaW50LT52YWx1ZSggImlkX251bWJlciIgKSAp
OwkKCQl9CgoJCSNvdGhlciBmaWVsZHMgY291bGQgYmUgY2hlY2tlZCBhbmQgcmV0dXJuZWQgaGVy
ZS4KfTsK
</data>
</file>
<file>
<datasetid>document</datasetid>
<filename>epm/altmetric/cgi/altmetric</filename>
<mime_type>text/plain</mime_type>
<hash>de02f9d0daa680ed0e8505a9d7d2c5e1</hash>
<hash_type>MD5</hash_type>
<filesize>1333</filesize>
<data encoding='base64'>dXNlIExXUDo6VXNlckFnZW50Owp1c2UgRVByaW50czsKCnVzZSBzdHJpY3Q7CgpteSAkZXByaW50
cyA9IEVQcmludHMtPm5ldzsKbXkgJHJlcG8gPSAkZXByaW50cy0+Y3VycmVudF9yZXBvc2l0b3J5
OwpleGl0KCAwICkgdW5sZXNzKCBkZWZpbmVkICRy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ZXNzICkgCnsKCXByaW50IFNURE9VVCAkcmVz
LT5jb250ZW50Owp9CmVsc2UKewoJIyBvdGhlciBlcnJvciBjb2RlczoKCSMgNDIwOiByYXRlIGxp
bWl0ZWQKCSMgNTAyOiBBUEkgZG93biBmb3IgbWFpbnRlbmFuY2UKCSMgNDAzOiB1bmF1dGhvcmlz
ZWQgY2FsbAoJbXkgJGVycm1zZzsKCWlmKCAkcmVzLT5jb2RlID09IDQwNCApCgl7CgkJJGVycm1z
ZyA9ICRyZXBvLT5waHJhc2UoICdsaWIvYWx0bWV0cmljOm5vdF9mb3VuZCcgKTsKCX0KCWVsc2UK
CXsKCQkkZXJybXNnID0gJHJlcG8tPnBocmFzZSggJ2xpYi9hbHRtZXRyaWM6dW5rbm93bl9lcnJv
cicgKTsKCX0KCglwcmludCBTVERPVVQgJ3sgImVycm9yIjogIjEiLCAibWVzc2FnZSI6ICInLiRl
cnJtc2cuJyIgfSc7Cn0KCmV4aXQ7Cg==
</data>
</file>
</files>
<mime_type>text/plain</mime_type>
<format>text</format>
<main>epm/altmetric/cgi/altmetric</main>
<content>install</content>
</document>
</documents>
<version>1.2.1</version>
<controller>EPMC::Altmetric</controller>
<creators>
<item>
<name>
<family>Francois</family>
<given>Sebastien</given>
</name>
<id>https://github.com/sebastfr</id>
</item>
<item>
<name>
<family>Miles-Board</family>
<given>Tim</given>
</name>
<id>https://github.com/drtjmb</id>
</item>
<item>
<name>
<family>Salter</family>
<given>John</given>
</name>
<id>https://github.com/jesusbagpuss</id>
</item>
</creators>
<datestamp>2018-06-21 21:29:53</datestamp>
<title>Altmetric</title>
<description>Display altmetric's badges on summary pages. Visit the altmetric web-site for more information: http://www.altmetric.com/</description>
<requirements>An optional API key from Altmetric.</requirements>
<home_page>https://github.com/eprintsug/altmetric/</home_page>
<icon>images/epm/altmetric.png</icon>
</epm>