myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2497] branches/eprints-integration/app/models/pa


From: noreply
Subject: [myexperiment-hackers] [2497] branches/eprints-integration/app/models/pack.rb:
Date: Wed, 18 Aug 2010 12:47:22 -0400 (EDT)

Revision
2497
Author
kkollara
Date
2010-08-18 12:47:22 -0400 (Wed, 18 Aug 2010)

Log Message



Modified Paths

Diff

Modified: branches/eprints-integration/app/models/pack.rb (2496 => 2497)


--- branches/eprints-integration/app/models/pack.rb	2010-08-18 16:41:39 UTC (rev 2496)
+++ branches/eprints-integration/app/models/pack.rb	2010-08-18 16:47:22 UTC (rev 2497)
@@ -565,7 +565,13 @@
       end
       
       if is_remote
+        # Dublin Core Tool
+        dcdata = DublinCore::extract_dublin_core_data_from_page(uri)
+        if dcdata.nil?
         entry = PackRemoteEntry.new(:title => "Link", :uri => link)
+        else
+        entry = PackRemoteEntry.new(:title => "Link", :uri => link, :dc_title => dcdata["dc.title"], :dc_creator => dcdata["dc.creator"],:dc_description => dcdata["dc.description"], :dc_format => dcdata["dc.format"], :dc_identifier => dcdata["dc.identifier"] )
+        end
         type = 'remote'
       end
       

reply via email to

[Prev in Thread] Current Thread [Next in Thread]