When importing a BibTeX file, the publication type does not get imported.

Dem

CommentFileSizeAuthor
#8 biblio_4.7_2.0.patch2.1 KBdemianw
#3 t.bib_.txt3.55 KBdemianw

Comments

demianw’s picture

(Sorry, next time I'll be more descriptive with the title)

rjerome’s picture

Could you attach a sample bibtex file for me to work with.

I see you assigned this to the 4.7 tree, all of the modifications I've made recently related to Bibtex have been on the 5.x tree. They will be back ported at some point, but I wanted to the the 5.x module stabilized before doing that.

Ron.

demianw’s picture

StatusFileSize
new3.55 KB

Hi! I'm using the 4.7 version, because I find it more stable. Maybe this bug is fixed in the 5.x version.

The problem, when I import a BibTeX file, is that afterwards, when I edit any entry, the publication type is not set.

I'm attaching a test file.

cirotix’s picture

Hi,

I have tried to import your file with the 5.x version and it woks fine, the publication types are imported.
damien

rjerome’s picture

I backported the 5.x module to 4.7 today, so the two versions should stay in sync now.

demianw’s picture

Errors updating the version:
First the "settings->module" link just hanged, after erasing all the info, I couldn't install it, I got this errors:

Message Table 'odyssee_arc_dmri_2007.biblio_type_details' doesn't exist query: /*!40000 ALTER TABLE `biblio_type_details` ENABLE KEYS */; in /htdocs/files/equipes/odyssee/arc2007/includes/database.mysql.inc on line 121.

Table 'odyssee_arc_dmri_2007.biblio_type_details' doesn't exist query: /*!40000 ALTER TABLE `biblio_type_details` DISABLE KEYS */; in /htdocs/files/equipes/odyssee/arc2007/includes/database.mysql.inc on line 121.

demianw’s picture

Ok, found one of the problems:
In biblio.install line 73:
$result[] = db_query("CREATE TABLE 'biblio_has_author' (
should be replaced by:
$result[] = db_query("CREATE TABLE {biblio_has_author} (
so the tablename gets prefixed.

No more warnings now, nevertheless I'm still not being able of getting into biblio/settings

demianw’s picture

Version: 4.7.x-1.x-dev » 4.7.x-2.0
Component: Miscellaneous » Code
StatusFileSize
new2.1 KB

Ok, found those problems, and (hopefully) fixed them

Dem

rjerome’s picture

Thanks for that, I guess I've got to setup an installation with table prefixes that I can test on, since this is not the first time this has happened :-)

I've integrated the patch into all the releases.

catdevrandom’s picture

Status: Active » Closed (fixed)