<?xml version="1.0" encoding="utf-8"?>
<form>
	<fieldset addfieldpath="/administrator/components/com_abook/models/fields">
		<field name="id" type="text"
			default="0" label="JGLOBAL_FIELD_ID_LABEL"
			readonly="true" class="readonly" />
		<field name="title" type="text"
			label="JGLOBAL_TITLE" description="JFIELD_TITLE_DESC"
			class="inputbox input-xxlarge input-large-text" size="30" required="true" />
		<field name="subtitle" type="text"
                        label="COM_ABOOK_SUBTITLE" description="COM_ABOOK_SUBTITLE_DESC"
                        class="inputbox input-xxlarge input-large-text" size="30" />
		<field name="year" type="text"
                        label="COM_ABOOK_YEAR" description="COM_ABOOK_YEAR_DESC"
                        class="inputbox" size="4" />
		<field name="alias" type="text"
			label="JFIELD_ALIAS_LABEL" description="JFIELD_ALIAS_DESC"
			class="inputbox" size="45" />
		<field name="note" type="text"
                        label="COM_ABOOK_NOTE" description="COM_ABOOK_NOTE_DESC"
                        class="inputbox span12" size="50" />
		<field name="description" type="editor"
			class="inputbox" label="COM_ABOOK_FIELD_DESC_LABEL" description="COM_ABOOK_FIELD_DESC_DESC"
			filter="JComponentHelper::filterText" buttons="true" />
		<field name="state" type="list"
			label="JSTATUS" description="JFIELD_PUBLISHED_DESC"
			class="chzn-color-state" filter="intval" size="1" default="1">
                        <option value="1">JPUBLISHED</option>
                        <option value="0">JUNPUBLISHED</option>
			<option value="2">JARCHIVED</option>
			<option value="-2">JTRASHED</option>
                </field>
		<field name="language" type="contentlanguage" label="JFIELD_LANGUAGE_LABEL"
                        description="COM_ABOOK_FIELD_LANGUAGE_DESC" class="inputbox">
                        <option value="*">JALL</option>
                </field>
		<field name="qty" type="text"
                        label="COM_ABOOK_FIELD_QTY_LABEL" description="COM_ABOOK_FIELD_QTY_DESC"
                        class="inputbox validate-numeric" default="1" size="3" filter="integer" />
		<field name="catid" type="categoryedit" extension="com_abook"
                        label="JCATEGORY" description="COM_ABOOK_FIELD_CATEGORY_DESC"
                        class="inputbox" required="true" />
		<field name="access" type="accesslevel" label="JFIELD_ACCESS_LABEL"
                        description="JFIELD_ACCESS_DESC" class="inputbox" size="1" />
		<field name="ideditor" type="editors"
                        label="COM_ABOOK_FIELD_EDITOR_LABEL" description="COM_ABOOK_FIELD_EDITOR_DESC"
                        class="inputbox">
			<option value="">JSELECT</option>
		</field>
		<field name="idlibrary" type="sql"
                        label="COM_ABOOK_FIELD_LIBRARY_LABEL" description="COM_ABOOK_FIELD_LIBRARY_DESC"
                        query="SELECT id, name FROM #__ablibrary" key_field="id" value_field="name"
                        class="inputbox" default="0" >
			<option value="">JSELECT</option>
		</field>
		<field name="idlocation" type="sql"
                        label="COM_ABOOK_FIELD_LOCATION_LABEL" description="COM_ABOOK_FIELD_LOCATION_DESC"
                        query="SELECT id, name FROM #__ablocations" key_field="id" value_field="name"
                        class="inputbox" default="0" >
			<option value="">JSELECT</option>
		</field>
		<field name="catalogo" type="text"
                        label="COM_ABOOK_FIELD_CATALOG_LABEL" description="COM_ABOOK_FIELD_CATALOG_DESC"
                        class="inputbox" size="10" />
		<field name="dateinsert" type="calendar"
			label="COM_ABOOK_FIELD_DATEINSERT_LABEL" description="COM_ABOOK_FIELD_DATEINSERT_DESC"
			class="inputbox" size="20" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
		<field name="user_id" type="user"
			label="COM_ABOOK_FIELD_CREATED_BY_LABEL" description="COM_ABOOK_FIELD_CREATED_BY_DESC" />
                <field name="created_by_alias" type="text"
			label="COM_ABOOK_FIELD_CREATED_BY_ALIAS_LABEL" description="COM_ABOOK_FIELD_CREATED_BY_ALIAS_DESC"
			class="inputbox" size="20" />
		<field name="url" type="text"
			label="COM_ABOOK_FIELD_URL_LABEL" description="COM_ABOOK_FIELD_URL_DESC"
			class="inputbox" size="20" />
		<field name="price" type="text"
                        label="COM_ABOOK_FIELD_PRICE_LABEL" description="COM_ABOOK_FIELD_PRICE_DESC"
                        class="inputbox" size="10" />
		<field name="pag" type="text"
                        label="COM_ABOOK_FIELD_PAGES_LABEL" description="COM_ABOOK_FIELD_PAGES_DESC"
                        class="inputbox" size="14" />
		<field name="pag_index" type="text"
                        label="COM_ABOOK_FIELD_PAG_INDEX_LABEL" description="COM_ABOOK_FIELD_PAG_INDEX_DESC"
                        class="inputbox" size="4" />
		<field name="isbn" type="text"
                        label="COM_ABOOK_FIELD_ISBN_LABEL" description="COM_ABOOK_FIELD_ISBN_DESC"
                        class="inputbox" size="10" />
		<field name="url_label" type="text"
			label="COM_ABOOK_FIELD_URL_LABEL_LABEL" description="COM_ABOOK_FIELD_URL_LABEL_DESC"
			class="inputbox" size="20" />
		<field name="rules" type="rules" label="JFIELD_RULES_LABEL"
                        translate_label="false"
                        filter="rules" class="inputbox" component="com_abook"
                        section="book" validate="rules" />
		<field name="image"
                        type="media"
                        hide_none="1"
                        label="COM_ABOOK_FIELD_PARAMS_IMAGE_LABEL"
                        description="COM_ABOOK_FIELD_PARAMS_IMAGE_DESC"
                />
		<field name="file"
                        type="list"
                        label="COM_ABOOK_FIELD_PARAMS_EBOOK_LABEL"
                        description="COM_ABOOK_FIELD_PARAMS_EBOOK_DESC"
                />
		<field name="editedby" type="radio"
                        label="COM_ABOOK_EDITEDBY"
                        class="btn-group btn-group-yesno" default="0">
                        <option value="1">JYES</option>
                        <option value="0">JNO</option>
                </field>
		<field name="idauth" type="authors" label="COM_ABOOK_FIELD_AUTHOR_LABEL" description="COM_ABOOK_FIELD_AUTHOR_DESC" multiple="true" class="inputbox span 12" />
		<field name="idtag" type="tags" label="COM_ABOOK_TAGS"  multiple="true" class="inputbox span 12" />
		<field name="docsfolder" type="hidden" />
                <field name="metakey" type="textarea"
                        label="JFIELD_META_KEYWORDS_LABEL" description="JFIELD_META_KEYWORDS_DESC"
                        rows="3" cols="30" />

                <field name="metadesc" type="textarea"
                        label="JFIELD_META_DESCRIPTION_LABEL" description="JFIELD_META_DESCRIPTION_DESC"
                        rows="3" cols="30" />
	</fieldset>
        <fields name="params">
               	<fieldset name="jbasic"
                      	label="JGLOBAL_FIELDSET_DISPLAY_OPTIONS"
               	>
			<field
                       	name="linkto"
	                type="list"
               		label="COM_ABOOK_LINK"
	                description="COM_ABOOK_TIPS_LINK"
               	        >
                       		<option value="">JGLOBAL_USE_GLOBAL</option>
                       		<option value="0">JHIDE</option>
               		 	<option value="1">JSHOW</option>
               		</field>
			<field
                        	name="linkimage" type="imagelist"
	                        label="COM_ABOOK_LINK_IMAGE"
        	                description="COM_ABOOK_TIPS_LINK_IMAGE" directory="/components/com_abook/assets/images/link/"
                	        exclude="" stripext=""
                	/>
			<field
                        name="view_date"
                        type="list"
                        default=""
                        menu="hide"
                        label="COM_ABOOK_DATEINSERT"
                        description="COM_ABOOK_TIPS_DATEINSERT"
	                >
                                <option value="">JGLOBAL_USE_GLOBAL</option>
                                <option value="0">JHIDE</option>
                                <option value="1">JSHOW</option>
                </field>
                <field
                        name="show_icons"
                        type="list"
                        label="COM_ABOOK_ICONS"
                        description="COM_ABOOK_TIPS_ICONS"
                >
                                <option value="">JGLOBAL_USE_GLOBAL</option>
                                <option value="0">JHIDE</option>
                                <option value="1">JSHOW</option>
                </field>
                <field
                        name="show_print_icon"
                        type="list"    
                        label="COM_ABOOK_PRINT_ICON"
                        description="COM_ABOOK_TIPS_PRINT_ICON"
                >
                                <option value="">JGLOBAL_USE_GLOBAL</option>
                                <option value="0">JHIDE</option>
                                <option value="1">JSHOW</option>
                </field>
                <field
                        name="show_hits" type="list"
                        label="COM_ABOOK_HITS" description="COM_ABOOK_TIPS_HITS">
                        <option value="">JGLOBAL_USE_GLOBAL</option>
                        <option value="0">JHIDE</option>
                        <option value="1">JSHOW</option>
                </field>
		<field
                        name="breadcrumb"
                        type="list"
                        label="COM_ABOOK_BREADCRUMB"
                        description="COM_ABOOK_TIPS_BREADCRUMB"
                >
                                <option value="">JGLOBAL_USE_GLOBAL</option>
                                <option value="0">JHIDE</option>
                                <option value="1">Joomla breadcrumb</option>
                                <option value="2">Abook breadcrumb</option>

                </field>
                <field
                        name="search" type="list" label="COM_ABOOK_SEARCH" description="COM_ABOOK_TIPS_SEARCH">
                        <option value="">JGLOBAL_USE_GLOBAL</option>
                        <option value="0">JHIDE</option>
                        <option value="1">JSHOW</option>
                </field>
                <field
                        name="view_rate"
                        type="list"
                        label="COM_ABOOK_VOTING"
                        description="COM_ABOOK_TIPS_VOTING"
                >
                                <option value="">JGLOBAL_USE_GLOBAL</option>
                                <option value="0">JHIDE</option>
                                <option value="1">JSHOW</option>
                </field>

			<field name="book_layout" type="componentlayout"
                                label="JFIELD_ALT_LAYOUT_LABEL"
                                description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
                                useglobal="true"
                                extension="com_abook" view="book" />
		<field
                        name="view_pag_index"
                        type="list"
                        label="COM_ABOOK_PAG_INDEX"
                        description="COM_ABOOK_TIPS_PAG_INDEX"
                >
                                <option value="">JGLOBAL_USE_GLOBAL</option>
                                <option value="0">JHIDE</option>
                                <option value="1">JSHOW</option>
                </field>
		</fieldset>
	</fields>
	<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
                <fieldset name="jmetadata"
                        label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
			<!--<field name="metadesc" type="textarea"
                        	label="COM_ABOOK_FIELD_META_DESC_LABEL" description="COM_ABOOK_FIELD_META_DESC"
                        	cols="30" rows="5" />
                	<field name="metakey" type="textarea"
                        	label="COM_ABOOK_FIELD_META_KEYS_LABEL" description="COM_ABOOK_FIELD_META_KEYWORDS_DESC"
                        	cols="30" rows="5" />-->
		</fieldset>
        </fields>

</form>
