Add option to disable truncation of the book label
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3536597. -->
Reported by: [codebymikey](https://www.drupal.org/user/3573206)
Related to !102 !105 !101
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When working with views on the node page, nodes with titles longer than 30 characters are truncated by default with no means of viewing the full name in the UI.</p>
<p>There's also issues with the previous fix where the newly introduced <code>$truncate</code> parameter wasn't passed recursively or through the BookManager proxy class.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>1. Create node with title "nodeeeeeeeeeeeeeeeeeeeeeeeeee 11"<br>
2. Create node with title "nodeeeeeeeeeeeeeeeeeeeeeeeeee 12"<br>
3. Add them both to books, then try to reference them. It's hard to distinguish which of the two nodes you are interacting with.</p>
<p><img src="https://www.drupal.org/files/issues/2025-07-17/3244685-book-truncated-label.png" alt="Book parent item with the label truncated"></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>The default behaviour should probably to have this off, but as originally proposed in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/book/-/work_items/3244685" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/book/-/work_items/3244685</a></span>, we can introduce an option to provide backwards compatibility for sites that would rather have it truncated.</p>
<p>Introduce a <code>$settings['book.truncate_limit']</code> override setting for sites that want to keep truncation, but want to use a different character limit.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p><del>Provide issue fork.</del></p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>New Book setting to disable truncation.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>N/A</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
> Related issue: [Issue #3244685](https://www.drupal.org/node/3244685)
issue