Skip to content

Commit

Permalink
fix links after the recent lod.lu update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainVagner committed Jul 9, 2022
1 parent de811a9 commit a0ab342
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<d:index d:value="<%= i %>"/>
<% }) %>
<%- article.desc %>
<p class="lod_article">Definitioun op lod.lu: <a href="https://www.lod.lu/?<%= article.id %>"><%= article.title %></a></p>
<p class="lod_article">Definitioun op lod.lu: <a href="https://lod.lu/artikel/<%= article.id %>"><%= article.title %></a></p>
</d:entry>
<% }) %>
<d:entry id="front_back_matter" d:title="Front/Back Matter" lang="lb">
Expand Down
3 changes: 1 addition & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ allArticles = allArticles.map(article => {
if (!debug || allowList.includes(article['lod:meta']['lod:id'])) {
const id = article['lod:meta']['lod:id']
console.log(id)
const audioLink = '<a class="audio" href="https://www.lod.lu/audio/' + id.toLowerCase() + '.mp3">lauschteren</a>'

const audioLink = '<a class="audio" href="https://lod.lu/uploads/AAC/' + id.toLowerCase() + '.m4a">lauschteren</a>'

try { // manage the case where the definition has not been crawled
const $ = cheerio.load(fs.readFileSync('./data/crawled/' + id + '.html'))
Expand Down
2 changes: 1 addition & 1 deletion packaging/packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ then
source id.sh
fi

VERSION="0.3.1"
VERSION="0.3.2"
rm -rf ./package ./tmp
mkdir -p ./package/Dictionaries
mkdir ./tmp
Expand Down
2 changes: 1 addition & 1 deletion test.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<% allArticles.forEach(article => { %>
<div id="<%= article.id %>" lang="lb">
<%- article.desc %>
<p class="lod_article">Definitioun op lod.lu: <a href="https://www.lod.lu/?<%= article.id %>"><%= article.title %></a></p>
<p class="lod_article">Definitioun op lod.lu: <a href="https://lod.lu/artikel/<%= article.id %>"><%= article.title %></a></p>
</div>
<% }) %>
</main>
Expand Down

0 comments on commit a0ab342

Please sign in to comment.