')
p_num_goto
end
end
class Head_information
def initialize #dc rdf
@full_title=@subtitle=@author=@subject=@description=@publisher=@contributor=@date=@type=@format=@identifier=@source=@language=@relation=@coverage=@rights=@copyright=@owner=@keywords=''
@md=@@md
# DublinCore 1 - title
@rdfurl=%{ rdf:about="http://www.jus.uio.no/lm/toc"\n}
if @md.full_title
@full_title=%{\n}
#if @md.subtitle
# #@rdf_title=%{ dc.title="#{seg_name}#{@md.title} - #{@md.subtitle}"\n}
# @full_title=%{\n}
#else
# #@rdf_title=%{ dc.title="#{seg_name}#{@md.title}"\n}
# @full_title=%{\n}
#end
end
if @md.author # DublinCore 2 - author/creator (author)
@rdf_author=%{ dc.author="#{@md.author}"\n}
@author=%{\n}
end
if @md.subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???)
@rdf_subject=%{ dc.subject="#{@md.subject}"\n}
@subject=%{\n}
end
if @md.description # DublinCore 4 - description
@rdf_description=%{ dc.description="#{@md.description}"\n}
@description=%{\n}
end
if @md.publisher # DublinCore 5 - publisher (current copy published by)
@rdf_publisher=%{ dc.publisher="#{@md.publisher}"\n}
@publisher=%{\n}
end
if @md.contributor # DublinCore 6 - contributor
@rdf_contributor=%{ dc.contributor="#{@md.contributor}"\n}
@contributor=%{\n}
end
if @md.date # DublinCore 7 - date year-mm-dd
@rdf_date=%{ dc.date="#{@md.date}"\n}
@date=%{\n}
end
if @md.date_created # DublinCore 7 - date.created year-mm-dd
@rdf_date_created=%{ dc.date.created="#{@md.date_created}"\n}
@date_created=%{\n}
end
if @md.date_issued # DublinCore 7 - date.issued year-mm-dd
@rdf_date_issued=%{ dc.date.issued="#{@md.date_issued}"\n}
@date_issued=%{\n}
end
if @md.date_available # DublinCore 7 - date.available year-mm-dd
@rdf_date_available=%{ dc.date.available="#{@md.date_available}"\n}
@date_available=%{\n}
end
if @md.date_valid # DublinCore 7 - date.valid year-mm-dd
@rdf_date_valid=%{ dc.date.valid="#{@md.date_valid}"\n}
@date_valid=%{\n}
end
if @md.date_modified # DublinCore 7 - date.modified year-mm-dd
@rdf_date_modified=%{ dc.date.modified="#{@md.date_modified}"\n}
@date_modified=%{\n}
end
if @md.type # DublinCore 8 - type (genre eg. report, convention etc)
@rdf_type=%{ dc.type="#{@md.type}"\n}
@type=%{\n}
end
if @md.format # DublinCore 9 - format (use your mime type)
@rdf_format=%{ dc.format="#{@md.format}"\n}
@format=%{\n}
end
if @md.identifier # DublinCore 10 - identifier (your identifier, could use urn which is free)
@rdf_identifier=%{ dc.identifier="#{@md.identifier}"\n}
@identifier=%{\n}
end
if @md.source # DublinCore 11 - source (document source)
@rdf_source=%{ dc.source="#{@md.source}"\n}
@source=%{\n}
end
if @md.language[:name] # DublinCore 12 - language (English)
@rdf_language=%{ dc.language="#{@md.language[:name]}"\n}
@language=%{\n}
end
if @md.language_original[:name] # DublinCore 12 - language (English)
@rdf_language_original=%{ dc.language="#{@md.language_original[:name]}"\n}
@language_original=%{\n}
end
if @md.relation # DublinCore 13 - relation
@rdf_relation=%{ dc.relation="#{@md.relation}"\n}
@relation=%{\n}
end
if @md.coverage # DublinCore 14 - coverage
@rdf_coverage=%{ dc.coverage="#{@md.coverage}"\n}
@coverage=%{\n}
end
if @md.rights # DublinCore 15 - rights
@rdf_rights=%{ dc.rights="#{@md.rights}"\n}
@rights=%{\n}
end
@copyright=%{\n} if @md.rights # possibly redundant see dc.rights
@owner=%{\n} if @md.owner
@keywords=%{\n} if @md.keywords
@vz=SiSU_Env::Get_init.instance.skin #margin,paragraph,table,banner,url,png,txt,color,font,nav_txt,nav_png,credits,js,php
@index=case @md.file_type
when /php/; 'index' # @index="index.php"
else 'index'
end
end
def toc_head_escript #embedded script in this case PHP
# %{PHP or other embedded script for object persistence may go HERE
}
end
#def seg_head_escript #embedded script in this case PHP
# # %{PHP or other embedded script for object persistence may go HERE
}
#end
def table_close
' '
end
def buttons_home
%{\n#{@banner.home_and_index_buttons}\n}
end
def copyat
%{copy @