From 29f0c70cde1c0d8149d51d9f469445201b2e80fd 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 on Edit MARC Record Page The link in the breadcrumbs that is supposed to take you to the record you're editing instead redirects to the edit page itself. This patch fixes this problem. 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