OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Publication date empty on webpage (0 viewing) 

BookLibary Component Support

Go to bottom Favoured: 0

Publication date empty on webpage

SchlossLieser (Visitor)
Posts: 0
graphgraph
User Offline
Publication date empty on webpage 13 Years, 8 Months ago
Karma: 0  
I have imported a XML file. Each book within the import file has a publication date. This date is only a Year value. For example:

<?xml version="1.0" ?>
- <books>
- <book>
<bookid>16SA43</bookid>
<isbn>16SA43</isbn>
<title>Erbschaftssteuergesetz. Nebst den Ausführungsbestimmungen und der Überleitungsverordnung</title>
<authors>Marcus, Josef</authors>
<manufacturer>Spaeth & Linde</manufacturer>
<releaseDate>1923</releaseDate>
<language>German</language>
<comment />
<edition />
</book>


The year is not visible on the website? But when I make a export file from the Booklibrary, the publishing date has a value. Is something going wrong in the presention of the record? Should the date have a certain format?
Logged Logged
The administrator has disabled public write access.
SchlossLieser (Visitor)
Posts: 0
graphgraph
User Offline
Re:Publication date empty on webpage 13 Years, 8 Months ago
Karma: 0  
I tested the problem one more time. The conclusion that the imported date is given when creating a export of same imported file is FALSE. The date is also not given in the export file! Because I could not wait, I looked into the code a detected two bugs:

Bug 1
filename: admin.booklibrary.class.impexp.php
function: importBooksXML
line: 185

$book_class->release_Date = mosBooklibraryImportExport::getXMLItemValue($book,'releasedate';

change 'releasedate' to 'releaseDate'

Bug 2
filename: csv.xsl
line: 10

<xsl:value-of select="releasedate"/><xsl:text>|</xsl:text>

change "releasedate" to "releaseDate"

The reason I changed the letter d to D is because of the code that is written for creating a XML exportfile:

Look at the file "booklibrary.class.php". See line 342. I used the export file output to define my importfile. In code they are different!

So we could also change the error in this file, so that the XML import and export xml templates are the same. Maybe this option is the best one I think this is the real bug.
Logged Logged
The administrator has disabled public write access.
Go to top
»