Skip to content

Commit

Permalink
Merge pull request #7 from HSG-Library/develop
Browse files Browse the repository at this point in the history
Use correct field, 490 instead of 499
  • Loading branch information
d22 authored Jun 7, 2023
2 parents 935e1cc + 07ed3f1 commit 5b0c138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ To display the result table, the following fields are used. If this does not wor
### Additional data
In addition to the fields mentionen above, there is the possibilty to display additional data. Currently it is possible to add the following fields to the table:
* `040$e`
* `499$a`
* `499$v`
* `490$a`
* `490$v`
* `773$g`
* `773$t`
* `800$a`
Expand All @@ -58,6 +58,7 @@ In addition to the fields mentionen above, there is the possibilty to display ad
* `830$a`
* `830$t`
* `830$v`

The Excel export will contain all active additional fields.

## Development notes
Expand Down
4 changes: 2 additions & 2 deletions cloudapp/src/app/services/sru-response-parsers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export class SruResponseParserService {
private readonly XPATH_QUERY_LEADER_ANALYTICAL: string = "//default:leader"
private readonly XPATH_QUERY_ADDITIONAL: Map<string, string> = new Map<string, string>([
["040$e", "//default:datafield[@tag='040']/default:subfield[@code='e']"],
["499$a", "//default:datafield[@tag='449']/default:subfield[@code='a']"],
["499$v", "//default:datafield[@tag='449']/default:subfield[@code='v']"],
["490$a", "//default:datafield[@tag='490']/default:subfield[@code='a']"],
["490$v", "//default:datafield[@tag='490']/default:subfield[@code='v']"],
["773$g", "//default:datafield[@tag='773']/default:subfield[@code='g']"],
["773$t", "//default:datafield[@tag='773']/default:subfield[@code='t']"],
["800$a", "//default:datafield[@tag='800']/default:subfield[@code='a']"],
Expand Down

0 comments on commit 5b0c138

Please sign in to comment.