diff --git a/api/pa/entity.go b/api/pa/entity.go index 7270776..d05b7fa 100644 --- a/api/pa/entity.go +++ b/api/pa/entity.go @@ -169,7 +169,7 @@ func (i *Item) Creators() []entity.Creator { } func (i *Item) Publisher() string { - if i.ItemInfo != nil && i.ItemInfo.ByLineInfo != nil { + if i.ItemInfo != nil && i.ItemInfo.ByLineInfo != nil && i.ItemInfo.ByLineInfo.Manufacturer != nil { return i.ItemInfo.ByLineInfo.Manufacturer.DisplayValue } return "" diff --git a/go.mod b/go.mod index 76da46f..44fd636 100644 --- a/go.mod +++ b/go.mod @@ -9,5 +9,5 @@ require ( github.com/spiegel-im-spiegel/errs v0.3.2 github.com/spiegel-im-spiegel/gocli v0.10.1 github.com/spiegel-im-spiegel/openbd-api v0.2.3 - github.com/spiegel-im-spiegel/pa-api v0.4.1 + github.com/spiegel-im-spiegel/pa-api v0.5.0 ) diff --git a/go.sum b/go.sum index 5324586..75a426d 100644 --- a/go.sum +++ b/go.sum @@ -40,7 +40,6 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= @@ -98,8 +97,8 @@ github.com/spiegel-im-spiegel/gocli v0.10.1 h1:XWyq4dKFp2xTjiH2P2bxPZyi0++4IHp9H github.com/spiegel-im-spiegel/gocli v0.10.1/go.mod h1:9vRvly2giutJ2sAtQjrw570p9ulJA3twgKlurmnj12g= github.com/spiegel-im-spiegel/openbd-api v0.2.3 h1:3iV0TEQmznT8jxoYFlVM1ZUd1vhi3owUhvbrevB/FvM= github.com/spiegel-im-spiegel/openbd-api v0.2.3/go.mod h1:M258g8imPwlFkoJR+wlfVVsMZJIKJlKx46Fzf4d2dr8= -github.com/spiegel-im-spiegel/pa-api v0.4.1 h1:OD58th423L37Bm5T+Sc7hi66RXJuLgpvH5TZuvCQRfY= -github.com/spiegel-im-spiegel/pa-api v0.4.1/go.mod h1:2ugBqfnaqLnBtKd/rDmOqOhFum5thuXwojf8Uh98h+k= +github.com/spiegel-im-spiegel/pa-api v0.5.0 h1:erwGRBgoSy24NdVE+DPi7P3mViGz9Tz4TKkPkP+f3Ak= +github.com/spiegel-im-spiegel/pa-api v0.5.0/go.mod h1:2ugBqfnaqLnBtKd/rDmOqOhFum5thuXwojf8Uh98h+k= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=