Skip to content

Commit

Permalink
Merge branch 'release/0.8.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Jun 8, 2021
2 parents c088180 + 6480f80 commit 9cc8034
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
"program": "${workspaceFolder}/src/Stars.Console/bin/Debug/netcoreapp3.1/Stars.dll",
"args": [
"copy",
"https://resource-catalogue.185.52.193.87.nip.io/?mode=opensearch&service=CSW&version=3.0.0&request=GetRecords&elementsetname=full&resulttype=results&typenames=csw:Record&recordids=S2B_MSIL2A_20200902T090559_N0214_R050_T34SFH_20200902T113910.SAFE",
"https://catalog.charter.uat.esaportal.eu//charter/cat/[chartercalibrateddataset,%7Bcallid857%7D,mission_worldview_3]/search?format=atom&uid=call857_WV03S00_875416E119_8883332018100200000000MS00-calibrated&do=[terradue]",
"-v",
"-r",
"4",
Expand Down Expand Up @@ -603,7 +603,6 @@
"-v",
"-r",
"4",
"-k",
"--output",
"/tmp/charter"
],
Expand Down
2 changes: 2 additions & 0 deletions src/Stars.Console/Operations/CopyOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ internal class CopyOperation : BaseOperation
[Option("-af|--asset-filter", "Asset filters to match to be included in the copy (default to all)", CommandOptionType.MultipleValue)]
public string[] AssetsFilters { get; set; }

[Option("--empty", "Empty argument", CommandOptionType.NoValue)]
public bool Empty { get; set; }

private RouterService routingService;
private CarrierManager carrierManager;
Expand Down
2 changes: 1 addition & 1 deletion src/Stars.Services/StarsServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static IServiceCollection LoadBasePlugins(this IServiceCollection service
services.AddTransient<AssetService, AssetService>();
// Processing Service
services.AddTransient<ProcessingService, ProcessingService>();

services.AddTransient<ITranslator, StacLinkTranslator>();
services.AddTransient<ITranslator, DefaultStacTranslator>();

return services;
Expand Down
3 changes: 2 additions & 1 deletion src/Stars.Services/Translator/StacLinkTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public async Task<T> Translate<T>(IResource route) where T : IResource
if (itemNode != null)
{
var links = itemNode.GetLinks();
foreach (IResourceLink stacLink in links.Where(l => l.Relationship == "alternate" && l.ContentType?.MediaType == "application/geo+json"))
foreach (IResourceLink stacLink in links.Where(l => l.Relationship == "alternate" &&
(l.ContentType?.MediaType == "application/json" || l.ContentType?.MediaType == "application/geo+json")))
{
try
{
Expand Down

0 comments on commit 9cc8034

Please sign in to comment.