From 799424dc9a32d0e6ba2b0bb6edf87a92b16810f2 Mon Sep 17 00:00:00 2001 From: OluwatobiAwe <114475132+OluwatobiAwe@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:18:11 +0000 Subject: [PATCH 1/5] TD-3337 Updated Scorm Activity Summary where clause --- .../Stored Procedures/Activity/ScormActivityGetSummary.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Activity/ScormActivityGetSummary.sql b/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Activity/ScormActivityGetSummary.sql index e854a8c25..50c6d8a89 100644 --- a/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Activity/ScormActivityGetSummary.sql +++ b/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Activity/ScormActivityGetSummary.sql @@ -27,7 +27,7 @@ BEGIN INNER JOIN resources.[ResourceVersion] rv ON rv.id = r.CurrentResourceVersionId WHERE - rr.id = @ResourceReferenceId + rr.OriginalResourceReferenceId = @ResourceReferenceId AND rr.Deleted = 0 AND r.Deleted = 0 AND rv.Deleted = 0 @@ -61,4 +61,4 @@ BEGIN END END -GO \ No newline at end of file +GO From 433cacdb028e205d1c43b8b2738b0fa5d56b200e Mon Sep 17 00:00:00 2001 From: Swapnamol Abraham Date: Thu, 29 Feb 2024 10:57:02 +0000 Subject: [PATCH 2/5] TD-3839-Logs are Getting Saved in Production Log-Content Server Issues --- .../GetScormContentServerDetailsForHistoricExternalUrl.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources/GetScormContentServerDetailsForHistoricExternalUrl.sql b/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources/GetScormContentServerDetailsForHistoricExternalUrl.sql index a1b9c55fc..0e9d36efb 100644 --- a/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources/GetScormContentServerDetailsForHistoricExternalUrl.sql +++ b/WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources/GetScormContentServerDetailsForHistoricExternalUrl.sql @@ -19,7 +19,7 @@ BEGIN srv.EsrLinkTypeId EsrLinkType, er.Active IsActive, srv.ContentFilePath AS InternalResourceIdentifier, - svm.ManifestURL AS ManifestUrl + svm.ManifestURL AS DefaultUrl FROM [resources].[UrlRewriting] u join resources.ExternalReference er on u.ExternalReferenceId = er.Id From 4ea5015b29a6c018e1083ca6f489f082092e4bbc Mon Sep 17 00:00:00 2001 From: Anju Jose Date: Thu, 29 Feb 2024 11:27:07 +0000 Subject: [PATCH 3/5] TD-3603-TextUpdate --- .../Views/Catalogue/Edit.cshtml | 4 +- .../Views/Resource/Details.cshtml | 2 +- .../Views/User/Details.cshtml | 2 +- .../Views/User/_UserProviders.cshtml | 38 +++++++++---------- .../Helpers/ProviderHelper.cs | 2 +- .../vuesrc/contribute-resource/Contribute.vue | 2 +- .../ContributeProvideByTab.vue | 6 +-- .../vuesrc/contribute/ContentCommon.vue | 6 +-- 8 files changed, 31 insertions(+), 31 deletions(-) diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml index 788bfaba3..eb2d3312c 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml @@ -228,10 +228,10 @@
- +

When applicable please select the provider of this content. This will allow a contributor to flag content from a specific provider.

This will enable learners to search for content produced by organisations and help separate learning resources from community contributions.

-

Provided by;

+

Developed with;

diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml index 83f90382b..a2df6a2c6 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml @@ -153,7 +153,7 @@
@if (Model.Providers != null && Model.Providers.Count > 0) { -
Provided by
+
Developed with
@foreach (var provider in Model.Providers) {
diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml index 1022dcd2b..4d82d8244 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml @@ -55,7 +55,7 @@ Contributions
  • - Provided by permission + Developed with permission
  • History diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml index ecbafa76f..42d886a60 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml @@ -3,27 +3,27 @@ @model List
    -
    -
    -

    Provided by permission

    -

    Give permission to allow a contributor to flag content from a specific provider. This helps to separate learning resources from community contributions.

    -

    Select the relevant providers;

    +
    +
    +

    Developed with permission

    +

    Give permission to allow a contributor to flag content from a specific provider. This helps to separate learning resources from community contributions.

    +

    Select the relevant providers;

    +
    -
    -
    -
    - @if (Model != null && Model.Count > 0) - { -
    - @foreach (var item in Model) - { - - @item.Text -
    - } +
    +
    + @if (Model != null && Model.Count > 0) + { +
    + @foreach (var item in Model) + { + + @item.Text +
    + } +
    + }
    - }
    -
    diff --git a/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs b/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs index 3f37a7291..c60282312 100644 --- a/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs +++ b/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs @@ -22,7 +22,7 @@ public static string GetProvidersString(List providerNames) if (providerNames != null && providerNames.Count > 0) { - providerstring += "Provided by "; + providerstring += "Developed with "; providerstring += string.Join(", ", providerNames.ToArray()); } diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue index 2ffac0564..0f958304b 100644 --- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue +++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue @@ -95,7 +95,7 @@