From 071ad870e5505aadf191829183c1654d896dabed Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Mon, 16 Dec 2024 17:42:47 +0200 Subject: [PATCH] Bug 38715: Fix breadcrumbs for edit MARC record page Link that supposed to link to the record you're editing links on the edit page instead. This patch fixes it. To reproduce: 1. Go to any biblio and edit the record, click the book name in breadcrumbs on top of the edit page, it's gonna return you back to this same page. 2. Apply the patch. 3. Repeat step 1, it should properly return you to the biblo page. --- .../prog/en/modules/cataloguing/addbiblio.tt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 799a26e6c8..14861566b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -818,10 +818,18 @@ $(document).ready(function(){ [% WRAPPER breadcrumb_item %] Cataloging [% END %] - [% WRAPPER breadcrumb_item bc_active= 1 %] - [% IF ( biblionumber ) %] - [% tp('Editing MARC record titled:', "Editing") | html %] [% title | html %] (Record number [% biblionumber | html %]) - [% ELSE %] + [% IF ( biblionumber ) %] + [% WRAPPER breadcrumb_item %] + Editing + [% title | html %] (Record number [% biblionumber | html %]) + [% IF ( author ) %] by [% author | html %][% END %] + + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + MARC record + [% END %] + [% ELSE %] + [% WRAPPER breadcrumb_item bc_active= 1 %] [% IF ( circborrowernumber ) %] Add MARC record (fast cataloging) [% ELSE %] -- 2.47.1