Changeset 8199aac


Ignore:
Timestamp:
01/21/08 16:21:10 (9 years ago)
Author:
benoitg <benoitg@…>
Branches:
('master', '490da607341fc912953151a06bff77650ca214bb')('vitrine', '64aced58f2abea1ed48aa3134c125a714fe507cf')
Children:
786eecd659c7bd7d872ab53b456bd61a023c6469
Parents:
43d08a58bad00af8b9b54ee69070e6a52cbf1281
git-author:
benoitg <benoitg@9a151f2f-a8df-0310-a5c5-9fb547312938>2008-01-21 21:21:10+00:00
git-committer:
benoitg <benoitg@9a151f2f-a8df-0310-a5c5-9fb547312938>2008-01-21 21:21:10+00:00
Message:

Improvement to last fix, deal better with empty URLs

git-svn-id: http://projects.coeus.ca/svn/eureka@492 9a151f2f-a8df-0310-a5c5-9fb547312938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/php/classes/Lom.php

    r43d08a5 r8199aac  
    13961396        $urls = $relationnn->getArray(); 
    13971397        foreach ($urls as $url) { 
    1398             $url_node = $document->createElementNS(DUBLIN_CORE_NS, "dc:identifier"); 
    1399             $textnode = $document->createTextNode($url->getString()); 
    1400             $url_node = $url_node->appendChild($textnode); 
    1401             $parent->appendChild($url_node); 
     1398            $urlStr = $url->getString(); 
     1399            if(!empty($urlStr)){ 
     1400                $url_node = $document->createElementNS(DUBLIN_CORE_NS, "dc:identifier"); 
     1401                $textnode = $document->createTextNode($url->getString()); 
     1402                $url_node = $url_node->appendChild($textnode); 
     1403                $parent->appendChild($url_node); 
     1404            } 
    14021405        } 
    14031406 
Note: See TracChangeset for help on using the changeset viewer.