File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed
DDM/BExIS.Modules.Ddm.UI/Views/Data
DIM/BExIS.Modules.Dim.UI/Controllers Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 33<div class =" publication-container" >
44 @foreach ( var label in Model )
55 {
6- if (@label .Value == " template" )
6+
7+ if (label .Value == " template" )
78 {
89 < a href = " " class = " label label-info" > @label .Key < / a >
910 }
10- else
11+ else if ( label . Value . ToLower () == " doi " )
1112 {
12- <a href =" @label.Key" class =" label label-success" >@label.Value : @label.Key </a >
13- }
14-
13+ string displayName = label .Key ;
14+ if (label .Key .StartsWith (" http" ))
15+ {
16+ string [] parts = label .Key .Split ('/' );
17+ displayName = string .Join (" /" , parts .Skip (parts .Length - 2 ));
18+ }
1519
20+ <a href =" @label.Key" class =" label label-success" >@label.Value : @displayName </a >
21+ }
1622 }
1723
1824</div >
Original file line number Diff line number Diff line change 2121using System . Web ;
2222using System . Web . Mvc ;
2323using Vaiona . Web . Mvc . Modularity ;
24+ using static System . Net . WebRequestMethods ;
2425
2526namespace BExIS . Modules . Dim . UI . Controllers
2627{
@@ -125,7 +126,7 @@ public async Task<JsonResult> RegisterDataset(long publicationId)
125126 publication . Status = PublicationStatus . Registered . ToString ( ) ;
126127 publication . FilePath = downloadPath ;
127128 publication . Response = result . Replace ( '\" ' , ' ' ) . Trim ( ) ;
128- publication . ExternalLink = doi ;
129+ publication . ExternalLink = "https://doi.org/" + doi ;
129130 publication . ExternalLinkType = "DOI" ;
130131 publicationManager . UpdatePublication ( publication ) ;
131132
Original file line number Diff line number Diff line change 11BEGIN TRANSACTION;
22
3+ -- change all doi entries from 10.21373/vmy64f -> https://doi.org/10.21373/vmy64f
4+ UPDATE dim_publications
5+ SET externallink = ' https://doi.org/' || externallink
6+ WHERE
7+ externallinktype= ' DOI' and
8+ externallink NOT LIKE ' http%' ;
9+
10+
311ALTER TABLE public .dim_linkelements
412 ALTER COLUMN xpath TYPE text COLLATE pg_catalog." default" ;
513
You can’t perform that action at this time.
0 commit comments