')
p_num_goto
end
end
class Head_information
def initialize #dc rdf
@dc_title=@dc_subtitle=@dc_creator=@dc_subject=@dc_description=@dc_publisher=@dc_contributor=@dc_date=@dc_type=@dc_format=@dc_identifier=@dc_source=@dc_language=@dc_relation=@dc_coverage=@dc_rights=@copyright=@owner=@keywords=''
@sfx,@pdf,@md=@@md.sfx,@@md.pdf,@@md
# DublinCore 1 - title
@rdfurl=%{ rdf:about="http://www.jus.uio.no/lm/toc"\n}
if @md.dc_title
@dc_title=%{\n}
#if @md.subtitle
# #@rdf_title=%{ dc.title="#{seg_name}#{@md.title} - #{@md.subtitle}"\n}
# @dc_title=%{\n}
#else
# #@rdf_title=%{ dc.title="#{seg_name}#{@md.title}"\n}
# @dc_title=%{\n}
#end
end
if @md.dc_creator # DublinCore 2 - creator/author (author)
@rdf_creator=%{ dc.creator="#{@md.dc_creator}"\n}
@dc_creator=%{\n}
end
if @md.dc_subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???)
@rdf_subject=%{ dc.subject="#{@md.dc_subject}"\n}
@dc_subject=%{\n}
end
if @md.dc_description # DublinCore 4 - description
@rdf_description=%{ dc.description="#{@md.description}"\n}
@dc_description=%{\n}
end
if @md.dc_publisher # DublinCore 5 - publisher (current copy published by)
@rdf_publisher=%{ dc.publisher="#{@md.dc_publisher}"\n}
@dc_publisher=%{\n}
end
if @md.dc_contributor # DublinCore 6 - contributor
@rdf_contributor=%{ dc.contributor="#{@md.dc_contributor}"\n}
@dc_contributor=%{\n}
end
if @md.dc_date # DublinCore 7 - date year-mm-dd
@rdf_date=%{ dc.date="#{@md.dc_date}"\n}
@dc_date=%{\n}
end
if @md.dc_date_created # DublinCore 7 - date.created year-mm-dd
@rdf_date_created=%{ dc.date.created="#{@md.dc_date_created}"\n}
@dc_date_created=%{\n}
end
if @md.dc_date_issued # DublinCore 7 - date.issued year-mm-dd
@rdf_date_issued=%{ dc.date.issued="#{@md.dc_date_issued}"\n}
@dc_date_issued=%{\n}
end
if @md.dc_date_available # DublinCore 7 - date.available year-mm-dd
@rdf_date_available=%{ dc.date.available="#{@md.dc_date_available}"\n}
@dc_date_available=%{\n}
end
if @md.dc_date_valid # DublinCore 7 - date.valid year-mm-dd
@rdf_date_valid=%{ dc.date.valid="#{@md.dc_date_valid}"\n}
@dc_date_valid=%{\n}
end
if @md.dc_date_modified # DublinCore 7 - date.modified year-mm-dd
@rdf_date_modified=%{ dc.date.modified="#{@md.dc_date_modified}"\n}
@dc_date_modified=%{\n}
end
if @md.dc_type # DublinCore 8 - type (genre eg. report, convention etc)
@rdf_type=%{ dc.type="#{@md.dc_type}"\n}
@dc_type=%{\n}
end
if @md.dc_format # DublinCore 9 - format (use your mime type)
@rdf_format=%{ dc.format="#{@md.dc_format}"\n}
@dc_format=%{\n}
end
if @md.dc_identifier # DublinCore 10 - identifier (your identifier, could use urn which is free)
@rdf_identifier=%{ dc.identifier="#{@md.dc_identifier}"\n}
@dc_identifier=%{\n}
end
if @md.dc_source # DublinCore 11 - source (document source)
@rdf_source=%{ dc.source="#{@md.dc_source}"\n}
@dc_source=%{\n}
end
if @md.dc_language[:name] # DublinCore 12 - language (English)
@rdf_language=%{ dc.language="#{@md.dc_language[:name]}"\n}
@dc_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.dc_relation # DublinCore 13 - relation
@rdf_relation=%{ dc.relation="#{@md.dc_relation}"\n}
@dc_relation=%{\n}
end
if @md.dc_coverage # DublinCore 14 - coverage
@rdf_coverage=%{ dc.coverage="#{@md.dc_coverage}"\n}
@dc_coverage=%{\n}
end
if @md.dc_rights # DublinCore 15 - rights
@rdf_rights=%{ dc.rights="#{@md.dc_rights}"\n}
@dc_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 @