getServerParams()

in public/lib/content-service.js [229:269]


                getServerParams() {
                    var modelParams = wfFiltersService.getAll();

                    var deadline = modelParams['deadline'];

                    var dateRange = wfDateParser.parseRangeFromString(deadline);
                    var createdRange = wfDateParser.parseRangeFromString(modelParams['created']);
                    var viewRange = wfDateParser.parseRangeFromString(modelParams['view']);

                    var params = {
                        'status': modelParams['status'],
                        'state': modelParams['state'],
                        'section': modelParams['section'],
                        'content-type': modelParams["content-type"],
                        'atom-type': modelParams["atom-type"],
                        'flags': modelParams['flags'],
                        'prodOffice': modelParams['prodOffice'],
                        'due.from': wfFormatDateTimeFilter(wfDateParser.getFromDate(dateRange['from']), "ISO8601") || null,
                        'due.until': wfFormatDateTimeFilter(dateRange['until'], "ISO8601") || null,
                        'created.from': wfFormatDateTimeFilter(wfDateParser.getFromDate(createdRange['from']), "ISO8601") || null,
                        'created.until': wfFormatDateTimeFilter(createdRange['until'], "ISO8601") || null,
                        'view.from': wfFormatDateTimeFilter(wfDateParser.getFromDate(viewRange['from']), "ISO8601") || null,
                        'view.until': wfFormatDateTimeFilter(viewRange['until'], "ISO8601") || null,
                        'text': modelParams['text'] || null,
                        'assignee': modelParams['assignee'] || null,
                        'touched': modelParams['touched'] || null,
                        'assigneeEmail': modelParams['assigneeEmail'] || null,
                        'incopy': modelParams['incopy'] || null,
                        'composerId': modelParams['composerId'] || null,
                        'editorId': modelParams['editorId'] || null,
                        'trashed': modelParams['trashed'] || null,
                        'hasPrintInfo': modelParams['hasPrintInfo'] || null,
                        'hasMainMedia': modelParams['hasMainMedia'] || null,
                        'rights': modelParams['rights'] || null,
                        'display-hint': modelParams["display-hint"],
                        'article-format': modelParams["article-format"],
                    };

                    return params;

                }