Skip to content

Commit

Permalink
#781 fix as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schoicsiro committed Oct 9, 2023
1 parent 1084de2 commit 92f2ecf
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions grails-app/views/profile/_layoutTabbed.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<g:render template="/common/attachments" model="[hideHeading: false]"/>
<g:render template="links"/>
<g:render template="bhlLinks"/>
<g:render template="publications"/>
<g:render template="bibliography"/>
<g:if test="${!profile.archivedDate}">
<g:render template="lists"/>
Expand Down
28 changes: 28 additions & 0 deletions grails-app/views/profile/_publications.gsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div class="panel panel-default" ng-controller="PublicationController as pubCtrl"
ng-cloak id="browse_lists"
ng-show="pubCtrl.publications.length > 0 || !pubCtrl.readonly()"
ng-form="PubForm">
<navigation-anchor anchor-name="{{pubCtrl.readonly() ? 'view_' : 'edit_'}}publications" title="Versions" condition="pubCtrl.publications.length > 0 || !pubCtrl.readonly()"></navigation-anchor>

<div class="panel-heading">
<div class="row">
<div class="col-sm-12">
<h4 class="section-panel-heading">Versions</h4>
<p:help help-id="profile.edit.versions" show="${edit}" collection-override="${opus?.help?.versionsLink}"/>
</div>
</div>
</div>

<div class="panel-body">
<g:if test="${params.isOpusAuthor && grailsApplication.config.feature?.publications == 'false'}">
<alert type="warning">Snapshot versioning has been temporarily disabled.</alert>
</g:if>
<div class="row section-no-para">
<div class="col-sm-12" ng-repeat="pub in pubCtrl.publications">
<publication data="pub" opus-id="pubCtrl.opusId" profile-id="pubCtrl.profileId" prefix="${grailsApplication.config.doi.resolver.prefix}">
</publication>
<hr ng-if="!$last"/>
</div>
</div>
</div>
</div>
11 changes: 11 additions & 0 deletions grails-app/views/profile/edit.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
{{profileCtrl.profile.archiveComment}}
</p>

<p>
If you need to reference this profile, you can do so using the last published version:

<div class="archived-publication">
<publication data="profileCtrl.profile.publications[0]" opus-id="profileCtrl.opusId"
profile-id="profileCtrl.profileId" prefix="${grailsApplication.config.doi.resolver.prefix}">
</publication>
</div>

<p>
Archived profiles will only appear in the general search results if the 'Include archived profiles' option is selected.
Archived profiles will NOT appear in the Browse, Quick Find, Taxonomic Tree or Subordinate Taxa lists.
Expand Down Expand Up @@ -165,6 +174,8 @@
params="[opusId: params.opusId]"/>
<multimedia profile="profileCtrl.profile" readonly="profileCtrl.readonly"></multimedia>
</g:if>
<g:include controller="profile" action="publicationsPanel"
params="[opusId: params.opusId]"/>
<g:include controller="profile" action="authorPanel"
params="[opusId: params.opusId]"/>
<g:if test="${params.isOpusReviewer}">
Expand Down
10 changes: 10 additions & 0 deletions grails-app/views/profile/show.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
<p class="archive-comment">
{{profileCtrl.profile.archiveComment}}
</p>

<p>
If you need to reference this profile, you can do so using the last published version:

<div class="archived-publication">
<publication data="profileCtrl.profile.publications[0]" opus-id="profileCtrl.opusId"
profile-id="profileCtrl.profileId" prefix="${grailsApplication.config.doi.resolver.prefix}">
</publication>
</div>
</p>
<p>
Archived profiles will only appear in the general search results if the 'Include archived profiles' option is selected.
Archived profiles will NOT appear in the Browse, Quick Find, Taxonomic Tree or Subordinate Taxa lists.
Expand Down

0 comments on commit 92f2ecf

Please sign in to comment.