Skip to content

Commit

Permalink
Abstract of CITATION.CFF in About window
Browse files Browse the repository at this point in the history
  • Loading branch information
roewenstrunk committed Dec 2, 2024
1 parent f5e1ddc commit a6a1484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controller/window/about/AboutWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Ext.define('EdiromOnline.controller.window.about.AboutWindow', {
const citation = response.responseText;

// find keys in citation
const abstract = String(citation.match(/^abstract:\s>-\n(\s+.*\n)+/gm)).replace(/^abstract:\s>-\n/, '');
const version = citation.match(/^version: (.*)/m)[1];
const title = citation.match(/^title: (.*)/m)[1];
const license = citation.match(/^license: (.*)/m)[1];
Expand All @@ -57,6 +58,7 @@ Ext.define('EdiromOnline.controller.window.about.AboutWindow', {
<div class="tei_body">
<h1>About ${title}</h1>
<section class="teidiv0">
<p>${abstract}</p>
<p>Version: ${version}</p>
<p>Release date: ${releaseDate}</p>
<p>DOI: <a href="https://doi.org/${doi}">${doi}</a></p>
Expand Down

0 comments on commit a6a1484

Please sign in to comment.