You should return either a valid item type (typically journalArticle) or
return false (or just not handle the case). Returning an invalid item type
is equivalent to returning false.
On Jan 13, 2014 2:16 AM, "zuphilip" <notifications@github.com> wrote:

> In DBLP Computer Science Bibliography.js:
>
> > -	else if (url.match(/\/db\/(journals|conf|series|books|reference)/) && !url.match(/index\.html/)){
> > -		return "multiple"
> > -	}
> > +        if (url.match(/rec\/bibtex/)) {
> > +			if (url.match(/journals/)) {
> > +				return "journalArticle";
> > +			} else if (url.match(/conf/)) {
> > +				return "conferencePaper";
> > +			} else if (url.match(/series|reference/)) {
> > +				return "bookSection";
> > +			} else if (url.match(/books/)) {
> > +				return "book";
> > +			} else if (url.match(/phd/)) {
> > +				return "thesis";
> > +			} else {
> > +				return "bibtex";
>
> I know that this is not a valid item type. I am just not sure if I got all
> possible subdirectories. Assume that there is another subdirectory called
> /rec/bibtex/something. There will be the picking symbol (well just the
> generic one), but it will be still be possible to invoke the bibtex-import.
> Please note that the type information is only changing the symbol and it is
> not further needed in the scrape routine. Do you suggest something else to
> do here?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zotero/translators/pull/671/files#r8818892>
> .
>