File tree Expand file tree Collapse file tree
backend/src/kitconcept/keywordmanager/services
frontend/packages/volto-keywordmanager/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from kitconcept .keywordmanager .interfaces import IKeywordManager
22from plone .restapi .batching import HypermediaBatch
3- from plone .restapi .deserializer import json_body
43from plone .restapi .services import Service
54from zope .component import getUtility
65
76
87class TagsGet (Service ):
98 def reply (self ):
10- data = json_body (self .request )
119 km = getUtility (IKeywordManager )
1210 query = {"withLengths" : True }
13- if idx := data .get ("idx" ):
11+ if idx := self . request . form .get ("idx" ):
1412 query = {"indexName" : idx }
1513
1614 keywords = km .getKeywords (** query )
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ const KeywordManager = (props) => {
8282 const options = {
8383 batchSize : pageSize ,
8484 batchStart : currentPage ,
85+ ...( index !== 'Subject' && { idx : index } ) ,
8586 } ;
8687
8788 useEffect ( ( ) => {
@@ -352,6 +353,7 @@ const KeywordManager = (props) => {
352353 getKeywords ( {
353354 batchSize : pageSize ,
354355 batchStart : pageSize * value ,
356+ ...( index !== 'Subject' && { idx : index } ) ,
355357 } ) ,
356358 ) ;
357359 } }
@@ -361,6 +363,7 @@ const KeywordManager = (props) => {
361363 getKeywords ( {
362364 batchSize : value ,
363365 batchStart : currentPage ,
366+ ...( index !== 'Subject' && { idx : index } ) ,
364367 } ) ,
365368 ) ;
366369 } }
You can’t perform that action at this time.
0 commit comments