File tree Expand file tree Collapse file tree
ubo-common/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ MCR.ContentTransformer.modsCsl-xhtml-pdf.FileExtension=html
504504# #
505505# #####################################################################
506506MCR.ContentTransformer.mods2citation.Class = org.mycore.csl.MCRCSLTransformer
507- MCR.ContentTransformer.mods2citation.format = xml
507+ MCR.ContentTransformer.mods2citation.format = html
508508MCR.ContentTransformer.mods2citation.style = ubo-presentation
509509MCR.ContentTransformer.mods2citation.ItemProviderClass = org.mycore.mods.csl.MCRModsItemDataProvider
510510MCR.ContentTransformer.mods2citation.MIMEType = text/html; charset\="UTF-8"
Original file line number Diff line number Diff line change 1111 "q.op" : " AND" ,
1212 "df" : " all" ,
1313 "rows" : 10 ,
14- "fl" : " id cite cite.de cite.en year genre host_genre oa_exact" ,
14+ "fl" : " id cite cite.de cite.en year genre host_genre oa_exact nid_connection " ,
1515 "facet" : " true" ,
1616 "facet.mincount" : " 1" ,
1717 "facet.field" : [
Original file line number Diff line number Diff line change 153153 <div class =" col" >
154154 <xsl : call-template name =" label-year" />
155155 <xsl : call-template name =" pubtype" />
156- <xsl : call-template name =" orcid-status" />
156+ <xsl : call-template name =" orcid-status" >
157+ <xsl : with-param name =" mycore-id" select =" @ID" />
158+ <xsl : with-param name =" publication-connection-ids" select =" //mods:mods//mods:nameIdentifier[@type='connection']" />
159+ </xsl : call-template >
157160 </div >
158161 <div class =" col" >
159162 <xsl : call-template name =" buttons" >
Original file line number Diff line number Diff line change 2929 <xsl : param name =" UBO.DESTATIS.omit.ID" />
3030 <xsl : param name =" UBO.Affiliation.Suppress.ConnectedIndicator" />
3131
32- <xsl : param name =" current-user" select =" document('notnull:user:current')/user" />
33-
3432 <!-- Expect one more author to be displayed as the last author is always getting displayed -->
3533 <xsl : param name =" UBO.Initially.Visible.Authors" select =" 14" />
3634
333331 </span >
334332 </xsl : template >
335333
336- <!-- ========== ORCID status and publish button ========== -->
337- <xsl : variable name =" current-user-connection-id" select =" $current-user/attributes/attribute[@name='id_connection']/@value" />
338-
339- <xsl : template name =" orcid-status" >
340- <xsl : variable name =" publication-connection-ids" select =" ancestor::mycoreobject//mods:nameIdentifier[@type='connection']" />
341-
342- <xsl : if test =" $publication-connection-ids = $current-user-connection-id" >
343- <div class =" orcid-status" data-id =" {ancestor::mycoreobject/@ID}" />
344- </xsl : if >
345- </xsl : template >
346-
347- <xsl : template name =" orcid-publish" >
348- <xsl : variable name =" publication-connection-ids" select =" ancestor::mycoreobject//mods:nameIdentifier[@type='connection']" />
349-
350- <xsl : if test =" $publication-connection-ids = $current-user-connection-id" >
351- <div class =" orcid-publish d-inline" data-id =" {ancestor::mycoreobject/@ID}" />
352- </xsl : if >
353- </xsl : template >
354-
355334 <!-- ========== URI bauen, um Dubletten zu finden ========== -->
356335
357336 <xsl : template name =" buildFindDuplicatesURI" >
Original file line number Diff line number Diff line change 202202 <xsl : call-template name =" pubtype" />
203203 <xsl : call-template name =" label-kdsf-pub-doc-type" />
204204 <xsl : call-template name =" label-oa" />
205- <xsl : call-template name =" orcid-status" />
205+ <xsl : call-template name =" orcid-status" >
206+ <xsl : with-param name =" mycore-id" select =" @ID" />
207+ <xsl : with-param name =" publication-connection-ids" select =" //mods:mods//mods:nameIdentifier[@type='connection']" />
208+ </xsl : call-template >
206209 </div >
207210 </div >
208211 <div class =" row" >
Original file line number Diff line number Diff line change 347347 </xsl : if >
348348
349349 <xsl : if test =" string-length($MCR.ORCID2.OAuth.ClientSecret) > 0 and contains($MCR.ORCID2.OAuth.Scope,'update')" >
350- <xsl : call-template name =" orcid-status" >
351- <xsl : with-param name =" mcrid" select =" $id" />
352- </xsl : call-template >
350+ <xsl : call-template name =" orcid-status" />
353351 </xsl : if >
354352 </div >
355353
Original file line number Diff line number Diff line change 55
66 <xsl : param name =" WebApplicationBaseURL" />
77 <xsl : param name =" MCR.ORCID2.LinkURL" />
8+ <xsl : param name =" current-user" select =" document('notnull:user:current')/user" />
89
910 <!-- ========== ORCID status and publish button ========== -->
11+ <xsl : variable name =" current-user-connection-id" select =" $current-user/attributes/attribute[@name='id_connection']/@value" />
12+
1013 <xsl : template name =" orcid-status" >
11- <xsl : param name =" mcrid" select =" ancestor::mycoreobject/@ID" />
12- <div class =" orcid-status" data-id =" {$mcrid}" />
14+ <xsl : param name =" mycore-id" select =" str[@name='id']" />
15+ <xsl : param name =" publication-connection-ids" select =" arr[@name='nid_connection']/str/text()" />
16+
17+ <xsl : if test =" contains($publication-connection-ids, $current-user-connection-id)" >
18+ <div class =" orcid-status" data-id =" {$mycore-id}" />
19+ </xsl : if >
1320 </xsl : template >
1421
1522 <xsl : template name =" orcid-publish" >
16- <xsl : param name =" mcrid" select =" ancestor::mycoreobject/@ID" />
17- <div class =" orcid-publish d-inline" data-id =" {$mcrid}" />
23+ <xsl : param name =" mycore-id" select =" str[@name='id']" />
24+ <xsl : param name =" publication-connection-ids" select =" arr[@name='nid_connection']/str/text()" />
25+
26+ <xsl : if test =" contains($publication-connection-ids, $current-user-connection-id)" >
27+ <div class =" orcid-publish d-inline" data-id =" {$mycore-id}" />
28+ </xsl : if >
1829 </xsl : template >
1930
2031 <!-- If current user has ORCID, and we are his trusted party, display ORCID icon to indicate that -->
2536 </a >
2637 </xsl : if >
2738 </xsl : template >
28-
2939</xsl : stylesheet >
You can’t perform that action at this time.
0 commit comments