Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add print styles and stylesheet to GeoNetwork #6517

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

MichelGabriel
Copy link
Contributor

This PR adds a new stylesheet for printing via the browser and adds Bootstrap classes to hide certain parts/components of the layout.

These Bootstrap classes are used to have more control via the HTML

The Bootstrap framework already has styles for printing that are automatically used when printing. Some of these styles have been overridden:

  • to show the logo
  • to hide some link urls

Added a new stylesheet for printing via the browser and added Bootstrap classes to hide certain parts/components of the layout.

These Bootstrap classes are used to have more control via the HTML

The Bootstrap framework already has styles for printing that are automatically used when printing. Some of these styles have been overridden:
- to show the logo
- to hide some link urls
@fxprunayre fxprunayre added this to the 4.2.1 milestone Aug 31, 2022
Copy link
Member

@fxprunayre fxprunayre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Michel. Not perfect but better than before (we now have styling and add useless section in print outputs).

image

@fxprunayre fxprunayre merged commit fbb1686 into geonetwork:main Aug 31, 2022
MichelGabriel added a commit to MichelGabriel/core-geonetwork that referenced this pull request Sep 1, 2022
josegar74 pushed a commit that referenced this pull request Sep 2, 2022
fxprunayre added a commit that referenced this pull request Dec 20, 2022
Follow up of #6517

If user want to configure the default PDF export based on the browser print capability, configure the downloadFormatter for PDF without URL:

```json
downloadFormatter: [
              {
                label: "exportMEF",
                url: "/formatters/zip?withRelated=false",
                class: "fa-file-zip-o"
              },
              {
                label: "exportPDF",
                class: "fa-file-pdf-o"
              },
```

To be discussed: this should be the default ?
fxprunayre added a commit that referenced this pull request Dec 21, 2022
* Record view / PDF export based on browser capability

Follow up of #6517

If user want to configure the default PDF export based on the browser print capability, configure the downloadFormatter for PDF without URL:

```json
downloadFormatter: [
              {
                label: "exportMEF",
                url: "/formatters/zip?withRelated=false",
                class: "fa-file-zip-o"
              },
              {
                label: "exportPDF",
                class: "fa-file-pdf-o"
              },
```

To be discussed: this should be the default ?

* Style / prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants