Heavens! If I'd been setting this as a natural deduction exercise, I'd have expected to see this as the most obvious derivation:
$$
\begin{array}{llll}
1)&p\lor q&&\text{Premise}\\
2)&q\lor r&&\text{Premise}\\
3)&p\to\neg r&&\text{Premise}\\
4)&& p & \text{Assumption)}\\
5)&& \neg r &\text{From 3, 4 by modus ponens}\\
6)&& q&\text{From 2, 5, by however your system handles disjunctive syllogism)}\\
&& --\\
7)&& q &\text{Assumption}\\
8)&q& &\text{From 1, 4-6, 7-7 by $\lor$-Elimination}\\
\end{array}
$$
With the fine details depending, as noted, on how your preferred system delivers disjunctive syllogism and also on how exactly it handles $\lor$-Elimination. If disjunctive syllogism isn't basic in your system, you need to plug in whatever works from the basic rules you are allowed.
And not only is this the obvious proof strategy, there is a deeper reason to prefer something like this. For the argument is intuitionistically valid. So you shouldn't want to go via the intuitionistically unacceptable double negation rule as in @RyRy's proof, or by the equivalent rule used at the last step by Camelot, or by the intuitionistically unacceptable rule used in getting from 7 to 8 in @manoooh's proof.