From e48df518e842ebe0c1a1d383297f375e3da521d7 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 19 Feb 2024 09:50:22 +0000 Subject: [PATCH] Bug 35813: Migrate 'transient_result' to 'messages.inc' This patch DRY's out the code by migrating the transient_result div into the now widely included messages.inc include. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/messages.inc | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 2 +- .../intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt | 3 +-- .../intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 1 - koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 +-- .../prog/en/modules/catalogue/labeledMARCdetail.tt | 1 - .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 1 - 7 files changed, 4 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/messages.inc index 34ebe5c6e7..ceb30b9197 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/messages.inc @@ -1,3 +1,4 @@
[% INCLUDE 'blocking_errors.inc' %] +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index 8844279e47..f1c299a40c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -38,7 +38,7 @@
-
+ [% INCLUDE 'messages.inc' %] [% INCLUDE 'cat-toolbar.inc' %]

Bookings for [% INCLUDE 'biblio-title-head.inc' %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt index dfc82cbb25..ee6aba2dd9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt @@ -48,8 +48,7 @@
[% INCLUDE 'messages.inc' %] -
- [% INCLUDE 'cat-toolbar.inc' %] + [% INCLUDE 'cat-toolbar.inc' %]

[% IF ( unknownbiblionumber ) %] Unknown record diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt index 6ed5494524..75acf77a0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt @@ -55,7 +55,6 @@
The record you requested does not exist ([% biblionumber | html %]).
[% ELSE %] -
[% INCLUDE 'cat-toolbar.inc' %] [% UNLESS ( popup ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index a0d6a86048..92513e5599 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -80,8 +80,8 @@
- [% INCLUDE 'messages.inc' %]
+ [% INCLUDE 'messages.inc' %] [% IF ( unknownbiblionumber ) %]
The record you requested does not exist ([% biblionumber | html %]).
@@ -92,7 +92,6 @@ [% CoceHost = Koha.Preference('CoceHost') %] [% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %] -
[% INCLUDE 'cat-toolbar.inc' %] [% IF ( ocoins ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt index 845d47f6ec..95eceaea95 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt @@ -47,7 +47,6 @@ [% IF ( unknownbiblionumber ) %]
The record you requested does not exist ([% biblionumber | html %]).
[% ELSE %] -
[% INCLUDE 'cat-toolbar.inc' %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 2e43b3c45f..6ef020cecb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -42,7 +42,6 @@
[% INCLUDE 'messages.inc' %] -
[% INCLUDE 'cat-toolbar.inc' %]

Item details for [% INCLUDE 'biblio-title-head.inc' %]

-- 2.39.5