Commit 770a88c3 by Kerenoc

Modfify tabs for books and fix filter for yesno field by setting notnull to true…

Modfify tabs for books and fix filter for yesno field by setting notnull to true (bug reported by van den Decken)
parent 3925baaf
......@@ -746,6 +746,7 @@ our $linkNameSeparator = '##';
label => 'PanelFavourite',
init => '0',
group => 'tagpanel',
notnull => 'true',
imported => 'false'
},
{
......
......@@ -71,16 +71,18 @@ name="GCbooks">
<field value="authors" group="Main" history="true" init="" label="Authors" type="single list" imported="true" />
<field value="publisher" group="Main" init="" label="Publisher" type="history text" imported="true" />
<field value="publication" group="Main" init="" label="Publication" type="date" imported="true" />
<field value="language" group="Main" init="" label="Language" type="history text" imported="true" />
<field value="serie" group="Main" init="" label="Serie" type="history text" imported="true" />
<field value="language" group="Details" init="" label="Language" type="history text" imported="true" />
<field value="original" group="Main" init="" label="Original" type="short text" imported="true" />
<field value="edition" group="Main" init="" label="Edition" type="history text" imported="true" />
<field value="rank" group="Main" init="1" label="Rank" type="number" min="0" max="99999" imported="true" />
<field value="edition" group="Details" init="" label="Edition" type="short text" imported="true" />
<field value="serie" group="Main" init="" label="Serie" type="short text" imported="true" />
<field value="volume" group="Main" init="" label="Volume" type="number" min="0" max="99" imported="true" />
<field value="format" group="Details" init="" label="Format" type="history text" imported="true" />
<field value="genre" group="Main" history="true" init="" label="Genre" type="single list" imported="true" />
<field value="description" group="Main" init="" label="Bookdescription" type="long text" imported="true" />
<field value="pages" group="Main" init="" label="Pages" type="number" imported="true" />
<field value="web" group="Main" init="" label="Url" type="button" format="url" imported="true" />
<field value="read" group="Details" init="0" label="Read" type="yesno" />
<field value="read" group="Details" init="0" label="Read" type="yesno" notnull="true"/>
<field value="added" group="Details" init="current" label="PanelAdded" type="date" />
<field value="rating" group="Details" init="0" label="PanelRating" min="0" max="10" type="number" displayas="graphical" />
<field value="acquisition" group="Details" init="" label="Acquisition" type="date" />
......@@ -121,19 +123,21 @@ name="GCbooks">
<item for="cover" height="170" width="130" type="value"/>
<item cols="4" rows="5" type="table" expand="true">
<item col="0" for="publication" row="0" type="label" />
<item col="1" colspan="3" expand="true" for="publication" row="0" type="value" />
<item col="0" for="publisher" row="1" type="label" />
<item col="1" colspan="1" expand="true" for="publication" row="0" type="value" />
<item col="2" for="pages" row="0" type="label" />
<item col="3" colspan="1" expand="true" for="pages" row="0" type="value" />
<item col="0" for="publisher" row="1" type="label" />
<item col="1" colspan="3" expand="true" for="publisher" row="1" type="value" />
<item col="0" for="edition" row="2" type="label" />
<item col="1" colspan="1" expand="true" for="edition" row="2" type="value" width="5" />
<item col="2" for="rank" row="2" type="label" />
<item col="3" colspan="1" expand="true" for="rank" row="2" type="value" />
<item col="0" for="serie" row="3" type="label" />
<item col="1" colspan="1" expand="true" for="serie" row="3" type="value" width="5" />
<item col="0" for="language" row="4" type="label" />
<item col="1" colspan="1" expand="true" for="language" row="4" type="value" />
<item col="2" for="pages" row="4" type="label" />
<item col="3" colspan="1" expand="true" for="pages" row="4" type="value" />
<item col="0" for="serie" row="2" type="label" />
<item col="1" colspan="1" expand="true" for="serie" row="2" type="value" width="5" />
<item col="2" for="volume" row="2" type="label" />
<item col="3" colspan="1" expand="true" for="volume" row="2" type="value" />
<item col="0" for="edition" row="3" type="label" />
<item col="1" colspan="1" expand="true" for="edition" row="3" type="value" width="5" />
<item col="2" for="rank" row="3" type="label" />
<item col="3" colspan="1" expand="true" for="rank" row="3" type="value" />
<item col="0" for="original" row="4" type="label" />
<item col="1" colspan="3" expand="true" for="original" row="4" type="value" />
</item>
<item type="line" width="0"/>
</item>
......@@ -150,23 +154,23 @@ name="GCbooks">
</item>
<item expand="true" title="Details" type="tab" value="bla">
<item cols="6" expand="true" rows="8" type="table">
<item col="0" row="0" colspan="4" for="read" type="value" />
<item col="0" row="1" for="added" type="label" />
<item col="1" row="1" colspan="3" for="added" type="value" />
<item col="0" row="2" for="translator" type="label" />
<item col="1" row="2" for="translator" type="value" />
<item col="2" row="2" for="artist" type="label" />
<item col="3" row="2" for="artist" type="value" />
<item col="0" row="3" for="rating" type="label" />
<item col="1" row="3" for="rating" type="value" />
<item col="2" row="3" for="location" type="label" />
<item col="3" row="3" for="location" width="13" type="value" />
<item col="0" row="4" for="edition" type="label" />
<item col="1" row="4" for="edition" type="value" />
<item col="0" row="0" colspan="1" for="read" type="value" />
<item col="2" row="0" for="location" type="label" />
<item col="3" row="0" for="location" width="13" type="value" />
<item col="0" row="1" for="rating" type="label" />
<item col="1" row="1" colspan="3" for="rating" type="value" />
<item col="0" row="2" for="added" type="label" />
<item col="1" row="2" for="added" type="value" />
<item col="2" row="2" for="acquisition" type="label" />
<item col="3" row="2" for="acquisition" type="value" />
<item col="0" row="3" for="translator" type="label" />
<item col="1" row="3" for="translator" type="value" />
<item col="2" row="3" for="language" type="label" />
<item col="3" row="3" colspan="1" for="language" type="value" />
<item col="0" row="4" for="artist" type="label" />
<item col="1" row="4" for="artist" type="value" />
<item col="2" row="4" for="format" type="label" />
<item col="3" row="4" for="format" width="13" type="value" />
<item col="0" row="5" for="acquisition" type="label" />
<item col="1" row="5" for="acquisition" type="value" />
<item col="0" row="6" type="label" for="digitalfile" nomargin="true"/>
<item col="1" row="6" type="line" colspan="3">
<item type="value" for="digitalfile" expand="true" nomargin="true"/>
......@@ -240,8 +244,6 @@ name="GCbooks">
<item type="value" for="description" height="5em"/>
<item type="expander" title="Details">
<item cols="2" expand="true" rows="7" type="table">
<item col="0" for="edition" row="0" type="label" />
<item col="1" for="edition" row="0" type="value" />
<item col="0" for="format" row="1" type="label" />
<item col="1" for="format" row="1" type="value" />
<item col="0" for="location" row="2" type="label" />
......
......@@ -149,18 +149,21 @@ name="GCbuildingtoys">
label="Box"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="manual"
type="yesno"
label="Manual"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="sealed"
type="yesno"
label="Sealed"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="nbowned"
type="number"
......
......@@ -200,6 +200,7 @@ name="GCcomics">
label="Signing"
init="0"
group="details"
notnull="true"
imported="false"/>
<field value="cost"
type="number"
......
......@@ -172,18 +172,21 @@ name="GCgames">
label="Case"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="manual"
type="yesno"
label="Manual"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="exclusive"
type="yesno"
label="Exclusive"
init="0"
group="details"
notnull="true"
imported="true"/>
<field value="added"
type="date"
......
......@@ -82,11 +82,11 @@ name="GCminicars">
<field value="constructor" flat="true" group="Main" history="true" init="" label="Constructor" type="history text" />
<field value="year" group="Main" init="" label="Year" type="number" />
<field value="comments1" group="Main" init="" label="Comments1" type="long text" />
<field value="exchange" group="Main" init="0" label="Exchange" type="yesno" />
<field value="wanted" group="Main" init="0" label="Wanted" type="yesno" />
<field value="exchange" group="Main" init="0" label="Exchange" type="yesno" notnull="true" />
<field value="wanted" group="Main" init="0" label="Wanted" type="yesno" notnull="true" />
<field value="pub" group="Main" label="Pub" history="false" type="history text" init="" />
<field value="transformation" group="Main" init="0" label="Transformation" type="yesno" />
<field value="kit" group="Main" init="0" label="Kit" type="yesno" />
<field value="transformation" group="Main" init="0" label="Transformation" type="yesno" notnull="true" />
<field value="kit" group="Main" init="0" label="Kit" type="yesno" notnull="true" />
<field value="reference" group="Main" init="" label="Reference" type="short text" />
<field value="color" flat="true" group="Main" history="true" init="" label="Color" type="short text" />
......
......@@ -84,12 +84,12 @@ name="GCsmartcards">
<field value="year2" group="Main" init="" label="Year2" type="date" />
<field value="comments1" group="Main" init="" label="Comments1" type="long text" />
<field value="exchange" group="Main" init="0" label="Exchange" type="yesno" />
<field value="wanted" group="Main" init="0" label="Wanted" type="yesno" />
<field value="condition" group="Main" init="0" label="Condition" type="yesno" />
<field value="exchange" group="Main" init="0" label="Exchange" type="yesno" notnull="true" />
<field value="wanted" group="Main" init="0" label="Wanted" type="yesno" notnull="true" />
<field value="condition" group="Main" init="0" label="Condition" type="yesno" notnull="true" />
<field value="variety" group="Main" init="0" label="Variety" type="yesno" />
<field value="charge" group="Main" init="0" label="Charge" type="yesno" />
<field value="variety" group="Main" init="0" label="Variety" type="yesno" notnull="true" />
<field value="charge" group="Main" init="0" label="Charge" type="yesno" notnull="true" />
<field value="color" flat="true" group="Main" history="true" init="" label="Color" type="short text" />
......
......@@ -198,12 +198,14 @@ name="GCsoftware">
label="Case"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="manual"
type="yesno"
label="Manual"
init="1"
group="details"
notnull="true"
imported="false"/>
<field value="added"
type="date"
......
......@@ -317,12 +317,14 @@ xsi:noNamespaceSchemaLocation="http://www.gcstar.org/schemas/gcm-revision4.xsd"
init=""
label="Adjusted"
type="yesno"
notnull="true"
value="gcsfield22" />
<field displayed="Cancellation"
group="Condition"
init=""
label="Cancellation"
type="yesno"
type="yesno"
notnull="true"
value="gcsfield13" />
<field displayed="CancellationCondition"
group="Condition"
......@@ -355,7 +357,8 @@ xsi:noNamespaceSchemaLocation="http://www.gcstar.org/schemas/gcm-revision4.xsd"
group="Condition"
init=""
label="Error"
type="yesno"
type="yesno"
notnull="true"
value="gcsfield44" />
<field displayed="Error notes"
group="Condition"
......
......@@ -146,7 +146,9 @@ name="GCwines">
type="url" />
<field value="tasted"
type="yesno"
init="0"
group="Tasting"
notnull="true"
label="Tasted"/>
<field value="rating"
group="Tasting"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment