I am trying to change the word "Chapter" to "Story" in the ToC. I have successfully changed it in the chapter headings, but the ToC is giving me trouble.
I tried to alter this answer, but it hasn't quite given me what I want. As you can see below, in the ToC, the word "Story" has been placed on the chapter title line instead of the line above it. Instead, I want "Chapter X" to say "Story X".
\documentclass[11pt]{book}
\usepackage{framed}
\usepackage[compact,pagestyles,clearempty]{titlesec}
\usepackage{titletoc}
\usepackage{etoolbox}
% % % ToC modified from https://tex.stackexchange.com/questions/35825/pretty-table-of-contents
\patchcmd{\tableofcontents}{\contentsname}{\rmfamily\contentsname}{}{}
\renewenvironment{leftbar}
{\def\FrameCommand{\hspace{26.7em}%
{\vrule width 2pt depth 3pt}\hspace{1em}}%
\MakeFramed{\parshape 1 0cm \dimexpr\textwidth-6em\relax\FrameRestore}\vskip2pt%
}
{\endMakeFramed}
\titlecontents{chapter}
[0em]{\vspace*{0.3\baselineskip}}
{\parbox{14.8em}{% mainmatter
\hfill\huge\rmfamily\bfseries\thecontentspage}%
\vspace*{-2.4\baselineskip}\leftbar\textsc{\normalsize\chaptername~\thecontentslabel}\\\normalsize\rmfamily}
{\parbox{14.55em}{% frontmatter
\hfill\huge\rmfamily\bfseries\thecontentspage}%
\vspace* {-1.95\baselineskip}\leftbar\normalsize\rmfamily}
{\endleftbar}
% % %
%changes "Chapter" to "Story" in the chapter headings
\makeatletter
\renewcommand\@chapapp{Story}
\makeatother
%
%this is where I need help
\makeatletter
\let\orig@chapter\@chapter
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{Story~\protect\numberline{\thechapter}#1}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
\makeatother
%
\begin{document}
\tableofcontents
\frontmatter
\chapter{Introduction}
\mainmatter
\chapter{A chapter}
\chapter{Another chapter}
\end{document}
UPDATE: As requested in the comments, here is an image of the desired final output.




titletoc, that you load, to do that? – Bernard May 10 '18 at 10:12{\normalsize\chaptername~\thecontentslabel}with{\normalsize{Story}~\thecontentslabel}. And also delete everything in the preamble below%this is where I need help. – AML May 10 '18 at 23:58