Skip to content

Commit c4a74dd

Browse files
Update lsr.php
add trims for registry content
1 parent 7ae059d commit c4a74dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lsr/lsr.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function parse()
173173
if($r['pubmed']) {
174174
foreach(explode(",",$r['pubmed']) AS $pubmed) {
175175
parent::addRDF(
176-
parent::triplify($id,"cito:citesAsAuthority","pubmed:".$pubmed)
176+
parent::triplify($id,"cito:citesAsAuthority","pubmed:".trim($pubmed))
177177
// parent::triplify("pubmed:".$pubmed, "rdf:type", "pubmed_vocabulary:Resource")
178178
);
179179
}
@@ -206,7 +206,7 @@ function parse()
206206
&& $r['homepage'] !== 'dead'
207207
&& $r['homepage'] !== 'unavailable') {
208208
parent::addRDF(
209-
parent::triplify($id,"foaf:page",$r['homepage'])
209+
parent::triplify($id,"foaf:page",trim($r['homepage']))
210210
);
211211
}
212212
if($r['license']) {

0 commit comments

Comments
 (0)