Browse Source

Migration vom superx-community-git

master
Daniel Quathamer 5 months ago
parent
commit
33b7eabb9d
  1. 384
      LICENSE
  2. 23
      README.md
  3. 65
      build.xml
  4. 7
      rsync_to_superx.x
  5. 10
      src-modules/module/kb/conf/excludes.txt
  6. 3
      src-modules/module/kb/conf/includes.txt
  7. 1875
      src-modules/module/kb/conf/kb.xml
  8. BIN
      src-modules/module/kb/etl/lib/saxon8.jar
  9. 358
      src-modules/module/kb/etl/wiki2html/copyFiles.kjb
  10. 550
      src-modules/module/kb/etl/wiki2html/copy_source_files.ktr
  11. 858
      src-modules/module/kb/etl/wiki2html/download_source_files.ktr
  12. 566
      src-modules/module/kb/etl/wiki2html/kb_document_source_header_fuellen.ktr
  13. 618
      src-modules/module/kb/etl/wiki2html/kb_document_source_header_level_setzen.ktr
  14. 774
      src-modules/module/kb/etl/wiki2html/kb_document_source_link_fuellen.ktr
  15. 714
      src-modules/module/kb/etl/wiki2html/kb_document_source_template_fuellen.ktr
  16. 723
      src-modules/module/kb/etl/wiki2html/load_mediawiki.ktr
  17. 16
      src-modules/module/kb/etl/wiki2html/mediawikiapi_imageinfo2text.xsl
  18. 16
      src-modules/module/kb/etl/wiki2html/mediawikiapi_page2text.xsl
  19. 1932
      src-modules/module/kb/etl/wiki2html/mwtools.js
  20. 551
      src-modules/module/kb/etl/wiki2html/readChapters.kjb
  21. 798
      src-modules/module/kb/etl/wiki2html/readChapters.ktr
  22. 580
      src-modules/module/kb/etl/wiki2html/setFilenames.ktr
  23. 517
      src-modules/module/kb/etl/wiki2html/set_variables.ktr
  24. 188
      src-modules/module/kb/etl/wiki2html/topics2body.xsl
  25. 54
      src-modules/module/kb/etl/wiki2html/topics2frame.xsl
  26. 310
      src-modules/module/kb/etl/wiki2html/topics2toc.xsl
  27. 64
      src-modules/module/kb/etl/wiki2html/topics2top.xsl
  28. 486
      src-modules/module/kb/etl/wiki2html/transform_document_link.ktr
  29. 878
      src-modules/module/kb/etl/wiki2html/transform_document_links.ktr
  30. 1159
      src-modules/module/kb/etl/wiki2html/wiki2html.kjb
  31. 185
      src-modules/module/kb/etl/wiki2html/wiki2html_test.htm
  32. 932
      src-modules/module/kb/etl/wiki2html/wiki2xhtml.ktr
  33. 10
      src-modules/module/kb/etl/wiki2xml2html.x
  34. 358
      src-modules/module/kb/etl/xml2html/copyFiles.kjb
  35. 12
      src-modules/module/kb/etl/xml2html/cover_pdf.htm
  36. 808
      src-modules/module/kb/etl/xml2html/createBodyPrintversion.ktr
  37. 477
      src-modules/module/kb/etl/xml2html/createPDF.kjb
  38. 445
      src-modules/module/kb/etl/xml2html/createTopics.ktr
  39. 686
      src-modules/module/kb/etl/xml2html/createXhtml.ktr
  40. 507
      src-modules/module/kb/etl/xml2html/create_pdf.ktr
  41. 65
      src-modules/module/kb/etl/xml2html/create_pdf.x
  42. 529
      src-modules/module/kb/etl/xml2html/getPathForPDFExport.ktr
  43. 60
      src-modules/module/kb/etl/xml2html/httools.js
  44. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/BLAUBCK.JPG
  45. 14
      src-modules/module/kb/etl/xml2html/layoutelements/BreadCrumbs.css
  46. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Button_1_find_btn_s.gif
  47. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Button_1_go_next_btn_s.gif
  48. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Button_1_go_prev_btn_s.gif
  49. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Button_1_go_top_btn_s.gif
  50. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Button_1_home_green_btn_s.gif
  51. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Icon_XMap_t.gif
  52. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/Symbol.gif
  53. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/SymbolN.gif
  54. 54
      src-modules/module/kb/etl/xml2html/layoutelements/attention.svg
  55. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/banner.gif
  56. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/book.gif
  57. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/briefpapier_hellgrau.gif
  58. 6609
      src-modules/module/kb/etl/xml2html/layoutelements/bulma.css
  59. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/cslogo50x46w.gif
  60. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/frage.gif
  61. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/gr_rarrow.gif
  62. 55
      src-modules/module/kb/etl/xml2html/layoutelements/information.svg
  63. 1125
      src-modules/module/kb/etl/xml2html/layoutelements/main.css
  64. 396
      src-modules/module/kb/etl/xml2html/layoutelements/map.css
  65. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/mtklein.gif
  66. 8
      src-modules/module/kb/etl/xml2html/layoutelements/mwTemplates.xsl
  67. 25
      src-modules/module/kb/etl/xml2html/layoutelements/page_Components.xsl
  68. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/pc.jpg
  69. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/poweredby_freemarker.png
  70. 55
      src-modules/module/kb/etl/xml2html/layoutelements/resultset_first.svg
  71. 55
      src-modules/module/kb/etl/xml2html/layoutelements/resultset_last.svg
  72. 55
      src-modules/module/kb/etl/xml2html/layoutelements/resultset_next.svg
  73. 55
      src-modules/module/kb/etl/xml2html/layoutelements/resultset_previous.svg
  74. 63
      src-modules/module/kb/etl/xml2html/layoutelements/resultset_search.svg
  75. 63
      src-modules/module/kb/etl/xml2html/layoutelements/resultset_up.svg
  76. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/schluessel.jpg
  77. 105
      src-modules/module/kb/etl/xml2html/layoutelements/search/index.htm
  78. 192
      src-modules/module/kb/etl/xml2html/layoutelements/search/search_db.js
  79. 912
      src-modules/module/kb/etl/xml2html/layoutelements/shared.css
  80. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/smilie.gif
  81. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/smoke.gif
  82. 444
      src-modules/module/kb/etl/xml2html/layoutelements/superx.css
  83. BIN
      src-modules/module/kb/etl/xml2html/layoutelements/superx.jpg
  84. 1
      src-modules/module/kb/etl/xml2html/layoutelements/toc.css
  85. 61
      src-modules/module/kb/etl/xml2html/layoutelements/toc_pdf.xsl
  86. 18
      src-modules/module/kb/etl/xml2html/layoutelements/topics.xsl
  87. 188
      src-modules/module/kb/etl/xml2html/layoutelements/topics2body.xsl
  88. 54
      src-modules/module/kb/etl/xml2html/layoutelements/topics2frame.xsl
  89. 467
      src-modules/module/kb/etl/xml2html/layoutelements/topics2page.xsl
  90. 75
      src-modules/module/kb/etl/xml2html/layoutelements/topics2searchdb.xsl
  91. 310
      src-modules/module/kb/etl/xml2html/layoutelements/topics2toc.xsl
  92. 64
      src-modules/module/kb/etl/xml2html/layoutelements/topics2top.xsl
  93. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/BLAUBCK.JPG
  94. 14
      src-modules/module/kb/etl/xml2html/layoutelements_48/BreadCrumbs.css
  95. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_find_btn_s.gif
  96. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_go_next_btn_s.gif
  97. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_go_prev_btn_s.gif
  98. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_go_top_btn_s.gif
  99. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_home_green_btn_s.gif
  100. BIN
      src-modules/module/kb/etl/xml2html/layoutelements_48/Icon_XMap_t.gif
  101. Some files were not shown because too many files have changed in this diff Show More

384
LICENSE

@ -1,232 +1,248 @@
GNU GENERAL PUBLIC LICENSE CampusSource · AGB und Lizenz
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. Allgemeine Geschäftsbedingungen (AGB) und Lizenz
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. Mit CampusSource wird die Nutzung universitärer Entwicklungen durch Dritte zu
den Bedingungen der General GNU Public Licence (GPL) ermöglicht, die eine der
bekanntesten Opensource-Lizenzen ist.
Die GPL ist eine Lizenz, die dem amerikanischen Recht, nicht jedoch dem
deutschen Recht genügt. So sind einige Passagen der GPL nach dem deutschen Recht
nicht wirksam. CampusSource hat aus diesem Grunde Allgemeine
Geschäftsbedingungen formuliert, die die Interpretation der GPL unter deutschem
Recht vornimmt und ergänzt.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Allgemeine Geschäftsbedingungen für die
Nutzung der Software der Initiative CampusSource
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow. 1. Vorbemerkung
Diese Allgemeinen Geschäftsbedingungen regeln die Rechtsbeziehungen zwischen dem
Land Nordrhein-Westfalen, vertreten durch die FernUniversität Hagen, diese
wiederum vertreten durch die Geschäftsstelle der Initiative CampusSource bei der
FernUniversität Hagen, Universitätsstraße 11, D-58097 Hagen (im Folgenden
»Lizenzgeber« genannt) und dem Nutzer (im Folgenden »Lizenznehmer« genannt) der
CampusSource-Software. Sie sind ebenso wie die GNU General Public License (siehe
dazu Abschnitt 4 »Lizenz«) Bestandteil des zwischen dem Lizenzgeber und dem
Lizenznehmer geschlossenen Vertrages.
Die GNU General Public License (im Folgenden GPL genannt) finden Sie im Internet
unter www.gnu.org/copyleft/gpl.html, eine deutsche Übersetzung unter
www.gnu.de/gpl-ger.html.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License. 2. Vertragsgegenstand
Gegenstand des Vertragsangebotes des Lizenzgebers ist die auf diesem Server
befindliche Software des CampusSource-Projektes (im Folgenden »Software«
genannt) und dazugehöriges Begleitmaterial.
Der Lizenzgeber bietet dem Lizenznehmer nach erfolgter Registrierung die
folgenden Leistungen an:
Der Lizenzgeber verschafft dem Lizenznehmer die Möglichkeit, auf
elektronischem Weg Zugang zur Software, deren Dokumentation und zu
Erfahrungsberichten zu erhalten und sich einen Überblick über das
Softwareangebot zu verschaffen.
Der Lizenzgeber gestattet dem Lizenznehmer, die Software physikalisch
downzuloaden.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. Der Lizenzgeber überträgt die in Abschnitt 4 »Lizenz« näher bezeichneten
Nutzungsrechte auf den Lizenznehmer.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. Lizenzgeber und Lizenznehmer sind sich einig darüber, dass die Inanspruchnahme
der unter 1.) bis 3.) angebotenen Leistungen unentgeltlich, schenkungsweise
erfolgen soll. Dies bedeutet jedoch nicht, dass der Lizenzgeber irgendwelche
durch die Nutzung des Angebots entstandenen Kosten übernimmt.
Sofern der Lizenznehmer die Software bearbeitet und diese Bearbeitung Dritten
zugänglich macht, ist er verpflichtet, dem Lizenzgeber auch eine Kopie der
Bearbeitung kostenlos zukommen zu lassen, oder, sofern die Bearbeitung
öffentlich und kostenlos zugänglich ist, dem Lizenzgeber die Quelle mitzuteilen.
Die in diesen Allgemeinen Geschäftsbedingungen festgelegten Nebenpflichten
stellen keine Gegenleistung im Sinne des Bürgerlichen Rechts dar und sind für
den Lizenznehmer verbindlich. Nicht Gegenstand des Vertrages sind irgendeine
Form von Softwareinstallation, Softwarepflege oder Beratung im Zusammenhang mit
der Software. Insbesondere wird durch die mit der Software beigefügte oder für
die Software bereitgestellte Information oder Dokumentation kein
Beratungsvertrag angeboten. Wenn Sie solche Dienstleistungen wünschen, wenden
Sie sich an die Geschäftsstelle der Initiative CampusSource.
Der Lizenzgeber behält sich vor, das Leistungsangebot jederzeit einzustellen.
Bezüglich bereits empfangener Leistungen bleiben die Verpflichtungen beider
Parteien hiervon unberührt, insbesondere entfallen dadurch nicht die in diesen
Allgemeinen Geschäftsbedingungen festgelegten Nebenpflichten des Lizenznehmers.
Diese Allgemeinen Geschäftsbedingungen gelten auch dann, wenn der Lizenznehmer
das oben genannte Leistungspaket nur teilweise in Anspruch nimmt.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. 3. Sorgfaltspflichten des Lizenznehmers
Der Lizenznehmer ist verpflichtet, sein Passwort sorgfältig aufzubewahren und
Dritten nicht zugänglich zu machen. Der Lizenznehmer haftet für alle Schäden,
die aus der Verletzung dieser Sorgfaltspflicht entstehen.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. 4. Lizenz
Die Nutzungsrechte, welche der Lizenznehmer erhält, ergeben sich aus der GNU
General Public License. Diese Nutzungsrechte sind dinglich - im Sinne des
Urheberrechts - mit der Software verknüpft und gelten auch dann, wenn der
Lizenznehmer keine Kenntnis davon nimmt. Die GNU General Public License (im
Folgenden GPL genannt) finden Sie im Internet unter
www.gnu.org/copyleft/gpl.html, eine deutsche Übersetzung unter
www.gnu.de/gpl-ger.html.
Die GPL ist zu dem Zweck entworfen worden, dass Sie die unter diese Lizenz
gestellte Software weitergeben und verändern dürfen. Wenn Sie die Software
verändern und weitergeben, müssen Sie den Quellcode der bearbeiteten Software
wieder unter die GPL stellen und den Quellcode zugänglich machen, so dass auch
andere von Ihrem Werk profitieren, wie auch Sie von der erhaltenen Software
profitiert haben. Auf diese Art und Weise soll ein System von jedermann frei
zugänglicher Software geschaffen werden.
Der Lizenzgeber weist den Lizenznehmer darauf hin, dass die GPL in den USA
entworfen wurde und daher einige Bestimmungen nach deutschem Recht nicht wirksam
sind oder in Deutschland rechtlich anders beurteilt werden als in den USA:
Die Formulierung »You may charge a fee for the physical act of transferring a
copy« in Abschnitt 1 der GPL ist nach deutschem Recht so zu verstehen, dass
nur eine angemessene, marktübliche Gegenleistung für die Anfertigung einer
Kopie verlangt werden darf. Sofern eine das marktübliche überschreitende
Gegenleistung für das Anfertigen von Kopien verlangt werden würde, hätte dies
neben einer möglichen Lizenzverletzung zur Folge, dass die durch die
kostenlose Weitergabe bestehende Haftungsprivilegierung wegfallen könnte und
der Lizenznehmer wie ein Verkäufer oder Unternehmer (Werkvertrag) bei Mängeln
auf Schadensersatz haftet.
Abschnitt 11 und 12 der GPL (Haftungsausschluss) verstoßen gegen das »Gesetz
zur Regelung des Rechts der Allgemeinen Geschäftsbedingungen« (AGBG) und sind
nach deutschem Recht unwirksam. An ihre Stelle treten die entsprechenden
Bestimmungen des Bürgerlichen Rechts §§ 521ff. (Haftung des Schenkers).
Es folgt eine kurze unvollständige Zusammenfassung der GPL. Der Lizenznehmer ist
verpflichtet, die weiterführenden und präziseren Bestimmungen der GPL zu
beachten. Der Lizenznehmer wird darauf hingewiesen, dass die GPL einige
(auflösende) Bedingungen enthält, bei deren Verletzung die dem Lizenznehmer
übertragenen Nutzungsrechte automatisch ohne jeden Widerruf erlöschen und eine
weitere Nutzung des Programms zu einer (strafbaren) Urheberrechtsverletzung
wird.
Die Lizenz erlaubt dem Lizenznehmer das Ausführen der Programme zu jedem
Zweck. Gesetzliche Einschränkungen werden hiervon nicht berührt.
Der Lizenznehmer darf unveränderte Kopien des Quellcodes anfertigen und
weiterverbreiten, unter der Bedingung, dass mit der Kopie ein entsprechender
Urheberrechtsvermerk sowie ein Haftungsausschluß veröffentlicht wird und dass
alle die GPL betreffenden Hinweise unverändert weitergegeben werden. Ein
Entgelt darf nur für die Anfertigung von Kopien oder für das Anbieten einer
Garantie genommen werden. Näheres enthält § 1 GPL.
Der Lizenznehmer darf das Programm verändern und die so entstandene
Bearbeitung unter der Bedingung vervielfältigen und verbreiten, dass er einen
auffälligen Vermerk über die vorgenommenen Modifizierungen anbringt, die
Kopien der Bearbeitung ohne Lizenzgebühren unter den Bedingungen der GPL
verbreitet und dafür sorgt, dass das Programm bei interaktiver Nutzung einen
Urheberrechtsvermerk ausgibt. Näheres regelt § 2 GPL.
Der Lizenznehmer darf das Programm oder eine Bearbeitung als Objectcode oder
in ausführbarer Form unter Berücksichtigung der letzten beiden Abschnitte
unter der Bedingung vervielfältigen und verbreiten, dass er den Quelltext
beifügt oder eine der in § 3 GPL genannten Alternativen erfüllt. Näheres
regelt § 3 GPL.
Sollte dem Lizenznehmer infolge eines Gerichtsurteils oder durch einen
gerichtlichen Vergleich Bedingungen auferlegt werden, die der GPL
widersprechen, so entbindet dies den Lizenznehmer nicht von der Einhaltung der
GPL. Näheres regelt § 7 GPL.
Wenn die Verbreitung oder die Benutzung des Programms in bestimmten Staaten
durch Patent- oder Urheberrecht eingeschränkt ist, kann der Lizenznehmer bei
der Verbreitung des Programms durch einen entsprechenden Vermerk bestimmen,
dass die Verbreitung des Programms in bestimmten Staaten ausgeschlossen ist.
Näheres regelt § 8 GPL.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions. 5. Schutzrechte Dritter
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. Der Lizenzgeber geht davon aus, dass der Besitz und der vertragsgemäße Gebrauch
der Software keine Schutzrechte Dritter für den Bereich der BRD beeinträchtigt.
Im Zusammenhang mit einer möglichen Beeinträchtigung der Schutzrechte Dritter
werden die folgenden Nebenpflichten vereinbart:
Der Lizenznehmer verpflichtet sich, dass er weder für sich noch im Auftrag
eines Dritten die Software zu dem Zweck verwendet, diese nach
Schutzrechtsverletzungen zu untersuchen oder untersuchen zu lassen.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. Der Lizenznehmer verpflichtet sich, den Lizenzgeber unverzüglich zu
benachrichtigen, wenn Dritte Schutzrechtsverletzungen geltend machen.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. Hat der Lizenznehmer den Eindruck, dass die Software Patente oder andere
Schutzrechte Dritter verletzt, so ist er verpflichtet, den Lizenzgeber
unverzüglich schriftlich unter Beifügung einer genauen Beschreibung der
Verletzungshandlung zu unterrichten. Es ist dem Lizenznehmer untersagt, andere
natürliche oder juristische Personen ohne schriftliches Einverständnis des
Lizenzgebers zu informieren.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. Bei Verletzung einer der obigen Nebenpflichten verpflichtet sich der
Lizenznehmer, dem Lizenzgeber Schadensersatz für alle durch die Verletzung
entstandenen Schäden (einschließlich der Prozeßkosten) zu leisten. Ist die
Verletzung einer solchen Nebenpflicht festgestellt, so genügt es, wenn der
Lizenzgeber plausibel darlegt, dass der Schaden durch die Verletzung entstanden
ist. Den Lizenznehmer trifft die volle Beweislast für das Gegenteil. Der
Lizenznehmer verpflichtet sich, dem Lizenzgeber alle Auskünfte im Zusammenhang
mit der Verletzung einer der obigen Nebenpflichten zu erteilen.
Der Lizenzgeber weist darauf hin, dass zur CampusSource-Software nicht die
Software anderer Hersteller gehört, mit der die CampusSource-Software
zusammenarbeiten kann oder die für den Betrieb der CampusSource-Software
notwendigerweise vorhanden sein muss, wie z. B. WWW-Server,
Funktionsbibliotheken, Werkzeugsysteme und Datenbankmanagementsysteme. Die
Lizenzen für diese Software müssen vom jeweiligen Hersteller separat erworben
werden. Die GPL gilt für diese Software in der Regel nicht.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. 6. Datenschutz
Der Lizenzgeber verpflichtet sich, bezüglich der bei der Registrierung
angegebenen Daten die einschlägigen landes- und bundesrechtlichen
Datenschutzbestimmungen einzuhalten. Alle Verbindungen zu diesem Server im
Download- und Registrierbereich werden in einem LOG-File aufgezeichnet.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 7. Schriftform
Alle Nebenabreden, die zwischen dem Lizenzgeber und dem Lizenznehmer
abgeschlossen werden, bedürfen der Schriftform. Eine Abänderung oder Aufhebung
dieser Klausel bedarf ebenfalls der Schriftform.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. 8. Gerichtsstand
Gerichtsstand für alle Streitigkeiten aus diesem Vertrag ist Hagen, sofern der
Lizenznehmer Kaufmann, eine juristische Person des öffentlichen Rechts oder ein
öffentlich-rechtliches Sondervermögen ist.
Die Parteien vereinbaren die Anwendung deutschen Rechts. Sollte nach
Internationalem Verfahrensrecht die Zuständigkeit eines deutschen Gerichts
möglich sein, so vereinbaren die Parteien die Zuständigkeit der deutschen
Gerichtsbarkeit und innerhalb Deutschlands die Zuständigkeit des Amtsgerichtes
bzw. Landgerichtes Hagen. Bezüglich der in Abschnitt 5 »Schutzrechte Dritter«
festgelegten Nebenpflichten des Lizenznehmers kann der Lizenzgeber abweichend
von Satz 3 ein beliebiges international zuständiges Gericht anrufen.
© 2000 CampusSource Alle Rechte vorbehalten
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.

23
README.md

@ -1,3 +1,22 @@
# kb # Modul-Skeleton
Nach dem Auschecken des Repository z.B. in /home/superx/git können Sie es wie folgt installieren:
#Installieren Sie ant, z.B. in /home/superx/tools
wget https://dlcdn.apache.org/ant/binaries/apache-ant-1.10.12-bin.tar.gz
#Ergänzen Sie die SQL_ENV um die Zeilen
ANT_HOME=/home/superx/tools/apache-ant-1.10.12
export ANT_HOME
PATH=$PATH:$ANT_HOME/bin
export PATH
#Dann gehen Sie ins Verzeichnis
cd git/meinmodul
#und führen aus:
ant -DMODULE_PATH=$MEINMODUL_PFAD -DBASE_DIR=. -DWEBAPP=$WEBAPP -DMODULE=meinmodul all
Modul Wissenbasis

65
build.xml

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="ModuleCreation" default="all" basedir=".">
<!--Aufruf mit
ant -DMODULE_PATH=$KB_PFAD -DBASE_DIR=. -DWEBAPP=$WEBAPP -DMODULE=kb all
So erzeugen Sie dann ein SuperX-Paket:
ant -DMODULE_PATH=$KB_PFAD -DWEBAPP_DIR=$WEBAPP -DMODULE=kb dist
-->
<dirname file="${ant.file}" property="moduleCreateBaseDir" />
<property name="BASE_DIR" value="${moduleCreateBaseDir}/../.." />
<property name="WEBAPP" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" />
<path id="classpath">
<!--WEB-INF/lib-->
<fileset dir="${WEBAPP}/WEB-INF">
<include name="lib/**/*.jar" />
<include name="classes" />
</fileset>
</path>
<condition property="isWindoze">
<os family="windows" />
</condition>
<condition property="isUnix">
<os family="unix" />
</condition>
<target name="all" description="Gruppe: Kopiere Modul Sourcen in den WEB-INF-Verzeichnisbaum">
<antcall target="module_copy_source" />
<antcall target="call_module_scripts_create_ant" />
</target>
<target name="module_copy_source" description="Gruppe: Kopiere Modul Sourcen in den WEB-INF-Verzeichnisbaum">
<echo message="Start module_copy_sources für Modul ${MODULE} in Pfad ${MODULE_PATH}" />
<copy todir="${MODULE_PATH}" overwrite="true">
<fileset dir="${BASE_DIR}/src-modules/module/${MODULE}" />
</copy>
</target>
<target name="call_module_scripts_create_ant" description="Call to module_scripts_create_ant">
<subant target="all">
<!--<property name="basedir" value="${MODULE_PATH}/../../conf/" />-->
<property name="MODULE" value="${MODULE}" />
<property name="DATABASE" value="POSTGRES" />
<property name="WEBAPP_EXT_MODULE" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" />
<property name="WEBAPP" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" />
<property name="SUPERX_BASE" value="${WEBAPP}/WEB-INF" />
<fileset dir="${MODULE_PATH}/../../conf" includes="module_scripts_create_ant.xml" />
</subant>
</target>
<target name="dist" description="Create Download package">
<subant target="erzeuge_paket">
<!--<property name="basedir" value="${MODULE_PATH}/../../conf/" />-->
<property name="MODULE" value="${MODULE}" />
<property name="PFAD" value="/home/superx/fertige_module" />
<property name="DATABASE" value="POSTGRES" />
<property name="ENCODING" value="utf8" />
<property name="PLATFORM" value="superx" />
<property name="WEBAPP_EXT_MODULE" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" />
<property name="WEBAPP" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" />
<property name="SUPERX_BASE" value="${WEBAPP}/WEB-INF" />
<fileset dir="${MODULE_PATH}/../../conf" includes="build.xml" />
</subant>
</target>
</project>

7
rsync_to_superx.x

@ -0,0 +1,7 @@
#!/bin/bash
#Synchronisierung webapp zum Zielpfad
ant -DMODULE_PATH=$MEINMODUL_PFAD -DBASE_DIR=. -DMODULE=meinmodul all

10
src-modules/module/kb/conf/excludes.txt

@ -0,0 +1,10 @@
rohdaten/KB_ENV
rohdaten/*.properties
preparation.sql
finalize.sql
rohdaten/*.err
*.log
*.err
rohdaten/unl/*
conf/customize.sql
conf/*.log

3
src-modules/module/kb/conf/includes.txt

@ -0,0 +1,3 @@
doku/kb_modul/kb.html
WEB-INF/conf/edustore/db/bin/document_load.x
WEB-INF/conf/edustore/db/bin/document_render.x

1875
src-modules/module/kb/conf/kb.xml

File diff suppressed because it is too large Load Diff

BIN
src-modules/module/kb/etl/lib/saxon8.jar

Binary file not shown.

358
src-modules/module/kb/etl/wiki2html/copyFiles.kjb

@ -0,0 +1,358 @@
<?xml version="1.0" encoding="UTF-8"?><job>
<name>copyFiles</name>
<description/>
<extended_description/>
<job_version/>
<job_status>0</job_status>
<directory>/</directory>
<created_user>-</created_user>
<created_date>2018/01/20 11:09:22.168</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/20 11:09:22.168</modified_date>
<parameters>
<parameter>
<name>from</name>
<default_value/>
<description/>
</parameter>
<parameter>
<name>to</name>
<default_value/>
<description/>
</parameter>
</parameters>
<slaveservers/>
<job-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_JOB</id>
<enabled>Y</enabled>
<name>ID_JOB</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>JOBNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>START_JOB_ENTRY</id>
<enabled>N</enabled>
<name>START_JOB_ENTRY</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</job-log-table>
<jobentry-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>JOBENTRYNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>RESULT</id>
<enabled>Y</enabled>
<name>RESULT</name>
</field>
<field>
<id>NR_RESULT_ROWS</id>
<enabled>Y</enabled>
<name>NR_RESULT_ROWS</name>
</field>
<field>
<id>NR_RESULT_FILES</id>
<enabled>Y</enabled>
<name>NR_RESULT_FILES</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>COPY_NR</id>
<enabled>N</enabled>
<name>COPY_NR</name>
</field>
</jobentry-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<pass_batchid>N</pass_batchid>
<shared_objects_file/>
<entries>
<entry>
<name>START</name>
<description/>
<type>SPECIAL</type>
<start>Y</start>
<dummy>N</dummy>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<intervalSeconds>0</intervalSeconds>
<intervalMinutes>60</intervalMinutes>
<hour>12</hour>
<minutes>0</minutes>
<weekDay>1</weekDay>
<DayOfMonth>1</DayOfMonth>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>160</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>Copy Files</name>
<description/>
<type>COPY_FILES</type>
<copy_empty_folders>Y</copy_empty_folders>
<arg_from_previous>N</arg_from_previous>
<overwrite_files>Y</overwrite_files>
<include_subfolders>Y</include_subfolders>
<remove_source_files>N</remove_source_files>
<add_result_filesname>N</add_result_filesname>
<destination_is_a_file>N</destination_is_a_file>
<create_destination_folder>Y</create_destination_folder>
<fields>
<field>
<source_filefolder>${from}</source_filefolder>
<source_configuration_name>LOCAL-SOURCE-FILE-0</source_configuration_name>
<destination_filefolder>${to}</destination_filefolder>
<destination_configuration_name>LOCAL-DEST-FILE-0</destination_configuration_name>
<wildcard/>
</field>
</fields>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>304</xloc>
<yloc>96</yloc>
</entry>
</entries>
<hops>
<hop>
<from>START</from>
<to>Copy Files</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>Y</unconditional>
</hop>
</hops>
<notepads/>
</job>

550
src-modules/module/kb/etl/wiki2html/copy_source_files.ktr

@ -0,0 +1,550 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>copy_source_files</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>177</default_value>
<description/>
</parameter>
<parameter>
<name>src_title</name>
<default_value>Screenshot-Werkzeuge</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/01/02 10:19:37.505</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/02 10:19:37.505</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getFileLinks</from>
<to>Job Executor</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>getFileLinks</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>mediawiki</connection>
<sql>select P.page_id,P.page_title,concat('/var/www/html/wiki/images/',substring(md5(I.img_name) from 1 for 1),'/',substring(md5(I.img_name) from 1 for 2),'/',I.img_name) as src_file,${document_id} as document_id,
CURDATE() as last_input,
substring('${Internal.Transformation.Filename.Directory}/tmp/files_${document_id}' from 8 for 200) as target_file
from wikidb.page P, wikidb.imagelinks IL, wikidb.image I
where P.page_id=IL.il_from
and IL.il_to=I.img_name
and P.page_title='${src_title}'
;</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Job Executor</name>
<type>JobExecutor</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<specification_method>filename</specification_method>
<job_object_id/>
<job_name/>
<filename>${Internal.Transformation.Filename.Directory}/copyFiles.kjb</filename>
<directory_path/>
<group_size>1</group_size>
<group_field/>
<group_time/>
<parameters>
<variablemapping>
<variable>from</variable>
<field>src_file</field>
<input/>
</variablemapping>
<variablemapping>
<variable>to</variable>
<field>target_file</field>
<input/>
</variablemapping>
<inherit_all_vars>Y</inherit_all_vars>
</parameters>
<execution_result_target_step/>
<execution_time_field>ExecutionTime</execution_time_field>
<execution_result_field>ExecutionResult</execution_result_field>
<execution_errors_field>ExecutionNrErrors</execution_errors_field>
<execution_lines_read_field>ExecutionLinesRead</execution_lines_read_field>
<execution_lines_written_field>ExecutionLinesWritten</execution_lines_written_field>
<execution_lines_input_field>ExecutionLinesInput</execution_lines_input_field>
<execution_lines_output_field>ExecutionLinesOutput</execution_lines_output_field>
<execution_lines_rejected_field>ExecutionLinesRejected</execution_lines_rejected_field>
<execution_lines_updated_field>ExecutionLinesUpdated</execution_lines_updated_field>
<execution_lines_deleted_field>ExecutionLinesDeleted</execution_lines_deleted_field>
<execution_files_retrieved_field>ExecutionFilesRetrieved</execution_files_retrieved_field>
<execution_exit_status_field>ExecutionExitStatus</execution_exit_status_field>
<execution_log_text_field>ExecutionLogText</execution_log_text_field>
<execution_log_channelid_field>ExecutionLogChannelId</execution_log_channelid_field>
<result_rows_target_step/>
<result_files_target_step/>
<result_files_file_name_field>FileName</result_files_file_name_field>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>256</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

858
src-modules/module/kb/etl/wiki2html/download_source_files.ktr

@ -0,0 +1,858 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>download_source_files</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>46</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/01/02 10:19:37.505</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/02 10:19:37.505</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getFileLinks</from>
<to>DownloadImageXml</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>DownloadImageXml</from>
<to>getImagePath</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getImagePath</from>
<to>valid url</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>valid url</from>
<to>DownloadImage</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>valid url</from>
<to>Abort</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>DownloadImage</name>
<type>UserDefinedJavaClass</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<definitions>
<definition>
<class_type>TRANSFORM_CLASS</class_type>
<class_name>Processor</class_name>
<class_source>import org.apache.commons.httpclient.Cookie;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import java.io.InputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.FileOutputStream;
import java.io.File;
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException, HttpException, IOException {
Object[] r = getRow();
if (r == null) {
setOutputDone();
return false;
}
String host=get(Fields.In, "hostname").getString(r);// e.g."wiki.his.de";
String cookieName=get(Fields.In, "cookie_name").getString(r); //"wikidb_session";
String cookieValue=get(Fields.In, "cookie_value").getString(r);//"dr1brbd7saa7jismgsk2a3cf80"; //getParameter("cookie");
String linkTarget=get(Fields.In, "link_target").getString(r);
String linkTargetPath=get(Fields.In, "link_target_path").getString(r);
String strURL=get(Fields.In, "image_url").getString(r);
String outfile=linkTargetPath+"/"+linkTarget;
HttpState initialState = null;
initialState = authenticateWithCookie(host, cookieName, cookieValue);
String responseBody ="";
int result=0;
//TODO: wenn strURL leer ist, sollte Meldung ins Protokoll.
if(strURL!=null &amp;&amp; !strURL.equals(""))
//System.out.println("Feler");
result=downloadBinary(strURL, initialState, outfile);
Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());
//get(Fields.Out, "imageinfo").setValue(outputRow, responseBody);
putRow(data.outputRowMeta, outputRow);
return true;
}
public static HttpState authenticateWithCookie(String host, String cookieName, String cookieValue) {
HttpState initialState = new HttpState();
if(cookieName != null){
Cookie mycookie = new Cookie(host, cookieName, cookieValue, "/", null, false);
initialState.addCookie(mycookie);
}
return initialState;
}
public static int downloadBinary(String strURL, HttpState initialState,String outfile) throws IOException, HttpException {
String responseBodyString="";
HttpClient httpclient = new HttpClient();
httpclient.getHttpConnectionManager().
getParams().setConnectionTimeout(30000);
httpclient.setState(initialState);
httpclient.getParams().setCookiePolicy(CookiePolicy.RFC_2109);
GetMethod httpget = new GetMethod(strURL);
// Execute HTTP GET
//der Inhalt steht in texDownloadImagetarea id=wpTextbox1
int result=0;
try {
result = httpclient.executeMethod(httpget);
//System.out.println("Response status code: " + result);
InputStream responseBody = null;
responseBody = httpget.getResponseBodyAsStream(); //getResponseBodyAsString();
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(new File(outfile)));
int inByte;
while((inByte = responseBody.read()) != -1) bos.write(inByte);
responseBody.close();
bos.close();
} catch (Exception e) {
//System.err.println("invalid URL "+ strURL);
throw new KettleException("invalid URL "+ strURL.trim() +" for outfile "+outfile);
}
return result;
}</class_source>
</definition>
</definitions>
<fields/>
<clear_result_fields>N</clear_result_fields>
<info_steps/>
<target_steps/>
<usage_parameters/>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>592</xloc>
<yloc>272</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>DownloadImageXml</name>
<type>UserDefinedJavaClass</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<definitions>
<definition>
<class_type>TRANSFORM_CLASS</class_type>
<class_name>Processor</class_name>
<class_source>import org.apache.commons.httpclient.Cookie;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import java.io.InputStream;
import java.io.IOException;
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
Object[] r = getRow();
if (r == null) {
setOutputDone();
return false;
}
String host=get(Fields.In, "hostname").getString(r);// e.g."wiki.his.de";
String cookieName=get(Fields.In, "cookie_name").getString(r); //"wikidb_session";
String cookieValue=get(Fields.In, "cookie_value").getString(r);//"dr1brbd7saa7jismgsk2a3cf80"; //getParameter("cookie");
String title= "Datei:"+get(Fields.In, "link_target").getString(r);
String strURL="https://"+host+"/mediawiki/api.php?action=query&amp;titles="+title+"&amp;prop=imageinfo&amp;iiprop=url&amp;format=xml";
HttpState initialState = null;
initialState = authenticateWithCookie(host, cookieName, cookieValue);
String responseBody ="";
try {
responseBody = getPageContent(strURL, initialState);
} catch (HttpException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());
get(Fields.Out, "imageinfo").setValue(outputRow, responseBody);
putRow(data.outputRowMeta, outputRow);
return true;
}
public static HttpState authenticateWithCookie(String host, String cookieName, String cookieValue) {
HttpState initialState = new HttpState();
if(cookieName != null){
Cookie mycookie = new Cookie(host, cookieName, cookieValue, "/", null, false);
initialState.addCookie(mycookie);
}
return initialState;
}
public static String getPageContent(String strURL, HttpState initialState) throws IOException, HttpException {
int c;
String responseBodyString="";
HttpClient httpclient = new HttpClient();
httpclient.getHttpConnectionManager().
getParams().setConnectionTimeout(30000);
httpclient.setState(initialState);
httpclient.getParams().setCookiePolicy(CookiePolicy.RFC_2109);
GetMethod httpget = new GetMethod(strURL);
httpget.addRequestHeader("Content-Type","text/xml; charset=UTF-8");
// Execute HTTP GETDownloadImage
//der Inhalt steht in textarea id=wpTextbox1
int result = httpclient.executeMethod(httpget);
//System.out.println("Response status code: " + result);
InputStream responseBody = null;
//responseBody = httpget.getResponseBodyAsStream(); //getResponseBodyAsString();
responseBodyString=httpget.getResponseBodyAsString();
/*while ((c = responseBody.read()) != -1) {
responseBodyString+= (char) c;
}*/
httpget.releaseConnection();
return responseBodyString;
}</class_source>
</definition>
</definitions>
<fields/>
<clear_result_fields>N</clear_result_fields>
<info_steps/>
<target_steps/>
<usage_parameters/>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>208</xloc>
<yloc>224</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getFileLinks</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.id,S.document_id, L.link_target,W.hostname,W.cookie_name, W.cookie_value, today() as last_input,''::TEXT as imageinfo,substring('${Internal.Transformation.Filename.Directory}/tmp/files_${document_id}' from 8 for 200) as link_target_path
from kb_document_source S, kb_document_source_link L, kb_webconnection W
where S.id=L.kb_document_source_id
and W.id=S.webconnection_id
and L.link_type in ('image','datei')
and S.document_id=${document_id}
--limit 3
;
</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>128</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getImagePath</name>
<type>XSLT</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<xslfilename>${Internal.Transformation.Filename.Directory}/mediawikiapi_imageinfo2text.xsl</xslfilename>
<fieldname>imageinfo</fieldname>
<resultfieldname>image_url</resultfieldname>
<xslfilefield/>
<xslfilefielduse>N</xslfilefielduse>
<xslfieldisafile>N</xslfieldisafile>
<xslfactory>JAXP</xslfactory>
<parameters/>
<outputproperties>
<outputproperty>
<name>method</name>
<value>text</value>
</outputproperty>
</outputproperties>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>240</xloc>
<yloc>320</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>valid url</name>
<type>FilterRows</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<send_true_to>DownloadImage</send_true_to>
<send_false_to>Abort</send_false_to>
<compare>
<condition>
<negated>N</negated>
<conditions>
<condition>
<negated>N</negated>
<leftvalue>image_url</leftvalue>
<function>IS NOT NULL</function>
<rightvalue/>
<value>
<name>constant</name>
<type>String</type>
<text>""</text>
<length>-1</length>
<precision>-1</precision>
<isnull>N</isnull>
<mask/>
</value>
</condition>
<condition>
<negated>N</negated>
<operator>AND</operator>
<leftvalue>image_url</leftvalue>
<function>&lt;&gt;</function>
<rightvalue/>
<value>
<name>constant</name>
<type>String</type>
<text>""</text>
<length>-1</length>
<precision>-1</precision>
<isnull>N</isnull>
<mask/>
</value>
</condition>
</conditions>
</condition>
</compare>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>400</xloc>
<yloc>304</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Abort</name>
<type>Abort</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<row_threshold>0</row_threshold>
<message>Image URL invalid</message>
<always_log_rows>Y</always_log_rows>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>576</xloc>
<yloc>352</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

566
src-modules/module/kb/etl/wiki2html/kb_document_source_header_fuellen.ktr

@ -0,0 +1,566 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>kb_document_source_header_fuellen</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>209</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2017/12/29 18:28:05.007</created_date>
<modified_user>-</modified_user>
<modified_date>2017/12/29 18:28:05.007</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getHeadersStr</from>
<to>createHeaderRows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>createHeaderRows</from>
<to>kb_document_source_header_fuellen</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>createHeaderRows</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>src_headers</splitfield>
<delimiter>^</delimiter>
<newfield>src_header</newfield>
<rownum>Y</rownum>
<rownum_field>sortnr</rownum_field>
<resetrownumber>Y</resetrownumber>
<delimiter_is_regex>N</delimiter_is_regex>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>96</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getHeadersStr</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.id,S.document_id, S.src_headers, S.src_header_levels
from kb_document_source S
where S.document_id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>48</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>kb_document_source_header_fuellen</name>
<type>TableOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<schema/>
<table>kb_document_source_header</table>
<commit>1000</commit>
<truncate>N</truncate>
<ignore_errors>N</ignore_errors>
<use_batch>N</use_batch>
<specify_fields>Y</specify_fields>
<partitioning_enabled>N</partitioning_enabled>
<partitioning_field/>
<partitioning_daily>N</partitioning_daily>
<partitioning_monthly>Y</partitioning_monthly>
<tablename_in_field>N</tablename_in_field>
<tablename_field/>
<tablename_in_table>Y</tablename_in_table>
<return_keys>N</return_keys>
<return_field/>
<fields>
<field>
<column_name>kb_document_source_id</column_name>
<stream_name>id</stream_name>
</field>
<field>
<column_name>src_header</column_name>
<stream_name>src_header</stream_name>
</field>
<field>
<column_name>sortnr</column_name>
<stream_name>sortnr</stream_name>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>240</xloc>
<yloc>224</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

618
src-modules/module/kb/etl/wiki2html/kb_document_source_header_level_setzen.ktr

@ -0,0 +1,618 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>kb_document_source_header_level_setzen</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>209</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2017/12/29 18:28:05.007</created_date>
<modified_user>-</modified_user>
<modified_date>2017/12/29 18:28:05.007</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getHeadersStr</from>
<to>createHeaderRows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>createHeaderRows</from>
<to>level2integer</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>level2integer</from>
<to>kb_document_source_header_fuellen</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>getHeadersStr</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.id,S.document_id, S.src_headers, S.src_header_levels
from kb_document_source S
where S.document_id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>48</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>createHeaderRows</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>src_header_levels</splitfield>
<delimiter>^</delimiter>
<newfield>src_header_level</newfield>
<rownum>Y</rownum>
<rownum_field>sortnr</rownum_field>
<resetrownumber>Y</resetrownumber>
<delimiter_is_regex>N</delimiter_is_regex>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>96</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>kb_document_source_header_fuellen</name>
<type>InsertUpdate</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<commit>100</commit>
<update_bypassed>N</update_bypassed>
<lookup>
<schema/>
<table>kb_document_source_header</table>
<key>
<name>id</name>
<field>kb_document_source_id</field>
<condition>=</condition>
<name2/>
</key>
<key>
<name>sortnr</name>
<field>sortnr</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>src_header_level</name>
<rename>src_header_level</rename>
<update>Y</update>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>384</xloc>
<yloc>192</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>level2integer</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>src_header_level</name>
<rename/>
</field>
<field>
<name>id</name>
<rename/>
</field>
<field>
<name>sortnr</name>
<rename/>
</field>
<select_unspecified>N</select_unspecified>
<meta>
<name>src_header_level</name>
<rename>src_header_level</rename>
<type>Integer</type>
<length>-2</length>
<precision>-2</precision>
<conversion_mask/>
<date_format_lenient>false</date_format_lenient>
<date_format_locale/>
<date_format_timezone/>
<lenient_string_to_number>true</lenient_string_to_number>
<encoding/>
<decimal_symbol/>
<grouping_symbol/>
<currency_symbol/>
<storage_type/>
</meta>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>208</xloc>
<yloc>224</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

774
src-modules/module/kb/etl/wiki2html/kb_document_source_link_fuellen.ktr

@ -0,0 +1,774 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>kb_document_source_link_fuellen</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>251</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2017/12/29 18:28:05.007</created_date>
<modified_user>-</modified_user>
<modified_date>2017/12/29 18:28:05.007</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getLinksStr</from>
<to>createLinkRows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Sort rows</from>
<to>Unique rows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>createLinkRows</from>
<to>getLinkTypeandChapter</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getLinkTypeandChapter</from>
<to>Sort rows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Unique rows</from>
<to>harmonize_linkTypes</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>harmonize_linkTypes</from>
<to>kb_document_source_link_fuellen</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Sort rows</name>
<type>SortRows</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<directory>%%java.io.tmpdir%%</directory>
<prefix>out</prefix>
<sort_size>1000000</sort_size>
<free_memory/>
<compress>N</compress>
<compress_variable/>
<unique_rows>N</unique_rows>
<fields>
<field>
<name>a_href</name>
<ascending>Y</ascending>
<case_sensitive>Y</case_sensitive>
<collator_enabled>N</collator_enabled>
<collator_strength>0</collator_strength>
<presorted>N</presorted>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>272</xloc>
<yloc>208</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Unique rows</name>
<type>Unique</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<count_rows>N</count_rows>
<count_field/>
<reject_duplicate_row>N</reject_duplicate_row>
<error_description/>
<fields>
<field>
<name>link_target</name>
<case_insensitive>N</case_insensitive>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>400</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>createLinkRows</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>internal_hyperlinks</splitfield>
<delimiter>^</delimiter>
<newfield>link_target</newfield>
<rownum>N</rownum>
<rownum_field>sortnr</rownum_field>
<resetrownumber>Y</resetrownumber>
<delimiter_is_regex>N</delimiter_is_regex>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>96</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getLinkTypeandChapter</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
var a_prefix="";
var a_href="";
var a_chapter="";
if(link_target.indexOf(":") &gt;0)
{
a_prefix=link_target.substr(0,link_target.indexOf(":"));
a_href=link_target.substr(link_target.indexOf(":")+1).trim();
}
else
{
a_prefix="link";
a_href=link_target.substr(1).trim();
}
if(a_href.indexOf("#") &gt;0)
{
a_chapter=a_href.substr(a_href.indexOf("#")+1).trim();
a_href=a_href.substr(0,a_href.indexOf("#")).trim();
}
if(a_href.indexOf("&lt;") &gt;0)
{
a_href=a_href.substr(0,a_href.indexOf("&lt;")).trim();
}</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>a_href</name>
<rename>a_href</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>a_prefix</name>
<rename>a_prefix</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>a_chapter</name>
<rename>a_chapter</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>176</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getLinksStr</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.id,S.document_id, S.internal_hyperlinks
from kb_document_source S
where S.document_id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>48</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>harmonize_linkTypes</name>
<type>ValueMapper</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<field_to_use>a_prefix</field_to_use>
<target_field/>
<non_match_default/>
<fields>
<field>
<source_value>bild</source_value>
<target_value>image</target_value>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>528</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>kb_document_source_link_fuellen</name>
<type>TableOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<schema/>
<table>kb_document_source_link</table>
<commit>1000</commit>
<truncate>N</truncate>
<ignore_errors>N</ignore_errors>
<use_batch>N</use_batch>
<specify_fields>Y</specify_fields>
<partitioning_enabled>N</partitioning_enabled>
<partitioning_field/>
<partitioning_daily>N</partitioning_daily>
<partitioning_monthly>Y</partitioning_monthly>
<tablename_in_field>N</tablename_in_field>
<tablename_field/>
<tablename_in_table>Y</tablename_in_table>
<return_keys>N</return_keys>
<return_field/>
<fields>
<field>
<column_name>kb_document_source_id</column_name>
<stream_name>id</stream_name>
</field>
<field>
<column_name>link_target</column_name>
<stream_name>a_href</stream_name>
</field>
<field>
<column_name>link_chapter</column_name>
<stream_name>a_chapter</stream_name>
</field>
<field>
<column_name>link_type</column_name>
<stream_name>a_prefix</stream_name>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>656</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

714
src-modules/module/kb/etl/wiki2html/kb_document_source_template_fuellen.ktr

@ -0,0 +1,714 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>kb_document_source_template_fuellen</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>209</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2017/12/29 18:28:05.007</created_date>
<modified_user>-</modified_user>
<modified_date>2017/12/29 18:28:05.007</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>Sort rows</from>
<to>Unique rows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Unique rows</from>
<to>kb_document_source_template_fuellen</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getTemplateStr</from>
<to>createRows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>createRows</from>
<to>getTemplateName</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getTemplateName</from>
<to>Sort rows</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Sort rows</name>
<type>SortRows</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<directory>%%java.io.tmpdir%%</directory>
<prefix>out</prefix>
<sort_size>1000000</sort_size>
<free_memory/>
<compress>N</compress>
<compress_variable/>
<unique_rows>N</unique_rows>
<fields>
<field>
<name>templateName</name>
<ascending>Y</ascending>
<case_sensitive>Y</case_sensitive>
<collator_enabled>N</collator_enabled>
<collator_strength>0</collator_strength>
<presorted>N</presorted>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>224</xloc>
<yloc>192</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Unique rows</name>
<type>Unique</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<count_rows>N</count_rows>
<count_field/>
<reject_duplicate_row>N</reject_duplicate_row>
<error_description/>
<fields>
<field>
<name>templateName</name>
<case_insensitive>N</case_insensitive>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>320</xloc>
<yloc>192</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>createRows</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>template_options</splitfield>
<delimiter>^</delimiter>
<newfield>template_option</newfield>
<rownum>N</rownum>
<rownum_field>sortnr</rownum_field>
<resetrownumber>N</resetrownumber>
<delimiter_is_regex>N</delimiter_is_regex>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>160</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getTemplateName</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
var templateName="";
var templateParams="";
var nameDelim=-1;
nameDelim=template_option.indexOf(":");
if(nameDelim&gt;-1)
{
templateName=template_option.substring(0,nameDelim);
templateParams=template_option.substr(nameDelim+1);
}
else
templateName=template_option;
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>templateName</name>
<rename>templateName</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>templateParams</name>
<rename>templateParams</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>144</xloc>
<yloc>224</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getTemplateStr</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.id,S.document_id, S.template_options
from kb_document_source S
where S.document_id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>48</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>kb_document_source_template_fuellen</name>
<type>TableOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<schema/>
<table>kb_document_source_template</table>
<commit>1000</commit>
<truncate>N</truncate>
<ignore_errors>N</ignore_errors>
<use_batch>N</use_batch>
<specify_fields>Y</specify_fields>
<partitioning_enabled>N</partitioning_enabled>
<partitioning_field/>
<partitioning_daily>N</partitioning_daily>
<partitioning_monthly>Y</partitioning_monthly>
<tablename_in_field>N</tablename_in_field>
<tablename_field/>
<tablename_in_table>Y</tablename_in_table>
<return_keys>N</return_keys>
<return_field/>
<fields>
<field>
<column_name>kb_document_source_id</column_name>
<stream_name>id</stream_name>
</field>
<field>
<column_name>template_name</column_name>
<stream_name>templateName</stream_name>
</field>
<field>
<column_name>template_params</column_name>
<stream_name>templateParams</stream_name>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>512</xloc>
<yloc>192</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

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

@ -0,0 +1,723 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>load_mediawiki</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>76</default_value>
<description/>
</parameter>
<parameter>
<name>src_title</name>
<default_value>Moduldokumentation_Qualitätssicherung</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2017/08/22 11:23:11.075</created_date>
<modified_user>-</modified_user>
<modified_date>2017/08/22 11:23:11.075</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>wiki2html</from>
<to>Update src_xml</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>saveSrc</from>
<to>Block this step until steps finish</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Block this step until steps finish</from>
<to>wiki2html</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getSrcText</from>
<to>saveSrc</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Block this step until steps finish</name>
<type>BlockUntilStepsFinish</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<steps>
<step>
<name>saveSrc</name>
<CopyNr>0</CopyNr>
</step>
</steps>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>384</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Update src_xml</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<skip_lookup>N</skip_lookup>
<commit>100</commit>
<use_batch>N</use_batch>
<error_ignored>N</error_ignored>
<ignore_flag_field/>
<lookup>
<schema/>
<table>kb_document_source</table>
<key>
<name>document_id</name>
<field>document_id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>src_xml</name>
<rename>contentHtml</rename>
</value>
<value>
<name>last_input</name>
<rename>last_input</rename>
</value>
<value>
<name>src_headers</name>
<rename>headersStr</rename>
</value>
<value>
<name>src_header_levels</name>
<rename>headersLevelsStr</rename>
</value>
<value>
<name>internal_hyperlinks</name>
<rename>internalHyperlinksStr</rename>
</value>
<value>
<name>template_options</name>
<rename>templateOptionsStr</rename>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>560</xloc>
<yloc>144</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getSrcText</name>
<type>TableInput</type>
<description/>
<distribute>N</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<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>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>48</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>saveSrc</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<skip_lookup>N</skip_lookup>
<commit>100</commit>
<use_batch>N</use_batch>
<error_ignored>N</error_ignored>
<ignore_flag_field/>
<lookup>
<schema/>
<table>kb_document_source</table>
<key>
<name>document_id</name>
<field>document_id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>src_text</name>
<rename>result_text</rename>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>176</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>wiki2html</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
// assuming, that the ua-parser.js is in the transformation directory:
var transformationPath = getVariable("Internal.Transformation.Filename.Directory", "");
var jsScriptPath = transformationPath + "/mwtools.js";
LoadScriptFile(jsScriptPath);
//alert("klappt");
var newWikiModel = new wikiModel(result_text);
//var contentHtml=mw2xhtml(result_text);
var contentHtml=newWikiModel.wikiHtml;
var headersStr=newWikiModel.headersStr;
var headersLevelsStr=newWikiModel.headersLevelsStr;
var internalHyperlinksStr=newWikiModel.internalHyperlinksStr;
var templateOptionsStr=newWikiModel.templateOptionsStr;
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>contentHtml</name>
<rename>contentHtml</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>headersStr</name>
<rename>headersStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>headersLevelsStr</name>
<rename>headersLevelsStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>internalHyperlinksStr</name>
<rename>internalHyperlinksStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>templateOptionsStr</name>
<rename>templateOptionsStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>528</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

16
src-modules/module/kb/etl/wiki2html/mediawikiapi_imageinfo2text.xsl

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xml:output method="text" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="/api/query/pages/page">
<xsl:value-of disable-output-escaping="yes" select="imageinfo/ii/@url" />
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

16
src-modules/module/kb/etl/wiki2html/mediawikiapi_page2text.xsl

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xml:output method="text" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="/api/query/pages/page">
<xsl:value-of disable-output-escaping="yes" select="revisions/rev" />
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

1932
src-modules/module/kb/etl/wiki2html/mwtools.js

File diff suppressed because it is too large Load Diff

551
src-modules/module/kb/etl/wiki2html/readChapters.kjb

@ -0,0 +1,551 @@
<?xml version="1.0" encoding="UTF-8"?><job>
<name>readChapters</name>
<description/>
<extended_description/>
<job_version/>
<job_status>0</job_status>
<directory>/</directory>
<created_user>-</created_user>
<created_date>2018/01/03 17:32:29.101</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/03 17:32:29.101</modified_date>
<parameters>
<parameter>
<name>document_id</name>
<default_value>243</default_value>
<description/>
</parameter>
</parameters>
<slaveservers/>
<job-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_JOB</id>
<enabled>Y</enabled>
<name>ID_JOB</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>JOBNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>START_JOB_ENTRY</id>
<enabled>N</enabled>
<name>START_JOB_ENTRY</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</job-log-table>
<jobentry-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>JOBENTRYNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>RESULT</id>
<enabled>Y</enabled>
<name>RESULT</name>
</field>
<field>
<id>NR_RESULT_ROWS</id>
<enabled>Y</enabled>
<name>NR_RESULT_ROWS</name>
</field>
<field>
<id>NR_RESULT_FILES</id>
<enabled>Y</enabled>
<name>NR_RESULT_FILES</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>COPY_NR</id>
<enabled>N</enabled>
<name>COPY_NR</name>
</field>
</jobentry-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<pass_batchid>N</pass_batchid>
<shared_objects_file/>
<entries>
<entry>
<name>START</name>
<description/>
<type>SPECIAL</type>
<start>Y</start>
<dummy>N</dummy>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<intervalSeconds>0</intervalSeconds>
<intervalMinutes>60</intervalMinutes>
<hour>12</hour>
<minutes>0</minutes>
<weekDay>1</weekDay>
<DayOfMonth>1</DayOfMonth>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>80</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>purge_kb_chapter</name>
<description/>
<type>SQL</type>
<sql>delete from kb_chapter
where document_id=${document_id};</sql>
<useVariableSubstitution>T</useVariableSubstitution>
<sqlfromfile>F</sqlfromfile>
<sqlfilename/>
<sendOneStatement>F</sendOneStatement>
<connection>eduetl</connection>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>208</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>readChapters</name>
<description/>
<type>TRANS</type>
<specification_method>filename</specification_method>
<trans_object_id/>
<filename>${Internal.Job.Filename.Directory}/readChapters.ktr</filename>
<transname/>
<arg_from_previous>N</arg_from_previous>
<params_from_previous>N</params_from_previous>
<exec_per_row>N</exec_per_row>
<clear_rows>N</clear_rows>
<clear_files>N</clear_files>
<set_logfile>N</set_logfile>
<logfile/>
<logext/>
<add_date>N</add_date>
<add_time>N</add_time>
<loglevel>Basic</loglevel>
<cluster>N</cluster>
<slave_server_name/>
<set_append_logfile>N</set_append_logfile>
<wait_until_finished>Y</wait_until_finished>
<follow_abort_remote>N</follow_abort_remote>
<create_parent_folder>N</create_parent_folder>
<logging_remote_work>N</logging_remote_work>
<parameters>
<pass_all_parameters>Y</pass_all_parameters>
</parameters>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>368</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>setChapterMetaData</name>
<description/>
<type>SQL</type>
<sql>update kb_chapter set sortnr=sortnr -1;
update kb_chapter set defaulttext=(select D.defaulttext from kb_document D
where D.id=${document_id})
where document_id=${document_id}
and ( defaulttext is null or defaulttext='')
and sortnr=0;
--get parent:
update kb_chapter set chapter_parent=(select max(C.sortnr)
from kb_chapter C
where C.document_id=${document_id}
and C.chapter_level &lt; kb_chapter.chapter_level
and C.sortnr &lt; kb_chapter.sortnr)
where document_id=${document_id}
and chapter_parent is null
and sortnr&gt;0;
update kb_chapter set chapter_parent=-1
where chapter_parent is null;
--get next:
update kb_chapter set chapter_next=(select min(C.sortnr)
from kb_chapter C
where C.document_id=${document_id}
and C.sortnr &gt; kb_chapter.sortnr)
where chapter_next is null
and document_id=${document_id}
;
--last Element points next to first one:
update kb_chapter set chapter_next=(select min(C.sortnr)
from kb_chapter C
where C.document_id=${document_id}
)
where chapter_next is null
and document_id=${document_id}
;
--get prev:
update kb_chapter set chapter_previous=(select max(C.sortnr)
from kb_chapter C
where C.document_id=${document_id}
and C.sortnr &lt; kb_chapter.sortnr)
where chapter_previous is null
and document_id=${document_id}
;
--first Element points previous to last one:
update kb_chapter set chapter_previous=(select max(C.sortnr)
from kb_chapter C
where C.document_id=${document_id}
)
where chapter_previous is null
and document_id=${document_id}
;</sql>
<useVariableSubstitution>T</useVariableSubstitution>
<sqlfromfile>F</sqlfromfile>
<sqlfilename/>
<sendOneStatement>F</sendOneStatement>
<connection>eduetl</connection>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>480</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>setFilenames</name>
<description/>
<type>TRANS</type>
<specification_method>filename</specification_method>
<trans_object_id/>
<filename>${Internal.Job.Filename.Directory}/setFilenames.ktr</filename>
<transname/>
<arg_from_previous>N</arg_from_previous>
<params_from_previous>N</params_from_previous>
<exec_per_row>N</exec_per_row>
<clear_rows>N</clear_rows>
<clear_files>N</clear_files>
<set_logfile>N</set_logfile>
<logfile/>
<logext/>
<add_date>N</add_date>
<add_time>N</add_time>
<loglevel>Basic</loglevel>
<cluster>N</cluster>
<slave_server_name/>
<set_append_logfile>N</set_append_logfile>
<wait_until_finished>Y</wait_until_finished>
<follow_abort_remote>N</follow_abort_remote>
<create_parent_folder>N</create_parent_folder>
<logging_remote_work>N</logging_remote_work>
<parameters>
<pass_all_parameters>Y</pass_all_parameters>
<parameter>
<name>document_id</name>
<stream_name/>
<value/>
</parameter>
</parameters>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>624</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>setUniqueFilenames</name>
<description/>
<type>SQL</type>
<sql>create temp table tmp_filename(id integer, filename varchar(255));
insert into tmp_filename (filename) select chapter_filename from kb_chapter C
where C.document_id=${document_id}
group by 1
having count(*) &gt;1;
update tmp_filename set id=(select min(sortnr) from kb_chapter C
where C.document_id=${document_id}
and C.chapter_filename=tmp_filename.filename);
update kb_chapter set chapter_filename =chapter_filename || sortnr
where document_id=${document_id}
and chapter_filename in (select distinct filename from tmp_filename)
and sortnr !=(select id from tmp_filename T where T.filename= kb_chapter.chapter_filename);
drop table tmp_filename;</sql>
<useVariableSubstitution>T</useVariableSubstitution>
<sqlfromfile>F</sqlfromfile>
<sqlfilename/>
<sendOneStatement>F</sendOneStatement>
<connection>eduetl</connection>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>784</xloc>
<yloc>96</yloc>
</entry>
</entries>
<hops>
<hop>
<from>START</from>
<to>purge_kb_chapter</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>Y</unconditional>
</hop>
<hop>
<from>purge_kb_chapter</from>
<to>readChapters</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>readChapters</from>
<to>setChapterMetaData</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>setChapterMetaData</from>
<to>setFilenames</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>setFilenames</from>
<to>setUniqueFilenames</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
</hops>
<notepads/>
</job>

798
src-modules/module/kb/etl/wiki2html/readChapters.ktr

@ -0,0 +1,798 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>readChapters</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>46</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/01/03 13:48:42.888</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/03 13:48:42.888</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getSrcXhtml</from>
<to>getContentDelim</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getContentDelim</from>
<to>SplitChapters</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>SplitChapters</from>
<to>removeWholeContent</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>removeWholeContent</from>
<to>readChapters</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>readChapters</from>
<to>kb_chapter_fuellen</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>SplitChapters</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>content_delim</splitfield>
<delimiter>§#^</delimiter>
<newfield>chapter</newfield>
<rownum>Y</rownum>
<rownum_field>chapter_nr</rownum_field>
<resetrownumber>Y</resetrownumber>
<delimiter_is_regex>N</delimiter_is_regex>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>448</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getContentDelim</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
var lines = content_xhtml.split(/\n/);
var rownr = lines.length;
var startTag="";
var ret="";
for(var i=0;i&lt;rownr;i++)
{
startTag=lines[i].substr(0,2);
if(startTag=="&lt;h")
{
ret += "§#^" +lines[i]+"\n";
}
else
ret +=lines[i]+"\n";
}
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>ret</name>
<rename>content_delim</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>272</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getSrcXhtml</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select id as document_id, defaulttext ,content_xhtml from kb_document where id =${document_id};</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>kb_chapter_fuellen</name>
<type>TableOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<schema/>
<table>kb_chapter</table>
<commit>1000</commit>
<truncate>N</truncate>
<ignore_errors>N</ignore_errors>
<use_batch>Y</use_batch>
<specify_fields>Y</specify_fields>
<partitioning_enabled>N</partitioning_enabled>
<partitioning_field/>
<partitioning_daily>N</partitioning_daily>
<partitioning_monthly>Y</partitioning_monthly>
<tablename_in_field>N</tablename_in_field>
<tablename_field/>
<tablename_in_table>Y</tablename_in_table>
<return_keys>N</return_keys>
<return_field/>
<fields>
<field>
<column_name>document_id</column_name>
<stream_name>document_id</stream_name>
</field>
<field>
<column_name>sortnr</column_name>
<stream_name>chapter_nr</stream_name>
</field>
<field>
<column_name>chapter_level</column_name>
<stream_name>chapter_level</stream_name>
</field>
<field>
<column_name>defaulttext</column_name>
<stream_name>chapter_defaulttext</stream_name>
</field>
<field>
<column_name>chapter_bodytext</column_name>
<stream_name>chapter_bodytext</stream_name>
</field>
<field>
<column_name>chapter_bodytextsummary</column_name>
<stream_name>chapter_bodytextsummary</stream_name>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>208</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>readChapters</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
var transformationPath = getVariable("Internal.Transformation.Filename.Directory", "");
var jsScriptPath = transformationPath + "/../xml2html/httools.js";
LoadScriptFile(jsScriptPath);
var chapter_defaulttext="";
var lines = chapter.split(/\n/);
var rownr = lines.length;
var startTag="";
var bodyText="";
var bodyTextSummary="";
var chapter_level=0;
var ret="";
for(var i=0;i&lt;rownr;i++)
{
startTag=lines[i].substr(0,2);
if(startTag=="&lt;h")
{
chapter_level=parseInt(getChapterLevel(lines[i]));
chapter_defaulttext=getChapterName(lines[i],chapter_level);
}
else
{
if(chapter_nr=="1")
chapter_defaulttext= defaulttext;
bodyText +=lines[i]+"\n";
}
}
bodyTextSummary=chapter_defaulttext+"."+ bodyTextStripped(bodyText);
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>chapter_defaulttext</name>
<rename>chapter_defaulttext</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>chapter_level</name>
<rename>chapter_level</rename>
<type>Integer</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>bodyText</name>
<rename>chapter_bodytext</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>bodyTextSummary</name>
<rename>chapter_bodytextsummary</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>736</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>removeWholeContent</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>defaulttext</name>
</field>
<field>
<name>chapter_nr</name>
</field>
<field>
<name>chapter</name>
</field>
<field>
<name>document_id</name>
</field>
<field>
<name>content_delim</name>
</field>
<field>
<name>content_xhtml</name>
</field>
<select_unspecified>N</select_unspecified>
<remove>
<name>content_delim</name>
</remove>
<remove>
<name>content_xhtml</name>
</remove>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>576</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

580
src-modules/module/kb/etl/wiki2html/setFilenames.ktr

@ -0,0 +1,580 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>setFilenames</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>243</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/01/03 21:21:10.720</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/03 21:21:10.720</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getChapters</from>
<to>getFilenames</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getFilenames</from>
<to>setFilenames</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>getChapters</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select C.id,C.defaulttext as chapter_defaulttext,C.sortnr, C.chapter_level,C.chapter_parent, C.chapter_previous, C.chapter_next
from kb_chapter C, kb_document D
where D.id=C.document_id
and D.id=${document_id}
order by sortnr;</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getFilenames</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
var transformationPath = getVariable("Internal.Transformation.Filename.Directory", "");
var jsScriptPath = transformationPath + "/../xml2html/httools.js";
LoadScriptFile(jsScriptPath);
var chapter_filename=validHtmlFileName(chapter_defaulttext);
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>chapter_filename</name>
<rename>chapter_filename</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>setFilenames</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<skip_lookup>N</skip_lookup>
<commit>100</commit>
<use_batch>N</use_batch>
<error_ignored>N</error_ignored>
<ignore_flag_field/>
<lookup>
<schema/>
<table>kb_chapter</table>
<key>
<name>id</name>
<field>id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>chapter_filename</name>
<rename>chapter_filename</rename>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>128</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

517
src-modules/module/kb/etl/wiki2html/set_variables.ktr

@ -0,0 +1,517 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>set_variables</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>76</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>Y</unique_connections>
<feedback_shown>N</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2015/11/11 09:49:00.397</created_date>
<modified_user>-</modified_user>
<modified_date>2015/11/11 09:49:00.397</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>authentication_method</from>
<to>Set Variables</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Set Variables</name>
<type>SetVariable</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<field_name>authentication_method</field_name>
<variable_name>authentication_method</variable_name>
<variable_type>JVM</variable_type>
<default_value>-1</default_value>
</field>
<field>
<field_name>src_title</field_name>
<variable_name>src_title</variable_name>
<variable_type>JVM</variable_type>
<default_value/>
</field>
</fields>
<use_formatting>Y</use_formatting>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>272</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>authentication_method</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select replace(S.src_title,' ','_') as src_title,W.authentication_method
from kb_document_source S, kb_webconnection W
where W.id=S.webconnection_id
and S.document_id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>96</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

188
src-modules/module/kb/etl/wiki2html/topics2body.xsl

@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:param name="pdf_file" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="bodyfile" select="concat($targetpath,'/',fileName,'.htm')"/>
<xsl:variable name="deeplinkpath" select="concat('http://www.superx-projekt.de',substring-after($targetpath,'webapps/superx'))"/>
Generiere <xsl:value-of select="$bodyfile"/> in <xsl:value-of select="$targetpath"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$bodyfile}" format="html"
method="html">
<xsl:variable name="prev">
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@prev" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="next">
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@next" />
</xsl:call-template>
</xsl:variable>
<html>
<head><title><xsl:value-of select="name"/></title>
<META NAME = "author" content = "Daniel Quathamer"></META>
<META NAME = "copyright" content = "{concat('(c) ',format-dateTime(current-dateTime(),'[Y]'),' Daniel Quathamer')}"></META>
<META NAME = "date" content ="{format-dateTime(current-dateTime(),'[D].[M].[Y]')}"></META>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<LINK REL = "Start" href = "main.htm"></LINK>
<LINK REL = "Next" href="{$next}" />
<LINK REL = "Prev" href="{$prev}" />
<LINK REL = "Fokus" href="{$deeplinkpath}"/>
<style type="text/css"><xsl:text>
</xsl:text>
<xsl:value-of select="/Document/style"/>
</style>
<LINK REL="stylesheet" type="text/css" href="superx.css"></LINK>
<base target="_parent" />
</head>
<body>
<!--andre: hier navi-template aufrufen-->
<xsl:variable name="header_tagname">
<xsl:choose>
<xsl:when test="@level=0">
<xsl:text>h1</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('h',@level)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="{$header_tagname}"><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text> </xsl:text></xsl:if>
<xsl:value-of select="name"/></xsl:element>
<xsl:variable name="bodyText">
<xsl:value-of select="body"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$bodyText='#empty#'">
<xsl:variable name="currentId">
<xsl:value-of select="@id"/>
</xsl:variable>
<xsl:for-each select="/Document/chapter[@parent=$currentId]">
<p><xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@id" />
<xsl:with-param name="caption" select="name" />
</xsl:call-template>
</p>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$bodyText"/>
</xsl:otherwise>
</xsl:choose>
<div id="navi" class="navi" style="POSITION: relative;">
<table border = "0" width = "100%"><tr>
<!--prev-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@prev" />
<xsl:with-param name="imgSrc" select="'resultset_previous.svg'" />
<xsl:with-param name="caption" select="'Vorherige'" />
</xsl:call-template>
<!--Hoch-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="0" />
<xsl:with-param name="imgSrc" select="'resultset_up.svg'" />
<xsl:with-param name="caption" select="'Hoch'" />
</xsl:call-template>
<!--Search-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetHref"><xsl:text>javascript:document.location=('search/index.htm');</xsl:text></xsl:with-param>
<xsl:with-param name="imgSrc" select="'resultset_search.svg'" />
<xsl:with-param name="caption" select="'Suche'" />
<xsl:with-param name="target" select="'_self'" />
</xsl:call-template>
<!--next-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@next" />
<xsl:with-param name="imgSrc" select="'resultset_next.svg'" />
<xsl:with-param name="caption" select="'Nächste'" />
</xsl:call-template>
</tr>
</table>
</div>
<xsl:variable name="fokus"><xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@id" />
</xsl:call-template></xsl:variable>
<xsl:call-template name="body_foot" >
<xsl:with-param name="pdf_file" select="$pdf_file" />
<xsl:with-param name="fokus" select="concat('#targetpath#/',$fokus)" />
</xsl:call-template>
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="getFilename">
<xsl:param name="id" />
<xsl:value-of select="concat('f_',/Document/chapter[@id=$id]/fileName,'.htm')"/>
</xsl:template>
<xsl:template name="getName">
<xsl:param name="id" />
<xsl:value-of select="/Document/chapter[@id=$id]/name"/>
</xsl:template>
<xsl:template name="navigationButton">
<xsl:param name="targetChapterId" />
<xsl:param name="imgSrc" />
<xsl:param name="caption" />
<xsl:param name="targetHref" />
<xsl:param name="target" select="'_parent'"/>
<xsl:variable name="targetUrl">
<xsl:choose>
<xsl:when test="$targetHref != ''">
<xsl:value-of select="$targetHref"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="$targetChapterId" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="targetName">
<xsl:choose>
<xsl:when test="string($targetChapterId) != '' ">
<xsl:call-template name="getName">
<xsl:with-param name="id" select="$targetChapterId" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$imgSrc=''">
<a name="{$caption}" href = "{$targetUrl}" target = "{$target}" class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';"><xsl:value-of select="$caption" /></a>
</xsl:when>
<xsl:otherwise>
<td class = "navi"><a name="{$caption}" href = "{$targetUrl}"
target = "{$target}"
class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';">
<IMG src="{$imgSrc}" ALT="{$targetName}" border="0" /></a>
<br />
<a name="{$caption}" href = "{$targetUrl}" target = "{$target}" class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';"><xsl:value-of select="$caption" /></a></td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

54
src-modules/module/kb/etl/wiki2html/topics2frame.xsl

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:param name="homepage" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<!-- each Chapter -->
<xsl:for-each select="/Document/chapter">
<xsl:call-template name="framefileContent">
<xsl:with-param name="framefile" select="concat($targetpath,'/f_',fileName,'.htm')"/>
</xsl:call-template>
</xsl:for-each>
<!--homepage-->
<xsl:for-each select="/Document/chapter [@id='0']">
<xsl:call-template name="framefileContent">
<xsl:with-param name="framefile" select="$homepage"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<xsl:template name="framefileContent">
<xsl:param name="framefile" />
Generiere <xsl:value-of select="$framefile"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$framefile}" format="html"
method="html">
<html>
<head><title><xsl:value-of select="name"/></title>
<META NAME = "author" content = "Daniel Quathamer"></META>
<META NAME = "copyright" content = "(c) 2010 Daniel Quathamer"></META>
<META NAME = "date" content ="10.08.2010 11:13:22"></META>
<LINK REL = "Start" href = "main.htm"></LINK>
<LINK REL = "Next" href = "DasBerichtssystemSup.htm "></LINK>
<LINK REL = "Prev" href = "DasBerichtssystemSup.htm "></LINK>
<LINK REL="stylesheet" type="text/css" href="superx.css"></LINK>
</head>
<frameset rows="30,*" framespacing="0" border="0">
<frame src="{concat('TOP0_',@id,'.htm')}" name = "{concat('TOP',@id)}" scrolling="no" frameborder="0" noresize="1">
<frameset cols = "250,*" >
<frame src="{concat('TOC0_',@id,'.htm')}" name = "{concat('TOC',@id)}" />
<frame src="{concat(fileName,'.htm')}" name = "TOC1" />
</frameset>
</frame>
</frameset>
<noframes>Diese Seiten wurden fuer Frame-faehige Browser entwickelt; bitte klicken Sie folgende Datei an: <a href="{concat(fileName,'.htm')}"><xsl:value-of select="name" /></a>
</noframes>
</html>
</xsl:result-document>
</xsl:template>
</xsl:stylesheet>

310
src-modules/module/kb/etl/wiki2html/topics2toc.xsl

@ -0,0 +1,310 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="tocfile" select="concat($targetpath,'/TOC0_',@id,'.htm')"/>
Generiere <xsl:value-of select="$tocfile"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$tocfile}" format="html"
method="html">
<html>
<head>
<LINK REL="stylesheet" type="text/css" href="toc.css"></LINK>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<xsl:call-template name="toc_head" />
<xsl:call-template name="createToc" >
<xsl:with-param name="currentFocus" select="@id" />
</xsl:call-template>
<xsl:call-template name="toc_foot" />
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="createToc">
<xsl:param name="currentFocus" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="p_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>Fokus</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>listlevel</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="a_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>fokus</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="isVisible">
<xsl:call-template name="isVisibleTocEntry">
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="targetChapter" select="@id"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($isVisible,'true')">
<p><xsl:attribute name="class"><xsl:value-of select="$p_class" /><xsl:value-of select="@level" /></xsl:attribute>
<a target="_parent" class="{$a_class}">
<xsl:attribute name="href"><xsl:value-of select="concat('f_',fileName,'.htm')" /></xsl:attribute><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text>&#160;</xsl:text></xsl:if><xsl:value-of select="shortName"/>
<!--zum debuggen: <xsl:value-of select="$isVisible" />-->
</a> </p>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="isVisibleTocEntry">
<xsl:param name="currentFocus" />
<xsl:param name="targetChapter" />
<xsl:choose>
<xsl:when test="$currentFocus=$targetChapter">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<!--die Zielknoten auf Ebene 1 kommen immer rein-->
<xsl:variable name="levelofTargetChapter">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<!--die Zielknoten liegen direkt unter dem Fokus?-->
<xsl:variable name="parentofTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentofTargetChapter=$currentFocus or $levelofTargetChapter='1'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<!--der targetChapter ist ein parent von currentFocus?-->
<xsl:call-template name="getParentOfCurrentFocus">
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="numberOfCalls" select="0"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getParentOfCurrentFocus">
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:param name="numberOfCalls" />
<xsl:variable name="parentOfCurrentFocus">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="parentOfTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<!--entweder das Zielkapitel ist direkt übergeordnet, oder
der parent des akt. Fokus ist identisch mit dem parent des Zielkapitels-->
<xsl:when test="$parentOfCurrentFocus=$targetChapter or ($parentOfCurrentFocus=$parentOfTargetChapter and $numberOfCalls &lt; 2)">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:when test="$parentOfCurrentFocus=-1">
<xsl:text>false</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getParentOfCurrentFocus">
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parentOfCurrentFocus"/>
<xsl:with-param name="numberOfCalls" select="$numberOfCalls+1"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getLevel">
<xsl:param name="targetChapter" />
<xsl:value-of select="/Document/chapter [@id=$targetChapter]/@level"/>
</xsl:template>
<xsl:template name="getParent">
<xsl:param name="targetChapter" />
<xsl:value-of select="/Document/chapter [@id=$targetChapter]/@parent"/>
</xsl:template>
<!--klappt noch nicht:
<xsl:template name="computeDistance">
<xsl:param name="currentFocus" />
<xsl:param name="targetChapter" />
<xsl:choose>
<xsl:when test="$currentFocus=$targetChapter">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="levelFrom">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="levelTo">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$levelFrom &gt; $levelTo">
<xsl:text>goUp: </xsl:text>
<xsl:call-template name="stepUpCurrentFocus">
<xsl:with-param name="counter" select="1" />
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$currentFocus" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:text>goDown</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="stepUpCurrentFocus">
<xsl:param name="counter"/>
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:variable name="parentOfCurrentFocus">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentOfCurrentFocus=$targetChapter or $parentOfCurrentFocus='-1'">
<xsl:value-of select="concat(' currFocus ',$parentOfCurrentFocus,'_',$counter)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="levelFrom">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$parentOfCurrentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="levelTo">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$levelTo &gt; $levelFrom ">
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpTargetChapter">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$currentFocus" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$parentOfCurrentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpCurrentFocus">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="stepUpTargetChapter">
<xsl:param name="counter"/>
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:variable name="parentOfTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentOfTargetChapter=$currentFocus or $parentOfTargetChapter='-1'">
<xsl:value-of select="concat(' TargetChapter ',$currentFocus,'_',$counter)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="levelFrom">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$parentOfTargetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="levelTo">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$levelTo &gt; $levelFrom ">
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpTargetChapter">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$currentFocus" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$parentOfTargetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpCurrentFocus">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>-->
</xsl:stylesheet>

64
src-modules/module/kb/etl/wiki2html/topics2top.xsl

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" select="'/home/superx/tmp/tt'"/>
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="topfile" select="concat($targetpath,'/TOP0_',@id,'.htm')"/>
Generiere <xsl:value-of select="$topfile"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$topfile}" format="html"
method="html">
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8" />
<title><xsl:value-of select="name"/></title>
<link rel="stylesheet" href="shared.css" media="screen" />
<link rel="stylesheet" href="main.css" media="screen" />
<link rel="stylesheet" href="BreadCrumbs.css" />
</head>
<body class="mediawiki ltr capitalize-all-nouns ns-0 ns-subject page-SuperX_BW_Leitfaden_Inhalt_Lehre_Studium skin-modern">
<!-- heading -->
<div id="mw_header"><h1 id="firstHeading"><xsl:value-of select="name"/></h1></div>
<div id="mw_main">
<div id="mw_contentwrapper">
<!-- navigation portlet -->
<div id="p-cactions" class="portlet">
<h5>Ansichten</h5>
<div class="pBody">
<ul>
<li><p>.</p></li>
<li><p>.</p></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

486
src-modules/module/kb/etl/wiki2html/transform_document_link.ktr

@ -0,0 +1,486 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>transform_document_link</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>link_target</name>
<default_value/>
<description/>
</parameter>
<parameter>
<name>linked_document_title_2</name>
<default_value/>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/01/02 18:28:17.625</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/02 18:28:17.625</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order/>
<step>
<name>Execute SQL script</name>
<type>ExecSQL</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<execute_each_row>N</execute_each_row>
<single_statement>N</single_statement>
<replace_variables>Y</replace_variables>
<quoteString>N</quoteString>
<sql>update kb_document set content_xhtml=replace(content_xhtml,'"${link_target}"','"${linked_document_title_2}"')
where 1=1;
update kb_document set content_xhtml=replace(content_xhtml,'&lt;href&gt;${link_target}&lt;/href&gt;','&lt;href&gt;${linked_document_title_2}&lt;/href&gt;')
where 1=1;
update kb_document set content_xhtml=replace(content_xhtml,'&lt;paramName&gt;link&lt;/paramName&gt;&lt;paramValue&gt;${link_target}&lt;/paramValue&gt;','&lt;paramName&gt;link&lt;/paramName&gt;&lt;paramValue&gt;${linked_document_title_2}&lt;/paramValue&gt;')
where 1=1;</sql>
<set_params>N</set_params>
<insert_field/>
<update_field/>
<delete_field/>
<read_field/>
<arguments/>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>160</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

878
src-modules/module/kb/etl/wiki2html/transform_document_links.ktr

@ -0,0 +1,878 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>transform_document_links</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>183</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/01/02 17:58:53.411</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/02 17:58:53.411</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getInternalLinks</from>
<to>getlinkedDocumentID</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getlinkedDocumentID</from>
<to>getLinkedDocumentTitle</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>linksChangedFlag</from>
<to>PrepareReplace</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getLinkedDocumentTitle</from>
<to>getOutputProjectId</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getOutputProjectId</from>
<to>getOutputProjectPath</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getOutputProjectPath</from>
<to>getOutputProjectChapterFilename</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getOutputProjectChapterFilename</from>
<to>linksChangedFlag</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>PrepareReplace</name>
<type>RowsToResult</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>1024</xloc>
<yloc>128</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getInternalLinks</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.id,S.document_id,S.src_title as document_source_title, L.link_target,replace(L.link_chapter,'_',' ') as link_chapter,S.src_url
from kb_document D, kb_document_source S, kb_document_source_link L, kb_webconnection W
where D.id=S.document_id
and S.id=L.kb_document_source_id
and W.id=S.webconnection_id
and L.link_type in ('link')
and S.document_id=${document_id};
</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>197</xloc>
<yloc>93</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getLinkedDocumentTitle</name>
<type>DBLookup</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<cache>N</cache>
<cache_load_all>N</cache_load_all>
<cache_size>0</cache_size>
<lookup>
<schema/>
<table>kb_document</table>
<orderby/>
<fail_on_multiple>N</fail_on_multiple>
<eat_row_on_failure>N</eat_row_on_failure>
<key>
<name>linked_document_id</name>
<field>id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>defaulttext</name>
<rename>linked_document_title</rename>
<default/>
<type>String</type>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>256</xloc>
<yloc>304</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getOutputProjectChapterFilename</name>
<type>DBLookup</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<cache>N</cache>
<cache_load_all>N</cache_load_all>
<cache_size>0</cache_size>
<lookup>
<schema/>
<table>kb_chapter</table>
<orderby/>
<fail_on_multiple>N</fail_on_multiple>
<eat_row_on_failure>N</eat_row_on_failure>
<key>
<name>linked_document_id</name>
<field>document_id</field>
<condition>=</condition>
<name2/>
</key>
<key>
<name>link_chapter</name>
<field>defaulttext</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>chapter_filename</name>
<rename>chapter_filename</rename>
<default/>
<type>None</type>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>736</xloc>
<yloc>368</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getOutputProjectId</name>
<type>DBLookup</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<cache>N</cache>
<cache_load_all>N</cache_load_all>
<cache_size>0</cache_size>
<lookup>
<schema/>
<table>kb_output_project_part</table>
<orderby/>
<fail_on_multiple>N</fail_on_multiple>
<eat_row_on_failure>N</eat_row_on_failure>
<key>
<name>linked_document_id</name>
<field>src_document_id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>output_project_id</name>
<rename>output_project_id</rename>
<default/>
<type>None</type>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>400</xloc>
<yloc>368</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getOutputProjectPath</name>
<type>DBLookup</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<cache>N</cache>
<cache_load_all>N</cache_load_all>
<cache_size>0</cache_size>
<lookup>
<schema/>
<table>kb_output_project</table>
<orderby/>
<fail_on_multiple>N</fail_on_multiple>
<eat_row_on_failure>N</eat_row_on_failure>
<key>
<name>output_project_id</name>
<field>id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>target_server</name>
<rename>target_server</rename>
<default/>
<type>String</type>
</value>
<value>
<name>document_root</name>
<rename>document_root</rename>
<default/>
<type>String</type>
</value>
<value>
<name>target_path</name>
<rename>target_path</rename>
<default/>
<type>String</type>
</value>
<value>
<name>homepage</name>
<rename>homepage</rename>
<default/>
<type>String</type>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>544</xloc>
<yloc>368</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getlinkedDocumentID</name>
<type>DBLookup</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<cache>N</cache>
<cache_load_all>N</cache_load_all>
<cache_size>0</cache_size>
<lookup>
<schema/>
<table>kb_document_source</table>
<orderby/>
<fail_on_multiple>N</fail_on_multiple>
<eat_row_on_failure>N</eat_row_on_failure>
<key>
<name>link_target</name>
<field>src_title</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>document_id</name>
<rename>linked_document_id</rename>
<default/>
<type>Integer</type>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>208</xloc>
<yloc>208</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>linksChangedFlag</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
var transformationPath = getVariable("Internal.Transformation.Filename.Directory", "");
var jsScriptPath = transformationPath + "/mwtools.js";
LoadScriptFile(jsScriptPath);
var linked_document_title_2="";
var linkChanged=1;
if(!linked_document_title || linked_document_title=="")
{
linked_document_title_2=src_url.replace(document_source_title,link_target);
linkChanged=0;
}
else {
var outpath=target_server;
if(document_root!="")
outpath+="/"+document_root;
if(target_path!="")
outpath+="/"+target_path;
if(outpath &amp;&amp; outpath !="")
{
//wenn output Projekt exisitiert, wird darauf verlinkt:
//zuerst prüfen ob auch chapter verlinkt ist:
if(chapter_filename &amp;&amp; chapter_filename !="")
{
linked_document_title_2=outpath+"/f_"+chapter_filename+".htm";
link_target+="#"+mwName2Link(link_chapter);
}
else
//wenn nicht, dann hoempage:
linked_document_title_2=outpath+"/"+homepage;
}
else{
//wenn nicht wird einfach Titel ausgegeben, ggf. noch Warnung, dass man für Dokument noch Ausgabeprojet anlegen muss?
linked_document_title_2=linked_document_title;
}
} </jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>linked_document_title_2</name>
<rename>linked_document_title_2</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>linkChanged</name>
<rename>linkChanged</rename>
<type>Integer</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>link_target</name>
<rename>link_target</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>Y</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>928</xloc>
<yloc>336</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

1159
src-modules/module/kb/etl/wiki2html/wiki2html.kjb

File diff suppressed because it is too large Load Diff

185
src-modules/module/kb/etl/wiki2html/wiki2html_test.htm

@ -0,0 +1,185 @@
<html>
<head>
<title>JS2MW</title>
<meta content="text/html; charset=utf8" http-equiv="Content-Type"/>
<LINK REL="stylesheet" type="text/css" href="../../../../../../../../style/bulma.css" />
<LINK REL="stylesheet" type="text/css" href="../../../../../../../../style/superx.css" />
<script src="./mwtools.js" type="text/javascript">
 
</script>
<script type="text/javascript">
function mw_convert()
{
var rendered = mw2xhtml(document.forms[0].elements["mw"].value);
//document.getElementById("output_src").value=rendered;
return rendered;
}
function show_src()
{
document.getElementById("mwsrc").style.visibility = 'visible';
}
function show_html()
{
document.getElementById("result").innerHTML=mw_convert();
//document.getElementById("output").style.visibility = 'visible';
}
function show_html_src()
{
document.getElementById("result").innerHTML="<textarea cols='70' rows='50' name='res' id='res'>"+mw_convert()+"</textarea>";
//document.getElementById("mw_src_tab").class="";
//document.getElementById("html_src_tab").class="is-active";
}
function show_hyperlinks()
{
var newWikiModel = new wikiModel(document.forms[0].elements["mw"].value);
//var contentHtml=mw2xhtml(result_text);
var contentHtml=newWikiModel.wikiHtml;
var headersStr=newWikiModel.headersStr;
var headersLevelsStr=newWikiModel.headersLevelsStr;
var internalHyperlinksStr=newWikiModel.internalHyperlinksStr;
var templateOptionsStr=newWikiModel.templateOptionsStr;
/*
var ret="<ol>";
mw_convert();
for(var i=1;i<=InternalHyperlinkCount;i++)
{
ret+="<li>"+Hyperlinks[i][1]+"</li>";
}
ret+="</ol>";
*/
ret=internalHyperlinksStr.replace(/\^/g,"<br />");
document.getElementById("result").innerHTML=ret;
}
function showHeadingList()
{
var newWikiModel = new wikiModel(document.forms[0].elements["mw"].value);
//var contentHtml=mw2xhtml(result_text);
var contentHtml=newWikiModel.wikiHtml;
var headersStr=newWikiModel.headersStr;
var headersLevelsStr=newWikiModel.headersLevelsStr;
ret=headersStr.replace(/\^/g,"<br />");
document.getElementById("result").innerHTML=ret;
}
function show_headers()
{
var ret="<ol>";
mw_convert();
for(var i=1;i<=HeadersCount;i++)
{
ret+="<li>"+Headers[i][1]+" from "+Headers[i][3]+" to "+Headers[i][4] +"</li>";
}
ret+="</ol>";
document.getElementById("output_headers").innerHTML=ret;
document.getElementById("output").style.visibility = 'hidden';
}
</script>
</head>
<body>
<form action="ttt" name="test">
<table width="100%" border="1">
<tr>
<td width="45%" valign="top">
<textarea cols="50" rows="30" name="mw" id="mw">
Text vor Header
=Test Header 1=
==Test Header 2==
*TEST1
**TEST2
***TEST2a
***TEST2b
*#TEST3
*#test4
*TEST5
Absatz normal mit ''kursivem'','''fettem''' und '''''fett/kursivem''''' Text
preformatted nicht nur eine Zeile
sondern mehr als
zwei
Absatz mit [[meinLink | extHyperlink ]] und Grafik [[Image:Freie_und_teilfreie_stellen_tabelle.png|ohne|gerahmt]]
Grafik mit Breite 900px:
[[Image:Stellenbesetzung_im_detail_tabelle.png|900px]]
==== Schlüssel für Filter ermitteln ====
#Öffnen Sie {{#navigation:standardReportsHisinonebi}} '''Standardberichte -> Studierende, Prüfungen '''
# Öffnen Sie einen Bericht, welcher den Selektionsparameter "''Geschlecht''" enthält, bspw. '''Studierende Fächerkombinationen Datenblatt'''
# Wählen Sie im Selektionsparameter "''Geschlecht''" die Ausprägung ''weiblich''.
#Klicken Sie auf den Button "Schlüssel anzeigen" [[Image:Edit.gif]] . Danach sehen Sie den Wert des Schlüssels: "2".
# Daraus ergibt sich die Bedingung:''"Filter "nur weiblich"'': ''' <code> geschlecht=2 </code>'''
Liste mit internen Links:
* Repository Variable für [[Modul_Bewerber_Zulassungen_Admin-HISinOne#Repository-Variable_f.C3.BCr_ZUL_.22g.C3.BCltige_Bewerbungen.22_anpassen | Gültige Bewerber]]
* Repository Variable für [[Modul_Kennzahlen_Admin-HISinOne#G.C3.BCltige_Studierende | Gültige Studierende]] in der Komponente Grunddaten, Kennzahlen
*[[Komponentenverwaltung_der_HISinOne-BI | HISinOne Komponenten Installation]]
*[http://www.superx-projekt.de/doku/kern_modul/admin/f_InstallationeinesModulsAllgemeinesVorgehen.htm SuperX Modul Installation]
Template:
{{Ab|VERSION=8|RELEASE=0|TEXT=bzw Kernmodul 4.7 steht dieses Feature zur Verfügung}}
Komplexere Liste:
Es ist nun möglich im Browser hochschulspezifische Scripte am Ende des jeweiligen Schrittes einer Laderoutine anzulegen. Dies funktioniert so: Die Laderoutine führt zunächst den allgemeinen, von uns vorgegebenen Ladeschritt aus. Wenn dann eine Repository Variable mit einem gewissen Namensschema existiert, wird sie ausgeführt. Das Namensschema lautet '''<<Kürzel der Komponente>>'''_'''<<Ladeschritt>>'''_CUSTOM.
* Bei Hauptladeroutinen ist dies
*# Laden: '''<<Kürzel der Komponente>>'''_load_CUSTOM, z.B. sos_load_CUSTOM
*# Transformation: '''<<Kürzel der Komponente>>'''_trans_CUSTOM, z.B. sos_trans_CUSTOM
*# Aggregation: '''<<Kürzel der Komponente>>'''_aggr_CUSTOM, z.B. sos_aggr_CUSTOM
* Bei Unterladeroutinen ist dies '''<<Kürzel der Komponente>>'''_'''<<ID des Ladeschritts>>'''_CUSTOM, also z.B. cob_trans_fin_busa_CUSTOM für die Unterladeroutine "Lade Buchungen aus FIN"
Die Tabelle besitzt folgende Struktur:
{| class="prettytable"
! Feldname!! Feldtyp!! Größe!! Default!! Not Null!! Beschreibung!! Fremdschlüssel
|-
|id||INTEGER||4|| ||true||Tupelidentifier||
|-
|element||VARCHAR||50|| ||false||Art der Variable / des Schlüssels||
|-
|element_value||VARCHAR||255|| ||false||Codierung oder SQL-Ausdruck||
|-
|description||VARCHAR||255|| ||false||Kurzer Erläuterungstext||
|-
|nature||VARCHAR||255|| ||false||Variablentyp / Schlüsseltyp||
|-
|annotation||VARCHAR||255|| ||false||Langer Erläuterungstext||
|}
</textarea>&nbsp;</td>
<td width="10%" valign="top">
<input type="button" value="HTML Sourcecode" name="btn1" onClick="show_html_src();" />
<a onclick="show_html_src();"></a>
<br />
<input type="button" value="HTML rendered" name="btn1" onClick="show_html();" />
<a onclick="show_html();"></a>
<br />
<input type="button" value="Show Hyperlinks" name="btn1" onClick="show_hyperlinks();" />
<a onclick="show_hyperlinks();"></a>
<br />
<input type="button" value="Show Headers" name="btn1" onClick="showHeadingList();" />
<a onclick="showHeadingList();"></a>
</td>
<td width="45%" valign="top"><div id="result"></div></td>
</tr>
</table>
</form>
</div>
</body>
</html>

932
src-modules/module/kb/etl/wiki2html/wiki2xhtml.ktr

@ -0,0 +1,932 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>wiki2xhtml</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>68</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2017/08/22 11:23:11.075</created_date>
<modified_user>-</modified_user>
<modified_date>2017/08/22 11:23:11.075</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>wiki2html</from>
<to>Update src_xml</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>getSrcTitle</from>
<to>DownloadSrc</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>saveSrc</from>
<to>Block this step until steps finish</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Block this step until steps finish</from>
<to>wiki2html</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>DownloadSrc</from>
<to>save src_api_xml</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>save src_api_xml</from>
<to>apiDownload2src</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>apiDownload2src</from>
<to>saveSrc</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Block this step until steps finish</name>
<type>BlockUntilStepsFinish</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<steps>
<step>
<name>saveSrc</name>
<CopyNr>0</CopyNr>
</step>
</steps>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>384</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>DownloadSrc</name>
<type>UserDefinedJavaClass</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<definitions>
<definition>
<class_type>TRANSFORM_CLASS</class_type>
<class_name>Processor</class_name>
<class_source>import org.apache.commons.httpclient.Cookie;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import java.io.InputStream;
import java.io.IOException;
import java.net.URLEncoder;
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws java.io.IOException,KettleException {
Object[] r = getRow();
if (r == null) {
setOutputDone();
return false;
}
String host=get(Fields.In, "hostname").getString(r);// e.g."wiki.his.de";
String api_path=get(Fields.In, "api_path").getString(r);// e.g."wiki.his.de";
String cookieName=get(Fields.In, "cookie_name").getString(r); //"wikidb_session";
String cookieValue=get(Fields.In, "cookie_value").getString(r);//"dr1brbd7saa7jismgsk2a3cf80"; //getParameter("cookie");
String title= get(Fields.In, "src_title").getString(r);
try{
title=URLEncoder.encode(title, "UTF-8");
}
catch (Exception e) {
}
String strURL="https://"+host+"/"+api_path+"/api.php?action=query&amp;titles="+title+"&amp;prop=revisions&amp;rvprop=content&amp;format=xml";
HttpState initialState = null;
initialState = authenticateWithCookie(host, cookieName, cookieValue);
Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());
String responseBody ="";
//try {
responseBody = getPageContent(strURL, initialState);
//} catch (HttpException e) {
// TODO Auto-generated catch block
//get(Fields.Out, "src_text").setValue(outputRow,"Nicht lesbar: "+ strURL);
// e.printStackTrace();
// } catch (IOException e) {
// TODO Auto-generated catch block
//get(Fields.Out, "src_text").setValue(outputRow,"Nicht lesbar: "+ strURL);
// e.printStackTrace();
// }
get(Fields.Out, "src_api_xml").setValue(outputRow, responseBody);
putRow(data.outputRowMeta, outputRow);
return true;
}
public static HttpState authenticateWithCookie(String host, String cookieName, String cookieValue) {
HttpState initialState = new HttpState();
if(cookieName != null){
Cookie mycookie = new Cookie(host, cookieName, cookieValue, "/", null, false);
initialState.addCookie(mycookie);
}
return initialState;
}
public static String getPageContent(String strURL, HttpState initialState) throws IOException, HttpException {
int c;
String responseBodyString="";
HttpClient httpclient = new HttpClient();
httpclient.getHttpConnectionManager().
getParams().setConnectionTimeout(30000);
httpclient.setState(initialState);
httpclient.getParams().setCookiePolicy(CookiePolicy.RFC_2109);
GetMethod httpget = new GetMethod(strURL);
httpget.addRequestHeader("Content-Type","text/xml; charset=UTF-8");
// Execute HTTP GET
//der Inhalt steht in textarea id=wpTextbox1
int result = httpclient.executeMethod(httpget);
//System.out.println("Response status code: " + result);
InputStream responseBody = null;
//responseBody = httpget.getResponseBodyAsStream(); //getResponseBodyAsString();
responseBodyString=httpget.getResponseBodyAsString();
/*while ((c = responseBody.read()) != -1) {
responseBodyString+= (char) c;
}*/
httpget.releaseConnection();
return responseBodyString;
}
</class_source>
</definition>
</definitions>
<fields/>
<clear_result_fields>N</clear_result_fields>
<info_steps/>
<target_steps/>
<usage_parameters/>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>48</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Update src_xml</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<skip_lookup>N</skip_lookup>
<commit>100</commit>
<use_batch>N</use_batch>
<error_ignored>N</error_ignored>
<ignore_flag_field/>
<lookup>
<schema/>
<table>kb_document_source</table>
<key>
<name>document_id</name>
<field>document_id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>src_xml</name>
<rename>contentHtml</rename>
</value>
<value>
<name>last_input</name>
<rename>last_input</rename>
</value>
<value>
<name>src_headers</name>
<rename>headersStr</rename>
</value>
<value>
<name>src_header_levels</name>
<rename>headersLevelsStr</rename>
</value>
<value>
<name>internal_hyperlinks</name>
<rename>internalHyperlinksStr</rename>
</value>
<value>
<name>template_options</name>
<rename>templateOptionsStr</rename>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>560</xloc>
<yloc>144</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>apiDownload2src</name>
<type>XSLT</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<xslfilename>${Internal.Transformation.Filename.Directory}/mediawikiapi_page2text.xsl</xslfilename>
<fieldname>src_api_xml</fieldname>
<resultfieldname>result_text</resultfieldname>
<xslfilefield/>
<xslfilefielduse>N</xslfilefielduse>
<xslfieldisafile>N</xslfieldisafile>
<xslfactory>JAXP</xslfactory>
<parameters/>
<outputproperties>
<outputproperty>
<name>method</name>
<value>text</value>
</outputproperty>
</outputproperties>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>240</xloc>
<yloc>224</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getSrcTitle</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select S.document_id, S.src_title, S.src_text,S.src_api_xml,
S.src_url,W.hostname,W.api_path,W.cookie_name, W.cookie_value, today() as last_input
from kb_document_source S, kb_webconnection W
where W.id=S.webconnection_id
and S.document_id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>48</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>saveSrc</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<skip_lookup>N</skip_lookup>
<commit>100</commit>
<use_batch>N</use_batch>
<error_ignored>N</error_ignored>
<ignore_flag_field/>
<lookup>
<schema/>
<table>kb_document_source</table>
<key>
<name>document_id</name>
<field>document_id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>src_text</name>
<rename>result_text</rename>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>336</xloc>
<yloc>208</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>wiki2html</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<compatible>N</compatible>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>//Script here
// assuming, that the ua-parser.js is in the transformation directory:
var transformationPath = getVariable("Internal.Transformation.Filename.Directory", "");
var jsScriptPath = transformationPath + "/mwtools.js";
LoadScriptFile(jsScriptPath);
//alert("klappt");
var newWikiModel = new wikiModel(result_text);
//var contentHtml=mw2xhtml(result_text);
var contentHtml=newWikiModel.wikiHtml;
var headersStr=newWikiModel.headersStr;
var headersLevelsStr=newWikiModel.headersLevelsStr;
var internalHyperlinksStr=newWikiModel.internalHyperlinksStr;
var templateOptionsStr=newWikiModel.templateOptionsStr;
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>contentHtml</name>
<rename>contentHtml</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>headersStr</name>
<rename>headersStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>headersLevelsStr</name>
<rename>headersLevelsStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>internalHyperlinksStr</name>
<rename>internalHyperlinksStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
<field>
<name>templateOptionsStr</name>
<rename>templateOptionsStr</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>528</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>save src_api_xml</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<skip_lookup>N</skip_lookup>
<commit>100</commit>
<use_batch>N</use_batch>
<error_ignored>N</error_ignored>
<ignore_flag_field/>
<lookup>
<schema/>
<table>kb_document_source</table>
<key>
<name>document_id</name>
<field>document_id</field>
<condition>=</condition>
<name2/>
</key>
<value>
<name>src_api_xml</name>
<rename>src_api_xml</rename>
</value>
</lookup>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>160</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

10
src-modules/module/kb/etl/wiki2xml2html.x

@ -0,0 +1,10 @@
#!/bin/bash
PENTAHO_DI_JAVA_OPTIONS="-Xmx256m"
export PENTAHO_DI_JAVA_OPTIONS
$KETTLE_PFAD/kitchen.sh "-param:document_id=$1" /file:$KB_PFAD/etl/wiki2html/wiki2html.kjb /norep
$KETTLE_PFAD/kitchen.sh "-param:document_id=$1" /file:$KB_PFAD/etl/xml2html/xml2html.kjb /norep

358
src-modules/module/kb/etl/xml2html/copyFiles.kjb

@ -0,0 +1,358 @@
<?xml version="1.0" encoding="UTF-8"?><job>
<name>copyFiles</name>
<description/>
<extended_description/>
<job_version/>
<job_status>0</job_status>
<directory>/</directory>
<created_user>-</created_user>
<created_date>2018/01/20 11:09:22.168</created_date>
<modified_user>-</modified_user>
<modified_date>2018/01/20 11:09:22.168</modified_date>
<parameters>
<parameter>
<name>from</name>
<default_value/>
<description/>
</parameter>
<parameter>
<name>to</name>
<default_value/>
<description/>
</parameter>
</parameters>
<slaveservers/>
<job-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_JOB</id>
<enabled>Y</enabled>
<name>ID_JOB</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>JOBNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>START_JOB_ENTRY</id>
<enabled>N</enabled>
<name>START_JOB_ENTRY</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</job-log-table>
<jobentry-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>JOBENTRYNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>RESULT</id>
<enabled>Y</enabled>
<name>RESULT</name>
</field>
<field>
<id>NR_RESULT_ROWS</id>
<enabled>Y</enabled>
<name>NR_RESULT_ROWS</name>
</field>
<field>
<id>NR_RESULT_FILES</id>
<enabled>Y</enabled>
<name>NR_RESULT_FILES</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>COPY_NR</id>
<enabled>N</enabled>
<name>COPY_NR</name>
</field>
</jobentry-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<pass_batchid>N</pass_batchid>
<shared_objects_file/>
<entries>
<entry>
<name>START</name>
<description/>
<type>SPECIAL</type>
<start>Y</start>
<dummy>N</dummy>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<intervalSeconds>0</intervalSeconds>
<intervalMinutes>60</intervalMinutes>
<hour>12</hour>
<minutes>0</minutes>
<weekDay>1</weekDay>
<DayOfMonth>1</DayOfMonth>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>160</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>Copy Files</name>
<description/>
<type>COPY_FILES</type>
<copy_empty_folders>Y</copy_empty_folders>
<arg_from_previous>N</arg_from_previous>
<overwrite_files>Y</overwrite_files>
<include_subfolders>Y</include_subfolders>
<remove_source_files>N</remove_source_files>
<add_result_filesname>N</add_result_filesname>
<destination_is_a_file>N</destination_is_a_file>
<create_destination_folder>Y</create_destination_folder>
<fields>
<field>
<source_filefolder>${from}</source_filefolder>
<source_configuration_name>LOCAL-SOURCE-FILE-0</source_configuration_name>
<destination_filefolder>${to}</destination_filefolder>
<destination_configuration_name>LOCAL-DEST-FILE-0</destination_configuration_name>
<wildcard/>
</field>
</fields>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>304</xloc>
<yloc>96</yloc>
</entry>
</entries>
<hops>
<hop>
<from>START</from>
<to>Copy Files</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>Y</unconditional>
</hop>
</hops>
<notepads/>
</job>

12
src-modules/module/kb/etl/xml2html/cover_pdf.htm

@ -0,0 +1,12 @@
<html>
<body>
<h1>www</h1>
<header>
<span class="report-name">
SOME NAME HERE [page]
</span>
<span class="report-date">{pdf_date}</span>
</header>
</body>
</html>

808
src-modules/module/kb/etl/xml2html/createBodyPrintversion.ktr

@ -0,0 +1,808 @@
<?xml version="1.0" encoding="UTF-8"?>
<transformation>
<info>
<name>replaceBodyPrintversion</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>&#x2f;</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>241</default_value>
<description/>
</parameter>
<parameter>
<name>output_project_id</name>
<default_value>96</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies>
</dependencies>
<partitionschemas>
</partitionschemas>
<slaveservers>
</slaveservers>
<clusterschemas>
</clusterschemas>
<created_user>-</created_user>
<created_date>2018&#x2f;01&#x2f;19 19&#x3a;23&#x3a;22.741</created_date>
<modified_user>-</modified_user>
<modified_date>2018&#x2f;01&#x2f;19 19&#x3a;23&#x3a;22.741</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA&#x3d;</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<connection>
<name>eduetl</name>
<server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>community</database>
<port>9998</port>
<username>superx</username>
<password>Encrypted 2be98afc86aa7f2e4be0b8b49fca3e2f0</password>
<servername>superx_host_iso</servername>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>9998</attribute></attribute>
<attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>Y</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
<attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<order>
<hop>
<from>getChapters</from>
<to>Load file content in memory</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Load file content in memory</from>
<to>processTemplates</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>processTemplates</from>
<to>Text file output</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Load file content in memory</name>
<type>LoadFileInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<include>N</include>
<include_field/>
<rownum>N</rownum>
<addresultfile>Y</addresultfile>
<IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
<rownum_field/>
<encoding/>
<file>
</file>
<fields>
<field>
<name>File content</name>
<element_type>content</element_type>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<trim_type>none</trim_type>
<repeat>N</repeat>
</field>
<field>
<name>File size</name>
<element_type>size</element_type>
<type>Integer</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<trim_type>none</trim_type>
<repeat>N</repeat>
</field>
</fields>
<limit>0</limit>
<IsInFields>Y</IsInFields>
<DynamicFilenameField>sourceFileName</DynamicFilenameField>
<shortFileFieldName/>
<pathFieldName/>
<hiddenFieldName/>
<lastModificationTimeFieldName/>
<uriNameFieldName/>
<rootUriNameFieldName/>
<extensionFieldName/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>224</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getChapters</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select C.id as chapter_tid,D.id as document_id,&#x27;&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;tmp&#x2f;files_&#x24;&#x7b;document_id&#x7d;&#x2f;f_&#x27; &#x7c;&#x7c; C.chapter_filename &#x7c;&#x7c; &#x27;.htm&#x27; as &#x22;sourceFileName&#x22;,&#xa;&#x27;&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;tmp&#x2f;files_&#x24;&#x7b;document_id&#x7d;&#x2f;f_&#x27; &#x7c;&#x7c; C.chapter_filename &#x7c;&#x7c; &#x27;.htm&#x27; as &#x22;targetFileName&#x22;,&#xa;&#x27;&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;tmp&#x2f;files_&#x24;&#x7b;document_id&#x7d;&#x2f;__index_new.htm&#x27; as &#x22;indexFileName&#x22;,&#xa;&#x27;&#x23;body&#x27; &#x7c;&#x7c; C.id &#x7c;&#x7c; &#x27;&#x23;&#x27; as body_marker,&#xa;replace&#x28;C.chapter_bodytext,&#x27;&#x24;&#x27;,&#x27;&#x26;&#x23;36&#x3b;&#x27;&#x29; as body, --Dollar Zeichen wird maskiert damit Kettle das nicht als Variable interpretiert&#xa;&#x27;&#x3c;h&#x27; &#x7c;&#x7c; &#x28;C.chapter_level&#x2b;1&#x29; &#x7c;&#x7c; &#x27;&#x3e;&#x27; &#x7c;&#x7c; C.defaulttext &#x7c;&#x7c;&#x27;&#x3c;&#x2f;h&#x27; &#x7c;&#x7c; &#x28;C.chapter_level&#x2b;1&#x29; &#x7c;&#x7c; &#x27;&#x3e;&#x27; as chapter_header,&#xa;&#x28;select P.target_server &#x7c;&#x7c; &#x27;&#x2f;&#x27; &#x7c;&#x7c; P.document_root &#x7c;&#x7c; &#x27;&#x2f;&#x27; &#x7c;&#x7c; P.target_path from kb_output_project P, kb_output_project_part A where P.id&#x3d;A.output_project_id and A.src_document_id&#x3d;&#x24;&#x7b;document_id&#x7d;&#x29; as target_path,&#xa;&#x28;select &#x27;&#x3c;a href&#x3d;&#x22;&#x27; &#x7c;&#x7c; P.pdf_file &#x7c;&#x7c; &#x27;&#x22;&#x3e;PDF&#x3c;&#x2f;a&#x3e;&#x27; from kb_output_project P, kb_output_project_part A where P.id&#x3d;A.output_project_id and A.src_document_id&#x3d;&#x24;&#x7b;document_id&#x7d;&#x29; as pdf_file,&#xa;coalesce&#x28;&#x28;select &#x27;&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;&#x27; &#x7c;&#x7c; L.embedded_files_path &#x7c;&#x7c; &#x27;&#x2f;mwTemplates.xsl&#x27; from kb_output_project_layout L, kb_output_project P, kb_output_project_part A where P.id&#x3d;A.output_project_id and A.src_document_id&#x3d;&#x24;&#x7b;document_id&#x7d; &#xa;and P.kb_output_project_layout_id&#x3d;L.id&#x29;,&#x27;&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;mwTemplates.xsl&#x27;&#x29; as mwtemplates&#xa;from kb_chapter C, kb_document D&#xa;where D.id&#x3d;C.document_id&#xa;and D.id&#x3d;&#x24;&#x7b;document_id&#x7d;&#xa;order by sortnr&#x3b;</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>64</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>processTemplates</name>
<type>UserDefinedJavaClass</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<definitions>
<definition>
<class_type>TRANSFORM_CLASS</class_type>
<class_name>Processor</class_name>
<class_source><![CDATA[
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException, TransformerException{
Object[] r = getRow();
if (r == null) {
setOutputDone();
return false;
}
String mwTemplateElem="mwTemplate";
String xsl=get(Fields.In, "mwtemplates").getString(r);
String body=get(Fields.In, "body").getString(r);
String mwTemplateContent="";
int cursor=body.indexOf("<"+mwTemplateElem);
if(cursor==-1)
{
//do nothing
//System.out.println("body ohne Template:"+body);
Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());
putRow(data.outputRowMeta, outputRow);
return true;
}
while (cursor>-1) {
String body_vorher=body.substring(0,cursor);
int endTag=body.indexOf("</"+mwTemplateElem+">");
if(endTag >-1)
{
System.out.println("body_vorher:"+body_vorher);
mwTemplateContent=body.substring(cursor,endTag+mwTemplateElem.length()+3).replaceAll("&","&amp;");
System.out.println("mwTemplateContent:"+mwTemplateContent);
String body_nachher=body.substring(endTag+mwTemplateElem.length()+3,body.length());
System.out.println("body_nachher:"+body_nachher);
body=body_vorher+xsltTransform(mwTemplateContent,xsl)+body_nachher;
System.out.println("bodyParsed:"+body);
}
else
{
body=body_vorher+body.substring(cursor+mwTemplateElem.length()+2,body.length());
}
cursor=body.indexOf("<"+mwTemplateElem);
}
Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());
get(Fields.Out, "body").setValue(outputRow, body);
putRow(data.outputRowMeta, outputRow);
return true;
}
public static String xsltTransform(String inXml, String xslFile)
throws TransformerException {
String result="";
// 1. Instantiate a TransformerFactory.
javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory
.newInstance("net.sf.saxon.TransformerFactoryImpl",null);
// 2. Use the TransformerFactory to process the stylesheet Source and
// generate a Transformer.
javax.xml.transform.Transformer transformer = tFactory
.newTransformer(new javax.xml.transform.stream.StreamSource(
xslFile));
InputStream inpStream = new ByteArrayInputStream(inXml.getBytes());
StringWriter xmlOutWriter = new StringWriter();
transformer.transform(new javax.xml.transform.stream.StreamSource(
inpStream), new javax.xml.transform.stream.StreamResult(
xmlOutWriter));
result=xmlOutWriter.toString();
return result;
}// Ende der Methode]]></class_source>
</definition>
</definitions>
<fields>
</fields><clear_result_fields>N</clear_result_fields>
<info_steps></info_steps><target_steps></target_steps><usage_parameters></usage_parameters> <cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>400</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Text file output</name>
<type>TextFileOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<separator>&#x24;&#x7b;line.separator&#x7d;</separator>
<enclosure/>
<enclosure_forced>N</enclosure_forced>
<enclosure_fix_disabled>N</enclosure_fix_disabled>
<header>N</header>
<footer>N</footer>
<format>UNIX</format>
<compression>None</compression>
<encoding>UTF-8</encoding>
<endedLine/>
<fileNameInField>N</fileNameInField>
<fileNameField>indexFileName</fileNameField>
<create_parent_folder>Y</create_parent_folder>
<file>
<name>&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;tmp_index_content</name>
<is_command>N</is_command>
<servlet_output>N</servlet_output>
<do_not_open_new_file_init>Y</do_not_open_new_file_init>
<extention>htm</extention>
<append>N</append>
<split>N</split>
<haspartno>N</haspartno>
<add_date>N</add_date>
<add_time>N</add_time>
<SpecifyFormat>N</SpecifyFormat>
<date_time_format/>
<add_to_result_filenames>Y</add_to_result_filenames>
<pad>N</pad>
<fast_dump>Y</fast_dump>
<splitevery>0</splitevery>
</file>
<fields>
<field>
<name>chapter_header</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>body</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>560</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>
</slave-step-copy-partition-distribution>
<slave_transformation>N</slave_transformation>
</transformation>

477
src-modules/module/kb/etl/xml2html/createPDF.kjb

@ -0,0 +1,477 @@
<?xml version="1.0" encoding="UTF-8"?><job>
<name>createPDF</name>
<description/>
<extended_description/>
<job_version/>
<job_status>0</job_status>
<directory>/</directory>
<created_user>-</created_user>
<created_date>2018/02/17 20:55:11.602</created_date>
<modified_user>-</modified_user>
<modified_date>2018/02/17 20:55:11.602</modified_date>
<parameters>
<parameter>
<name>document_id</name>
<default_value>243</default_value>
<description/>
</parameter>
</parameters>
<slaveservers/>
<job-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_JOB</id>
<enabled>Y</enabled>
<name>ID_JOB</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>JOBNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>START_JOB_ENTRY</id>
<enabled>N</enabled>
<name>START_JOB_ENTRY</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</job-log-table>
<jobentry-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>JOBNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>JOBENTRYNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>RESULT</id>
<enabled>Y</enabled>
<name>RESULT</name>
</field>
<field>
<id>NR_RESULT_ROWS</id>
<enabled>Y</enabled>
<name>NR_RESULT_ROWS</name>
</field>
<field>
<id>NR_RESULT_FILES</id>
<enabled>Y</enabled>
<name>NR_RESULT_FILES</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>COPY_NR</id>
<enabled>N</enabled>
<name>COPY_NR</name>
</field>
</jobentry-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<pass_batchid>N</pass_batchid>
<shared_objects_file/>
<entries>
<entry>
<name>START</name>
<description/>
<type>SPECIAL</type>
<start>Y</start>
<dummy>N</dummy>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<intervalSeconds>0</intervalSeconds>
<intervalMinutes>60</intervalMinutes>
<hour>12</hour>
<minutes>0</minutes>
<weekDay>1</weekDay>
<DayOfMonth>1</DayOfMonth>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>112</xloc>
<yloc>96</yloc>
</entry>
<entry>
<name>getPathForPDFExport</name>
<description/>
<type>TRANS</type>
<specification_method>filename</specification_method>
<trans_object_id/>
<filename>${Internal.Job.Filename.Directory}/getPathForPDFExport.ktr</filename>
<transname/>
<arg_from_previous>N</arg_from_previous>
<params_from_previous>N</params_from_previous>
<exec_per_row>N</exec_per_row>
<clear_rows>N</clear_rows>
<clear_files>N</clear_files>
<set_logfile>N</set_logfile>
<logfile/>
<logext/>
<add_date>N</add_date>
<add_time>N</add_time>
<loglevel>Basic</loglevel>
<cluster>N</cluster>
<slave_server_name/>
<set_append_logfile>N</set_append_logfile>
<wait_until_finished>Y</wait_until_finished>
<follow_abort_remote>N</follow_abort_remote>
<create_parent_folder>N</create_parent_folder>
<logging_remote_work>N</logging_remote_work>
<parameters>
<pass_all_parameters>Y</pass_all_parameters>
</parameters>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>304</xloc>
<yloc>112</yloc>
</entry>
<entry>
<name>createPDF</name>
<description/>
<type>SHELL</type>
<filename>${Internal.Job.Filename.Directory}/create_pdf.x</filename>
<work_directory>${Internal.Job.Filename.Directory}</work_directory>
<arg_from_previous>N</arg_from_previous>
<exec_per_row>N</exec_per_row>
<set_logfile>N</set_logfile>
<logfile/>
<set_append_logfile>N</set_append_logfile>
<logext/>
<add_date>N</add_date>
<add_time>N</add_time>
<insertScript>N</insertScript>
<script/>
<loglevel>Basic</loglevel>
<argument0>${path}</argument0>
<argument1>__index</argument1>
<argument2>${pdf_titel}</argument2>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>544</xloc>
<yloc>160</yloc>
</entry>
<entry>
<name>Move Files</name>
<description/>
<type>MOVE_FILES</type>
<move_empty_folders>N</move_empty_folders>
<arg_from_previous>N</arg_from_previous>
<include_subfolders>N</include_subfolders>
<add_result_filesname>N</add_result_filesname>
<destination_is_a_file>Y</destination_is_a_file>
<create_destination_folder>N</create_destination_folder>
<add_date>N</add_date>
<add_time>N</add_time>
<SpecifyFormat>N</SpecifyFormat>
<date_time_format/>
<nr_errors_less_than>10</nr_errors_less_than>
<success_condition>success_if_no_errors</success_condition>
<AddDateBeforeExtension>N</AddDateBeforeExtension>
<DoNotKeepFolderStructure>N</DoNotKeepFolderStructure>
<iffileexists>overwrite_file</iffileexists>
<destinationFolder/>
<ifmovedfileexists>do_nothing</ifmovedfileexists>
<moved_date_time_format/>
<create_move_to_folder>N</create_move_to_folder>
<add_moved_date>N</add_moved_date>
<add_moved_time>N</add_moved_time>
<SpecifyMoveFormat>N</SpecifyMoveFormat>
<AddMovedDateBeforeExtension>N</AddMovedDateBeforeExtension>
<simulate>N</simulate>
<fields>
<field>
<source_filefolder>${path}/__index.pdf</source_filefolder>
<destination_filefolder>${path}/${pdf_file}</destination_filefolder>
<wildcard/>
</field>
</fields>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>736</xloc>
<yloc>336</yloc>
</entry>
<entry>
<name>pdf_file_gesetzt?</name>
<description/>
<type>SIMPLE_EVAL</type>
<valuetype>variable</valuetype>
<fieldname>pdf_file</fieldname>
<variablename>${pdf_file}</variablename>
<fieldtype>string</fieldtype>
<mask/>
<comparevalue>.pdf</comparevalue>
<minvalue/>
<maxvalue/>
<successcondition>endswith</successcondition>
<successnumbercondition>equal</successnumbercondition>
<successbooleancondition>false</successbooleancondition>
<successwhenvarset>N</successwhenvarset>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>432</xloc>
<yloc>144</yloc>
</entry>
</entries>
<hops>
<hop>
<from>START</from>
<to>getPathForPDFExport</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>Y</unconditional>
</hop>
<hop>
<from>getPathForPDFExport</from>
<to>pdf_file_gesetzt?</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>pdf_file_gesetzt?</from>
<to>createPDF</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>createPDF</from>
<to>Move Files</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
</hops>
<notepads/>
</job>

445
src-modules/module/kb/etl/xml2html/createTopics.ktr

@ -0,0 +1,445 @@
<?xml version="1.0" encoding="UTF-8"?>
<transformation>
<info>
<name>createTopics</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<directory>&#x2f;</directory>
<parameters>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies>
</dependencies>
<partitionschemas>
</partitionschemas>
<slaveservers>
</slaveservers>
<clusterschemas>
</clusterschemas>
<created_user>-</created_user>
<created_date>2018&#x2f;01&#x2f;03 09&#x3a;45&#x3a;08.137</created_date>
<modified_user>-</modified_user>
<modified_date>2018&#x2f;01&#x2f;03 09&#x3a;45&#x3a;08.137</modified_date>
<key_for_session_key/>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<order>
</order>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>
</slave-step-copy-partition-distribution>
<slave_transformation>N</slave_transformation>
</transformation>

686
src-modules/module/kb/etl/xml2html/createXhtml.ktr

@ -0,0 +1,686 @@
<?xml version="1.0" encoding="UTF-8"?>
<transformation>
<info>
<name>createXhtml</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>&#x2f;</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>243</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies>
</dependencies>
<partitionschemas>
</partitionschemas>
<slaveservers>
</slaveservers>
<clusterschemas>
</clusterschemas>
<created_user>-</created_user>
<created_date>2018&#x2f;01&#x2f;03 09&#x3a;49&#x3a;30.053</created_date>
<modified_user>-</modified_user>
<modified_date>2018&#x2f;01&#x2f;03 09&#x3a;49&#x3a;30.053</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA&#x3d;</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<connection>
<name>eduetl</name>
<server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>superx</database>
<port>5433</port>
<username>superx</username>
<password>Encrypted 2be98afc86aa7f2e4cb79ce10bef2fe88</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>5433</attribute></attribute>
<attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
<attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<order>
<hop>
<from>getSrcXml</from>
<to>Concat Fields</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Concat Fields</from>
<to>write_xhtml</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>getSrcXml</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select &#x27;&#x3c;html&#x3e;&#x3c;head&#x3e;&#x3c;title&#x3e;&#x27; &#x7c;&#x7c; defaulttext &#x7c;&#x7c; &#x27;&#x3c;&#x2f;title&#x3e;&#x3c;&#x2f;head&#x3e;&#x3c;body&#x3e;&#x27; as header,content_xhtml,&#x27;&#x3c;&#x2f;body&#x3e;&#x3c;&#x2f;html&#x3e;&#x27; as footer from kb_document where id &#x3d;&#x24;&#x7b;document_id&#x7d;&#x3b;</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>write_xhtml</name>
<type>TextFileOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<separator/>
<enclosure/>
<enclosure_forced>N</enclosure_forced>
<enclosure_fix_disabled>N</enclosure_fix_disabled>
<header>N</header>
<footer>N</footer>
<format>UNIX</format>
<compression>None</compression>
<encoding>UTF-8</encoding>
<endedLine/>
<fileNameInField>N</fileNameInField>
<fileNameField/>
<create_parent_folder>Y</create_parent_folder>
<file>
<name>&#x24;&#x7b;Internal.Transformation.Filename.Directory&#x7d;&#x2f;tmp&#x2f;files_&#x24;&#x7b;document_id&#x7d;&#x2f;content</name>
<is_command>N</is_command>
<servlet_output>N</servlet_output>
<do_not_open_new_file_init>N</do_not_open_new_file_init>
<extention>xhtml</extention>
<append>N</append>
<split>N</split>
<haspartno>N</haspartno>
<add_date>N</add_date>
<add_time>N</add_time>
<SpecifyFormat>N</SpecifyFormat>
<date_time_format/>
<add_to_result_filenames>Y</add_to_result_filenames>
<pad>N</pad>
<fast_dump>Y</fast_dump>
<splitevery>0</splitevery>
</file>
<fields>
<field>
<name>content</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>2147483647</length>
<precision>-1</precision>
</field>
</fields>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>144</xloc>
<yloc>288</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Concat Fields</name>
<type>ConcatFields</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<separator/>
<enclosure/>
<enclosure_forced>N</enclosure_forced>
<enclosure_fix_disabled>N</enclosure_fix_disabled>
<header>N</header>
<footer>N</footer>
<format>DOS</format>
<compression>None</compression>
<encoding/>
<endedLine/>
<fileNameInField>N</fileNameInField>
<fileNameField/>
<create_parent_folder>Y</create_parent_folder>
<file>
<name>file</name>
<is_command>N</is_command>
<servlet_output>N</servlet_output>
<do_not_open_new_file_init>N</do_not_open_new_file_init>
<extention>txt</extention>
<append>N</append>
<split>N</split>
<haspartno>N</haspartno>
<add_date>N</add_date>
<add_time>N</add_time>
<SpecifyFormat>N</SpecifyFormat>
<date_time_format/>
<add_to_result_filenames>Y</add_to_result_filenames>
<pad>N</pad>
<fast_dump>N</fast_dump>
<splitevery>0</splitevery>
</file>
<fields>
<field>
<name>header</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>content_xhtml</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>footer</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
</fields>
<ConcatFields>
<targetFieldName>content</targetFieldName>
<targetFieldLength>0</targetFieldLength>
<removeSelectedFields>N</removeSelectedFields>
</ConcatFields>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>112</xloc>
<yloc>176</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>
</slave-step-copy-partition-distribution>
<slave_transformation>N</slave_transformation>
</transformation>

507
src-modules/module/kb/etl/xml2html/create_pdf.ktr

@ -0,0 +1,507 @@
<?xml version="1.0" encoding="UTF-8"?>
<transformation>
<info>
<name>create_pdf</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>&#x2f;</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>243</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies>
</dependencies>
<partitionschemas>
</partitionschemas>
<slaveservers>
</slaveservers>
<clusterschemas>
</clusterschemas>
<created_user>-</created_user>
<created_date>2018&#x2f;02&#x2f;17 20&#x3a;46&#x3a;41.031</created_date>
<modified_user>-</modified_user>
<modified_date>2018&#x2f;02&#x2f;17 20&#x3a;46&#x3a;41.031</modified_date>
<key_for_session_key/>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<connection>
<name>eduetl</name>
<server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>superx</database>
<port>5433</port>
<username>superx</username>
<password>Encrypted 2be98afc86aa7f2e4cb79ce10bef2fe88</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>5433</attribute></attribute>
<attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
<attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<order>
</order>
<step>
<name>getOutputProjectDetails</name>
<type>TableInput</type>
<description/>
<distribute>N</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select D.id,D.defaulttext as document_defaulttext, &#xa;R.content &#x7c;&#x7c; &#x27;&#x2f;..&#x2f;&#x27; &#x7c;&#x7c; O.document_root &#x7c;&#x7c; &#x27;&#x2f;&#x27; &#x7c;&#x7c; O.target_path as to&#xa;from sx_repository R, kb_document D, kb_document_source S, kb_output_project O, kb_output_project_part P, kb_output_project_layout L&#xa;where R.id&#x3d;&#x27;WEBINFDIR&#x27;&#xa;and D.id&#x3d;P.src_document_id&#xa;and D.id&#x3d;S.document_id&#xa;and O.id&#x3d;P.output_project_id&#xa;and L.id&#x3d;O.kb_output_project_layout_id&#xa;and D.id&#x3d;&#x24;&#x7b;document_id&#x7d;</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>128</xloc>
<yloc>96</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>
</slave-step-copy-partition-distribution>
<slave_transformation>N</slave_transformation>
</transformation>

65
src-modules/module/kb/etl/xml2html/create_pdf.x

@ -0,0 +1,65 @@
#!/bin/bash
PFAD=$1
DATEI=$2
TITEL="$3"
HEUTE=`date +'%d.%m.%Y'`
chmod a+rx $PFAD
chmod a+rx $PFAD/search
if [ -d "wkhtmltox" ]
then
echo "wkhtmltox existiert, $PFAD/$DATEI.htm wird transformiert"
./wkhtmltox/bin/wkhtmltopdf --margin-top '20' --margin-bottom '20' --encoding 'UTF-8' --header-line --footer-line --footer-left "Erzeugt am $HEUTE" --footer-font-size '10' --footer-spacing '10' --header-center "$TITEL" --header-right '[page]' --outline-depth 10 toc --xsl-style-sheet toc_pdf.xsl $PFAD/$DATEI.htm $PFAD/$DATEI.pdf >/dev/null 2>&1
OUT=$?
RETCODE=1
echo "wkhtmltox return code:"
case $OUT in
0)
echo "All OK"
RETCODE=0
;;
1)
echo "PDF generated OK, but some request(s) did not return HTTP 200"
RETCODE=0
;;
2)
echo "Could not something something"
RETCODE=1
;;
X)
echo "Could not write PDF: File in use"
RETCODE=1
;;
Y)
echo "Could not write PDF: No write permission"
RETCODE=1
;;
Z)
echo "PDF generated OK, but some JavaScript requests(s) timeouted"
RETCODE=0
;;
A)
echo "Invalid arguments provided"
RETCODE=1
;;
B)
echo "Could not find input file(s)"
RETCODE=1
;;
C)
echo "Process timeout"
RETCODE=1
;;
esac
exit $RETCODE
else
echo "echo wkhtmltox existiert nicht, nehme OO"
cd $PFAD
/usr/bin/soffice --headless --convert-to pdf $DATEI.htm
fi

529
src-modules/module/kb/etl/xml2html/getPathForPDFExport.ktr

@ -0,0 +1,529 @@
<?xml version="1.0" encoding="UTF-8"?><transformation>
<info>
<name>getPathForPDFExport</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
<parameter>
<name>document_id</name>
<default_value>243</default_value>
<description/>
</parameter>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies/>
<partitionschemas/>
<slaveservers/>
<clusterschemas/>
<created_user>-</created_user>
<created_date>2018/02/17 20:46:41.031</created_date>
<modified_user>-</modified_user>
<modified_date>2018/02/17 20:46:41.031</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads/>
<order>
<hop>
<from>getOutputProjectDetails</from>
<to>Set Variables</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Set Variables</name>
<type>SetVariable</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<field_name>path</field_name>
<variable_name>path</variable_name>
<variable_type>PARENT_JOB</variable_type>
<default_value/>
</field>
<field>
<field_name>pdf_file</field_name>
<variable_name>pdf_file</variable_name>
<variable_type>PARENT_JOB</variable_type>
<default_value/>
</field>
<field>
<field_name>titel</field_name>
<variable_name>pdf_titel</variable_name>
<variable_type>PARENT_JOB</variable_type>
<default_value/>
</field>
</fields>
<use_formatting>Y</use_formatting>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>288</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>getOutputProjectDetails</name>
<type>TableInput</type>
<description/>
<distribute>N</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>eduetl</connection>
<sql>select R.content || '/../' || O.document_root || '/' || O.target_path as path,
O.pdf_file,
D.defaulttext as titel
from sx_repository R, kb_document D, kb_output_project O, kb_output_project_part P, kb_output_project_layout L
where R.id='WEBINFDIR'
and D.id=P.src_document_id
and O.id=P.output_project_id
and L.id=O.kb_output_project_layout_id
and O.pdf_file like '%.pdf'
and D.id=${document_id}</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps>
<input/>
<output/>
</remotesteps>
<GUI>
<xloc>144</xloc>
<yloc>80</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling/>
<slave-step-copy-partition-distribution/>
<slave_transformation>N</slave_transformation>
</transformation>

60
src-modules/module/kb/etl/xml2html/httools.js

@ -0,0 +1,60 @@
function bodyTextStripped(bodyText)
{
var ret=bodyText.replace(/<(?:.|\n)*?>/gm, '');
var allowed = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz_- äüößÄÜÖ.,!?/";
return purgevar(ret, allowed);
}
function validHtmlFileName(chapterName)
{
var allowed = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz_-1234567890";
var validFileName = purgevar(chapterName, allowed);
return validFileName;
}
/**
* @param chapterName
* @param allowed
* @return
*/
function purgevar(targetvar, allowed) {
var validvar="";
for (var i = 0; i < targetvar.length; i++)
{
var singleChar=targetvar.substring(i, i+1);
var p = allowed.indexOf(singleChar);
if (p > -1)
validvar+=singleChar;
}
return validvar;
}
function getChapterLevel(str)
{
var level="";
var endNumber=str.indexOf(">");
var level=str.substring(2,endNumber);
if(level=="")
level="0";
return level;
}
function getChapterName(str,level)
{
var chapterName="";
var endAnchor=str.indexOf("</a>");
if (endAnchor>-1)
{
chapterName=str.substring(endAnchor+4,str.lastIndexOf("<")).trim();
}
else
chapterName=str.substring(level.length+3,str.length-(2*(level.length+3))+2).trim();
//first bodytext before chapter:
if(!chapterName || chapterName=="")
chapterName=defaulttext;
return chapterName;
}

BIN
src-modules/module/kb/etl/xml2html/layoutelements/BLAUBCK.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

14
src-modules/module/kb/etl/xml2html/layoutelements/BreadCrumbs.css

@ -0,0 +1,14 @@
/* Stylesheet for the BreadCrumbs extension, an extension of the
* edit box of MediaWiki to provide an easy way to add category links
* to a specific page.
*
* @file
* @ingroup Extensions
* @author Manuel Schneider <manuel.schneider@wikimedia.ch>
* @copyright © 2007 by Manuel Schneider
* @licence GNU General Public Licence 2.0 or later
*/
#BreadCrumbsTrail {
font-size:0.8em;
}

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Button_1_find_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Button_1_go_next_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Button_1_go_prev_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Button_1_go_top_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Button_1_home_green_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Icon_XMap_t.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/Symbol.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/SymbolN.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

54
src-modules/module/kb/etl/xml2html/layoutelements/attention.svg

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1001.5122"
version="1.1"
id="svg4"
sodipodi:docname="attention.svg"
height="929"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2077"
inkscape:window-height="1261"
id="namedview6"
showgrid="false"
inkscape:zoom="0.442"
inkscape:cx="500.7561"
inkscape:cy="1029"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg4" />
<path
style="fill:#0000fb;fill-opacity:1;stroke:none;stroke-opacity:1"
d="M 571.7561,767 V 661 q 0,-8 -5,-13 -5,-5 -12,-5 h -108 q -7,0 -12,5 -5,5 -5,13 v 106 q 0,8 5,13 5,5 12,6 h 108 q 7,0 12,-6 5,-6 5,-13 z m -1,-208 10,-257 q 0,-6 -5,-10 -7,-6 -14,-6 h -122 q -7,0 -14,6 -5,4 -5,12 l 9,255 q 0,5 6,9 6,4 13,3 h 103 q 8,0 13,-3 5,-3 6,-9 z m -7,-522 428,786 q 20,35 -1,70 -10,17 -26,26 -16,9 -35,10 H 71.756098 q -18,0 -35,-10 -17,-10 -26,-26 -21,-35 -1.0000004,-70 L 438.7561,37 q 9,-17 26,-27 17,-10 36,-10 19,0 36,10 17,10 27,27 z"
id="path2"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/banner.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/book.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/briefpapier_hellgrau.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

6609
src-modules/module/kb/etl/xml2html/layoutelements/bulma.css vendored

File diff suppressed because it is too large Load Diff

BIN
src-modules/module/kb/etl/xml2html/layoutelements/cslogo50x46w.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/frage.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/gr_rarrow.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

55
src-modules/module/kb/etl/xml2html/layoutelements/information.svg

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
version="1.1"
id="svg4"
sodipodi:docname="info-circled.svg"
height="25"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="963"
id="namedview6"
showgrid="false"
inkscape:zoom="5.089945"
inkscape:cx="59.576973"
inkscape:cy="19.118036"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="m 16.646545,20.308859 v -2.593242 q 0,-0.233101 -0.145687,-0.378789 -0.145688,-0.145687 -0.349651,-0.145687 H 14.577781 V 8.857809 q 0,-0.233102 -0.145688,-0.378789 Q 14.286406,8.333332 14.053305,8.333332 H 8.8668251 q -0.2331,0 -0.3787879,0.145688 -0.1456875,0.145687 -0.1456875,0.378789 v 2.593242 q 0,0.233097 0.1456875,0.378785 0.1456879,0.145687 0.3787879,0.145687 h 1.5442889 v 5.215618 H 8.8668251 q -0.2331,0 -0.3787879,0.145687 -0.1456875,0.145688 -0.1456875,0.378789 v 2.593242 q 0,0.233098 0.1456875,0.378786 0.1456879,0.145687 0.3787879,0.145687 h 7.2843819 q 0.203963,0 0.349651,-0.145687 0.145687,-0.145688 0.145687,-0.378786 z M 14.577781,5.740094 V 3.146852 q 0,-0.233098 -0.145688,-0.378786 -0.145687,-0.145687 -0.378788,-0.145687 h -3.117716 q -0.2331,0 -0.378787,0.145687 -0.145688,0.145688 -0.145688,0.378786 v 2.593242 q 0,0.233101 0.145688,0.378789 0.145687,0.145687 0.378787,0.145687 h 3.117716 q 0.233101,0 0.378788,-0.145687 0.145688,-0.145688 0.145688,-0.378789 z M 24.979879,12.5 q 0,3.40909 -1.66084,6.26457 Q 21.6582,21.620047 18.773585,23.310023 15.88897,25 12.509016,25 9.129063,25 6.2153099,23.310023 3.301557,21.620047 1.6989929,18.76457 0.0964288,15.90909 0.00901621,12.5 -0.07839637,9.09091 1.6989929,6.23543 3.4763822,3.379953 6.2153099,1.689977 8.9542376,0 12.509016,0 q 3.554779,0 6.264569,1.689977 2.70979,1.689976 4.545454,4.545453 1.835665,2.85548 1.66084,6.26457 z"
id="path2"
inkscape:connector-curvature="0"
style="stroke-width:0.02913753" />
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

1125
src-modules/module/kb/etl/xml2html/layoutelements/main.css

File diff suppressed because it is too large Load Diff

396
src-modules/module/kb/etl/xml2html/layoutelements/map.css

@ -0,0 +1,396 @@
body {
background-color: #CCCCCC;
background-image:url("images/briefpapier_hellgrau.gif");
color:black; margin-right: 1px;
padding-right:1px;font-family: sans-serif
}
a.fokus:link { color:blue;
text-decoration:underline;
background-color: rgb(90%,90%,99%);
font-size:bigger;
font-weight:bolder;
text-align:right
}
a.fokus:visited { color:black;
text-decoration:underline;
font-size:bigger;
font-weight:bolder;
background-color: rgb(90%,90%,90%);
text-align:right
}
a.fokus:active { color:red; text-decoration:underline;background-color:rgb(90%,90%,90%) }
a:link { color:blue; text-decoration:none;font-weight:medium }
a:visited { color:blue; text-decoration:none;font-weight:medium }
a:active { color:red; text-decoration:none }
p.fokus { color:black;
text-decoration:underline;
background-color: rgb(90%,90%,99%);
font-size:bigger;
font-weight:bolder;
text-align:right
}
p.listlevel0 {
margin-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:center;
border:solid medium silver}
p.fokus0 {
margin-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
margin-right:0px;
padding-right:0px;
border-right:none;
text-align:center;
border:solid medium silver;
background-color: rgb(90%,90%,90%);
text-align:right}
p.listlevel1 {
margin-left:10pt;
margin-top:5pt;
margin-bottom:1pt;
background-color:rgb("70%,50%,50%");
text-align:left;
font-weight:bold;
font-size:14pt
}
p.fokus1 {
margin-left:10pt;
margin-top:5pt;
margin-bottom:1pt;
margin-right:0px;
padding-right:0px;
border-right:none;
background-color: rgb(90%,90%,90%);
text-align:right;
font-weight:bold;
font-size:14pt
}
p.listlevel2 {
margin-left:20pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:left;
font-weight:bold;
font-size:13pt
}
p.fokus2 {
margin-left:20pt;
margin-top:1pt;
margin-bottom:1pt;
margin-right:0px;
padding-right:0px;
border-right:none;
background-color: rgb(90%,90%,90%);
text-align:right;
font-weight:bold;
font-size:13pt
}
p.listlevel3 {
margin-left:25pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:left;
font-size:12pt
}
p.fokus3 {
margin-left:25pt;
margin-top:1pt;
margin-bottom:1pt;
margin-right:0px;
padding-right:0px;
border-right:none;
background-color: rgb(90%,90%,90%);
text-align:right;
font-size:12pt
}
p.listlevel4 {
margin-left:33pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:left;
font-size:11pt
}
p.fokus4 {
margin-left:33pt;
margin-top:1pt;
margin-bottom:1pt;
margin-right:0px;
padding-right:0px;
border-right:none;
background-color: rgb(90%,90%,90%);
text-align:right;
font-size:11pt
}
p.listlevel5 {
margin-left:40pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:left;
font-size:10pt
}
p.fokus5 {
margin-left:40pt;
margin-top:1pt;
margin-bottom:1pt;
margin-right:0px;
padding-right:0px;
border-right:none;
background-color: rgb(90%,90%,90%);
text-align:right;
font-size:10pt
}
ul.fokus {
margin-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
padding-left:1pt;
list-style-type:none
}
ul.listlevel0 {
margin-left: 0px;
border:0px;
margin-top:1px;
margin-bottom:1px;
padding-left:0px;
border:medium solid rgb(90%,90%,90%);
list-style-type:none
}
ul.listlevel1 {
margin-left:0pt;
padding-left:0px;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:none
}
ul.listlevel2 {
margin-left:2pt;
padding-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:circle
}
ul.listlevel3 {
margin-left:2pt;
padding-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:square
}
ul.listlevel4 {
margin-left:2pt;
padding-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:none
}
ul.listlevel5 {
margin-left:2pt;
padding-left:1px;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:none
}
li.listlevel0 {
margin-left:1pt;
padding-left:1px;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:none
}
li.listlevel1 {
margin-left:1pt;
padding-left:0pt;
margin-top:5pt;
margin-bottom:1pt
}
li.listlevel2 {
margin-left:2pt;
padding-left:0pt;
margin-top:1pt;
margin-bottom:0pt
}
li.listlevel3 {
margin-left:4pt;
padding-left:0pt;
margin-top:0pt;
margin-bottom:0pt
}
li.listlevel4 {
margin-left:4pt;
padding-left:0pt;
margin-top:0pt;
margin-bottom:0pt
}
li.listlevel5 {
margin-left:3pt;
padding-left:0pt;
margin-top:0pt;
margin-bottom:0pt
}
a.listlevel0:link {
text-align:center;
border:none}
a.listlevel1:link {
text-align:left;
font-weight:bold;
font-size:14pt
}
a.listlevel2:link {
text-align:left;
font-weight:bold;
font-size:13pt
}
a.listlevel3:link {
text-align:left;
font-size:12pt
}
a.listlevel4:link {
text-align:left;
font-size:11pt
}
a.listlevel5:link {
text-align:left;
font-size:10pt
}
a.listlevel0:visited {
text-align:center;
border:none}
a.listlevel1:visited {
text-align:left;
font-weight:bold;
font-size:14pt
}
a.listlevel2:visited {
text-align:left;
font-weight:bold;
font-size:13pt
}
a.listlevel3:visited{
text-align:left;
font-size:12pt
}
a.listlevel4:visited{
text-align:left;
font-size:11pt
}
a.listlevel5:visited{
text-align:left;
font-size:10pt
}
td.listlevel0 {
margin-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:center;
background-color:black;
border:thick solid black
}
td.listlevel1 {
margin-left:10pt;
margin-top:5pt;
margin-bottom:1pt;
border:medium solid gray;
text-align:center
}
td.listlevel2 {
margin-left:20pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:center;
}
td.listlevel3 {
margin-left:25pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:center
}
td.Fokus0 {
margin-left:1pt;
margin-top:1pt;
margin-bottom:1pt;
text-align:center;
background-color:white;
border:thick solid black
}
td.Fokus1 {
margin-left:10pt;
margin-top:5pt;
margin-bottom:1pt;
background-color:white;
border:medium solid gray;
text-align:center
}
td.Fokus2 {
margin-left:20pt;
margin-top:1pt;
margin-bottom:1pt;
background-color:white;
text-align:center;
}
td.Fokus3 {
margin-left:25pt;
margin-top:1pt;
margin-bottom:1pt;
background-color:white;
text-align:center
}
h1 {
font-size:x-large;
font-weight:normal;
font-variant:small-caps;
text-align:center;
font-color:gray;
margin-bottom:5pt;
margin-top:5pt}
h2 {
font-size:large;
font-weight:normal;
font-variant:small-caps;
text-align:center;
margin-bottom:5pt;
margin-top:5pt}
td.Themenspalte {font-size:9pt;
vertical-align:top;
text-align:right;
border-right:thin solid black}

BIN
src-modules/module/kb/etl/xml2html/layoutelements/mtklein.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

8
src-modules/module/kb/etl/xml2html/layoutelements/mwTemplates.xsl

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../mwTemplates.xsl" />
<xsl:template match="/mwTemplate">
<xsl:apply-templates select="*" />
</xsl:template>
</xsl:stylesheet>

25
src-modules/module/kb/etl/xml2html/layoutelements/page_Components.xsl

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="toc_head">
<p align="right" margin="0" padding="0" class="klein"><a href="http://www.memtext.de" target="_top"><img src="mtklein.gif" border="0" alt="Zur Memtext-Homepage" /></a>
</p>
</xsl:template>
<xsl:template name="toc_foot">
</xsl:template>
<xsl:template name="body_foot">
<xsl:param name="pdf_file" />
<xsl:param name="fokus" />
<hr />
<p align="right"><span style="font-size:smaller">Link zu dieser <a href="{$fokus}" target="_parent">Seite</a></span> | <span style="font-size:smaller">Druckversion <a href="__index.htm" target="_parent">HTML</a> | #pdf_file#</span></p>
<table width="100%" border ="0"><tr><td align = "left"><a href="http://www.memtext.de" target="_top"><img src="mtklein.gif" border="0" alt="Zur Memtext-Homepage" /></a></td>
<td align="left"> <a target="_parent" href="http://freemarker.org/"><img src="poweredby_freemarker.png"
alt="Powered by FreeMarker" border="0" /></a></td>
<td align="left"><a target="_blank" href="http://www.campussource.de"><img src="cslogo50x46w.gif" width="50" height="46" border="0" align="left" alt="SuperX ist auch ein CampusSource-Projekt. Zur CampusSource-Homepage" /></a></td>
<td align="right" class="klein"><xsl:text>Seite </xsl:text><xsl:value-of select="(@id+1)" /><xsl:text> / </xsl:text><xsl:value-of select="count(/Document/chapter)" /><br />Letzter Update:
<xsl:value-of select="format-dateTime(current-dateTime(),'[D].[M].[Y]')" /><br /><a class="klein" href="http://www.studio-fuer-textdesign.de/impressum.htm">Impressum</a> | <a class="klein" href="http://www.studio-fuer-textdesign.de/datenschutz_public.htm">Datenschutz</a></td></tr></table>
</xsl:template>
</xsl:stylesheet>

BIN
src-modules/module/kb/etl/xml2html/layoutelements/pc.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/poweredby_freemarker.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

55
src-modules/module/kb/etl/xml2html/layoutelements/resultset_first.svg

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
version="1.1"
id="svg4"
sodipodi:docname="to-start.svg"
height="25"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="963"
id="namedview6"
showgrid="false"
inkscape:zoom="2.4866906"
inkscape:cx="149.8832"
inkscape:cy="50"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="m 20.07582,0.25134735 q 0.319901,-0.3199 0.523474,-0.23265 0.203572,0.0872 0.203572,0.52347 V 24.447437 q 0,0.40715 -0.203572,0.52348 -0.203573,0.11633 -0.523474,-0.23266 L 8.5594102,13.221847 q -0.1454092,-0.14541 -0.2035729,-0.3199 v 11.02202 q 0,0.40715 -0.3199003,0.72705 -0.3199003,0.3199 -0.7270461,0.3199 h -2.064811 q -0.4362277,0 -0.7270461,-0.3199 -0.2908185,-0.3199 -0.3199003,-0.72705 V 1.0656373 q 0,-0.40713995 0.3199003,-0.72703995 0.3199003,-0.3199 0.7270461,-0.3199 h 2.064811 q 0.4362276,0 0.7270461,0.3199 0.2908184,0.3199 0.3199003,0.72703995 V 12.058577 q 0.058164,-0.17449 0.2035729,-0.29082 z"
id="path2"
inkscape:connector-curvature="0"
style="stroke-width:0.02908184" />
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

55
src-modules/module/kb/etl/xml2html/layoutelements/resultset_last.svg

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
version="1.1"
id="svg4"
sodipodi:docname="to-end.svg"
height="25"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="963"
id="namedview6"
showgrid="false"
inkscape:zoom="2.4866906"
inkscape:cx="149.8832"
inkscape:cy="50"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="m 4.9245836,24.748653 q -0.2908184,0.3199 -0.5234732,0.23265 -0.2326547,-0.0872 -0.2035729,-0.52347 V 0.55255297 q 0,-0.40714 0.2035729,-0.52347 0.2035729,-0.11633 0.5234732,0.23265 L 16.440994,11.778143 q 0.145409,0.11633 0.232655,0.29082 V 1.076033 q 0,-0.40715003 0.290818,-0.72705003 0.290818,-0.3199 0.727046,-0.3199 h 2.093893 q 0.407146,0 0.727046,0.3199 0.3199,0.3199 0.290818,0.72705003 v 22.85833 q 0,0.40714 -0.290818,0.72704 -0.290818,0.3199 -0.727046,0.3199 h -2.093893 q -0.407146,0 -0.727046,-0.3199 -0.3199,-0.3199 -0.290818,-0.72704 v -11.02202 q -0.08725,0.17449 -0.232655,0.3199 z"
id="path2"
inkscape:connector-curvature="0"
style="stroke-width:0.02908184" />
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

55
src-modules/module/kb/etl/xml2html/layoutelements/resultset_next.svg

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
version="1.1"
id="svg4"
sodipodi:docname="right-dir.svg"
height="25"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="963"
id="namedview6"
showgrid="false"
inkscape:zoom="3.9789836"
inkscape:cx="93.670443"
inkscape:cy="50"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="m 19.513917,12.501681 q 0,0.61181 -0.437004,1.09251 L 8.1518084,24.519301 q -0.4807046,0.4807 -1.0925104,0.4807 -0.6118058,0 -1.0925104,-0.4807 Q 5.486083,24.038591 5.486083,23.426781 V 1.5765807 q 0,-0.65550996 0.4807046,-1.09250996 0.4807046,-0.43701 1.0925104,-0.48071 0.6118058,-0.0437 1.0925104,0.48071 L 19.076913,11.409171 q 0.437004,0.437 0.437004,1.09251 z"
id="path2"
inkscape:connector-curvature="0"
style="stroke-width:0.04370042" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

55
src-modules/module/kb/etl/xml2html/layoutelements/resultset_previous.svg

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
version="1.1"
id="svg4"
sodipodi:docname="left-dir.svg"
height="25"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="963"
id="namedview6"
showgrid="false"
inkscape:zoom="3.9789836"
inkscape:cx="93.670443"
inkscape:cy="50"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="m 19.508616,1.57343 v 21.85314 q 0,0.61189 -0.437063,1.09266 Q 18.63449,25 17.93519,25 17.235889,25 16.842532,24.51923 L 5.9159592,13.59266 Q 5.4788962,13.11189 5.4788962,12.5 q 0,-0.61189 0.437063,-1.09266 L 16.842532,0.48077 Q 17.323302,0 17.93519,0 q 0.611888,0 1.136363,0.48077 0.524476,0.48077 0.437063,1.09266 z"
id="path2"
inkscape:connector-curvature="0"
style="stroke-width:0.04370629" />
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

63
src-modules/module/kb/etl/xml2html/layoutelements/resultset_search.svg

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
height="25"
viewBox="0 0 6.6145832 6.6145835"
version="1.1"
id="svg3834"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="resultset_search.svg">
<defs
id="defs3828" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="-31.426879"
inkscape:cy="341"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1020"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
units="px" />
<metadata
id="metadata3831">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-290.3854)">
<path
inkscape:connector-curvature="0"
d="m 4.7935867,293.46668 q 0,-0.7073 -0.50644,-1.2086 -0.50643,-0.50129 -1.20449,-0.50815 -0.69806,-0.007 -1.21134,0.50815 -0.51328,0.51503 -0.49959,1.2086 0.0137,0.69357 0.49959,1.21546 0.48591,0.5219 1.21134,0.5013 0.72543,-0.0206 1.20449,-0.5013 0.47906,-0.48069 0.50644,-1.21546 z m 1.9573,3.19316 q 0,0.19915 -0.15056,0.34336 -0.15057,0.1442 -0.34219,0.1442 -0.20531,0 -0.34218,-0.1442 l -1.30715,-1.31161 q -0.68437,0.47383 -1.52615,0.47383 -0.5475,0 -1.04709,-0.21288 -0.49959,-0.21288 -0.85546,-0.57683 -0.35588003,-0.36395 -0.57487003,-0.85838 -0.219,-0.49442 -0.21216,-1.05065 0.007,-0.55623 0.21216,-1.04379 0.20531,-0.48755 0.57487003,-0.86524 0.36956,-0.37769 0.85546,-0.57683 0.4859,-0.19914 1.04709,-0.21288 0.56119,-0.0137 1.04024,0.21288 0.47906,0.22661 0.86231,0.57683 0.38325,0.35022 0.57487,0.86524 0.19162,0.51503 0.21216,1.04379 0,0.84464 -0.47222,1.53135 l 1.30715,1.3116 q 0.14372,0.1442 0.14372,0.35021 z"
id="path3933"
style="stroke-width:0.00685536" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

63
src-modules/module/kb/etl/xml2html/layoutelements/resultset_up.svg

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="25"
height="25"
viewBox="0 0 6.6145832 6.6145835"
version="1.1"
id="svg3834"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="resultset_up.svg">
<defs
id="defs3828" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="400"
inkscape:cy="341"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1020"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
units="px" />
<metadata
id="metadata3831">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-290.3854)">
<path
d="m 4.9380207,294.92502 0.390805,-0.43943 q 0.07541,-0.0848 0.07541,-0.19273 0,-0.10793 -0.07541,-0.20044 l -1.734614,-1.95046 q -0.07542,-0.0771 -0.171407,-0.0771 -0.09599,0 -0.17826,0.0771 l -1.7346143,1.95046 q -0.06857,0.0848 -0.06857,0.20044 0,0.11564 0.06857,0.19273 l 0.3908013,0.43943 q 0.07542,0.0771 0.171406,0.0771 0.09599,0 0.171403,-0.0771 l 1.179264,-1.326 1.172408,1.326 q 0.07541,0.0771 0.171406,0.0771 0.09599,0 0.171402,-0.0771 z m 1.419232,-1.04846 q 0,0.90198 -0.390802,1.6575 -0.390804,0.75551 -1.069565,1.20265 -0.678764,0.44714 -1.474081,0.44714 -0.795316,0 -1.480937,-0.44714 -0.6856183,-0.44714 -1.06270933,-1.20265 -0.37709,-0.75552 -0.397659,-1.6575 -0.02059,-0.90199 0.397659,-1.6575 0.41823003,-0.75552 1.06270933,-1.20266 0.644482,-0.44714 1.480937,-0.44714 0.836456,0 1.474081,0.44714 0.637625,0.44714 1.069565,1.20266 0.431941,0.75551 0.390802,1.6575 z"
id="path3809"
inkscape:connector-curvature="0"
style="stroke-width:0.00727023" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements/schluessel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

105
src-modules/module/kb/etl/xml2html/layoutelements/search/index.htm

@ -0,0 +1,105 @@
<html>
<head><title>Suche</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK REL="stylesheet" type="text/css" href="../bulma.css"></LINK>
<LINK REL="stylesheet" type="text/css" href="../superx.css"></LINK>
</head>
<script LANGUAGE="JavaScript"
src="index.htm.js">
</script>
<script LANGUAGE="JavaScript"
src="search_db.js">
</script>
<body onload="init_formular()">
<section class="hero">
<div class="hero-body">
<div class="container">
<h1 class="title">
Volltext-Suche
</h1>
<h2 class="subtitle">
Anm: Sie k&ouml;nnen nach Stichw&ouml;rtern suchen. Mindestens eine Angabe ist notwendig. Nur W&ouml;rter ab 4 Zeichen k&ouml;nnen gefunden werden.
</h2>
</div>
</div>
</section>
<form name="myform">
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">Suchbegriff(e)</label>
</div>
<div class="field-body">
<div class="field">
<input class="input" name='Suchbegriff1' type="text" placeholder="Suchbegriff 1">
</div>
<div class="field">
<div class="control">
<div class="select">
<select NAME="relation">
<OPTION value='&&'>und</OPTION>
<OPTION value='||'>oder</OPTION>
<OPTION value='&!'>nicht</OPTION>
</select>
</div>
</div>
</div>
<div class="field">
<input class="input" name='Suchbegriff2' type="text" placeholder="Suchbegriff 2">
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label"></label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<label class="checkbox">
<input type="checkbox" name="grossklein">
Gross/Kleinschreibung beachten
</label>
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label"></label>
</div>
<div class="field-body">
<div class="field is-grouped">
<div class="control">
<!--<button class="button" onclick="dataBase()">Suchen</button>-->
<!--<input type='button' name='Suchen' value='Suchen' onclick='dataBase()' />-->
<a class="button is-primary" onClick="dataBase()">Suchen</a>
</div>
</div>
</div>
</div>
</form>
<section class="section">
<div class="container" >
<div id="Ergebnis">
Achtung: Suche funktioniert z.Zt. nicht. Bitte schalten Sie Javascript ein, und aktualisieren Sie die Seite.
</div>
</div>
</section>
</body>
</html>

192
src-modules/module/kb/etl/xml2html/layoutelements/search/search_db.js

@ -0,0 +1,192 @@
<!-- Hide JavaScript from Java-Impaired Browsers
var maxOrdnungen=Ds.length-1;
var maxFelder=Ds[1].length -1;
NS4 = (document.layers) ? true:false; // netscape 4
IE4 = (document.all) ? true:false; // ie4+
DOM = ((document.getElementById)&&(!IE4))?true:false; // ns6, ie5 etc.
if (document.getElementsByTagName && !document.all)
document.all = document.getElementsByTagName("*"); //für NS6
function init_formular()
{
if (maxOrdnungen>0)
{
var zielstring="<p>"+maxOrdnungen+" Seiten durchsuchbar.";
}
else
{
var zielstring="<p>Achtung: Suche funktioniert z.Zt. nicht. Bitte schalten Sie Javascript ein, und aktualisieren Sie die Seite.</p>";
}
if (NS4)
{
with (document.Ergebnis.document)
{
open();
write(zielstring);
close();
}
}
else
{
document.all.Ergebnis.innerHTML=zielstring;
}
}
function dataBase() {
var zieltext="<h2>Suchergebnis:</h2><hr><ol>";
if (NS4)
{
var meinFormular=document.myform;
}
else
{
var meinFormular=document.forms[0];
}
var i=2;
var reinDamit=false;
var grossklein=meinFormular.grossklein.checked;
var relation = meinFormular.relation[meinFormular.relation.selectedIndex].value;
var zaehler=0;
var LinkText="";
//alert(recnum);
for (var i=2;i<=maxOrdnungen;i++)
{
reinDamit=false;
ausgefuellt1 = false;
ausgefuellt2 = false;
reinDamit1=false;
reinDamit2=false;
if (meinFormular.Suchbegriff1.value != "")
{
ausgefuellt1 = true;
if(grossklein)
{
if((ohneUmlaut(Ds[i][3]).indexOf(ohneUmlaut(meinFormular.Suchbegriff1.value)) != -1))
{
reinDamit1=true;
}
}
else
{
if((ohneUmlaut(Ds[i][3]).toUpperCase().indexOf(ohneUmlaut(meinFormular.Suchbegriff1.value.toUpperCase())) != -1))
{
reinDamit1=true;
}
}
}
if (meinFormular.Suchbegriff2.value != "")
{
ausgefuellt2 = true;
if(grossklein)
{
if((ohneUmlaut(Ds[i][3]).indexOf(ohneUmlaut(meinFormular.Suchbegriff2.value)) != -1))
{
reinDamit2=true;
}
}
else
{
if((ohneUmlaut(Ds[i][3]).toUpperCase().indexOf(ohneUmlaut(meinFormular.Suchbegriff2.value.toUpperCase())) != -1))
{
reinDamit2=true;
}
}
}
//Der erste Fall: Stichwort1 wird eingegeben, Stichwort 2 nicht
if (ausgefuellt1==true && ausgefuellt2==false && (reinDamit1==true))
{reinDamit=true;}
//Der zweite Fall: Stichwort1 wird eingegeben, Stichwort 2 auch
if (eval("(ausgefuellt1==true && ausgefuellt2==true && ((reinDamit1==true)"+relation+"(reinDamit2==true)))"))
{reinDamit=true;}
if (reinDamit==true)
{
LinkText="";
//den Link in die Liste aufnehmen:
for (var j=2;j<AnzFelder-1;j++)
{
LinkText+= Ds[i][j]+"; ";
}
zieltext+="<li><a href=\""+Ds[i][AnzFelder]+"\" target=\"_parent\">"+LinkText+"</a></li>";
zaehler++;
}
} //Der For-Schleife
if (zieltext=="<ol>") {zieltext="--Leider keine Eintr&auml;ge verf&uuml;gbar.--";}
if (NS4) {
with (document.Ergebnis.document)
{
open();
write(zieltext);
close();
}
}
else
{
document.all.Ergebnis.innerHTML=zieltext+"</ol>";
}
} //Ende Der Funktion
function ohneUmlaut(meiner)
{
zeichen= new Array();
zeichen[1] = new Array();
zeichen[1][1]="ä";
zeichen[1][2]="&auml;";
zeichen[2] = new Array();
zeichen[2][1]="ö";
zeichen[2][2]="&ouml;";
zeichen[3] = new Array();
zeichen[3][1]="ü";
zeichen[3][2]="&uuml;";
zeichen[4] = new Array();
zeichen[4][1]="Ä";
zeichen[4][2]="&Auml;";
zeichen[5] = new Array();
zeichen[5][1]="Ö";
zeichen[5][2]="&Ouml;";
zeichen[6] = new Array();
zeichen[6][1]="Ü";
zeichen[6][2]="&Uauml;";
zeichen[7] = new Array();
zeichen[7][1]="ß";
zeichen[7][2]="&szlig;";
var zs=meiner;
for(var i=1;i<zeichen.length;i++)
{
zs=ersetzen(zs,zeichen[i][1],zeichen[i][2]);
}
//if(zs != meiner) {alert(zs+","+meiner);}
return zs;
}//Ende Der Funktion
function ersetzen(Quellstring,suchstring,ersetzstring)
{
//ersetzt ein einem String eine gesuchte Zeichenfolge durch eine neue.
//Wenn die Gesuchte nicht drin ist, wird die Ursprüngliche zurückgegeben.
var s1=Quellstring;
var links="";
var rechts="";
var neu="";
while (s1.indexOf(suchstring)!= -1)
{
links=s1.substr(0,s1.indexOf(suchstring));
rechts=s1.substring(s1.indexOf(suchstring)+suchstring.length,s1.length);
s1=links+ersetzstring+rechts;
}
return s1;
}
// End Hiding Script -->

912
src-modules/module/kb/etl/xml2html/layoutelements/shared.css

@ -0,0 +1,912 @@
/**
* CSS in this file is used by *all* skins (that have any CSS at all). Be
* careful what you put in here, since what looks good in one skin may not in
* another, but don't ignore the poor non-Monobook users either.
*/
/* Default style for semantic tags */
abbr, acronym, .explain {
border-bottom: 1px dotted black;
cursor: help;
}
/* Colored watchlist and recent changes numbers */
.mw-plusminus-pos { color: #006400; } /* dark green */
.mw-plusminus-neg { color: #8b0000; } /* dark red */
.mw-plusminus-null { color: #aaa; } /* gray */
/* Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
[[Special:Watchlist/edit]] and in category listings */
.allpagesredirect, .redirect-in-category, .watchlistredir { font-style: italic; }
/* Comment and username portions of RC entries */
span.comment {
font-style: italic;
}
span.changedby {
font-size: 95%;
}
/* Math */
.texvc {
direction: ltr;
unicode-bidi: embed;
}
img.tex { vertical-align: middle; }
span.texhtml { font-family: serif; }
/* add a bit of margin space between the preview and the toolbar */
/* this replaces the ugly <p><br /></p> we used to insert into the page source */
#wikiPreview.ontop { margin-bottom: 1em; }
/* Stop floats from intruding into edit area in previews */
#editform, #toolbar, #wpTextbox1 {
clear: both;
}
div#mw-js-message {
margin: 1em 5%;
padding: 0.5em 2.5%;
border: solid 1px #ddd;
background-color: #fcfcfc;
}
/* Edit section links */
.editsection {
float: right;
margin-left: 5px;
}
/**
* File histories
*/
h2#filehistory {
clear: both;
}
table.filehistory th,
table.filehistory td {
vertical-align: top;
}
table.filehistory th {
text-align: left;
}
table.filehistory td.mw-imagepage-filesize,
table.filehistory th.mw-imagepage-filesize {
white-space: nowrap;
}
table.filehistory td.filehistory-selected {
font-weight: bold;
}
/*
* rev_deleted stuff
*/
li span.deleted, span.history-deleted {
text-decoration: line-through;
color: #888;
font-style: italic;
}
/**
* Patrol stuff
*/
.not-patrolled {
background-color: #ffa;
}
.unpatrolled {
font-weight: bold;
color: red;
}
div.patrollink {
font-size: 75%;
text-align: right;
}
/**
* Forms
*/
td.mw-label { text-align: right; }
td.mw-input { text-align: left; }
td.mw-submit { text-align: left; }
td.mw-label { vertical-align: top; }
.prefsection td.mw-label { width: 20%; }
.prefsection table { width: 100%; }
td.mw-submit { white-space: nowrap; }
table.mw-htmlform-nolabel td.mw-label {
width: 0 !important;
}
tr.mw-htmlform-vertical-label td.mw-label {
text-align: left !important;
}
input#wpSummary {
width: 80%;
}
/**
* Image captions
*/
.thumbcaption { text-align: left; }
.magnify { float: right; }
/**
* Hidden categories
*/
.mw-hidden-cats-hidden { display: none; }
.catlinks-allhidden { display: none; }
/* Convenience links to edit block, delete and protect reasons */
p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
p.mw-filedelete-editreasons, p.mw-delete-editreasons,
p.mw-revdel-editreasons {
font-size: 90%;
float: right;
}
/* Search results */
.searchresults {
}
.searchresults p {
margin-left: 0.4em;
margin-top: 1em;
margin-bottom: 1.2em;
}
div.searchresult {
font-size: 95%;
width: 38em;
}
.mw-search-results {
margin-left: 0.4em;
}
.mw-search-results li {
padding-bottom: 1em;
list-style: none;
list-style-image: none;
}
.mw-search-results li a {
font-size: 108%;
}
.mw-search-result-data {
color: green;
font-size: 97%;
}
.mw-search-formheader {
background-color: #f3f3f3;
margin-top: 1em;
border: 1px solid silver;
}
.mw-search-formheader div.search-types {
float: left;
padding-left: 0.25em;
}
.mw-search-formheader div.search-types ul {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
.mw-search-formheader div.search-types ul li {
float: left;
margin: 0;
padding: 0;
}
.mw-search-formheader div.search-types ul li a {
display: block;
padding: 0.5em;
}
.mw-search-formheader div.search-types ul li.current a {
color: #333333;
cursor: default;
}
.mw-search-formheader div.search-types ul li.current a:hover {
text-decoration: none;
}
.mw-search-formheader div.results-info {
float: right;
padding: 0.5em;
padding-right: 0.75em;
}
.mw-search-formheader div.results-info ul {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
.mw-search-formheader div.results-info ul li {
float: right;
margin: 0;
padding: 0;
}
fieldset#mw-searchoptions {
margin: 0;
padding-left: 0.75em !important;
padding-right: 0.75em !important;
padding-bottom: 0.5em !important;
padding-top: 0.5em !important;
border: none;
background-color: #f9f9f9;
border: 1px solid silver !important;
border-top-width: 0 !important;
}
fieldset#mw-searchoptions legend {
display: none;
}
fieldset#mw-searchoptions h4 {
padding: 0;
margin: 0;
float: left;
}
fieldset#mw-searchoptions div#mw-search-togglebox {
float: right;
}
fieldset#mw-searchoptions div#mw-search-togglebox label {
margin-right: 0.25em;
}
fieldset#mw-searchoptions div#mw-search-togglebox input {
margin-left: 0.25em;
}
fieldset#mw-searchoptions table {
float: left;
margin-right: 3em;
}
fieldset#mw-searchoptions table td {
padding-right: 1em;
}
fieldset#mw-searchoptions div.divider {
clear: both;
border-bottom: 1px solid #DDDDDD;
padding-top: 0.5em;
margin-bottom: 0.5em;
}
td#mw-search-menu {
padding-left:6em;
font-size:85%;
}
div#mw-search-interwiki {
float: right;
width: 18em;
border-style: solid;
border-color: #AAAAAA;
border-width: 1px;
margin-top: 2ex;
}
div#mw-search-interwiki li {
font-size: 95%;
}
.mw-search-interwiki-more {
float: right;
font-size: 90%;
}
div#mw-search-interwiki-caption {
text-align: center;
font-weight: bold;
font-size: 95%;
}
.mw-search-interwiki-project {
font-size: 97%;
text-align: left;
padding-left: 0.2em;
padding-right: 0.15em;
padding-bottom: 0.2em;
padding-top: 0.15em;
background-color: #ececec;
border-top: 1px solid #BBBBBB;
}
span.searchalttitle {
font-size: 95%;
}
div.searchdidyoumean {
font-size: 127%;
margin-top: 0.8em;
/* Note that this color won't affect the link, as desired. */
color: #c00;
}
div.searchdidyoumean em {
font-weight: bold;
}
.searchmatch {
font-weight: bold;
}
/*
* Advanced PowerSearch box
*/
td#mw-search-togglebox {
text-align: right;
}
table#mw-search-powertable {
width: 100%;
}
form#powersearch {
clear: both;
}
/*
* UserRights stuff
*/
.mw-userrights-disabled {
color: #888;
}
table.mw-userrights-groups * td,table.mw-userrights-groups * th {
padding-right: 1.5em;
}
/*
* OpenSearch ajax suggestions
*/
.os-suggest {
overflow: auto;
overflow-x: hidden;
position: absolute;
top: 0px;
left: 0px;
width: 0px;
background-color: white;
background-color: Window;
border-style: solid;
border-color: #AAAAAA;
border-width: 1px;
z-index:99;
font-size:95%;
}
table.os-suggest-results {
font-size: 95%;
cursor: pointer;
border: 0;
border-collapse: collapse;
width: 100%;
}
.os-suggest-result, .os-suggest-result-hl {
white-space: nowrap;
background-color: white;
background-color: Window;
color: black;
color: WindowText;
padding: 2px;
}
.os-suggest-result-hl,
.os-suggest-result-hl-webkit {
background-color: #4C59A6;
color: white;
}
.os-suggest-result-hl {
/* System colors are misimplemented in Safari 3.0 and earlier,
making highlighted text illegible... */
background-color: Highlight;
color: HighlightText;
}
.os-suggest-toggle {
position: relative;
left: 1ex;
font-size: 65%;
}
.os-suggest-toggle-def {
position: absolute;
top: 0px;
left: 0px;
font-size: 65%;
visibility: hidden;
}
/* Page history styling */
/* the auto-generated edit comments */
.autocomment { color: gray; }
#pagehistory .history-user {
margin-left: 0.4em;
margin-right: 0.2em;
}
#pagehistory span.minor {
font-weight: bold;
}
#pagehistory li {
border: 1px solid white;
}
#pagehistory li.selected {
background-color: #f9f9f9;
border: 1px dashed #aaa;
}
/** Generic minor/bot/newpage styling */
.newpage, .minor, .bot {
font-weight: bold;
}
/* Special:Contributions styling */
.mw-uctop {
font-weight: bold;
}
/* Special:ListGroupRights styling */
table.mw-listgrouprights-table tr {
vertical-align: top;
}
.listgrouprights-revoked {
text-decoration: line-through;
}
/* Special:Statistics styling */
td.mw-statistics-numbers {
text-align: right;
}
/* Special:SpecialPages styling */
h4.mw-specialpagesgroup {
background-color: #dcdcdc;
padding: 2px;
margin: .3em 0em 0em 0em;
}
.mw-specialpagerestricted {
font-weight: bold;
}
#shared-image-dup, #shared-image-conflict {
font-style: italic;
}
/* Special:EmailUser styling */
table.mw-emailuser-table {
width: 98%;
}
td#mw-emailuser-sender, td#mw-emailuser-recipient {
font-weight: bold;
}
/* Special:Allpages styling */
table.mw-allpages-table-form, table.mw-allpages-table-chunk {
width: 100%;
}
td.mw-allpages-alphaindexline {
text-align: right;
}
td.mw-allpages-nav, p.mw-allpages-nav {
text-align: right;
font-size: smaller;
margin-bottom: 1em;
}
table.mw-allpages-table-form tr {
vertical-align: top;
}
/* Special:Prefixindex styling */
table#mw-prefixindex-list-table,
table#mw-prefixindex-nav-table {
width: 98%;
}
td#mw-prefixindex-nav-form {
font-size: smaller;
margin-bottom: 1em;
text-align: right;
vertical-align: top;
}
/*
* Recreating deleted page warning
* Reupload file warning
* Page protection warning
* incl. log entries for these warnings
*/
div.mw-warning-with-logexcerpt {
padding: 3px;
margin-bottom: 3px;
border: 2px solid #2F6FAB;
clear: both;
}
div.mw-warning-with-logexcerpt ul li {
font-size: 90%;
}
/* (show/hide) revision deletion links */
span.mw-revdelundel-link,
strong.mw-revdelundel-link {
font-size: 90%;
}
span.mw-revdelundel-hidden,
input.mw-revdelundel-hidden {
visibility: hidden;
}
td.mw-revdel-checkbox, th.mw-revdel-checkbox {
padding-right: 10px;
text-align: center;
}
/* feed links */
a.feedlink {
/* @embed */
background: url("images/feed-icon.png") center left no-repeat;
padding-left: 16px;
}
/* Plainlinks - this can be used to switch
* off special external link styling */
.plainlinks a {
background: none !important;
padding: 0 !important;
}
/* wikitable class for skinning normal tables
* keep on sync with commonPrint.css
*/
table.wikitable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
color: black;
}
.wikitable th, .wikitable td {
border: 1px #aaa solid;
padding: 0.2em;
}
.wikitable th {
background: #f2f2f2;
text-align: center;
}
.wikitable caption {
font-weight: bold;
}
/* hide initially collapsed collapsable tables */
table.collapsed tr.collapsable {
display: none;
}
/* success and error messages */
.success {
color: green;
font-size: larger;
}
.error {
color: red;
font-size: larger;
}
.errorbox, .successbox {
font-size: larger;
border: 2px solid;
padding: .5em 1em;
float: left;
margin-bottom: 2em;
color: #000;
}
.errorbox {
border-color: red;
background-color: #fff2f2;
}
.successbox {
border-color: green;
background-color: #dfd;
}
.errorbox h2, .successbox h2 {
font-size: 1em;
font-weight: bold;
display: inline;
margin: 0 .5em 0 0;
border: none;
}
/* Note on preview page */
.previewnote {
color: #c00;
margin-bottom: 1em;
}
.previewnote p {
text-indent: 3em;
margin: 0.8em 0;
}
.visualClear {
clear: both;
}
#mw_trackbacks {
border: solid 1px #bbbbff;
background-color: #eeeeff;
padding: 0.2em;
}
/*
Table pager (e.g. Special:ListFiles)
- remove underlines from the navigation link
- collapse borders
- set the borders to outsets (similar to Special:AllMessages)
- remove line wrapping for all td and th, set background color
- restore line wrapping for the last two table cells (description and size)
*/
.TablePager {
min-width: 80%;
border-collapse: collapse;
}
.TablePager_nav a {
text-decoration: none;
}
.TablePager, .TablePager td, .TablePager th {
border: 1px solid #aaaaaa;
padding: 0 0.15em 0 0.15em;
}
.TablePager th {
background-color: #eeeeff;
}
.TablePager td {
background-color: #ffffff;
}
.TablePager tr:hover td {
background-color: #eeeeff;
}
.imagelist td, .imagelist th {
white-space: nowrap;
}
.imagelist .TablePager_col_links {
background-color: #eeeeff;
}
.imagelist .TablePager_col_img_description {
white-space: normal;
}
.imagelist th.TablePager_sort {
background-color: #ccccff;
}
/* Allmessages table */
#mw-allmessagestable .allmessages-customised td.am_default {
background-color: #fcffc4;
}
#mw-allmessagestable tr.allmessages-customised:hover td.am_default {
background-color: #faff90;
}
#mw-allmessagestable td.am_actual {
background-color: #e2ffe2;
}
#mw-allmessagestable tr.allmessages-customised:hover + tr.allmessages-customised td.am_actual {
background-color: #b1ffb1;
}
/* filetoc */
ul#filetoc {
text-align: center;
border: 1px solid #aaaaaa;
background-color: #f9f9f9;
padding: 5px;
font-size: 95%;
margin-bottom: 0.5em;
margin-left: 0;
margin-right: 0;
}
#filetoc li {
display: inline;
list-style-type: none;
padding-right: 2em;
}
/* Classes for EXIF data display */
table.mw_metadata {
font-size: 0.8em;
margin-left: 0.5em;
margin-bottom: 0.5em;
width: 300px;
}
table.mw_metadata caption {
font-weight: bold;
}
table.mw_metadata th {
font-weight: normal;
}
table.mw_metadata td {
padding: 0.1em;
}
table.mw_metadata {
border: none;
border-collapse: collapse;
}
table.mw_metadata td, table.mw_metadata th {
text-align: center;
border: 1px solid #aaaaaa;
padding-left: 0.1em;
padding-right: 0.1em;
}
table.mw_metadata th {
background-color: #f9f9f9;
}
table.mw_metadata td {
background-color: #fcfcfc;
}
/* Galleries */
/* These display attributes look nonsensical, but are needed to support IE and FF2 */
/* Don't forget to update commonPrint.css */
li.gallerybox {
vertical-align: top;
background-color: #f9f9f9;
border: solid 2px white;
display: -moz-inline-box;
}
ul.gallery, li.gallerybox {
display: inline-block;
zoom: 1;
*display: inline;
}
ul.gallery {
margin: 2px;
padding: 2px;
display: block;
}
li.gallerycaption {
font-weight: bold;
text-align: center;
display: block;
word-wrap: break-word;
}
li.gallerybox div.thumb {
text-align: center;
border: 1px solid #ccc;
margin: 2px;
}
div.gallerytext {
overflow: hidden;
font-size: 94%;
padding: 2px 4px;
word-wrap: break-word;
}
table.mw-enhanced-rc {
background: none;
border:0;
border-spacing:0;
}
td.mw-enhanced-rc {
white-space:nowrap;
padding:0;
vertical-align:top;
font-family:monospace
}
#mw-addcategory-prompt {
display: inline;
margin-left: 1em;
}
#mw-addcategory-prompt input {
margin-left: 0.5em;
margin-right: 0.5em;
}
.mw-remove-category {
padding: 8px;
/* @embed */
background-image: url(images/remove.png);
background-position: center center;
background-repeat: no-repeat;
}
.mw-ajax-addcategory {
padding-left: 20px;
/* @embed */
background-image: url(images/add.png);
background-position: left center;
background-repeat: no-repeat;
}
.mw-ajax-loader {
/* @embed */
background-image: url(images/ajax-loader.gif);
background-position: center center;
background-repeat: no-repeat;
padding: 16px;
position: relative;
top: -16px;
}
.mw-small-spinner {
padding: 10px !important;
margin-right: 0.6em;
/* @embed */
background-image: url(images/spinner.gif);
background-position: center center;
background-repeat: no-repeat;
}
/* Sort arrows added by SortableTables */
a.sortheader {
margin: 0 0.3em;
}
/* Localised ordered list numbering for some languages */
ol:lang(bcc) li,
ol:lang(bqi) li,
ol:lang(fa) li,
ol:lang(glk) li,
ol:lang(kk-arab) li,
ol:lang(mzn) li {
list-style-type: -moz-persian;
list-style-type: persian;
}
ol:lang(ckb) li {
list-style-type: -moz-arabic-indic;
list-style-type: arabic-indic;
}
ol:lang(bn) li {
list-style-type: -moz-bengali;
list-style-type: bengali;
}
/* tooltip styles */
.mw-help-field-hint {
display: none;
padding: 0px;
padding-left: 15px;
margin-left: 2px;
margin-bottom: -8px;
/* @embed */
background-image: url('images/help-question.gif');
background-position: left center;
background-repeat: no-repeat;
color: #0645ad;
text-decoration: underline;
cursor: pointer;
font-size: .8em;
}
.mw-help-field-hint:hover {
/* @embed */
background-image: url('images/help-question-hover.gif');
}
.mw-help-field-data {
display: block;
background-color: #d6f3ff;
padding:5px 8px 4px 8px;
border: 1px solid #5dc9f4;
margin-left: 20px;
}
.tipsy { padding: 5px 5px 10px; font-size: 12px; position: absolute; z-index: 100000; overflow: visible; }
.tipsy-inner { padding: 5px 8px 4px 8px; background-color: #d6f3ff; color: black; border: 1px solid #5dc9f4; max-width: 300px; text-align: left; }
.tipsy-arrow { position: absolute; /* @embed */ background: url( 'images/tipsy-arrow.gif' ) no-repeat top left; width: 13px; height: 13px; }
.tipsy-se .tipsy-arrow { bottom: -2px; right: 10px; background-position: 0% 100%; }

BIN
src-modules/module/kb/etl/xml2html/layoutelements/smilie.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

BIN
src-modules/module/kb/etl/xml2html/layoutelements/smoke.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

444
src-modules/module/kb/etl/xml2html/layoutelements/superx.css

@ -0,0 +1,444 @@
body {
background-color: white; color:black; /* margin-right: 10px; */
/* background-image:url("briefpapier_hellgrau.gif"); */
padding-right:10px;
font-family: Verdana,Arial,Helvetica,sans-serif;
/* font-size:11pt; */
padding-top:20px;
padding-left:20px;
}
body.topicframe
{background-color: #CCCCCC;
background-image:url("blaubck.jpg");
color:black; margin-right: 1px;
padding-right:1px;}
img { border-style:none;
}
.align-center{
text-align:center;
}
.EmbeddedChapter{
font-size:110%;font-style: bold;
padding: 25px 0px 10px 0px
}
div.ImagePara div img{
text-align:center;
border-style:solid;
border-width:1px;
border-color: black;
background-color: #E6E6E6;
padding: 5px 5px 5px 5px;
}
div.ImagePara a div img{
text-align:center;
border-style:solid;
border-width:1px;
border-color: black;
background-color: #E6E6E6;
padding: 5px 5px 5px 5px;
}
div.ImagePara div{
text-align:center;
}
div.ImagePara a div{
text-align:center;
}
.ImagePara{
text-align:center;
padding: 15px 15px 25px 15px;
}
.SyntaxPara, .SyntaxPara_borderStart, .SyntaxPara_borderEnd{
padding: 0px 10px 0px 10px;
margin: 1px 100px 0px 20px;
background-color: #E6E6E6;
font-family: monospace;
font-size:90%;
}
ul { list-style-image:url("gr_arrow.gif");
margin:1px}
.Group {color: "black";
text-align: right;
list-style-type: none;
list-style-image:none;
margin:1px;
padding:1px
}
td { /* border: 1px solid black; margin:5px; */
}
TD.Subgroup {
border-style:solid
}
UL.Second { margin-left:10px;
list-style-image:url("punkt1b.gif");
margin-bottom:1px
}
UL.mainlink { margin-left:20px;
list-style-image:url("logomini.gif");
margin-bottom:20px;
padding:10px
}
LI.mainli {border:50px}
li.klein {font-size:small}
TABLE {margin-left: 1em;
margin-right: 1em}
a.group:link { margin: 1px; font-size:xx-small }
a.group:visited { margin: 1px;font-size:xx-small }
a.group:active { margin: 1px;font-size:xx-small }
a.tabellenheader:link { color:black; text-decoration:underline; }
a.tabellenheader:visited { color:black; text-decoration:underline; }
a.tabellenheader:active { color:black; text-decoration:underline; }
a.fokus:link { background-color:white;color:"#0000A0"; text-decoration:underline;font-style: bold }
a.fokus:visited { background-color:white; color:"#0000A0"; text-decoration:underline }
a.fokus:active { background-color:white;color:red; text-decoration:underline }
a.gelb:link { color:yellow; text-decoration:underline;font-style: bold }
a.gelb:visited { color:yellow; text-decoration:underline }
a.gelb:active { color:red; text-decoration:underline }
a:link { color:blue; text-decoration:none }
a:visited { color:blue; text-decoration:none }
a:active { background-color:white;color:blue; text-decoration:none }
a.topic2:link { color:black; text-decoration:none }
a.topic2:visited { color:black; text-decoration:none }
a.topic2:active { color:blue; text-decoration:none }
a.topic2:hover { color:red; text-decoration:none}
/*Überschriften mit unterschiedlich großen Abständen nach oben, unten und links */
h1 {color: black;
font-size:220%;
display:block; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: black;
margin: 40px 0 20px 30px;}
h2 {color: black;
font-size:190%;
display:block; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: black;
margin: 30px 0 20px 20px;}
h3 {color: black;
font-size:160%;
display:block; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: black;
margin: 30px 0 20px 20px;}
h4 {color: black;
font-size:155%;
display:block; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: black;
margin: 20px 0 10px 10px;}
h5 {color: black;
font-size:140%;
display:block; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: black;
margin: 20px 0 10px 10px;}
h6 {color: black;
font-size:130%;
display:block; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: black;
margin: 10px 0 10px 10px;}
H1.main {margin-left:5px;
margin-bottom:1px;
padding-bottom:1px}
p.main {margin-left:5px;
margin-bottom:1px;
padding-bottom:1px}
p.normal, p.Standard {margin-left:5px;
margin-bottom:1px;
padding-bottom:1px;
/* font-size:11pt; */}
p {margin-left:5px;
margin-bottom:1px;
padding-bottom:1px;
font-size: 16px; }
p.marginalie {text-align:right;
font-weight:bold;
/* font-size:11pt */}
p.title {text-align:center;
font-size:bigger;
font-weight:bolder}
p.BulletedList
{
margin:1px 0 1px 0px;
padding:1px 0 1px 0px;
}
/*die foglende SPAN ist der Punkt in BulletedList*/
span.Numbering_20_Symbols
{ padding: 0 5px 0 10px
}
p.ScreenOnly
{
text-align:right;
}
p.tabellenzeile
{
text-align:left;
/* font-size:11pt */
}
td.leer
{width:100px}
.Tabellentext {
padding-left: 5px;padding-right: 5px;
border-width : medium; border-style: hidden;
font-size: small;
color: black; background-color : white;
vertical-align: top
}
.Topictext {
/* font-size: 11px; */
color: black;
}
.Tabellenlinks {
vertical-align: top;
text-align:center;
border-width : thick;
border-style: hidden;
font-style: oblique;
font-size: large; color: blue;
background-color : white
}
.Tabellenfokus {
border-style: hidden;
font-size: x-large;
text-align:center;
height: 25px;
color: black;
background-color : white;
}
.Tabellenerlaeuterung {
vertical-align: top;
text-align:center;
border-width : thick;
border-style: hidden;
height: 25px;
font-style: oblique;
font-size: medium;
color: black; background-color : white;
background-image:
}
.Topics {
/* font-size: 11px; */
color: blue;
text-align:right;
margin-right: 0px
}
.note { margin: 30px;
padding: 30px;
font-size: 14px;
border: 1px solid black;
width: 400px;
background-color:#EEFF44;}
.Kurztitel {font-size:larger}
.Langtitel {font-size:normal;
font-weight:normal}
.sgKurztitel {font-size:large}
.sgLangtitel {font-weight:normal}
.Funktion {font-weight:bold}
.Person {font-style:normal}
.UeberschriftLeitung {
font-size:large;
}
td.detail {border-left: thin solid gray}
td.Themenspalte {font-size:9pt;
vertical-align:top;
text-align:right;
border-right:thin solid black}
li.Tabellenbox
{
background-color:rgb(90%,90%,90%);
border: thin solid silver;
text-align:left;
margin-top:12px
}
p.Tabellenbox
{
background-color:rgb(90%,90%,90%);
border: thin solid silver;
text-align:center;
height:160px
}
p.Schattiert
{
background-color:rgb(250,250,250);
border: none;
text-align:center
}
p.Linkbox
{
background-color:rgb(122,224,255);
border: none;
text-align:center
}
td.klein
{
font-size:smaller
}#footer { }
td.navi
{
background-color:rgb(230,230,230);
text-align:center
}
span.Schluesselwort
{
font-weight:bold
}
span.blass
{
color:gray
}
span.Hyperlink
{
color:blue
}
p.mtBox
{
border-top:thin solid gray;
text-align:right
}
span.schwarz
{
background-color:rgb(20%,20%,90%);
color:white;
font-family:monospace;
font-weight:bold
}
span.weiss
{
background-color:rgb(50%,50%,90%);
color:white;
font-family:monospace;
font-weight:bold
}
a.mtBox:link
{
text-decoration:none;
font-family:monospace
}
a.mtBox:visited
{
text-decoration:none;
font-family:monospace
}
li.listlevel0 {
margin-left:1pt;
padding-left:1px;
margin-top:1pt;
margin-bottom:1pt;
list-style-type:none
}
li.listlevel1 {
margin-left:1pt;
padding-left:0pt;
margin-top:5pt;
margin-bottom:1pt
}
li.listlevel2 {
margin-left:20pt;
padding-left:0pt;
margin-top:1pt;
margin-bottom:0pt
}
li.listlevel3 {
margin-left:4pt;
padding-left:0pt;
margin-top:0pt;
margin-bottom:0pt
}
li.listlevel4 {
margin-left:4pt;
padding-left:0pt;
margin-top:0pt;
margin-bottom:0pt
}
li.listlevel5 {
margin-left:3pt;
padding-left:0pt;
margin-top:0pt;
margin-bottom:0pt
}
table.topbar
{
background-repeat:no-repeat;
background-image:url("images/ruler.gif");
}
span.Syntax
{
font-family:courier, monospace
}
p.Tabellenzeile
{
padding-left:2px;
padding-right:2px;
}
ol
{
list-style-type:decimal;
list-style-position:outside;
}
td.Table2ColBorderCell
{
border:thin solid silver;
}
td.TableCell
{
border:thin solid gray;
}
span.chapterNumber
{
text-shadow:black 3px 2px 4px; font-size:1.5em; color:gray;
}
table.wikitable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
color: black;
}
.wikitable th, .wikitable td {
border: 1px #aaa solid;
padding: 0.2em;
}
.wikitable th {
background: #f2f2f2;
text-align: center;
}
.wikitable caption {
font-weight: bold;
}
span.siehe_auch {
display:block;
border: thin solid gray;
}
span.siehe_auch:before{
content:"Siehe auch:";
}
span.hinweis {
display:block;
border: thin solid silver;
margin:1em;
}
span.hinweis:before{
content:"Hinweis:";
}
span.categoryPrefix{
color:gray;
}
span.categoryPrefix:before { content:"\2022"; }

BIN
src-modules/module/kb/etl/xml2html/layoutelements/superx.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

1
src-modules/module/kb/etl/xml2html/layoutelements/toc.css

File diff suppressed because one or more lines are too long

61
src-modules/module/kb/etl/xml2html/layoutelements/toc_pdf.xsl

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:outline="http://wkhtmltopdf.org/outline"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes" />
<xsl:template match="outline:outline">
<html>
<head>
<title>Table of Contents</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
h1 {
text-align: center;
font-size: 20px;
font-family: arial;
}
div {border-bottom: 1px dashed rgb(200,200,200);}
span {float: right;}
li {list-style: none;}
ul {
font-size: 20px;
font-family: arial;
}
ul ul {font-size: 80%; }
ul {padding-left: 0em;}
ul ul {padding-left: 1em;}
a {text-decoration:none; color: black;}
</style>
</head>
<body>
<h1>Inhaltsverzeichnis</h1>
<ul><xsl:apply-templates select="outline:item/outline:item"/></ul>
</body>
</html>
</xsl:template>
<xsl:template match="outline:item">
<li>
<xsl:if test="@title!=''">
<div>
<a>
<xsl:if test="@link">
<xsl:attribute name="href"><xsl:value-of select="@link"/></xsl:attribute>
</xsl:if>
<xsl:if test="@backLink">
<xsl:attribute name="name"><xsl:value-of select="@backLink"/></xsl:attribute>
</xsl:if>
<xsl:value-of select="@title" />
</a>
<span> <xsl:value-of select="@page" /> </span>
</div>
</xsl:if>
<ul>
<xsl:comment>added to prevent self-closing tags in QtXmlPatterns</xsl:comment>
<xsl:apply-templates select="outline:item"/>
</ul>
</li>
</xsl:template>
</xsl:stylesheet>

18
src-modules/module/kb/etl/xml2html/layoutelements/topics.xsl

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:sql="org.apache.xalan.lib.sql.XConnection" extension-element-prefixes="sql">
<!-- Script zur Erzeugung der html-Dokumentation eines SuperX-Moduls
Autor Daniel Quathamer
Letzte Aenderung: 25.2.2005
-->
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select ="/office:document-content/office:body/office:text/text:p">
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

188
src-modules/module/kb/etl/xml2html/layoutelements/topics2body.xsl

@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:param name="pdf_file" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="bodyfile" select="concat($targetpath,'/',fileName,'.htm')"/>
<xsl:variable name="deeplinkpath" select="concat('http://www.superx-projekt.de',substring-after($targetpath,'webapps/superx'))"/>
Generiere <xsl:value-of select="$bodyfile"/> in <xsl:value-of select="$targetpath"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$bodyfile}" format="html"
method="html">
<xsl:variable name="prev">
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@prev" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="next">
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@next" />
</xsl:call-template>
</xsl:variable>
<html>
<head><title><xsl:value-of select="name"/></title>
<META NAME = "author" content = "Daniel Quathamer"></META>
<META NAME = "copyright" content = "{concat('(c) ',format-dateTime(current-dateTime(),'[Y]'),' Daniel Quathamer')}"></META>
<META NAME = "date" content ="{format-dateTime(current-dateTime(),'[D].[M].[Y]')}"></META>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<LINK REL = "Start" href = "main.htm"></LINK>
<LINK REL = "Next" href="{$next}" />
<LINK REL = "Prev" href="{$prev}" />
<LINK REL = "Fokus" href="{$deeplinkpath}"/>
<style type="text/css"><xsl:text>
</xsl:text>
<xsl:value-of select="/Document/style"/>
</style>
<LINK REL="stylesheet" type="text/css" href="superx.css"></LINK>
<base target="_parent" />
</head>
<body>
<!--andre: hier navi-template aufrufen-->
<xsl:variable name="header_tagname">
<xsl:choose>
<xsl:when test="@level=0">
<xsl:text>h1</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('h',@level)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="{$header_tagname}"><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text> </xsl:text></xsl:if>
<xsl:value-of select="name"/></xsl:element>
<xsl:variable name="bodyText">
<xsl:value-of select="body"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$bodyText='#empty#'">
<xsl:variable name="currentId">
<xsl:value-of select="@id"/>
</xsl:variable>
<xsl:for-each select="/Document/chapter[@parent=$currentId]">
<p><xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@id" />
<xsl:with-param name="caption" select="name" />
</xsl:call-template>
</p>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$bodyText"/>
</xsl:otherwise>
</xsl:choose>
<div id="navi" class="navi" style="POSITION: relative;">
<table border = "0" width = "100%"><tr>
<!--prev-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@prev" />
<xsl:with-param name="imgSrc" select="'resultset_previous.svg'" />
<xsl:with-param name="caption" select="'Vorherige'" />
</xsl:call-template>
<!--Hoch-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="0" />
<xsl:with-param name="imgSrc" select="'resultset_up.svg'" />
<xsl:with-param name="caption" select="'Hoch'" />
</xsl:call-template>
<!--Search-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetHref"><xsl:text>javascript:document.location=('search/index.htm');</xsl:text></xsl:with-param>
<xsl:with-param name="imgSrc" select="'resultset_search.svg'" />
<xsl:with-param name="caption" select="'Suche'" />
<xsl:with-param name="target" select="'_self'" />
</xsl:call-template>
<!--next-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@next" />
<xsl:with-param name="imgSrc" select="'resultset_next.svg'" />
<xsl:with-param name="caption" select="'Nächste'" />
</xsl:call-template>
</tr>
</table>
</div>
<xsl:variable name="fokus"><xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@id" />
</xsl:call-template></xsl:variable>
<xsl:call-template name="body_foot" >
<xsl:with-param name="pdf_file" select="$pdf_file" />
<xsl:with-param name="fokus" select="concat('#targetpath#/',$fokus)" />
</xsl:call-template>
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="getFilename">
<xsl:param name="id" />
<xsl:value-of select="concat('f_',/Document/chapter[@id=$id]/fileName,'.htm')"/>
</xsl:template>
<xsl:template name="getName">
<xsl:param name="id" />
<xsl:value-of select="/Document/chapter[@id=$id]/name"/>
</xsl:template>
<xsl:template name="navigationButton">
<xsl:param name="targetChapterId" />
<xsl:param name="imgSrc" />
<xsl:param name="caption" />
<xsl:param name="targetHref" />
<xsl:param name="target" select="'_parent'"/>
<xsl:variable name="targetUrl">
<xsl:choose>
<xsl:when test="$targetHref != ''">
<xsl:value-of select="$targetHref"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="$targetChapterId" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="targetName">
<xsl:choose>
<xsl:when test="string($targetChapterId) != '' ">
<xsl:call-template name="getName">
<xsl:with-param name="id" select="$targetChapterId" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$imgSrc=''">
<a name="{$caption}" href = "{$targetUrl}" target = "{$target}" class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';"><xsl:value-of select="$caption" /></a>
</xsl:when>
<xsl:otherwise>
<td class = "navi"><a name="{$caption}" href = "{$targetUrl}"
target = "{$target}"
class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';">
<IMG src="{$imgSrc}" ALT="{$targetName}" border="0" /></a>
<br />
<a name="{$caption}" href = "{$targetUrl}" target = "{$target}" class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';"><xsl:value-of select="$caption" /></a></td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

54
src-modules/module/kb/etl/xml2html/layoutelements/topics2frame.xsl

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:param name="homepage" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<!-- each Chapter -->
<xsl:for-each select="/Document/chapter">
<xsl:call-template name="framefileContent">
<xsl:with-param name="framefile" select="concat($targetpath,'/f_',fileName,'.htm')"/>
</xsl:call-template>
</xsl:for-each>
<!--homepage-->
<xsl:for-each select="/Document/chapter [@id='0']">
<xsl:call-template name="framefileContent">
<xsl:with-param name="framefile" select="$homepage"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<xsl:template name="framefileContent">
<xsl:param name="framefile" />
Generiere <xsl:value-of select="$framefile"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$framefile}" format="html"
method="html">
<html>
<head><title><xsl:value-of select="name"/></title>
<META NAME = "author" content = "Daniel Quathamer"></META>
<META NAME = "copyright" content = "(c) 2010 Daniel Quathamer"></META>
<META NAME = "date" content ="10.08.2010 11:13:22"></META>
<LINK REL = "Start" href = "main.htm"></LINK>
<LINK REL = "Next" href = "DasBerichtssystemSup.htm "></LINK>
<LINK REL = "Prev" href = "DasBerichtssystemSup.htm "></LINK>
<LINK REL="stylesheet" type="text/css" href="superx.css"></LINK>
</head>
<frameset rows="30,*" framespacing="0" border="0">
<frame src="{concat('TOP0_',@id,'.htm')}" name = "{concat('TOP',@id)}" scrolling="no" frameborder="0" noresize="1">
<frameset cols = "250,*" >
<frame src="{concat('TOC0_',@id,'.htm')}" name = "{concat('TOC',@id)}" />
<frame src="{concat(fileName,'.htm')}" name = "TOC1" />
</frameset>
</frame>
</frameset>
<noframes>Diese Seiten wurden fuer Frame-faehige Browser entwickelt; bitte klicken Sie folgende Datei an: <a href="{concat(fileName,'.htm')}"><xsl:value-of select="name" /></a>
</noframes>
</html>
</xsl:result-document>
</xsl:template>
</xsl:stylesheet>

467
src-modules/module/kb/etl/xml2html/layoutelements/topics2page.xsl

@ -0,0 +1,467 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:param name="pdf_file" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="bodyfile" select="concat($targetpath,'/f_',fileName,'.htm')"/>
<xsl:variable name="deeplinkpath" select="concat('http://www.superx-projekt.de',substring-after($targetpath,'webapps/superx'))"/>
Generiere <xsl:value-of select="$bodyfile"/> in <xsl:value-of select="$targetpath"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$bodyfile}" format="html"
method="html">
<xsl:variable name="prev">
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@prev" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="next">
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@next" />
</xsl:call-template>
</xsl:variable>
<html>
<head><title><xsl:value-of select="name"/></title>
<META NAME = "author" content = "Daniel Quathamer"></META>
<META NAME = "copyright" content = "{concat('(c) ',format-dateTime(current-dateTime(),'[Y]'),' Daniel Quathamer')}"></META>
<META NAME = "date" content ="{format-dateTime(current-dateTime(),'[D].[M].[Y]')}"></META>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<LINK REL = "Start" href = "main.htm"></LINK>
<LINK REL = "Next" href="{$next}" />
<LINK REL = "Prev" href="{$prev}" />
<LINK REL = "Fokus" href="{$deeplinkpath}"/>
<style type="text/css"><xsl:text>
</xsl:text>
<xsl:value-of select="/Document/style"/>
</style>
<LINK REL="stylesheet" type="text/css" href="bulma.css"></LINK>
<LINK REL="stylesheet" type="text/css" href="superx.css"></LINK>
<base target="_self" />
</head>
<body>
<xsl:call-template name="header" />
<xsl:variable name="header_tagname">
<xsl:choose>
<xsl:when test="@level=0">
<xsl:text>h1</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('h',@level)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<section class="hero">
<div class="hero-body">
<div class="container">
<xsl:element name="{$header_tagname}"><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text> </xsl:text></xsl:if>
<xsl:value-of select="name"/></xsl:element>
</div>
</div>
</section>
<div class="columns">
<div class="column is-one-quarter">
<aside class="menu" style="background-color:#DDDDDD">
<p class="menu-label">
Inhalt
</p>
<xsl:call-template name="createToc" >
<xsl:with-param name="currentFocus" select="@id" />
</xsl:call-template>
</aside>
</div>
<div class="column is-three-quarters">
<div class="content">
<xsl:variable name="bodyText">
<xsl:value-of select="body"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$bodyText='#empty#'">
<xsl:variable name="currentId">
<xsl:value-of select="@id"/>
</xsl:variable>
<xsl:for-each select="/Document/chapter[@parent=$currentId]">
<p>
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@id" />
<xsl:with-param name="caption" select="name" />
</xsl:call-template>
</p>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$bodyText"/>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</div>
<div class="content has-text-centered">
<nav class="level">
<!--prev-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@prev" />
<xsl:with-param name="imgSrc" select="'resultset_previous.svg'" />
<xsl:with-param name="caption" select="'Vorherige'" />
</xsl:call-template>
<!--Hoch-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="0" />
<xsl:with-param name="imgSrc" select="'resultset_up.svg'" />
<xsl:with-param name="caption" select="'Hoch'" />
</xsl:call-template>
<!--Search-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetHref"><xsl:text>javascript:document.location=('search/index.htm');</xsl:text></xsl:with-param>
<xsl:with-param name="imgSrc" select="'resultset_search.svg'" />
<xsl:with-param name="caption" select="'Suche'" />
<xsl:with-param name="target" select="'_self'" />
</xsl:call-template>
<!--next-->
<xsl:call-template name="navigationButton">
<xsl:with-param name="targetChapterId" select="@next" />
<xsl:with-param name="imgSrc" select="'resultset_next.svg'" />
<xsl:with-param name="caption" select="'Nächste'" />
</xsl:call-template>
</nav>
</div>
<footer class="footer">
<xsl:variable name="fokus"><xsl:call-template name="getFilename">
<xsl:with-param name="id" select="@id" />
</xsl:call-template></xsl:variable>
<xsl:call-template name="footer" >
<xsl:with-param name="pdf_file" select="$pdf_file" />
<xsl:with-param name="fokus" select="concat('#targetpath#/',$fokus)" />
</xsl:call-template>
</footer>
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="getFilename">
<xsl:param name="id" />
<xsl:value-of select="concat('f_',/Document/chapter[@id=$id]/fileName,'.htm')"/>
</xsl:template>
<xsl:template name="getName">
<xsl:param name="id" />
<xsl:value-of select="/Document/chapter[@id=$id]/name"/>
</xsl:template>
<xsl:template name="navigationButton">
<xsl:param name="targetChapterId" />
<xsl:param name="imgSrc" />
<xsl:param name="caption" />
<xsl:param name="targetHref" />
<xsl:param name="target" select="'_self'"/>
<xsl:variable name="targetUrl">
<xsl:choose>
<xsl:when test="$targetHref != ''">
<xsl:value-of select="$targetHref"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getFilename">
<xsl:with-param name="id" select="$targetChapterId" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="targetName">
<xsl:choose>
<xsl:when test="string($targetChapterId) != '' ">
<xsl:call-template name="getName">
<xsl:with-param name="id" select="$targetChapterId" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="level-item">
<div class="box">
<xsl:if test="$imgSrc!=''">
<p class="heading">
<a name="{$caption}" href = "{$targetUrl}"
target = "{$target}"
class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';">
<IMG src="{$imgSrc}" ALT="{$targetName}" border="0" /></a>
</p>
</xsl:if>
<p>
<a name="{$caption}" href = "{$targetUrl}" target = "{$target}" class = "Navigation"
title="{$targetName}" onMouseOver="this.style.textDecoration='underline';"
onMouseOut=" this.style.textDecoration='none';"><xsl:value-of select="$caption" /></a>
</p>
</div>
</div>
</xsl:template>
<xsl:template name="header">
<div class="container">
<div id="navMenuDocumentation" class="navbar-menu">
<div class="navbar-start">
<div class="navbar-item" >
<a href = "http://www.superx-projekt.de" class = "Navigation"
title="Zu SuperX-Homepage">
<IMG src="Symbol.gif" ALT="SuperX" border="0" />
</a>
</div>
<div class="navbar-item" >
<xsl:value-of select="/Document/chapter[@id='0']/name" />
</div>
</div>
<div class="navbar-end">
<div class="navbar-item" >
<IMG src="book.gif" ALT="Buch" border="0" />
</div>
</div>
</div>
</div>
</xsl:template>
<xsl:template name="createToc">
<xsl:param name="currentFocus" />
<xsl:for-each select="/Document/chapter[@id='0']">
<xsl:variable name="p_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>Fokus</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>listlevel</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="a_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>is-active</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="isVisible">
<xsl:call-template name="isVisibleTocEntry">
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="targetChapter" select="@id"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($isVisible,'true')">
<ul class="menu-list"><li><xsl:attribute name="class"><xsl:value-of select="$p_class" /><xsl:value-of select="@level" /></xsl:attribute>
<a target="_self" class="{$a_class}">
<xsl:attribute name="href"><xsl:value-of select="concat('f_',fileName,'.htm')" /></xsl:attribute><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text>&#160;</xsl:text></xsl:if><xsl:value-of select="shortName"/>
<!--zum debuggen: <xsl:value-of select="$isVisible" />-->
</a>
<xsl:call-template name="getChildren">
<xsl:with-param name="parentId" select="@id"/>
<xsl:with-param name="currentFocus" select="$currentFocus"/>
</xsl:call-template>
</li></ul>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="getChildren">
<xsl:param name="parentId" />
<xsl:param name="currentFocus"/>
<xsl:variable name="childrenCount">
<xsl:value-of select="count(/Document/chapter[@parent=$parentId])"/>
</xsl:variable>
<xsl:if test="$childrenCount !=0">
<ul class="menu-list">
<xsl:for-each select="/Document/chapter[@parent=$parentId]">
<xsl:variable name="isVisible">
<xsl:call-template name="isVisibleTocEntry">
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="targetChapter" select="@id"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="a_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>is-active</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="contains($isVisible,'true')">
<li>
<a target="_self" class="{$a_class}">
<xsl:attribute name="href"><xsl:value-of select="concat('f_',fileName,'.htm')" /></xsl:attribute><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text>&#160;</xsl:text></xsl:if><xsl:value-of select="shortName"/>
<!--zum debuggen: <xsl:value-of select="$isVisible" />-->
</a>
<xsl:call-template name="getChildren">
<xsl:with-param name="parentId" select="@id"/>
<xsl:with-param name="currentFocus" select="$currentFocus"/>
</xsl:call-template>
</li>
</xsl:if>
</xsl:for-each>
</ul>
</xsl:if>
</xsl:template>
<xsl:template name="isVisibleTocEntry">
<xsl:param name="currentFocus" />
<xsl:param name="targetChapter" />
<xsl:choose>
<xsl:when test="$currentFocus=$targetChapter">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<!--die Zielknoten auf Ebene 1 kommen immer rein-->
<xsl:variable name="levelofTargetChapter">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<!--die Zielknoten liegen direkt unter dem Fokus?-->
<xsl:variable name="parentofTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentofTargetChapter=$currentFocus or $levelofTargetChapter='1'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<!--der targetChapter ist ein parent von currentFocus?-->
<xsl:call-template name="getParentOfCurrentFocus">
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="numberOfCalls" select="0"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getParentOfCurrentFocus">
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:param name="numberOfCalls" />
<xsl:variable name="parentOfCurrentFocus">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="parentOfTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<!--entweder das Zielkapitel ist direkt übergeordnet, oder
der parent des akt. Fokus ist identisch mit dem parent des Zielkapitels-->
<xsl:when test="$parentOfCurrentFocus=$targetChapter or ($parentOfCurrentFocus=$parentOfTargetChapter and $numberOfCalls &lt; 2)">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:when test="$parentOfCurrentFocus=-1">
<xsl:text>false</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getParentOfCurrentFocus">
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parentOfCurrentFocus"/>
<xsl:with-param name="numberOfCalls" select="$numberOfCalls+1"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getLevel">
<xsl:param name="targetChapter" />
<xsl:value-of select="/Document/chapter [@id=$targetChapter]/@level"/>
</xsl:template>
<xsl:template name="getParent">
<xsl:param name="targetChapter" />
<xsl:value-of select="/Document/chapter [@id=$targetChapter]/@parent"/>
</xsl:template>
<xsl:template name="footer">
<xsl:param name="pdf_file" />
<xsl:param name="fokus" />
<nav class="navbar" role="navigation" aria-label="main navigation">
<div id="navbarFooter" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="http://freemarker.org/">
<img src="poweredby_freemarker.png"
alt="Powered by FreeMarker" border="0" /></a>
<xsl:text>&#160;</xsl:text>
<a class="navbar-item" href="http://www.campussource.de">
<img src="cslogo50x46w.gif" width="50" height="46" border="0" align="left" alt="SuperX ist auch ein CampusSource-Projekt. Zur CampusSource-Homepage" /></a>
<xsl:text>&#160;</xsl:text>
<a class="navbar-item" href="http://www.memtext.de"><img src="mtklein.gif" border="0" alt="Zur Memtext-Homepage" /></a>
</div>
<div class="navbar-end">
<div class="navbar-item">
<p align="right"><span style="font-size:smaller">Link zu dieser <a href="{$fokus}" target="_self">Seite</a></span> | <span style="font-size:smaller">Druckversion <a href="__index.htm" target="_self">HTML</a> | #pdf_file#</span></p>
<p align="right"><span style="font-size:smaller">
<xsl:text>Seite </xsl:text><xsl:value-of select="(@id+1)" /><xsl:text> / </xsl:text><xsl:value-of select="count(/Document/chapter)" />
<br />Letzter Update:
<xsl:value-of select="format-dateTime(current-dateTime(),'[D].[M].[Y]')" /><br />
<a class="klein" href="http://www.studio-fuer-textdesign.de/impressum.htm">Impressum</a> | <a class="klein" href="http://www.studio-fuer-textdesign.de/datenschutz_public.htm">Datenschutz</a>
</span>
</p>
</div>
</div>
</div>
</nav>
</xsl:template>
</xsl:stylesheet>

75
src-modules/module/kb/etl/xml2html/layoutelements/topics2searchdb.xsl

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:variable name="singleQuote">&#39;</xsl:variable>
<xsl:output method="text" name="text"/>
<xsl:template match="/">
<xsl:text>
Ds= new Array();
Ds[1] = new Array();
Ds[1][1]= "Menuepunkt";
Ds[1][2]= "Seitentitel";
Ds[1][3]= "Volltext";
Ds[1][4]= "Datei";
</xsl:text>
<xsl:for-each select="/Document/chapter">
<xsl:text>Ds[</xsl:text><xsl:value-of select="@id+2"/><xsl:text>] = new Array();
Ds[</xsl:text><xsl:value-of select="@id+2"/><xsl:text>][1]= "</xsl:text><xsl:call-template name="prepareStringforJS">
<xsl:with-param name="content"><xsl:value-of select="shortName" /></xsl:with-param>
</xsl:call-template><xsl:text>";
Ds[</xsl:text><xsl:value-of select="@id+2"/><xsl:text>][2]= "</xsl:text><xsl:call-template name="prepareStringforJS">
<xsl:with-param name="content"><xsl:value-of select="name" /></xsl:with-param>
</xsl:call-template>
<xsl:text>";
Ds[</xsl:text><xsl:value-of select="@id+2"/><xsl:text>][3]= "</xsl:text><xsl:call-template name="prepareStringforJS">
<xsl:with-param name="content"><xsl:value-of select="summary" /></xsl:with-param>
</xsl:call-template>
<xsl:text>";
Ds[</xsl:text><xsl:value-of select="@id+2"/><xsl:text>][4]= "</xsl:text><xsl:value-of select="concat('../f_',fileName,'.htm')" />
<xsl:text>";
</xsl:text>
</xsl:for-each>
<xsl:text>
var AnzFelder= 4;
</xsl:text>
</xsl:template>
<xsl:template name="prepareStringforJS">
<xsl:param name="content" />
<xsl:call-template name="removeSingleQuote">
<xsl:with-param name="content"><xsl:value-of select="translate($content,'&quot;',' ')"/></xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="removeSingleQuote">
<xsl:param name="content" />
<!-- Anführungszeichen für js entfernen -->
<xsl:variable name="ret">
<xsl:call-template name="search_replace"><xsl:with-param name="string" select="$content" /><xsl:with-param name="search" select="$singleQuote" /><xsl:with-param name="replace" select="''" /></xsl:call-template>
</xsl:variable>
<xsl:call-template name="search_replace"><xsl:with-param name="string" select="$ret" /><xsl:with-param name="search" select="';'" /><xsl:with-param name="replace" select="'.'" /></xsl:call-template>
</xsl:template>
<xsl:template name="search_replace">
<xsl:param name="string" />
<xsl:param name="search" />
<xsl:param name="replace" />
<xsl:choose>
<xsl:when test="not($string)" />
<xsl:when test="contains($string, $search)">
<xsl:value-of select="substring-before($string, $search)" />
<xsl:value-of select="$replace" />
<xsl:call-template name="search_replace">
<xsl:with-param name="string"
select="substring-after($string, $search)" />
<xsl:with-param name="search"
select="$search" />
<xsl:with-param name="replace"
select="$replace" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

310
src-modules/module/kb/etl/xml2html/layoutelements/topics2toc.xsl

@ -0,0 +1,310 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" />
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="tocfile" select="concat($targetpath,'/TOC0_',@id,'.htm')"/>
Generiere <xsl:value-of select="$tocfile"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$tocfile}" format="html"
method="html">
<html>
<head>
<LINK REL="stylesheet" type="text/css" href="toc.css"></LINK>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<xsl:call-template name="toc_head" />
<xsl:call-template name="createToc" >
<xsl:with-param name="currentFocus" select="@id" />
</xsl:call-template>
<xsl:call-template name="toc_foot" />
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="createToc">
<xsl:param name="currentFocus" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="p_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>Fokus</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>listlevel</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="a_class">
<xsl:choose>
<xsl:when test="@id=$currentFocus">
<xsl:text>fokus</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="isVisible">
<xsl:call-template name="isVisibleTocEntry">
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="targetChapter" select="@id"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($isVisible,'true')">
<p><xsl:attribute name="class"><xsl:value-of select="$p_class" /><xsl:value-of select="@level" /></xsl:attribute>
<a target="_parent" class="{$a_class}">
<xsl:attribute name="href"><xsl:value-of select="concat('f_',fileName,'.htm')" /></xsl:attribute><xsl:if test="chapterNumber != ''"><span class="chapterNumber">
<xsl:value-of select="chapterNumber"/></span><xsl:text>&#160;</xsl:text></xsl:if><xsl:value-of select="shortName"/>
<!--zum debuggen: <xsl:value-of select="$isVisible" />-->
</a> </p>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="isVisibleTocEntry">
<xsl:param name="currentFocus" />
<xsl:param name="targetChapter" />
<xsl:choose>
<xsl:when test="$currentFocus=$targetChapter">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<!--die Zielknoten auf Ebene 1 kommen immer rein-->
<xsl:variable name="levelofTargetChapter">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<!--die Zielknoten liegen direkt unter dem Fokus?-->
<xsl:variable name="parentofTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentofTargetChapter=$currentFocus or $levelofTargetChapter='1'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<!--der targetChapter ist ein parent von currentFocus?-->
<xsl:call-template name="getParentOfCurrentFocus">
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$currentFocus"/>
<xsl:with-param name="numberOfCalls" select="0"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getParentOfCurrentFocus">
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:param name="numberOfCalls" />
<xsl:variable name="parentOfCurrentFocus">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="parentOfTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<!--entweder das Zielkapitel ist direkt übergeordnet, oder
der parent des akt. Fokus ist identisch mit dem parent des Zielkapitels-->
<xsl:when test="$parentOfCurrentFocus=$targetChapter or ($parentOfCurrentFocus=$parentOfTargetChapter and $numberOfCalls &lt; 2)">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:when test="$parentOfCurrentFocus=-1">
<xsl:text>false</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getParentOfCurrentFocus">
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parentOfCurrentFocus"/>
<xsl:with-param name="numberOfCalls" select="$numberOfCalls+1"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getLevel">
<xsl:param name="targetChapter" />
<xsl:value-of select="/Document/chapter [@id=$targetChapter]/@level"/>
</xsl:template>
<xsl:template name="getParent">
<xsl:param name="targetChapter" />
<xsl:value-of select="/Document/chapter [@id=$targetChapter]/@parent"/>
</xsl:template>
<!--klappt noch nicht:
<xsl:template name="computeDistance">
<xsl:param name="currentFocus" />
<xsl:param name="targetChapter" />
<xsl:choose>
<xsl:when test="$currentFocus=$targetChapter">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="levelFrom">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="levelTo">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$levelFrom &gt; $levelTo">
<xsl:text>goUp: </xsl:text>
<xsl:call-template name="stepUpCurrentFocus">
<xsl:with-param name="counter" select="1" />
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$currentFocus" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:text>goDown</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="stepUpCurrentFocus">
<xsl:param name="counter"/>
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:variable name="parentOfCurrentFocus">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentOfCurrentFocus=$targetChapter or $parentOfCurrentFocus='-1'">
<xsl:value-of select="concat(' currFocus ',$parentOfCurrentFocus,'_',$counter)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="levelFrom">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$parentOfCurrentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="levelTo">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$levelTo &gt; $levelFrom ">
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpTargetChapter">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$currentFocus" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$parentOfCurrentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpCurrentFocus">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="stepUpTargetChapter">
<xsl:param name="counter"/>
<xsl:param name="targetChapter" />
<xsl:param name="currentFocus" />
<xsl:variable name="parentOfTargetChapter">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$parentOfTargetChapter=$currentFocus or $parentOfTargetChapter='-1'">
<xsl:value-of select="concat(' TargetChapter ',$currentFocus,'_',$counter)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="levelFrom">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$parentOfTargetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="levelTo">
<xsl:call-template name="getLevel">
<xsl:with-param name="targetChapter" select="$currentFocus" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$levelTo &gt; $levelFrom ">
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$targetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpTargetChapter">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$currentFocus" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="parent">
<xsl:call-template name="getParent">
<xsl:with-param name="targetChapter" select="$parentOfTargetChapter" />
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="stepUpCurrentFocus">
<xsl:with-param name="counter" select="$counter+1" />
<xsl:with-param name="targetChapter" select="$targetChapter" />
<xsl:with-param name="currentFocus" select="$parent" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>-->
</xsl:stylesheet>

64
src-modules/module/kb/etl/xml2html/layoutelements/topics2top.xsl

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:import href="page_Components.xsl" />
<xsl:param name="targetpath" select="'/home/superx/tmp/tt'"/>
<xsl:output method="html" name="html"/>
<xsl:template match="/">
<xsl:value-of select="$targetpath" />
<xsl:for-each select="/Document/chapter">
<xsl:variable name="topfile" select="concat($targetpath,'/TOP0_',@id,'.htm')"/>
Generiere <xsl:value-of select="$topfile"/><xsl:text>
</xsl:text>
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann
<xsl:result-document href="{$tabfile}" format="text">-->
<xsl:result-document href="{$topfile}" format="html"
method="html">
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8" />
<title><xsl:value-of select="name"/></title>
<link rel="stylesheet" href="shared.css" media="screen" />
<link rel="stylesheet" href="main.css" media="screen" />
<link rel="stylesheet" href="BreadCrumbs.css" />
</head>
<body class="mediawiki ltr capitalize-all-nouns ns-0 ns-subject page-SuperX_BW_Leitfaden_Inhalt_Lehre_Studium skin-modern">
<!-- heading -->
<div id="mw_header"><h1 id="firstHeading"><xsl:value-of select="name"/></h1></div>
<div id="mw_main">
<div id="mw_contentwrapper">
<!-- navigation portlet -->
<div id="p-cactions" class="portlet">
<h5>Ansichten</h5>
<div class="pBody">
<ul>
<li><p>.</p></li>
<li><p>.</p></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/BLAUBCK.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

14
src-modules/module/kb/etl/xml2html/layoutelements_48/BreadCrumbs.css

@ -0,0 +1,14 @@
/* Stylesheet for the BreadCrumbs extension, an extension of the
* edit box of MediaWiki to provide an easy way to add category links
* to a specific page.
*
* @file
* @ingroup Extensions
* @author Manuel Schneider <manuel.schneider@wikimedia.ch>
* @copyright © 2007 by Manuel Schneider
* @licence GNU General Public Licence 2.0 or later
*/
#BreadCrumbsTrail {
font-size:0.8em;
}

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_find_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_go_next_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_go_prev_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_go_top_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/Button_1_home_green_btn_s.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src-modules/module/kb/etl/xml2html/layoutelements_48/Icon_XMap_t.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save