212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
|
# File 'lib/sisu/src_po4a_shelf_set.rb', line 212
def start_is_match
case @p
when /^#{Mx[:meta_o]}(title)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,@md.title.full,'meta','dc') when /^#{Mx[:meta_o]}(creator|author)#{Mx[:meta_c]}\s*(.+?)$/ then ('creator',$2,'meta','dc') when /^#{Mx[:meta_o]}(subject)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(description)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(publisher)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(contributor)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(date)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(date\.created)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(date\.issued)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(date\.available)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(date\.valid)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(date\.modified)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(type)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(format)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(identifier)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(source)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(language)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(relation)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(coverage)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(rights)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','dc') when /^#{Mx[:meta_o]}(keywords)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(copyright)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(translator|translated_by)#{Mx[:meta_c]}\s*(.+?)$/ then ('translator',$2)
when /^#{Mx[:meta_o]}(illustrator|illustrated_by)#{Mx[:meta_c]}\s*(.+?)$/ then ('illustrator',$2)
when /^#{Mx[:meta_o]}(prepared_by)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(digitized_by)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(comments?)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(abstract)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(tags?)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(catalogue)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'meta','extra')
when /^#{Mx[:meta_o]}(class(?:ify)?_loc)#{Mx[:meta_c]}\s*(.+?)$/ then ('classify_loc',$2,'meta','extra')
when /^#{Mx[:meta_o]}(class(?:ify)?_dewey)#{Mx[:meta_c]}\s*(.+?)$/ then ('classify_dewey',$2,'meta','extra')
when /^#{Mx[:meta_o]}(class(?:ify)?_pg)#{Mx[:meta_c]}\s*(.+?)$/ then ('classify_pg',$2,'meta','extra')
when /^#{Mx[:meta_o]}(class(?:ify)?_isbn)#{Mx[:meta_c]}\s*(.+?)$/ then ('classify_isbn',$2,'meta','extra')
when /^#{Mx[:meta_o]}(toc|structure)#{Mx[:meta_c]}\s*(.+?)$/ then ('structure',$2,'process','instruct')
when /^#{Mx[:meta_o]}(level|page|markup)#{Mx[:meta_c]}\s*(.+?)$/ then ('markup',$2,'process','instruct')
when /^#{Mx[:meta_o]}(bold)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'process','instruct')
when /^#{Mx[:meta_o]}(italics|itali[sz]e)#{Mx[:meta_c]}\s*(.+?)$/ then ('italicize',$2,'process','instruct')
when /^#{Mx[:meta_o]}(vocabulary|wordlist)#{Mx[:meta_c]}\s*(.+?)$/ then ('vocabulary',$2,'process','instruct')
when /^#{Mx[:meta_o]}(css|stylesheet)#{Mx[:meta_c]}\s*(.+?)$/ then ('css',$2,'process','instruct')
when /^#{Mx[:meta_o]}(links)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'process','instruct')
when /^#{Mx[:meta_o]}(prefix)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'process','instruct') when /^#{Mx[:meta_o]}(suffix)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'process','instruct')
when /^#{Mx[:meta_o]}(information)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'process','instruct')
when /^#{Mx[:meta_o]}(contact)#{Mx[:meta_c]}\s*(.+?)$/ then ($1,$2,'process','instruct')
when /^#{Mx[:meta_o]}(rcs|cvs)#{Mx[:meta_c]}\s*(.+?)$/ then ('version',$2,'process','instruct')
else nil
end
end
|