Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
c79d8d6
Merge pull request #532 from TechnologyEnhancedLearning/Develop/Featu…
AnjuJose011 Aug 15, 2024
b6dacef
modelversionupdate
AnjuJose011 Aug 15, 2024
1ad238d
Merge pull request #534 from TechnologyEnhancedLearning/modelversionu…
AnjuJose011 Aug 15, 2024
e9e6a42
archive replaced file
OluwatobiAwe Aug 18, 2024
f10524c
Merge pull request #512 from TechnologyEnhancedLearning/Develope/fixe…
ArunimaGeorge Aug 5, 2024
10d728d
Merge pull request #499 from TechnologyEnhancedLearning/Develop/fixes…
ArunimaGeorge Jul 31, 2024
af5bf57
fixes
AnjuJose011 Aug 1, 2024
661c609
Merge pull request #517 from TechnologyEnhancedLearning/Openapi-Changes
AnjuJose011 Aug 5, 2024
d6c4810
Merge pull request #521 from TechnologyEnhancedLearning/MergeActivity…
AnjuJose011 Aug 6, 2024
fb5ab1e
Merge pull request #522 from TechnologyEnhancedLearning/Develop/Featu…
Phil-NHS Aug 7, 2024
32046d2
case publish error catch
OluwatobiAwe Aug 22, 2024
18b9ef3
.
OluwatobiAwe Aug 22, 2024
1d433db
Merge pull request #540 from TechnologyEnhancedLearning/Develop/Fixes…
OluwatobiAwe Aug 22, 2024
21b1bc0
Merge pull request #560 from TechnologyEnhancedLearning/RC
AnjuJose011 Sep 2, 2024
cad0d84
modelversionupdate
AnjuJose011 Sep 2, 2024
1559d2d
Merge pull request #562 from TechnologyEnhancedLearning/ModelVersionU…
AnjuJose011 Sep 2, 2024
fee6969
Update LearningHub.Nhs.Database.sqlproj
AnjuJose011 Sep 2, 2024
342c848
Merge pull request #563 from TechnologyEnhancedLearning/AnjuJose011-p…
AnjuJose011 Sep 2, 2024
1c63739
Merge pull request #561 from TechnologyEnhancedLearning/releases/LHAr…
AnjuJose011 Sep 2, 2024
f51b9eb
removed open api changes
AnjuJose011 Sep 2, 2024
bdc69c6
TD-4283: Fixed download issue for elearning resource in firefox browser
ArunimaGeorge Sep 2, 2024
dfb98ff
Merge pull request #564 from TechnologyEnhancedLearning/Removed-OpenA…
AnjuJose011 Sep 2, 2024
bf9c1db
Merge pull request #565 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 2, 2024
600aae9
TD-4037: Fixed Empty search error issue.
ArunimaGeorge Sep 3, 2024
9978f20
TD-4692: Fixed Issue not showing the 'elfh' logo & 'Developed with el…
ArunimaGeorge Sep 5, 2024
d0fbf8d
Merge pull request #570 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 5, 2024
0d59475
TD-4693 cache fix
OluwatobiAwe Sep 5, 2024
2dc1c94
Merge pull request #571 from TechnologyEnhancedLearning/Develop/Fixes…
OluwatobiAwe Sep 5, 2024
caa4157
TD-4038: Fixed AllCatalogue pagination issue
ArunimaGeorge Sep 6, 2024
2dec991
Merge pull request #574 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 6, 2024
79220b0
TD-4703: Fixed unknown error occuring during pagination
ArunimaGeorge Sep 10, 2024
405778a
TD-4038: Implemented search bar in AllCatalogue search results page
ArunimaGeorge Sep 10, 2024
b12edae
Merge pull request #577 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 10, 2024
b3f0436
Merge pull request #578 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 11, 2024
4ac9c16
TD-4038: Message updated for empty search in AllCatalogues and main s…
ArunimaGeorge Sep 12, 2024
666871b
Merge pull request #580 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 12, 2024
5a04e2a
model versin update
AnjuJose011 Sep 18, 2024
1e07bfc
Merge pull request #593 from TechnologyEnhancedLearning/ModelVersionU…
AnjuJose011 Sep 18, 2024
a1e6a4f
conflicts resolved
AnjuJose011 Sep 18, 2024
882b5f9
Merge pull request #595 from TechnologyEnhancedLearning/MergeVirgoChn…
AnjuJose011 Sep 18, 2024
206f741
Merge pull request #522 from TechnologyEnhancedLearning/Develop/Featu…
Phil-NHS Aug 7, 2024
94e8a54
Merge pull request #522 from TechnologyEnhancedLearning/Develop/Featu…
Phil-NHS Aug 7, 2024
1abcee0
No task, quick fix, to bookmark endpoint which needs oauth token hand…
Phil-NHS Aug 7, 2024
e7ce515
Merge pull request #522 from TechnologyEnhancedLearning/Develop/Featu…
Phil-NHS Aug 7, 2024
aefa90b
Merge pull request #522 from TechnologyEnhancedLearning/Develop/Featu…
Phil-NHS Aug 7, 2024
99c6944
fixes
AnjuJose011 Sep 19, 2024
be5ede2
Merge pull request #596 from TechnologyEnhancedLearning/openapi-contr…
AnjuJose011 Sep 19, 2024
a7ecd8a
TD-4682:fix click logs issue -Find-wise
ArunimaGeorge Sep 20, 2024
1657a06
Merge pull request #601 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Sep 25, 2024
68f66fd
TD-4373-Allow ppsx file type
Swapnamol Sep 27, 2024
03f6801
Merge pull request #615 from TechnologyEnhancedLearning/Develop/Fixes…
Swapnamol Sep 27, 2024
315b4e9
TD-4430: Duplicate keywords issue
ArunimaGeorge Oct 1, 2024
8888bc5
Update Edit.cshtml
ArunimaGeorge Oct 1, 2024
88cdec6
Merge pull request #621 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Oct 1, 2024
0437380
TD-4388: Assessment resource settings need a required field marker
Swapnamol Oct 2, 2024
40a4ff2
Merge pull request #623 from TechnologyEnhancedLearning/Develop/Fixes…
Swapnamol Oct 2, 2024
9d4bc51
TD-4819: LH-Issue showing 'Certificates' section blank on 'My accesse…
Swapnamol Oct 3, 2024
e13ab4b
Merge pull request #628 from TechnologyEnhancedLearning/Develop/Fixes…
Swapnamol Oct 3, 2024
ff2d0e2
removed -hyperlink
AnjuJose011 Oct 7, 2024
336325d
Merge pull request #636 from TechnologyEnhancedLearning/TD-4107-Updat…
AnjuJose011 Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ obj
/WebAPI/MigrationTool/LearningHub.Nhs.Migration.Staging.Database/LearningHub.Nhs.Migration.Staging.Database.dbmdl
/WebAPI/MigrationTool/LearningHub.Nhs.Migration.Staging.Database/LearningHub.Nhs.Migration.Staging.Database.jfm
/LearningHub.Nhs.WebUI.AutomatedUiTests/appsettings.Development.json
/OpenAPI/LearningHub.Nhs.OpenApi/appsettings.Development.json
/OpenAPI/LearningHub.Nhs.OpenApi/web.config
/AdminUI/LearningHub.Nhs.AdminUI/LearningHub.Nhs.AdminUI.csproj.user
/WebAPI/LearningHub.Nhs.API/LearningHub.Nhs.Api.csproj.user
12 changes: 12 additions & 0 deletions AdminUI/LearningHub.Nhs.AdminUI/Controllers/UserGroupController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ public async Task<IActionResult> AddUsersToUserGroup(int userGroupId, string use
var vr = await this.userGroupService.AddUsersToUserGroup(userGroupId, userIdList);
if (vr.IsValid)
{
this.ClearUserCachedPermissions(userIdList);
return this.Json(new
{
success = true,
Expand Down Expand Up @@ -527,5 +528,16 @@ public async Task<IActionResult> UserGroupCatalogues(int id)

return this.PartialView("_UserGroupCatalogues", catalogues);
}

private void ClearUserCachedPermissions(string userIdList)
{
if (!string.IsNullOrWhiteSpace(userIdList))
{
foreach (var userId in userIdList.Split(","))
{
_ = Task.Run(async () => { await this.userService.ClearUserCachedPermissions(int.Parse(userId)); });
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<PackageReference Include="HtmlSanitizer" Version="6.0.453" />
<PackageReference Include="IdentityModel" Version="4.4.0" />
<PackageReference Include="LearningHub.Nhs.Caching" Version="2.0.2" />
<PackageReference Include="LearningHub.Nhs.Models" Version="3.0.33" />
<PackageReference Include="LearningHub.Nhs.Models" Version="3.0.40" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
Expand Down
22 changes: 19 additions & 3 deletions AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
<span class="input-validation-error keyword-maxlength" style="display: none;">The maximum length is 50 characters.</span>
</div>
</div>
<div class="row">
<div class="col-12">
<span id="keyword-error-span" class="field-validation-error" style="display: none;"></span>
</div>
</div>

</div>
<div class="col-12">
Expand Down Expand Up @@ -341,6 +346,9 @@
} else {
$('#add-keyword').removeAttr('disabled');
}
$('#keyword-error-span').hide();
$('#keyword-error-span').html('');
});
$('#add-keyword').on('click', function () {
Expand All @@ -352,9 +360,11 @@
// Split the input value by commas and trim each keyword
var values = value.split(',').map(function (item) {
return item.trim();
return item.trim().toLowerCase();
});
var duplicateKeywords = [];
$('#keyword-error-span').hide();
values.forEach(function (value) {
if (value && keywords.indexOf(value) === -1) {
keywords.push(value);
Expand All @@ -368,9 +378,15 @@
$(x).attr('name', "Keywords[" + i + "]");
});
}
else
{
duplicateKeywords.push(value);
$('#keyword-error-span').show();
$('#keyword-error-span').html('The keyword(s) have already been added : ' + duplicateKeywords.join(', '))
}
});
$keywordInput.val("");
$keywordInput.val("");
if (keywords.length > 4) {
$('#add-keyword').attr('disabled', 'disabled');
$('#add-keyword-input').attr('disabled', 'disabled');
Expand Down Expand Up @@ -441,4 +457,4 @@
</script>
<script src="~/js/imageInput.js"></script>
}
}
5 changes: 5 additions & 0 deletions LearningHub.Nhs.WebUI/Configuration/FindwiseSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ public class FindwiseSettings
/// Gets or sets the CatalogueSearchPageSize.
/// </summary>
public int CatalogueSearchPageSize { get; set; }

/// <summary>
/// Gets or sets the AllCatalogueSearchPageSize.
/// </summary>
public int AllCatalogueSearchPageSize { get; set; }
}
}
5 changes: 5 additions & 0 deletions LearningHub.Nhs.WebUI/Configuration/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,5 +245,10 @@ public Settings()
/// Gets or sets the MediaKindSettings.
/// </summary>
public MediaKindSettings MediaKindSettings { get; set; } = new MediaKindSettings();

/// <summary>
/// Gets or sets AllCataloguePageSize.
/// </summary>
public int AllCataloguePageSize { get; set; }
}
}
17 changes: 13 additions & 4 deletions LearningHub.Nhs.WebUI/Controllers/Api/ContributeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,18 @@ public async Task<ActionResult> PublishResourceVersionAsync([FromBody] PublishVi
{
if (associatedResource.ResourceType != ResourceTypeEnum.Scorm && associatedResource.ResourceType != ResourceTypeEnum.Html)
{
try
{
var obsoleteFiles = await this.resourceService.GetObsoleteResourceFile(publishViewModel.ResourceVersionId);
if (obsoleteFiles != null && obsoleteFiles.Any())
{
await this.fileService.PurgeResourceFile(null, obsoleteFiles);
_ = Task.Run(async () => { await this.fileService.PurgeResourceFile(null, obsoleteFiles); });
}
}
catch (Exception ex)
{
this.Logger.LogError($"File Archive Error: {ex.Message}", $"ResourceVersionId -{publishViewModel.ResourceVersionId}");
}
}
}

Expand Down Expand Up @@ -707,8 +714,8 @@ private async Task RemoveBlockCollectionFiles(int resourceVersionId, BlockCollec
{
foreach (var oldblock in existingImages)
{
var entry = newBlocks.FirstOrDefault(x => x.BlockType == BlockType.Media && x.MediaBlock != null && x.MediaBlock.MediaType == MediaType.Image && x.MediaBlock.Image != null && (x.MediaBlock?.Image?.File?.FileId == oldblock.MediaBlock?.Image?.File?.FileId || x.MediaBlock?.Image?.File?.FilePath == oldblock.MediaBlock?.Image?.File?.FilePath));
if (entry == null)
var entry = newBlocks.FirstOrDefault(x => x.BlockType == BlockType.Media && x.MediaBlock != null && x.MediaBlock.MediaType == MediaType.Image && x.MediaBlock.Image != null && (x.MediaBlock?.Image?.File?.FileId == oldblock.MediaBlock?.Image?.File?.FileId || x.MediaBlock?.Image?.File?.FilePath == oldblock.MediaBlock?.Image?.File?.FilePath));
if (entry == null)
{
filePaths.Add(oldblock?.MediaBlock?.Image?.File?.FilePath);
}
Expand Down Expand Up @@ -790,8 +797,10 @@ private async Task RemoveBlockCollectionFiles(int resourceVersionId, BlockCollec
_ = Task.Run(async () => { await this.fileService.PurgeResourceFile(null, deleteList); });
}
}
catch
catch (Exception ex)
{
var param = new object[] { resourceVersionId, existingResource, newResource };
this.Logger.LogError($"BlockCollection Archive Error: {ex.Message}", param);
}
}

Expand Down
5 changes: 3 additions & 2 deletions LearningHub.Nhs.WebUI/Controllers/Api/ResourceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace LearningHub.Nhs.WebUI.Controllers.Api
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using LearningHub.Nhs.Models.Enums;
using LearningHub.Nhs.Models.Resource;
Expand Down Expand Up @@ -565,9 +566,9 @@ public async Task<ActionResult> DeleteResourceProviderAsync(int resourceVersionI
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
[HttpPost]
[Route("ArchiveResourceFile")]
public ActionResult ArchiveResourceFile(List<string> filePaths)
public ActionResult ArchiveResourceFile(IEnumerable<string> filePaths)
{
_ = Task.Run(async () => { await this.fileService.PurgeResourceFile(null, filePaths); });
_ = Task.Run(async () => { await this.fileService.PurgeResourceFile(null, filePaths.ToList()); });
return this.Ok();
}

Expand Down
68 changes: 68 additions & 0 deletions LearningHub.Nhs.WebUI/Controllers/CatalogueController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public async Task<IActionResult> Index(int pageIndex = 1, string term = null)
});

catalogues.TotalCount = termCatalogues.TotalHits;
catalogues.GroupId = Guid.NewGuid();
catalogues.Catalogues = termCatalogues.DocumentModel.Select(t => new DashboardCatalogueViewModel
{
Url = t.Url,
Expand All @@ -123,6 +124,8 @@ public async Task<IActionResult> Index(int pageIndex = 1, string term = null)
BookmarkId = t.BookmarkId,
NodeId = int.Parse(t.Id),
BadgeUrl = t.BadgeUrl,
Providers = t.Providers,
ClickPayload = t.Click.Payload,
}).ToList();
}
else
Expand Down Expand Up @@ -551,5 +554,70 @@ public async Task<IActionResult> RequestPreviewAccess(CatalogueRequestAccessView
return this.View("RequestPreviewAccess", viewModel);
}
}

/// <summary>
/// Get all catelogues, filter and pagination based on alphabets.
/// </summary>
/// <param name="filterChar">filterChar.</param>
/// <returns>rk.</returns>
[Route("/allcatalogue")]
[Route("/allcatalogue/{filterChar}")]
public async Task<IActionResult> GetAllCatalogue(string filterChar = "a")
{
var pageSize = this.settings.AllCataloguePageSize;
var catalogues = await this.catalogueService.GetAllCatalogueAsync(filterChar, pageSize);
return this.View("allcatalogue", catalogues);
}

/// <summary>
/// AllCatalogues Search.
/// </summary>
/// <param name="pageIndex">pageIndex.</param>
/// <param name="term">Search term.</param>
/// <returns>IActionResult.</returns>
[Route("/allcataloguesearch")]
public async Task<IActionResult> GetAllCatalogueSearch(int pageIndex = 1, string term = null)
{
var catalogues = new AllCatalogueSearchResponseViewModel();
var searchString = term?.Trim() ?? string.Empty;
var allCatalogueSearchPageSize = this.settings.FindwiseSettings.AllCatalogueSearchPageSize;

if (!string.IsNullOrWhiteSpace(term))
{
var termCatalogues = await this.searchService.GetAllCatalogueSearchResultAsync(
new AllCatalogueSearchRequestModel
{
SearchText = searchString,
PageIndex = pageIndex - 1,
PageSize = allCatalogueSearchPageSize,
});

catalogues.TotalCount = termCatalogues.TotalHits;
catalogues.Catalogues = termCatalogues.DocumentModel.Select(t => new AllCatalogueViewModel
{
Url = t.Url,
Name = t.Name,
CardImageUrl = t.CardImageUrl,
BannerUrl = t.BannerUrl,
Description = t.Description,
RestrictedAccess = t.RestrictedAccess,
HasAccess = t.HasAccess,
IsBookmarked = t.IsBookmarked,
BookmarkId = t.BookmarkId,
NodeId = int.Parse(t.Id),
BadgeUrl = t.BadgeUrl,
Providers = t.Providers,
}).ToList();
}
else
{
catalogues.TotalCount = 0;
catalogues.Catalogues = new List<AllCatalogueViewModel>();
}

this.ViewBag.PageIndex = pageIndex;
this.ViewBag.PageSize = allCatalogueSearchPageSize;
return this.View("AllCatalogueSearch", catalogues);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public async Task<IActionResult> Scorm(int id)
/// <param name="filePath">filePath.</param>
/// <returns>bool.</returns>
//// [ResponseCache(VaryByQueryKeys = new[] { "*" }, Duration = 0, NoStore = true)] // disable caching
//// Removed Request.Headers["Referer"] Referer URL checking based on issue reported in TD-4283
[AllowAnonymous]
[Route("ScormContent/{*filePath}")]
public async Task<IActionResult> ScormContent(string filePath)
Expand All @@ -79,12 +80,6 @@ public async Task<IActionResult> ScormContent(string filePath)

try
{
var referringUrl = this.Request.Headers["Referer"].ToString();
if (string.IsNullOrEmpty(referringUrl))
{
throw new UnauthorizedAccessException("Referer URL is required.");
}

if (!this.User.Identity.IsAuthenticated)
{
throw new UnauthorizedAccessException("User is not authenticated.");
Expand Down
8 changes: 6 additions & 2 deletions LearningHub.Nhs.WebUI/Controllers/SearchController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ public async Task<IActionResult> RecordCatalogueNavigation(SearchRequestViewMode
/// <param name="timeOfSearch">time of search.</param>
/// <param name="userQuery">user query.</param>
/// <param name="query">search query.</param>
/// <param name="title">the title.</param>
[HttpGet("record-resource-click")]
public void RecordResourceClick(string url, int nodePathId, int itemIndex, int pageIndex, int totalNumberOfHits, string searchText, int resourceReferenceId, Guid groupId, string searchId, long timeOfSearch, string userQuery, string query)
public void RecordResourceClick(string url, int nodePathId, int itemIndex, int pageIndex, int totalNumberOfHits, string searchText, int resourceReferenceId, Guid groupId, string searchId, long timeOfSearch, string userQuery, string query, string title)
{
var searchActionResourceModel = new SearchActionResourceModel
{
Expand All @@ -230,6 +231,7 @@ public void RecordResourceClick(string url, int nodePathId, int itemIndex, int p
TimeOfSearch = timeOfSearch,
UserQuery = userQuery,
Query = query,
Title = title,
};

this.searchService.CreateResourceSearchActionAsync(searchActionResourceModel);
Expand All @@ -251,9 +253,10 @@ public void RecordResourceClick(string url, int nodePathId, int itemIndex, int p
/// <param name="timeOfSearch">time of search.</param>
/// <param name="userQuery">user query.</param>
/// <param name="query">search query.</param>
/// <param name="name">the name.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
[HttpGet("record-catalogue-click")]
public async Task<IActionResult> RecordCatalogueClick(string url, int nodePathId, int itemIndex, int pageIndex, int totalNumberOfHits, string searchText, int catalogueId, Guid groupId, string searchId, long timeOfSearch, string userQuery, string query)
public async Task<IActionResult> RecordCatalogueClick(string url, int nodePathId, int itemIndex, int pageIndex, int totalNumberOfHits, string searchText, int catalogueId, Guid groupId, string searchId, long timeOfSearch, string userQuery, string query, string name)
{
SearchActionCatalogueModel searchActionCatalogueModel = new SearchActionCatalogueModel
{
Expand All @@ -268,6 +271,7 @@ public async Task<IActionResult> RecordCatalogueClick(string url, int nodePathId
TimeOfSearch = timeOfSearch,
UserQuery = userQuery,
Query = query,
Name = name,
};

await this.searchService.CreateCatalogueSearchActionAsync(searchActionCatalogueModel);
Expand Down
8 changes: 8 additions & 0 deletions LearningHub.Nhs.WebUI/Interfaces/ICatalogueService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,13 @@ public interface ICatalogueService
/// <param name="userUserGroupId">The user - user group id.</param>
/// <returns>The validation result.</returns>
Task<LearningHubValidationResult> RemoveUserFromRestrictedAccessUserGroup(int userUserGroupId);

/// <summary>
/// The GetAllCatalogueAsync.
/// </summary>
/// <param name="filterChar">The letter.</param>
/// <param name="pageSize">The pageSize.</param>
/// <returns>The allcatalogue result based on letters.</returns>
Task<AllCatalogueResponseViewModel> GetAllCatalogueAsync(string filterChar, int pageSize);
}
}
7 changes: 7 additions & 0 deletions LearningHub.Nhs.WebUI/Interfaces/ISearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,12 @@ public interface ISearchService
/// <param name="catalogueSearchRequestModel">catalogue search request model.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task<int> CreateCatalogueSearchTermEventAsync(CatalogueSearchRequestModel catalogueSearchRequestModel);

/// <summary>
/// Get AllCatalogue Search Result Async.
/// </summary>
/// <param name="catalogueSearchRequestModel">The catalogue Search Request Model.</param>
/// <returns>The <see cref="Task{SearchAllCatalogueViewModel}"/>.</returns>
Task<SearchAllCatalogueViewModel> GetAllCatalogueSearchResultAsync(AllCatalogueSearchRequestModel catalogueSearchRequestModel);
}
}
2 changes: 1 addition & 1 deletion LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<PackageReference Include="HtmlAgilityPack" Version="1.11.38" />
<PackageReference Include="IdentityModel" Version="4.3.0" />
<PackageReference Include="LearningHub.Nhs.Caching" Version="2.0.0" />
<PackageReference Include="LearningHub.Nhs.Models" Version="3.0.33" />
<PackageReference Include="LearningHub.Nhs.Models" Version="3.0.40" />
<PackageReference Include="linqtotwitter" Version="6.9.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
<PackageReference Include="Microsoft.ApplicationInsights.EventCounterCollector" Version="2.21.0" />
Expand Down
5 changes: 5 additions & 0 deletions LearningHub.Nhs.WebUI/Models/NavigationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,10 @@ public class NavigationModel
/// Gets or sets a value indicating whether to show my account.
/// </summary>
public bool ShowMyAccount { get; set; }

/// <summary>
/// Gets or sets a value indicating whether to show Browse Catalogues.
/// </summary>
public bool ShowBrowseCatalogues { get; set; }
}
}
Loading
Loading