diff --git a/cypress/e2e/author.cy.js b/cypress/e2e/author.cy.js index 25ae32c..abd052e 100644 --- a/cypress/e2e/author.cy.js +++ b/cypress/e2e/author.cy.js @@ -15,7 +15,7 @@ describe('Author Search', () => { it('first hit should be by the author', {tags: ['@next']}, () => { cy.get('#result0') .find('.resultlist-data') - .contains(/^(?=.*Karin)(?=.*Glaser)$/) + .contains(/(?=.*Karin)(?=.*Glaser)/) }) }) @@ -97,7 +97,7 @@ describe('Author Search', () => { .find('[href*=Author]') .each(($el, index, $lis) => { cy.wrap($el) - .contains(/^(?=.*Samuel)(?=.*Scheidt)$/) + .contains(/(?=.*Samuel)(?=.*Scheidt)/) }) .then(($lis) => { cy.wrap($lis) @@ -126,7 +126,7 @@ describe('Author Search', () => { .find('[href*=Author]') .each(($el, index, $lis) => { cy.wrap($el) - .contains(/^(?=.*Friedrich)(?=.*Schiller)$/) + .contains(/(?=.*Friedrich)(?=.*Schiller)/) }) .then(($lis) => { cy.wrap($lis) @@ -180,7 +180,7 @@ describe('Elfriede Jelinek', () => { .find('[href*=Author]') .each(($el, index, $lis) => { cy.wrap($el) - .contains(/^(?=.*Elfriede)(?=.*Jelinek)$/) + .contains(/(?=.*Elfriede)(?=.*Jelinek)/) }) .then(($lis) => { cy.wrap($lis) diff --git a/cypress/e2e/multi-lang-phrase.cy.js b/cypress/e2e/multi-lang-phrase.cy.js index 6272d11..8fe780d 100644 --- a/cypress/e2e/multi-lang-phrase.cy.js +++ b/cypress/e2e/multi-lang-phrase.cy.js @@ -94,7 +94,7 @@ describe('Foreign language phrase search', () => { cy.get('.resultlist') .each(($el, index, $lis) => { cy.wrap($el) - .contains(/German.*/) + .contains(/German.*/, {matchCase: false}) }) .then(($lis) => { cy.wrap($lis) diff --git a/cypress/e2e/place.cy.js b/cypress/e2e/place.cy.js index 7ffb57d..c5fca43 100644 --- a/cypress/e2e/place.cy.js +++ b/cypress/e2e/place.cy.js @@ -41,7 +41,7 @@ describe('Publishing Place', () => { }) // see multi-lang-phrase.cy.js - describe.only('geschichte berlin', () => { + describe('geschichte berlin', () => { beforeEach(() => { cy.visit({ url: '/Results', diff --git a/vufind/searchspecs.yaml b/vufind/searchspecs.yaml index 4cd1707..21ebf4d 100644 --- a/vufind/searchspecs.yaml +++ b/vufind/searchspecs.yaml @@ -235,34 +235,66 @@ # These searches use Dismax when possible: Author: DismaxFields: - - author^100 - - author2 + - author^350 + - author2^100 - author_additional - author_corporate - author_variant - author2_variant - - GND_txt_mv + - GND_txt_mv^200 - author_os_txtP_mv DismaxHandler: edismax - - #Verbesserte Phrasensuche, eWW - QueryFields: - author: - - [onephrase, 350] - - [author_initial, 100] - author2: - - [onephrase, 100] - - [author_initial, ~] + DismaxParams: + # - [bq, format:eJournal^237] + # - [bq, format:Journal^284] + # - [bq, format:eBook^255] + # - [bq, format:Book^500] + # - [bq, format:Article^620] + # - [bq, format:"electronic+Article"^620] + # - [bq, format_facet:"Serienband"^0.1] + - [bq, publishDateSort:2023^90] + - [bq, publishDateSort:2022^80] + - [bq, publishDateSort:2021^70] + - [bq, publishDateSort:2020^60] + - [bq, publishDateSort:2019^50] + - [bq, publishDateSort:2018^45] + - [bq, publishDateSort:2017^40] + - [bq, publishDateSort:2016^35] + - [bq, publishDateSort:2015^30] + - [bq, publishDateSort:2014^25] + - [bq, publishDateSort:2013^20] + - [bq, publishDateSort:2024^100] + + #Verbesserte Phrasensuche, eWW +QueryFields: + author: + - [onephrase, 350] + - [author_initial, 100] + author2: + - [onephrase, 100] + - [author_initial, ~] + author_additional: + - [onephrase, 100] + - [author_initial, ~] + GND_txt_mv: + - [onephrase, 200] + - [author_initial, ~] ExactSettings: QueryFields: author: - [onephrase, 350] author2: - - [onephrase, 100] + - [onephrase, 100] + author_additional: + - [onephrase, 100] + GND_txt_mv: + - [onephrase, 200] + + ISN: @@ -430,8 +462,19 @@ AllFields: - [bq, genre_facet:"Rezension"^0.1] - [bq, genre_facet:"book-review"^0.1] # Alternative zum abgestufen Boosting des Erscheinungsjahres, eWW - - [bf=ord(publishDate)^500] - +# - [bf=ord(publishDate)^500] + - [bq, publishDateSort:2023^280] + - [bq, publishDateSort:2022^260] + - [bq, publishDateSort:2021^240] + - [bq, publishDateSort:2020^220] + - [bq, publishDateSort:2019^200] + - [bq, publishDateSort:2018^180] + - [bq, publishDateSort:2017^160] + - [bq, publishDateSort:2016^150] + - [bq, publishDateSort:2015^140] + - [bq, publishDateSort:2014^130] + - [bq, publishDateSort:2013^120] + - [bq, publishDateSort:202*^500] # - [bq, collection_details:"GBV_ILN_11"^300]