-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override CSL plugin template and move the markup from the article lan…
…ding page
- Loading branch information
Showing
2 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
templates/plugins/generic/citationStyleLanguage/citationblock.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{if $citation} | ||
<div class="article-details-block article-details-how-to-cite"> | ||
<h2 class="article-details-heading"> | ||
{translate key="submission.howToCite"} | ||
</h2> | ||
<div id="citationOutput" class="article-details-how-to-cite-citation" role="region" aria-live="polite"> | ||
{$citation} | ||
</div> | ||
<div class="dropdown"> | ||
<button class="btn dropdown-toggle" type="button" id="cslCitationFormatsButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-csl-dropdown="true"> | ||
{translate key="submission.howToCite.citationFormats"} | ||
</button> | ||
<div class="dropdown-menu" aria-labelledby="cslCitationFormatsButton"> | ||
{foreach from=$citationStyles item="citationStyle"} | ||
<a | ||
class="dropdown-item" | ||
aria-controls="citationOutput" | ||
href="{url page="citationstylelanguage" op="get" path=$citationStyle.id params=$citationArgs}" | ||
data-load-citation | ||
data-json-href="{url page="citationstylelanguage" op="get" path=$citationStyle.id params=$citationArgsJson}" | ||
> | ||
{$citationStyle.title|escape} | ||
</a> | ||
{/foreach} | ||
{if count($citationDownloads)} | ||
<h3 class="dropdown-header"> | ||
{translate key="submission.howToCite.downloadCitation"} | ||
</h3> | ||
{foreach from=$citationDownloads item="citationDownload"} | ||
<a class="dropdown-item" href="{url page="citationstylelanguage" op="download" path=$citationDownload.id params=$citationArgs}"> | ||
{$citationDownload.title|escape} | ||
</a> | ||
{/foreach} | ||
{/if} | ||
</div> | ||
</div> | ||
</div> | ||
{/if} |