diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index d0ace0b2d..a3f795bab 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -111,12 +111,12 @@ export class SearchPage implements OnInit { if(this.type == null || this.type == undefined) { - if(this.currentPath == '/home/agenda') { + if(this.currentPath.includes('/home/agenda')) { this.type = "Agenda" - } else if (this.currentPath =='/home/gabinete-digital') { + } else if (this.currentPath.includes('/home/gabinete-digital')) { this.type = "AccoesPresidenciais & ArquivoDespachoElect" - } else if (this.currentPath == '/home/publications') { + } else if (this.currentPath.includes('/home/publications')) { this.type = "AccoesPresidenciais" } else { @@ -501,7 +501,7 @@ export class SearchPage implements OnInit { } }); - this.search.basicSearch(this.searchSubject, searchDocumentDate, this.searchSender + this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSender ,this.searchOrganicEntiry, this.searchDocTypeId, '361').subscribe(res => { res.Categories.forEach( e => { diff --git a/version/git-version.ts b/version/git-version.ts index ee23645db..b152409b5 100644 --- a/version/git-version.ts +++ b/version/git-version.ts @@ -1,12 +1,12 @@ export let versionData = { - "shortSHA": "535c70f5b", - "SHA": "535c70f5bb4488668145b9c2eda3a2fa4dcc39f9", + "shortSHA": "9ca9ee924", + "SHA": "9ca9ee9245995d13e91238105d16263c5102923a", "branch": "developer", "lastCommitAuthor": "'Peter Maquiran'", - "lastCommitTime": "'Mon Jul 31 16:34:12 2023 +0100'", - "lastCommitMessage": "fix", - "lastCommitNumber": "5125", + "lastCommitTime": "'Thu Aug 3 11:37:35 2023 +0100'", + "lastCommitMessage": "fix f", + "lastCommitNumber": "5126", "change": "", - "changeStatus": "On branch developer\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/home/home.page.html\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/pages/login/login.page.html\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/pages/search/search.page.ts\n\tmodified: src/app/shared/gabinete-digital/despachos/despachos.page.html", + "changeStatus": "On branch developer\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/pages/search/search.page.ts", "changeAuthor": "peter.maquiran" } \ No newline at end of file