diff options
Diffstat (limited to 'cmd/gen-posix/data.go')
-rw-r--r-- | cmd/gen-posix/data.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/gen-posix/data.go b/cmd/gen-posix/data.go index ac92095..165ecbd 100644 --- a/cmd/gen-posix/data.go +++ b/cmd/gen-posix/data.go @@ -18,7 +18,7 @@ var IEEESA = Vendor{ if err != nil { panic(fmt.Errorf("URL=%q: %v", url, err)) } - cmd := exec.Command("nokogiri", "-e", `puts $_.css("meta[name=\"des\"]").first["content"]`) + cmd := exec.Command("nokogiri", "-e", `puts $_.css("meta[name=\"des\"], meta[name=\"designation\"]").first["content"]`) cmd.Stderr = os.Stderr cmd.Stdin = strings.NewReader(html) d, err := cmd.Output() @@ -35,6 +35,9 @@ var IEEEXplore = Vendor{ Name: "IEEE Xplore", GetURL: func(id string) string { return fmt.Sprintf("http://ieeexplore.ieee.org/servlet/opac?punumber=%s", id) }, GetName: func(id string, url string) string { + if strings.HasSuffix(url, "ERROR") { + return "ERROR" + } html, err := httpcache.Get(url, nil) if err != nil { panic(fmt.Errorf("URL=%q: %v", url, err)) @@ -171,7 +174,7 @@ var Editions = []Edition{ }}, {Vendor: IEEESA, Type: Full, ID: "1003.1-2008", Resellers: []Document{ - {Vendor: IEEEXplore, Type: Full, ID: "7394900"}, + {Vendor: IEEEXplore, Type: Full, ID: "4694974"}, }}, {Vendor: ISO, Type: Full, ID: "50516", Resellers: []Document{ |