Make item-detail and item-light consistent in field naming

This changes the public structure for an "item-light" as returned in
search results. It makes unifying things easier if both names are the
same.
This commit is contained in:
Eike Kettner 2020-11-14 11:37:50 +01:00
parent 23391ef41c
commit e2545de347
2 changed files with 3 additions and 3 deletions

View File

@ -4756,7 +4756,7 @@ components:
$ref: "#/components/schemas/IdName" $ref: "#/components/schemas/IdName"
concPerson: concPerson:
$ref: "#/components/schemas/IdName" $ref: "#/components/schemas/IdName"
concEquip: concEquipment:
$ref: "#/components/schemas/IdName" $ref: "#/components/schemas/IdName"
folder: folder:
$ref: "#/components/schemas/IdName" $ref: "#/components/schemas/IdName"

View File

@ -36,7 +36,7 @@ makeCorrLink item tagger =
makeConcLink : makeConcLink :
{ a | concPerson : Maybe IdName, concEquip : Maybe IdName } { a | concPerson : Maybe IdName, concEquipment : Maybe IdName }
-> (LinkTarget -> msg) -> (LinkTarget -> msg)
-> List (Html msg) -> List (Html msg)
makeConcLink item tagger = makeConcLink item tagger =
@ -47,7 +47,7 @@ makeConcLink item tagger =
makeEquip idname = makeEquip idname =
makeLink (LinkConcEquip >> tagger) idname makeLink (LinkConcEquip >> tagger) idname
in in
combine (Maybe.map makePerson item.concPerson) (Maybe.map makeEquip item.concEquip) combine (Maybe.map makePerson item.concPerson) (Maybe.map makeEquip item.concEquipment)
makeFolderLink : makeFolderLink :