Login

Who's Online

Google








Home arrow Programmingarrow Joomla Extensionsarrow BibTex demo page error on "auth asc"?
Discussion Forum
December 04, 2008, 03:16:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: BibTex demo page error on "auth asc"?  (Read 921 times)
Steve
Newbie
*
Posts: 3


View Profile Email
« on: July 16, 2007, 08:19:29 AM »

Hi Mark,

Your bibliography component for joomla is excellent, but there appears to be a problem when the listing is sorted by author. On your bibliography demo page the sort by author, ascending, option results in a series of error messages such as:

Quote
Notice: Undefined index: last in /home/everyth/public_html/Joomla/components/com_jombib/jombib.php on line 607

On my own site, at http://whoisbahaullah.com/explore/index.php?option=com_jombib&Itemid=60 I get

Quote
Warning: Invalid argument supplied for foreach() in /home/whoisb2/public_html/explore/components/com_jombib/jombib.php on line 579

thanks
Steve
Logged
Mark Austin
Administrator
Jr. Member
*****
Posts: 97



View Profile Email
« Reply #1 on: July 16, 2007, 04:16:01 PM »

Thanks for spotting that error in my component, I have fixed it so this will not occur in the next release, it is a different problem to the one that you are having though, I am not sure yet why you are getting that error.  Do you have access to your database?  could you list the contents of the jos_bib and jos_bib_auth tables?

Mark
Logged
Steve
Newbie
*
Posts: 3


View Profile Email
« Reply #2 on: July 17, 2007, 12:09:45 AM »

Hi Mark,

Thanks for replying so quickly. I hope I have what you need:

Code:
--
-- Table structure for table `jos_bib`
--

DROP TABLE IF EXISTS `jos_bib`;
CREATE TABLE `jos_bib` (
  `type` varchar(255) default NULL,
  `address` varchar(255) default NULL,
  `annote` text,
  `authorid` int(11) NOT NULL auto_increment,
  `booktitle` varchar(255) default NULL,
  `chapter` varchar(255) default NULL,
  `edition` varchar(255) default NULL,
  `editor` varchar(255) default NULL,
  `eprint` varchar(255) default NULL,
  `howpublished` varchar(255) default NULL,
  `institution` varchar(255) default NULL,
  `journal` varchar(255) default NULL,
  `key` varchar(255) default NULL,
  `month` varchar(255) default NULL,
  `note` varchar(255) default NULL,
  `number` varchar(255) default NULL,
  `organization` varchar(255) default NULL,
  `pages` varchar(255) default NULL,
  `publisher` varchar(255) default NULL,
  `school` varchar(255) default NULL,
  `series` varchar(255) default NULL,
  `title` text,
  `volume` varchar(255) default NULL,
  `year` varchar(255) default NULL,
  `cite` varchar(255) default NULL,
  `url` text,
  `keywords` text,
  `abstract` text,
  `authorsnames` text,
  `shortauthnames` varchar(255) default NULL,
  `checkedout` int(11) default '0',
  PRIMARY KEY  (`authorid`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jos_bib`
--

LOCK TABLES `jos_bib` WRITE;
/*!40000 ALTER TABLE `jos_bib` DISABLE KEYS */;
INSERT INTO `jos_bib` (`type`, `address`, `annote`, `authorid`, `booktitle`, `chapter`, `edition`, `editor`, `eprint`, `howpublished`, `institution`, `journal`, `key`, `month`, `note`, `number`, `organization`, `pages`, `publisher`, `school`, `series`, `title`, `volume`, `year`, `cite`, `url`, `keywords`, `abstract`, `authorsnames`, `shortauthnames`, `checkedout`) VALUES (NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'George Ronald',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'An introduction to Shii Islam',NULL,'1985',NULL,'http://www.amazon.com/dp/0300035314?tag=httpbahainet-20',NULL,'The history and doctrines of Twelver Islam.',' Moojan Momen',' Moojan Momen',0);
/*!40000 ALTER TABLE `jos_bib` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `jos_bib_auth`
--

DROP TABLE IF EXISTS `jos_bib_auth`;
CREATE TABLE `jos_bib_auth` (
  `id` int(11) default NULL,
  `num` int(11) default NULL,
  `first` varchar(255) default NULL,
  `von` varchar(255) default NULL,
  `last` varchar(255) default NULL,
  `jr` varchar(255) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jos_bib_auth`
--

LOCK TABLES `jos_bib_auth` WRITE;
/*!40000 ALTER TABLE `jos_bib_auth` DISABLE KEYS */;
INSERT INTO `jos_bib_auth` (`id`, `num`, `first`, `von`, `last`, `jr`) VALUES (2,1,'Moojan','','Momen','');
/*!40000 ALTER TABLE `jos_bib_auth` ENABLE KEYS */;
UNLOCK TABLES;

We had about 4 entries in the bibliography and tried removing them one at a time to find the one that might be causing the problem. We're using the bibliography to list books rather than journal articles, as you can probably tell. The problem existed before I modified the PHP to change the column heading from "Journal" to "Publisher" and to get rid of the italics in the entries.

cheers
Steve
Logged
Mark Austin
Administrator
Jr. Member
*****
Posts: 97



View Profile Email
« Reply #3 on: July 17, 2007, 09:32:42 AM »

Thanks, that is what i needed, I can't see anything immediately that would cause the problem.  I will have to try to recreate it myself.
Logged
Mark Austin
Administrator
Jr. Member
*****
Posts: 97



View Profile Email
« Reply #4 on: July 17, 2007, 09:41:15 AM »

Can I just confirm that you are using the latest version, 1.3.  Also, could you save your content using the dowload to .bib file function and paste that bibtex string in here.

Thanks
Logged
Steve
Newbie
*
Posts: 3


View Profile Email
« Reply #5 on: July 17, 2007, 12:58:37 PM »

Yes, it's listed as version 1.3, and it was downloaded from your site only a day or two ago.

Here's the bibtex string (I think)

Code:
@ { ,
journal = {George Ronald},
url = {http://www.amazon.com/dp/0300035314?tag=httpbahainet-20},
year = {1985},
abstract = {The history and doctrines of Twelver Islam.},
title = {An introduction to Shii Islam},
author = {Momen , Moojan}
}


I hope this helps you - it's certainly helping us.

thanks,
Steve
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
© 2008 Everything That I Know About