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

[DNM] Add page titles for public catalog #244

Closed
wants to merge 2 commits into from

Conversation

redrun45
Copy link
Collaborator

@redrun45 redrun45 commented Nov 3, 2024

Update application/views/catalog/partials/header.php (last on the list, in GitHub's UI)
Replaced just "LibriVox" as the HTML->head->title with the following: <page title> | LibriVox

Update application/controllers/catalog/*
Set titles for the following types of pages:

  • Author pages: Works by <author name>
  • Group pages: Works in "<group name>" (including quotes)
  • Project pages: <book/project title>
  • Reader pages: Works read by <reader name>
  • "Reader section details" sub-pages: Section details for <reader name>

Any other pages (various search/browse pages that use the Search
controller), will default to "Browse catalog".

Update application/views/catalog/page.php (Second-to-last)
Use the title that was generated from the Page controller, instead of
calling that helper again from here.

@redrun45
Copy link
Collaborator Author

redrun45 commented Nov 3, 2024

Parking this one here for now, in case someone has time to put eyes on it. Hopefully the above style of change-log is easy to follow.

It doesn't feel right to actually deploy until Archive is fully up (soon!), and admins have caught up on our back-log of projects. I'll post back, and also change the title, at that time. 😓

Update `application/views/catalog/partials/header.php`
Replaced just "LibriVox" as the HTML->head->title with the following:
`<page title> | LibriVox`

Update `application/controllers/catalog/*`
Set titles for the following types of pages:
* Author pages: Works by \<author name>
* Group pages: Works in "\<group name>" (including quotes)
* Project pages: \<book/project title>
* Reader pages: Works read by \<reader name>
* "Reader section details" sub-pages: Section details for
  \<reader name>

Any other pages (various search/browse pages that use the Search
 controller), will default to "Browse catalog".

Update `application/views/catalog/page.php`
Use the title that was generated from the Page controller, instead of
 calling that helper again from here.
Add page titles to `application/controllers/`.  As with the catalog,
    each will have " | LibriVox" tacked on the end.
* Auth: Login
* admin/Author_manager: Author Manager
* admin/Genre_manager: Genre Manager
* admin/Language_Manager: Language Manager
* private/Administer_projects:
    [ \<project title\> | ] Project Screen
* private/Groups: Group Manager
* private/Projects: \<'My projects' or 'Search projects'\>
* private/Section_Compiler:
    <'Select a project' or project title\> | Section Compiler
* private/Stats.php - each as titled in the menu, aside from the index,
    which is not linked in the menu and does not appear to be implemented.
* private/Validator:
    \<'Select a project' or project title\> | Validator
* private/Volunteers: Search Users
  Note: this includes all of the links under the 'People' menu, except for
  'Add New'.
* public/Home (aka `/workflow` landing page): Workflow Tool
* public/Project_launch:
    \<'Project template generator' or 'Template results page'\>
* public/Uploader: Upload files

New file `application/views/common/workflow_head.php`, to load the
    `page_title` into an HTML->head->title element.
@redrun45
Copy link
Collaborator Author

Pulling this one for now, to clear up the PR list. I'll re-submit after I've got the admin OK, and after I've added titles for the new /keywords endpoint!

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.

1 participant