Skip to content

Commit

Permalink
Nazev clanku v citaci clanku
Browse files Browse the repository at this point in the history
  • Loading branch information
honza-rychtar committed Feb 5, 2019
1 parent 0de1737 commit d8291cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/app/services/citation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export class CitationService {
c += this.writeAuthors(metadata);
}
if (metadata.article) {
c += this.writeAuthors(metadata.article.metadata);
const articleMetadata = metadata.article.metadata;
c += this.writeAuthors(articleMetadata);
if (articleMetadata && articleMetadata.titles.length > 0) {
c += articleMetadata.titles[0].fullTitle();
c += '. ';
}
}
if (metadata.titles.length > 0) {
c += '<i>';
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<script type="text/javascript" src="assets/globals.js?v1.2.1"></script>
<script type="text/javascript" src="assets/globals.js?v1.2.2"></script>
<app-root>...</app-root>
<script>
(function(i, s, o, g, r, a, m) {
Expand Down

0 comments on commit d8291cd

Please sign in to comment.