@@ -3,8 +3,8 @@ var uiModels = uiModels || {};
33uiModels . comics = {
44 id : 'comics' ,
55 label : 'Graphic Novels' ,
6- entity : 'graphic novel' ,
7- entities : 'graphic novels ' ,
6+ entity : 'graphic novel serie ' ,
7+ entities : 'graphic novel series ' ,
88 //icon: 'serie.gif',
99 leadfield :'title' ,
1010 badge :function ( m ) {
@@ -24,19 +24,18 @@ uiModels.comics = {
2424 {
2525 id : 'genre' , attribute : 'genre' , type : 'lov' , label : 'Genre' , width : 38 , viewmany : true ,
2626 list : [
27- { id : 'adv' , text : 'Aventure ' } ,
28- { id : 'conte' , text : 'Conte ' } ,
29- { id : 'eros' , text : 'Erotique ' } ,
30- { id : 'fantasy' , text : 'Fantastique ' } ,
27+ { id : 'adv' , text : 'Adventure ' } ,
28+ { id : 'conte' , text : 'Fairy tale ' } ,
29+ { id : 'eros' , text : 'Erotic ' } ,
30+ { id : 'fantasy' , text : 'Fantastic ' } ,
3131 { id : 'hf' , text : 'Heroic Fantasy' } ,
32- { id : 'hist' , text : 'Historique' } ,
33- { id : 'humor' , text : 'Humour' } ,
34- { id : 'nocat' , text : 'Inclassable' } ,
35- { id : 'youth' , text : 'Jeunesse' } ,
36- { id : 'pol' , text : 'Policier / Thriller' } ,
37- { id : 'rg' , text : 'Roman graphique' } ,
32+ { id : 'hist' , text : 'Historic' } ,
33+ { id : 'humor' , text : 'Humor' } ,
34+ { id : 'nocat' , text : 'One of a kind' } ,
35+ { id : 'youth' , text : 'Youth' } ,
36+ { id : 'pol' , text : 'Thriller' } ,
3837 { id : 'sf' , text : 'Science-fiction' } ,
39- { id : 'sh' , text : 'Super Héros ' } ,
38+ { id : 'sh' , text : 'Super Heros ' } ,
4039 { id : 'wwest' , text : 'Western' }
4140 ]
4241 } ,
@@ -51,16 +50,6 @@ uiModels.comics = {
5150 { id : 'EN' , text : 'English' }
5251 ]
5352 } ,
54- {
55- id :'amazon' , label :'Amazon' , type :'formula' , width :100 , css :'evol-ellipsis' ,
56- formula :function ( m ) {
57- var link = m . get ( 'language' ) == 'FR' ?
58- 'http://www.amazon.fr/s/ref=sr_nr_n_1?keywords='
59- :'http://www.amazon.com/s/ref=nb_sb_noss?field-keywords=' ;
60- link += encodeURI ( m . get ( 'title' ) + ' ' + m . get ( 'authors' ) ) ;
61- return '<a target="a" href="' + link + '">' + link + '</a>' ;
62- }
63- } ,
6453 {
6554 id : 'serieNb' , attribute : 'serieNb' , type : 'integer' , width : 15 , viewmany : false ,
6655 label : 'Albums' , viewcharts :false
@@ -81,6 +70,16 @@ uiModels.comics = {
8170 id : 'finished' , attribute : 'finished' , type : 'boolean' , width : 19 , viewmany : true ,
8271 label : 'Finished' , labeltrue :'Finished' , labelfalse :'Unfinished'
8372 } ,
73+ {
74+ id :'amazon' , label :'Amazon' , type :'formula' , width :100 , css :'evol-ellipsis' ,
75+ formula :function ( m ) {
76+ var link = m . get ( 'language' ) == 'FR' ?
77+ 'http://www.amazon.fr/s/ref=sr_nr_n_1?keywords='
78+ :'http://www.amazon.com/s/ref=nb_sb_noss?field-keywords=' ;
79+ link += encodeURI ( m . get ( 'title' ) + ' ' + m . get ( 'authors' ) ) ;
80+ return '<a target="a" href="' + link + '">' + link + '</a>' ;
81+ }
82+ } ,
8483 {
8584 id : 'notes' , attribute : 'notes' , type : 'textmultiline' , label : 'Notes' , maxlength : 1000 ,
8685 width : 100 , height : 6 , viewmany : false
0 commit comments