Browse Source

Anpassung Mediawiki Bluespice 4.5.4 #1

master
Daniel Quathamer 3 weeks ago
parent
commit
736d588f78
  1. 15
      src-modules/module/kb/etl/wiki2html/load_mediawiki.ktr

15
src-modules/module/kb/etl/wiki2html/load_mediawiki.ktr

@ -564,12 +564,15 @@ @@ -564,12 +564,15 @@
<schema_name/>
</partitioning>
<connection>mediawiki</connection>
<sql>select P.page_id,CONVERT(P.page_title USING utf8) as page_title,T.old_text as result_text,${document_id} as document_id, CURDATE() as last_input
from wikidb.text T, wikidb.revision R, wikidb.page P
where P.page_id=R.rev_page
and T.old_id=R.rev_text_id
and R.rev_id=(select max(R2.rev_id) from wikidb.revision R2,wikidb.page P2 where P2.page_id=R2.rev_page and CONVERT(P2.page_title USING utf8)='${src_title}')
and CONVERT(P.page_title USING utf8)='${src_title}'</sql>
<sql>SELECT p.page_id,CONVERT(p.page_title USING utf8) as page_title,CONVERT(t.old_text USING utf8) as result_text,${document_id} as document_id, CURDATE() as last_input
FROM revision r
JOIN page p ON r.rev_page = p.page_id
JOIN slots rs ON r.rev_id = rs.slot_revision_id
join content c on rs.slot_content_id=c.content_id
JOIN text t ON substring(CONVERT(c.content_address USING utf8), 4, 20) = t.old_id
WHERE CONVERT(p.page_title USING utf8) ='${src_title}'
ORDER BY r.rev_timestamp DESC
LIMIT 1;</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>

Loading…
Cancel
Save