File tree 5 files changed +10
-3
lines changed
src/recensio/plone/behaviors
5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class IArticle(model.Schema):
34
34
required = False ,
35
35
)
36
36
directives .order_after (translatedTitle = "IArticle.subtitle" )
37
+ textindexer .searchable ("translatedTitle" )
37
38
translatedTitle = schema .TextLine (
38
39
title = _ ("Translated Title" ),
39
40
required = False ,
Original file line number Diff line number Diff line change 1
1
from plone import api
2
- from plone .app .dexterity import textindexer
3
2
from plone .autoform import directives
4
3
from plone .autoform .interfaces import IFormFieldProvider
5
4
from plone .dexterity .interfaces import IDexterityContent
@@ -26,7 +25,6 @@ class IBasePresentation(model.Schema):
26
25
required = False ,
27
26
)
28
27
directives .mode (labelPresentationAuthor = "display" )
29
- textindexer .searchable ("labelPresentationAuthor" )
30
28
31
29
reviewAuthorHonorific = schema .Choice (
32
30
title = _ ("Honorific Title" ),
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class IBookReview(model.Schema):
48
48
required = False ,
49
49
)
50
50
51
+ textindexer .searchable ("isbn_online" )
51
52
isbn_online = schema .TextLine (
52
53
title = _ ("ISBN (Online)" ),
53
54
description = _ (
@@ -120,6 +121,7 @@ class IEditedVolume(model.Schema):
120
121
directives .widget (additionalTitles = DataGridFieldFactory )
121
122
textindexer .searchable ("additionalTitles" )
122
123
124
+ textindexer .searchable ("isbn" )
123
125
isbn = schema .TextLine (
124
126
title = _ ("ISBN" ),
125
127
description = _ (
@@ -132,6 +134,7 @@ class IEditedVolume(model.Schema):
132
134
required = False ,
133
135
)
134
136
137
+ textindexer .searchable ("isbn_online" )
135
138
isbn_online = schema .TextLine (
136
139
title = _ ("ISBN (Online)" ),
137
140
description = _ (
Original file line number Diff line number Diff line change
1
+ from plone .app .dexterity import textindexer
1
2
from plone .autoform import directives
2
3
from plone .autoform .interfaces import IFormFieldProvider
3
4
from plone .dexterity .interfaces import IDexterityContent
12
13
13
14
@provider (IFormFieldProvider )
14
15
class IJournalReview (model .Schema ):
16
+ textindexer .searchable ("issn" )
15
17
issn = schema .TextLine (
16
18
title = _ ("ISSN" ),
17
19
description = _ (
@@ -21,6 +23,7 @@ class IJournalReview(model.Schema):
21
23
required = False ,
22
24
)
23
25
26
+ textindexer .searchable ("issn_online" )
24
27
issn_online = schema .TextLine (
25
28
title = _ ("ISSN Online" ),
26
29
description = _ (
@@ -86,6 +89,7 @@ class IJournalReview(model.Schema):
86
89
87
90
@provider (IFormFieldProvider )
88
91
class IJournalArticleReview (model .Schema ):
92
+ textindexer .searchable ("issn" )
89
93
issn = schema .TextLine (
90
94
title = _ ("ISSN" ),
91
95
description = _ (
@@ -95,6 +99,7 @@ class IJournalArticleReview(model.Schema):
95
99
required = False ,
96
100
)
97
101
102
+ textindexer .searchable ("issn_online" )
98
103
issn_online = schema .TextLine (
99
104
title = _ ("ISSN Online" ),
100
105
description = _ (
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class IReferenceAuthors(model.Schema):
43
43
value_type = DictRow (schema = IReferenceAuthorRowSchema , required = False ),
44
44
required = False ,
45
45
)
46
- textindexer .searchable ("editorial " )
46
+ textindexer .searchable ("referenceAuthors " )
47
47
48
48
fieldset_review (["referenceAuthors" ])
49
49
You can’t perform that action at this time.
0 commit comments