You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/dev_docs/linter_development.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ They analyze token sequences, syntax, search fields, and operator use to identif
6
6
errors or ambiguities and print meaningful messages (documented in the `messages <../messages/errors_index.html>`_ section).
7
7
Each platform implements its own linter, which interhits from the base class `linter_base.py`. Linters are used in the parser methods.
8
8
9
-
Base Classes
9
+
Base classes
10
10
------------
11
11
Use the appropriate base class when developing a new linter:
12
12
@@ -16,7 +16,7 @@ Use the appropriate base class when developing a new linter:
16
16
Each linter must override the `validate_tokens()` method and the `validate_query_tree()`.
17
17
`validate_tokens()` is called when the query is parsed, and `validate_query_tree()` is called when the query tree is built (i.e., at the end of the parsing process **and** when the query is constructed programmatically).
18
18
19
-
Best Practices
19
+
Best practices
20
20
--------------
21
21
- **Use standardized linter messages** defined in `constants.QueryErrorCode`.
22
22
- **Add details** in messages for guidance (e.g., invalid format, missing logic).
Copy file name to clipboardExpand all lines: docs/source/platforms/ebsco.rst
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,36 @@
1
1
.. _ebsco:
2
2
3
-
EBSCOHost
3
+
EBSCOhost
4
4
=========
5
5
6
-
EBSCOHost provides access to a wide range of academic databases across disciplines, including business, education, psychology, and health sciences.
6
+
EBSCOhost provides access to a wide range of academic databases across disciplines, including business, education, psychology, and health sciences.
7
7
8
-
Run a Query
8
+
Run a query
9
9
-----------
10
10
11
-
EBSCOHost queries can be constructed using the standard `EBSCOHost advanced search interface <https://search.ebscohost.com/>`_ (requires institutional access).
11
+
EBSCOhost queries can be constructed using the standard `EBSCOhost advanced search interface <https://search.ebscohost.com/>`_ (requires institutional access).
12
12
13
13
When working with `search-query`, extract the **Search terms** from the **Search History** panel or persistent URL for use as the `search_string`.
14
14
15
-
EBSCOHost query syntax includes field tags such as `AB`, `TI`, `SU`, etc. These should be included directly in the `search_string`.
15
+
EBSCOhost query syntax includes field tags such as `AB`, `TI`, `SU`, etc. These should be included directly in the `search_string`.
16
16
17
-
Store a Query
17
+
Store a query
18
18
-------------
19
19
20
-
When storing an EBSCOHost query in a `.json` file or as a string:
20
+
When storing an EBSCOhost query in a `.json` file or as a string:
21
21
22
22
- Use the **Search History** or the **Search Terms** as the `search_string`.
23
23
24
24
.. tip::
25
25
26
26
To ensure reproducibility, report the EBSCO database used (e.g., Business Source Complete) in the `database` field.
27
27
28
-
Avoid setting a `general_field` (available in `Advanced Search`) unless the entire query targets the same field (e.g., all terms limited to `AB` for Abstract). Mixed fields should keep `general_field` empty.
28
+
Avoid setting a general `field` (available in `Advanced Search`) unless the entire query targets the same field (e.g., all terms limited to `AB` for Abstract). Mixed fields should keep general `field` empty.
29
29
30
30
Do not use the **persistent link feature**.
31
31
32
-
List Query Format
33
-
--------------------
32
+
List query format
33
+
-----------------
34
34
35
35
EBSCOhost supports building **multi-line queries** where individual components are defined as numbered search lines and later combined using references like ``S1 AND S2``. This method is often used in advanced or expert search modes.
36
36
@@ -40,13 +40,13 @@ List queries should be formatted as follows:
40
40
41
41
{
42
42
"search_string": "1. TI (digital health OR telemedicine)\n2. AB (physical activity OR exercise)\n3. S1 AND S2",
43
-
"general_field": ""
43
+
"field": ""
44
44
}
45
45
46
46
Each numbered item defines a part of the query using EBSCOhost's field syntax. Later lines can combine them using boolean operators like ``AND``, ``OR``, or ``NOT``, allowing for structured, transparent query design.
47
47
48
48
49
-
Best Practices and Recommendations
49
+
Best practices and recommendations
50
50
----------------------------------
51
51
52
52
- **Use field tags** (e.g., `AB`, `TI`) explicitly in the query string.
0 commit comments