-
Notifications
You must be signed in to change notification settings - Fork 18
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 article landing…
… page
- Loading branch information
Showing
3 changed files
with
48 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,7 @@ | |
.article__rorImage { | ||
padding-left: 5px; | ||
} | ||
|
||
#citationOutput .csl-left-margin { | ||
display: none; | ||
} |
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
44 changes: 44 additions & 0 deletions
44
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,44 @@ | ||
{if $citation} | ||
<section> | ||
<h2>{translate key="submission.howToCite"}</h2> | ||
<p></p> | ||
<div id="citationOutput" role="region" aria-live="polite" style="margin-bottom: 1.25rem;"> | ||
{$citation} | ||
</div> | ||
<div class="dropdown"> | ||
<button class="btn btn-primary 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> | ||
<ul class="dropdown-menu" aria-labelledby="cslCitationFormatsButton"> | ||
{foreach from=$citationStyles item="citationStyle"} | ||
<li class="dropdown-item"> | ||
<a | ||
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> | ||
</li> | ||
{/foreach} | ||
</ul> | ||
</div> | ||
|
||
{if count($citationDownloads)} | ||
<hr> | ||
<h3> | ||
{translate key="submission.howToCite.downloadCitation"} | ||
</h3> | ||
<ul> | ||
{foreach from=$citationDownloads item="citationDownload"} | ||
<li> | ||
<a href="{url page="citationstylelanguage" op="download" path=$citationDownload.id params=$citationArgs}"> | ||
{$citationDownload.title|escape} | ||
</a> | ||
</li> | ||
{/foreach} | ||
</ul> | ||
{/if} | ||
</section> | ||
{/if} |