Skip to content

Commit

Permalink
adapti serĉrezultojn al ŝanĝita bib_src
Browse files Browse the repository at this point in the history
  • Loading branch information
wdiestel committed Aug 23, 2023
1 parent cc6c882 commit 172423c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 2 additions & 6 deletions jsc/rs/sxabloniloj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,8 @@ export class HTMLFonto {
};

bib_text(bib: any) {
for (let i=0;i<this.source.length;i++) {
const entry = this.source[i];
if (entry.value == bib) {
return entry.label;
}
}
const verko = this.source.find((ero) => ero.bib == bib);
return verko?.value;
};

html(fnt: Valoroj) {
Expand Down
7 changes: 2 additions & 5 deletions jsc/rs/ui_srch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,8 @@ export function vikiSerĉo(event) {
* @returns la URL
*/
function _bib_url(source,bib) {
for (var entry of source) {
if (entry.value == bib) {
return entry.url;
}
}
const verko = source.find((ero) => ero.bib == bib);
return verko?.url;
}

/**
Expand Down

0 comments on commit 172423c

Please sign in to comment.