Skip to content

Commit

Permalink
Added User Guide link to citation popups from dataset metrics block, …
Browse files Browse the repository at this point in the history
…removed unused link title [ref #5253]
  • Loading branch information
mheppler committed Jul 22, 2019
1 parent 4e6593b commit aa215c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ metrics.views={0, choice, 0#Views|1#View|2#Views}
metrics.downloads={0, choice, 0#Downloads|1#Download|2#Downloads}
metrics.citations={0, choice, 0#Citations|1#Citation|2#Citations}
metrics.citations.dialog.header=Dataset Citations
metrics.citations.dialog.help=Citations for this dataset are retrieved from Crossref via DataCite a using Make Data Count standards.
metrics.citations.dialog.help=Citations for this dataset are retrieved from Crossref via DataCite a using Make Data Count standards. For more information about dataset metrics, please refer to the <a href="{0}/{1}/user/dataset-management.html#dataset-metrics-user" title="Dataset Metrics - Dataverse User Guide" target="_blank">User Guide</a>.
dataset.publish.btn=Publish
dataset.publish.header=Publish Dataset
dataset.rejectBtn=Return to Author
Expand Down
12 changes: 8 additions & 4 deletions src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,8 @@
data-toggle="tooltip" data-placement="auto top" data-original-title="#{bundle['metrics.dataset.downloads.makedatacount.tip']}"></span>
</div>
<!-- Make Data Count citations (DOIs only, not Handles) -->
<div class="metrics-count-block" jsf:rendered="#{not empty settingsServiceBean.get(':MDCLogPath') and settingsServiceBean.get(':Protocol') == 'doi'}">
<p:commandLink title="DATASET CITATIONS LINK TITLE HERE"
oncomplete="PF('citationsDialog').show();">
<div class="metrics-count-block" jsf:rendered="#{true}">
<p:commandLink oncomplete="PF('citationsDialog').show();">
<h:outputFormat value="{0} #{bundle['metrics.citations']}">
<f:param value="#{fn:length(datasetExternalCitationsServiceBean.getDatasetExternalCitationsByDataset(DatasetPage.dataset))}"/>
</h:outputFormat>
Expand All @@ -419,7 +418,12 @@
data-toggle="tooltip" data-placement="auto top" data-original-title="#{bundle['metrics.dataset.citations.tip']}"></span>

<p:dialog id="citationsDialog" styleClass="smallPopup" header="#{bundle['metrics.citations.dialog.header']}" widgetVar="citationsDialog" modal="true">
<p class="help-block">#{bundle['metrics.citations.dialog.help']}</p>
<p class="help-block">
<h:outputFormat value="#{bundle['metrics.citations.dialog.help']}" escape="false">
<f:param value="#{systemConfig.guidesBaseUrl}"/>
<f:param value="#{systemConfig.guidesVersion}"/>
</h:outputFormat>
</p>

<div id="citations-list-block">
<ul>
Expand Down

0 comments on commit aa215c7

Please sign in to comment.