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