OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Adding custom fields in BOOK (0 viewing) 

BookLibary Component Support

Go to bottom Favoured: 0

Adding custom fields in BOOK

LARdT (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Adding custom fields in BOOK 11 Years, 2 Months ago
Karma: 0  
I would like to add some custom fields in the BOOK metadata, but the help PDF file does not cover the subject.

I suppose I need to do the modfifications on the PHP code of the site. With a litlle guidance from you I think I could maek it myself.

- Could you please tell me what kind of Joomla object is the Book entity (an "article", for example)?

- Please tell me which PHP program files deal with field creation and display.

- I need a couple of simple date fields, so I suppose that replicating the actual code will do the trick. Could you please tell me which lines create and display a date field. That should be enough as example.

Thanks and keep up the good work.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8361
graph
User Offline Click here to see the profile of this user
Re:Adding custom fields in BOOK 11 Years, 2 Months ago
Karma: 102  
Hello,

Because that not full simply and ask PHP/HTML/CSS skills we not advice do that.
For add new fields will need modify many files

You may do that self, or you may hire us for that.

ours component have Open source,

it have two parts admin and frontend.

in admin you will see two files:
{yours
site}/administrator/components/com_booklibrary/admin.booklibrary.html.php
site}/administrator/components/com_booklibrary/admin.booklibrary.php


admin.booklibrary.html.php - responsible for show data
admin.booklibrary.php - responsible for prepare data

exactly for frontend
{yours site}/components/com_booklibrary/booklibrary.html.php
site}/components/com_booklibrary/booklibrary.php

booklibrary.html.php - responsible for show data
booklibrary.php - responsible for prepare data

Also all fields what you leave empty - will not show at frontend

All connection between what user press in Browser - do wit help TASK variable.

also if you wish all Joomla class methods work. E.g when you create new Book
with help
mosbooklibrary class. you need also edit file
site}/components/com_booklibrary/booklibrary.class.php

and add to class definition all new fields what you added to database

If you give full details what exactly you wish, we will self create that for
you.

Thanks,
Andrew
Logged Logged
The administrator has disabled public write access.
LARdT (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Adding custom fields in BOOK 11 Years, 1 Month ago
Karma: 0  
Thanks a lot.
The idea is to add the fields included in the mertadata.opf file in the ePUB specification that we use to catalogue.

I enclose a real metadata file and I will follow all the fields in it. I hope that makes clear waht I need.
Fileds that already exist in your component will be labeled "ALREADY INCLUDED"

<author>Lois MCMASTER BUJOLD</author> ALREDY INCLUDED

<authorsort>MCMASTER BUJOLD Lois</authorsort>
TXT field defined as author name where we wrirte the name in the proper form to sort author's names

<isbn>9788440658357</isbn> ALREDY INCLUDED
<language>es</language> ALREDY INCLUDED
<cover>cover.jpg</cover> ALREDY INCLUDED

<originaltitle>Mirror Dance. A Vorkosigan Adventure</originaltitle>
TXT field identical to TITLE for the title in its original language

<serie>Miles Vorkosigan</serie>
<serienumber>2</serienumber>
pair of TXT and INTEGER fields related in which we document the series/collection and the order number of the book inside it.
Probably somehting simillar to actual PRICE field (quantity and currency fields) will do.


<translator>Margara Auerbach</translator>
TXT field with name of translator

<publisher>Ediciones B</publisher> ALREADY INCLUDED
<date>1995</date> AÑREADY INCLUDED

<revisedby>BBPP LARdT v1.14</revisedby>
TXT field with version of CSS template used in book. If it could came from listbox it would be great.

<review>Miles tiene 28 años.....en estado de criogenización.</review> ALREADY INCLUDED

<creationDate>2010-10-24</creationDate>
<modificationDate>2010-10-24</modificationDate>
2 DATE fields including the date of initial release y date of last release version of ePUB file

<award>HUGO</award>
<awardYear>1995</awardYear>
<logo>C:TodoEpubTodoEpubtmp@@@@logo128X128.png</logo>
If the book has an Award is included in its 2nd page
TXT name of award
INTEGER year of award
LOGO is similar to your icon image for categories field.

And thats all. Thanks again.
File Attachment:
File Name: metadataOSCA.txt
File Size: 1631
Logged Logged
Last Edit: 2013/09/16 11:54 By LARdT. Reason: uploading attachment
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8361
graph
User Offline Click here to see the profile of this user
Re:Adding custom fields in BOOK 11 Years, 1 Month ago
Karma: 102  
Hi,

Please redirect this to Ordasoft support contact form

Now our field set go from fields what we may take from amazon with auto fill fields.
Do you need continue Amazon book fields fill ?
Do you need import/xport

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
LARdT (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Adding custom fields in BOOK 11 Years, 1 Month ago
Karma: 0  
No, I can lose the AMAZON metadata import if it helps.

In fact I've had a problem with the FULLXML import data.

When I try to import all my books (1590) it crashes.
It works until 1060 books aprox.
It is an issue related with the number of lines of the XML file, because if I do not import the
description field (which is like a post with several lines), I cam import the 1590 books.

So, I got all my books but with incomplete data or
just 2/3 of them complete. Manual imput of 1500 descriptions or
500 books is out of the question.

The XML file is well formed and all the records have been imported (in different blocks).

Could you please check this?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8361
graph
User Offline Click here to see the profile of this user
Re:Adding custom fields in BOOK 11 Years, 1 Month ago
Karma: 102  
hello,

with import error, you need check exactly book what give error,
We not have in self component
You may be have some limit from host, but if that was file size - you was can't add any row from it.

Also may be limit with time for request processing, for resolve that you need divide file to some parts and do import to some one categories

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»