Importing LibreTexts Content via source code

Why should you import LibreTexts via the source code?

  • LibreTexts content does not import correctly using import tool (you won’t get any content)
  • Copying & pasting LibreTexts content from your browser into Pressbooks
    • creates excessive and unnecessary code around equations/latex
    • requires extensive clean up
  • Use the source code method below for the cleanest pages
    • you’ll need to download images from the source book and reinsert into the Pressbook
    • glossary terms will need to be manually added

Before you begin

  • Check for Creative Commons/Open licensing in source materials before importing – if materials are not explicitly marked with a CC license or Public Domain, please check with us OER@georgiancollege.ca for guidance

Keeping track of sources

  • Create or clone the Imported Content Tracker Template (temporary page) at the beginning of your pressbook (in the front matter section)
    • note the URL for any content you import, aligned with the new chapter/section name and/OR
    • as you import, add the source URL to the top of the Pressbooks page
    • Download/save a copy of the source materials in PDF format (if available) and add to the relevant row in your tracker
      (Web content can change drastically and/or disappear in the time it takes to create an OER. this helps us to verify sources, licensing and copyright in case the source is removed/taken down after you imported it into Pressbooks. You can download the full book if you’re using a base text, or print/save individual PDFs for smaller sections of multiple sources).
  • Keep running notes about any major modifications you make – eg: changing photos, rewriting a paragraph or adding your own content
    • you can use temporary pressbooks text boxes to highlight these and leave notes highlighted in yellow
    • Do not modify the “Permalink” at the top of each page – this helps differentiate original sources. This will be adjusted in the final stages of book editing/reviewing or at an agreed upon stage once content has been verified

Video Demonstration

Watch Importing LibreTexts (3 mins) on ScreenPal

Video Source: “Importing from Libretexts” by Jen Booth is licensed under CC BY-NC 4.0., except where otherwise noted.

Process to import via source code from LibreTexts

Step Description Time Stamp Editor Code snippet
1 Add a blank Chapter to your Pressbook (organize page) in a second browser tab 0:13 Browser – LibreTexts
2 Load the source content you’d like to import from LibreTexts in one browser tab 0:25 Pressbooks Visual
3 Copy the title of the LibreTexts page into the title field of the blank chapter 0:32 Pressbooks Visual
4 Right click on the LibreTexts page and View page source. 0:40 Browser – LibreTexts
5 Note the first few words of the learning objectives on your source page 0:57
6 Use CTRL+F on the source code to search for the first few words of the learning objective. 1:06 Browser – LibreTexts
7 Highlight and drag your cursor from the start of the learning objectives to the footer, before the scripting codes begin. 1:17-1:35 Browser – LibreTexts
<ul><li>learning objective here...
<footer class="mt-content-footer">
<hr class="autoattribution-divider" />
8 Switch to text view and paste 1:51 Pressbooks – text/HTML
9 Check to make sure Pressbooks is going to save the new page into the right “part” (right hand side under the create/save button) not shown Pressbooks
10 Save/Create. not shown Pressbooks

Attribution & References

Except where otherwise noted, “Importing LibreTexts” by Jen Booth is licensed under CC BY-NC 4.0.

License

Share This Book