diff --git a/assets/styles/app.scss b/assets/styles/app.scss index 5a0af3840..c396a4368 100644 --- a/assets/styles/app.scss +++ b/assets/styles/app.scss @@ -22,3 +22,4 @@ @import './user-profile'; @import './full-page-layout'; @import './vendor'; +@import './tips-content'; diff --git a/assets/styles/index.scss b/assets/styles/index.scss index 44d255dc3..97b434612 100644 --- a/assets/styles/index.scss +++ b/assets/styles/index.scss @@ -2613,13 +2613,6 @@ article.list { max-width: 768px; margin: 0 auto; } -.advanced-search__content-block-text--mono { - font-family: monospace; - font-size: 15px; - background-color: hsla(0, 0%, 0%, 0.06); - padding: 2px 6px; - border-radius: 3px; - } .coverage-item { background-color: #FCFCFC; diff --git a/assets/styles/tips-content.scss b/assets/styles/tips-content.scss new file mode 100644 index 000000000..eb7ef03aa --- /dev/null +++ b/assets/styles/tips-content.scss @@ -0,0 +1,37 @@ +.tips-content { + @extend .advanced-search__content; + + >div { + @extend .advanced-search__content-block; + @extend .advanced-search__content-block--no-background; + } + + h3 { + margin: 0; + } + + p { + @extend .advanced-search__content-block-text; + } + + code { + color: var(--color-text); + font-family: monospace; + font-size: 15px; + background-color: hsla(0, 0%, 0%, 0.06); + padding: 2px 6px; + border-radius: 3px; + } + + pre { + @extend .advanced-search__content-description-text; + } + + em { + color: #00658A; + } + + hr { + @extend .dashed; + } +} diff --git a/newsroom/templates/search_tips_advanced.html b/newsroom/templates/search_tips_advanced.html index 97b7ad39e..026fc5c2c 100644 --- a/newsroom/templates/search_tips_advanced.html +++ b/newsroom/templates/search_tips_advanced.html @@ -1,63 +1,49 @@ -
-
-

- Use our Advanced Search to get more targeted search results without the need to learn how to write a Boolean search query -

+
+
+

Use our Advanced Search to get more targeted search results without the need to learn how to write a Boolean search query

-
-

All of these:

+
+

All of these:

    -
  • This is the classic "AND" operator
  • +
  • This is the classic "AND" operator
  • Every word you include must be present in the results
  • This is a more restrictive search type
-

- Example: Apples Pear = Apples AND Pear -

+
Example: Apples Pear = Apples AND Pear
-
-
-

Any of these:

+
+
+

Any of these:

    -
  • This is the classic "OR" operator
  • +
  • This is the classic "OR" operator
  • Not every word you include needs to be present in the results
  • This is the broadest search type
-

- Example: Apples Pear = Apples OR Pear -

+
Example: Apples Pear = Apples OR Pear
-
-
-

None of these:

+
+
+

None of these:

    -
  • This is the classic "NOT" operator
  • +
  • This is the classic "NOT" operator
  • Every word you include must not be present in the results
  • This is the most restrictive search type
  • Use this in combination with other keywords and other search input fields to narrow search results
-

- Example: Apples Pear = NOT Apples NOT Pear -

+
Example: Apples Pear = NOT Apples NOT Pear
-
-
-

- Wildcards, Quotation Marks, and proximity search are accepted in the three search input fields on the Advanced Search form, if desired: -

+
+
+

Wildcards, Quotation Marks, and proximity search are accepted in the three search input fields on the Advanced Search form, if desired:

    -
  • Use Wildcard operator ? to replace a single character or * to replace zero or more characters
  • -
  • Use Quotation Marks “” to search for an exact phrase
  • -
  • Use ~ to find the matches within n words of each other
  • +
  • Use Wildcard operator ? to replace a single character or * to replace zero or more characters
  • +
  • Use Quotation Marks “” to search for an exact phrase
  • +
  • Use ~ to find the matches within n words of each other
-
-
-

- By default, Advanced Search searches for results in the most important fields. -

-

- You can select/deselect these options on the Advanced Search form -

+
+
+

By default, Advanced Search searches for results in the most important fields.

+

You can select/deselect these options on the Advanced Search form

diff --git a/newsroom/templates/search_tips_regular.html b/newsroom/templates/search_tips_regular.html index 93568febd..de7987887 100644 --- a/newsroom/templates/search_tips_regular.html +++ b/newsroom/templates/search_tips_regular.html @@ -1,105 +1,70 @@ -
-
-

- Be specific. - The more relevant words you use in your search, the more successful your results. -

-

- General Search = Federal Budget
- Specific Search = Federal Budget 2023 Ministry of Health +

+
+

Be specific. The more relevant words you use in your search, the more successful your results.

+

+ General Search = Federal Budget
+ Specific Search = Federal Budget 2023 Ministry of Health

-
-
-

- Use quotes - to search for a phrase. -

-

- Incorrect search for a phrase = Winter storm warnings
- Correct search for a phrase = "Winter storm warnings" +


+
+

Use quotes to search for a phrase.

+

+ Incorrect search for a phrase = Winter storm warnings
+ Correct search for a phrase = "Winter storm warnings"

-
-
-

- Restricting search to a field -

-

- When you run a search using the Search Bar, by default every field in a document is searchable and checked for matching query words, unless specified. -

-

- The following are examples: -

+
+
+

Restricting search to a field

+

When you run a search using the Search Bar, by default every field in a document is searchable and checked for matching query words, unless specified.

+

The following are examples:

    -
  • Where the body_html contains "storm warning" as an exact phrase
    body_html:"storm warning"
  • -
  • Where headline field contains snow or storm
    headline:(snow OR storm)
  • -
  • Where the byline field contains the exact phrase "Noel Ransome"
    byline:"Noel Ransome"
  • -
  • Where the slugline field contains climate
    Slugline:climate
  • +
  • Where the body_html contains "storm warning" as an exact phrase
    body_html:"storm warning"
  • +
  • Where headline field contains snow or storm
    headline:(snow OR storm)
  • +
  • Where the byline field contains the exact phrase "Noel Ransome"
    byline:"Noel Ransome"
  • +
  • Where the slugline field contains climate
    Slugline:climate
-
-
-

- Wildcards -

-

- Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more characters: qu?ck bro* -

+
+
+

Wildcards

+

Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more characters: qu?ck bro*

-
-
-

- Proximity search -

-

- Use ~ to find the matches within n words of each other. -

-

- “climate action”~10 means to find the matches where climate and action appear together with no more than 10 words between each term, regardless of the order that they appear. -

+
+
+

Proximity search

+

Use ~ to find the matches within n words of each other.

+

“climate action”~10 means to find the matches where climate and action appear together with no more than 10 words between each term, regardless of the order that they appear.

-
-
-

- Using + and to define what must and/or must not be present -

-

- winter storm +toronto -quebec -

-

- states that -

+
+
+

Using + and to define what must and/or must not be present

+

winter storm +toronto -quebec

+

states that

  • Toronto must be present
  • Quebec must not be present
  • winter or storm are optional
-
-
-

- List of other common fields/Boolean operators -

+
+
+

List of other common fields/Boolean operators

    -
  • Version e.g. genre.name:Agate will search for items with Agate as the version
  • -
  • Ranking e.g. urgency:1 will search for items with ranking 1.
  • -
  • Wire Category/Calendar Category e.g. when using service.name:Business in the Wire section, it will search for wire items in the Business wire category. When using service.name:Business in the Calendar section, it will search for events and planning items in the Business category.
  • -
  • Subject e.g. subject.name:Automobile will search for items with Automobile as the subject
  • -
  • Source source: e.g. source:The Canadian Press will search for items by The Canadian Press
  • -
  • Word Count e.g. wordcount:>100 will search for items with more than 100 words
  • +
  • Version e.g. genre.name:Agate will search for items with Agate as the version
  • +
  • Ranking e.g. urgency:1 will search for items with ranking 1.
  • +
  • Wire Category/Calendar Category e.g. when using service.name:Business in the Wire section, it will search for wire items in the Business wire category. When using service.name:Business in the Calendar section, it will search for events and planning items in the Business category.
  • +
  • Subject e.g. subject.name:Automobile will search for items with Automobile as the subject
  • +
  • Source source: e.g. source:The Canadian Press will search for items by The Canadian Press
  • +
  • Word Count e.g. wordcount:>100 will search for items with more than 100 words
-
-
-

- Use our Filters to narrow down your search results in the Wire and Calendar. We offer a number of filtering options. -

- +
+
+

Use our Filters to narrow down your search results in the Wire and Calendar. We offer a number of filtering options.

-

- Filters - Wire -

+

Filters - Wire

  • Language – filter by the language of item
  • Source – filter by the source of item
  • @@ -111,29 +76,17 @@
  • Ranking – filter by the ranking of item done by our reporters (1=News – Urgent NewsAlerts, Urgents, important QuickHits; 2=News – Need to know; 3=News – Good to know; 4=News – Buzz People, Celebrity, Oddities, Brites, watercooler items; 5=News – Optional Secondary/tertiary world, sports, entertainment, life content; 6=Feature – Regular Major reviews, CP features such as Health Matters, top AP feature content; 7=Feature – Premium Editorials, columns, sidebars to regular features, non-major reviews, secondary or value-added AP feature material; 8=Routine Advisories, budget lines, other non-publishable or non-news items)
-
-

- Filter - Calendar -

+

Filter - Calendar

-
-

- Events: these are things that happen, something tangible - a match, a press conference, parliament sitting, a court case, etc. -

+

Events: these are things that happen, something tangible - a match, a press conference, parliament sitting, a court case, etc.

-
-

- Planning items: this tells you what The Canadian Press is doing about an Event or an Issue. When related to an Event, it indicates to you we are covering the Event. Planning items can also be independent of an Event - this relates to issues or stories that do not have Events associated to them. -

+

Planning items: this tells you what The Canadian Press is doing about an Event or an Issue. When related to an Event, it indicates to you we are covering the Event. Planning items can also be independent of an Event - this relates to issues or stories that do not have Events associated to them.

-

- Coverages: they are created in Planning items. Coverages can be text, image, visual explainer, or video. -

- +

Coverages: they are created in Planning items. Coverages can be text, image, visual explainer, or video.

  • Coverage status – filter by the status of coverage
  • Category – filter by the category of event or a planning item