Isaac Riley 6 years ago
commit b20a924df8

@ -53,12 +53,12 @@
<tr> <tr>
<td width="auto" align="left">The Gambler(EN) - Der Spieler(DE)</td> <td width="auto" align="left">The Gambler(EN) - Der Spieler(DE)</td>
<td align="center"><a class="button" href="404.html">View HTML</a></td> <td align="center"><a class="button" href="xslt/dost_gambler_ende.html">View HTML</a></td>
</tr> </tr>
<tr> <tr>
<td width="auto" align="left">The Gambler(EN) - Игрок(RU)</td> <td width="auto" align="left">The Gambler(EN) - Игрок(RU)</td>
<td align="center"><a class="button" href="404.html">View HTML</a></td> <td align="center"><a class="button" href="xslt/dost_gambler_enru.html">View HTML</a></td>
</tr> </tr>
<tr> <tr>

@ -88,7 +88,7 @@ def read_data_files_and_align_sentences(book_code):
else: else:
print(const.WARNING, 'Unknown Book Code :: ', book_code, const.END) print(const.WARNING, 'Unknown Book Code :: ', book_code, const.END)
print(const.BLUE, 'Please provide the BookCode from books_data.csv', const.END) print(const.BLUE, 'Please provide the BookCode from books_data.csv file', const.END)
def create_xml_file(book_content, book_metadata_dict): def create_xml_file(book_content, book_metadata_dict):
@ -110,7 +110,7 @@ if __name__ == '__main__':
if env.check_env_variables(): if env.check_env_variables():
if args.read_book and len(args.read_book) > 0: if args.read_book and len(args.read_book) > 0:
read_data_files_and_align_sentences(args.book_code) read_data_files_and_align_sentences(args.read_book)
elif args.validate: elif args.validate:
validate_all_xml_files() validate_all_xml_files()
elif args.save_to_db: elif args.save_to_db:

@ -0,0 +1,10 @@
SELECT
title, lang, is_translation
FROM
dim_book_info
INNER JOIN
map_book_author ON map_book_author.book = dim_book_info.id
INNER JOIN
dim_author ON dim_author.id = map_book_author.author
WHERE
dim_author.name LIKE '%Fjodor%'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="book1" select="document('../xml_files/dost_under_enru_en.xml')/*" /> <xsl:variable name="book1" select="document('../xml_files/dost_gambler_enru_en.xml')/*" />
<xsl:variable name="book2" select="document('../xml_files/dost_under_enru_ru.xml')/*" /> <xsl:variable name="book2" select="document('../xml_files/dost_gambler_enru_ru.xml')/*" />
<xsl:template match="/"> <xsl:template match="/">
<html> <html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save