aboutsummaryrefslogtreecommitdiffstats
path: root/skate/map.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/map.go')
-rw-r--r--skate/map.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/skate/map.go b/skate/map.go
index 1584acd..316b8ee 100644
--- a/skate/map.go
+++ b/skate/map.go
@@ -197,21 +197,21 @@ func MapperTitleSandcrawler(p []byte) (fields [][]byte, err error) {
return fields, nil
}
-// MapperContainerName extracts (container_title, doc).
+// MapperContainerName extracts (container_name, doc).
func MapperContainerName(p []byte) ([][]byte, error) {
var (
- doc ContainerNameDoc
+ doc PartialDoc
key []byte
)
if err := json.Unmarshal(p, &doc); err != nil {
return nil, err
} else {
- key = []byte(wsReplacer.Replace(strings.TrimSpace(doc.Biblio.ContainerName)))
+ key = []byte(wsReplacer.Replace(strings.TrimSpace(doc.ContainerName)))
}
return [][]byte{key, p}, nil
}
-// MapperContainerNameSandcrawler extracts (container_title, doc).
+// MapperContainerNameSandcrawler extracts (container_name, doc).
func MapperContainerNameSandcrawler(p []byte) (fields [][]byte, err error) {
if fields, err = MapperContainerName(p); err != nil {
return nil, err
@@ -242,7 +242,5 @@ func MapperURLFromRef(p []byte) (fields [][]byte, err error) {
// MapperPartial works on partial documents.
func MapperPartial(p []byte) (fields [][]byte, err error) {
- // TODO: slugify authors, how to compare two author strings? How do these
- // things look like?
return nil, nil
}