From fb1e1bf0cb8a2202eda1ab254b01b997df60a6db Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 13 Dec 2008 14:23:56 -0500 Subject: metadata, variable renaming (requires testing) metadata, variable renaming (dropped use of dc_ to signify dublin core metadata as is subset of what is used and cumbersome to identify) - testing required manpage minor touch --- lib/sisu/v0/xml_md_oai_pmh_dc.rb | 86 ++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 43 deletions(-) (limited to 'lib/sisu/v0/xml_md_oai_pmh_dc.rb') diff --git a/lib/sisu/v0/xml_md_oai_pmh_dc.rb b/lib/sisu/v0/xml_md_oai_pmh_dc.rb index 7c89ee07..527c6c78 100644 --- a/lib/sisu/v0/xml_md_oai_pmh_dc.rb +++ b/lib/sisu/v0/xml_md_oai_pmh_dc.rb @@ -82,80 +82,80 @@ module SiSU_XML_metadata WOK end def body - if @md.dc_title # DublinCore 1 - title - @oai_pmh << %{ #{@md.dc_title}\n} - #@oai_pmh << %{ #{seg_name}#{@md.dc_title}\n} + if @md.full_title # DublinCore 1 - title + @oai_pmh << %{ #{@md.full_title}\n} + #@oai_pmh << %{ #{seg_name}#{@md.title}\n} end - if @md.dc_creator # DublinCore 2 - creator/author (author) - txt=meta_content_clean(@md.dc_creator) - @oai_pmh << %{ #{txt}\n} + if @md.author # DublinCore 2 - author/creator (author) + txt=meta_content_clean(@md.author) + @oai_pmh << %{ #{txt}\n} end - if @md.dc_subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???) - txt=meta_content_clean(@md.dc_subject) + if @md.subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???) + txt=meta_content_clean(@md.subject) @oai_pmh << %{ #{txt}\n} end - if @md.dc_description # DublinCore 4 - description - txt=meta_content_clean(@md.dc_description) + if @md.description # DublinCore 4 - description + txt=meta_content_clean(@md.description) @oai_pmh << %{ #{txt}\n} end - if @md.dc_publisher # DublinCore 5 - publisher (current copy published by) - txt=meta_content_clean(@md.dc_publisher) + if @md.publisher # DublinCore 5 - publisher (current copy published by) + txt=meta_content_clean(@md.publisher) @oai_pmh << %{ #{txt}\n} end - if @md.dc_contributor # DublinCore 6 - contributor - txt=meta_content_clean(@md.dc_contributor) + if @md.contributor # DublinCore 6 - contributor + txt=meta_content_clean(@md.contributor) @oai_pmh << %{ #{txt}\n} end - if @md.dc_date # DublinCore 7 - date year-mm-dd - @oai_pmh << %{ #{@md.dc_date}\n} + if @md.date # DublinCore 7 - date year-mm-dd + @oai_pmh << %{ #{@md.date}\n} end - if @md.dc_date_created # DublinCore 7 - date.created - @oai_pmh << %{ #{@md.dc_date_created}\n} + if @md.date_created # DublinCore 7 - date.created + @oai_pmh << %{ #{@md.date_created}\n} end - if @md.dc_date_issued # DublinCore 7 - date.issued - @oai_pmh << %{ #{@md.dc_date_issued}\n} + if @md.date_issued # DublinCore 7 - date.issued + @oai_pmh << %{ #{@md.date_issued}\n} end - if @md.dc_date_available # DublinCore 7 - date.available - @oai_pmh << %{ #{@md.dc_date_available}\n} + if @md.date_available # DublinCore 7 - date.available + @oai_pmh << %{ #{@md.date_available}\n} end - if @md.dc_date_valid # DublinCore 7 - date.valid - @oai_pmh << %{ #{@md.dc_date_valid}\n} + if @md.date_valid # DublinCore 7 - date.valid + @oai_pmh << %{ #{@md.date_valid}\n} end - if @md.dc_date_modified # DublinCore 7 - date.modified - @oai_pmh << %{ #{@md.dc_date_modified}\n} + if @md.date_modified # DublinCore 7 - date.modified + @oai_pmh << %{ #{@md.date_modified}\n} end - if @md.dc_type # DublinCore 8 - type - txt=meta_content_clean(@md.dc_type) + if @md.type # DublinCore 8 - type + txt=meta_content_clean(@md.type) @oai_pmh << %{ #{txt}\n} end - if @md.dc_format # DublinCore 9 - format - txt=meta_content_clean(@md.dc_format) + if @md.format # DublinCore 9 - format + txt=meta_content_clean(@md.format) @oai_pmh << %{ #{txt}\n} end - if @md.dc_identifier # DublinCore 10 - identifier - txt=meta_content_clean(@md.dc_identifier) + if @md.identifier # DublinCore 10 - identifier + txt=meta_content_clean(@md.identifier) @oai_pmh << %{ #{txt}\n} end - if @md.dc_source # DublinCore 11 - source - txt=meta_content_clean(@md.dc_source) + if @md.source # DublinCore 11 - source + txt=meta_content_clean(@md.source) @oai_pmh << %{ #{txt}\n} end - if @md.dc_language[:name] # DublinCore 12 - language (English) - @oai_pmh << %{ #{@md.dc_language[:name]}\n} + if @md.language[:name] # DublinCore 12 - language (English) + @oai_pmh << %{ #{@md.language[:name]}\n} end if @md.language_original[:name] @oai_pmh << %{ #{@md.language_original[:name]}\n} end - if @md.dc_relation # DublinCore 13 - relation - txt=meta_content_clean(@md.dc_relation) + if @md.relation # DublinCore 13 - relation + txt=meta_content_clean(@md.relation) @oai_pmh << %{ #{txt}\n} end - if @md.dc_coverage # DublinCore 14 - coverage - txt=meta_content_clean(@md.dc_coverage) + if @md.coverage # DublinCore 14 - coverage + txt=meta_content_clean(@md.coverage) @oai_pmh << %{ #{txt}\n} end - if @md.dc_rights # DublinCore 15 - rights - txt=meta_content_clean(@md.dc_rights) + if @md.rights # DublinCore 15 - rights + txt=meta_content_clean(@md.rights) @oai_pmh << %{ #{txt}\n} end if @md.keywords @@ -200,7 +200,7 @@ see also http://dublincore.org/documents/dcmes-xml/ xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> Grassmann's space analysis - Hyde, E. W. (Edward Wyllys) + Hyde, E. W. (Edward Wyllys) LCSH:Ausdehnungslehre; LCCN QA205.H99 J. Wiley & Sons Created: 1906; Available: 1991 -- cgit v1.2.3