Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Allow for refinements of multiple fields (i.e. multiple 700)
  • Loading branch information
jweisman committed Feb 15, 2021
1 parent b4b7681 commit 7993577
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cloudapp/src/app/refine-bib/refine-bib.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

/* Wrap refine options in select */
.mat-select-panel mat-option.mat-option {
//margin: 1rem 0;
overflow: visible;
line-height: initial;
word-wrap: break-word;
white-space: pre-wrap;
margin-bottom: 1rem;
height: auto;
}

.mat-option-text.mat-option-text {
white-space: normal;
margin: 10px 0;
}
2 changes: 1 addition & 1 deletion cloudapp/src/app/refine-table/refine-table-datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class RefineTableDataSource implements DataSource<Bib> {
let uri = Utils.select(doc, `subfield[@code="${this.configService.selectedRefineService.uriSubfield}"]`, {context: datafield, single: true});
if(subfield=subfields.iterateNext() as Element) {
let hints = field.hints.length>0 ? Utils.xpathToArray(Utils.select(doc, `subfield[${field.hints.map(x=>`@code="${x}"`).join(' or ')}]`, {context: datafield})) : [];
if (!refineFields.some(f=>f.tag == datafield.getAttribute('tag') && f.subfield == field.subfield)) {
if (!refineFields.some(f=>f.tag == datafield.getAttribute('tag') && f.subfield == field.subfield && f.value == subfield.textContent)) {
refineFields.push({
tag: datafield.getAttribute('tag'),
subfield: field.subfield,
Expand Down

0 comments on commit 7993577

Please sign in to comment.