pressbooks / ideas

Ideas for Pressbooks.
GNU General Public License v3.0
12 stars 4 forks source link

Allow users to replace the word 'book' across the webbook homepage #425

Open paradisojr opened 2 years ago

paradisojr commented 2 years ago

Instructors at UCF's Rosen College of Hospitality would like their 1,000+ students going through internships to create ePortfolios in Pressbooks that students could then share with potential employers et al. during their internship and/or upon graduation.

The faculty members' concern is that they cannot edit the buttons highlighted in the screenshot below to read "Read Portfolio" and "Download Portfolio." They would like to submit a request to make this possible.

Screen Shot 2022-08-12 at 4 23 12 PM

They (faculty and students) will get started with these portfolios in fall 2022 (i.e., the current semester).

SteelWagstaff commented 2 years ago

Interesting idea, Jim. Would they like to be able to customize the whole phrase, or just replace the word ‘Book’ with the noun of their choice?

paradisojr commented 2 years ago

At current, the ask is just to replace the word book ‘wherever that might appear’ (most notably on the resource’s landing page) with the word portfolio. This is actually a very high priority item for them.

I, personally, think it could be interesting to edit the entire phrase, but that would be above and beyond at this point.

SteelWagstaff commented 2 years ago

To my mind, the simplest/easiest way to do this would be to add a global theme option similar to what we we do for 'part label' and 'chapter label' which would allow them to supply a replacement for 'Book'

Screen Shot 2022-08-15 at 1 46 45 PM

Code that would need to be filtered/replaced exists here: https://github.com/pressbooks/pressbooks-book/blob/3464a35122f6362e3edf11c7e7f041d73111f84f/partials/content-cover-book-header.php#L54 and https://github.com/pressbooks/pressbooks-book/blob/3464a35122f6362e3edf11c7e7f041d73111f84f/partials/content-cover-book-header.php#L105 and https://github.com/pressbooks/pressbooks-book/blob/3464a35122f6362e3edf11c7e7f041d73111f84f/partials/content-cover-book-header.php#L112.

Global theme options themselves live in pressbooks/pressbooks here: https://github.com/pressbooks/pressbooks/blob/dec0f8ea641a12c4fd9503a76a08992c264c8c8f/inc/modules/themeoptions/class-globaloptions.php#L92-L102

paradisojr commented 2 years ago

Awesome! I think that would work great!