Bugzilla – Attachment 150579 Details for
Bug 33607
Show framework on record details page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33607: (follow-up) Handle default framework
Bug-33607-follow-up-Handle-default-framework.patch (text/plain), 2.27 KB, created by
David Nind
on 2023-05-03 11:56:46 UTC
(
hide
)
Description:
Bug 33607: (follow-up) Handle default framework
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-05-03 11:56:46 UTC
Size:
2.27 KB
patch
obsolete
>From 582c87b6384c8431db8eb9ce20cdeecc0918564b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 3 May 2023 11:30:00 +0000 >Subject: [PATCH] Bug 33607: (follow-up) Handle default framework > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/Template/Plugin/Frameworks.pm | 2 +- > .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 7 ++++++- > 2 files changed, 7 insertions(+), 2 deletions(-) > >diff --git a/Koha/Template/Plugin/Frameworks.pm b/Koha/Template/Plugin/Frameworks.pm >index e2d9572399..17ce9ec3c4 100644 >--- a/Koha/Template/Plugin/Frameworks.pm >+++ b/Koha/Template/Plugin/Frameworks.pm >@@ -47,7 +47,7 @@ is not found > sub GetName { > my ( $self, $frameworkcode ) = @_; > return q{} unless defined $frameworkcode; >- return q{} if $frameworkcode eq q{}; >+ return q{} if $frameworkcode eq q{}; # Default framework must be handled in templates for translatability > > my $f = Koha::BiblioFrameworks->find($frameworkcode); > >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 0442d069c7..902a9d86b4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -138,7 +138,12 @@ > <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html" title="MARC" class="previewMARC">Show</a></span> > <span id="catalogue_detail_framework" class="results_summary"> > <span class="label">MARC framework:</span> >- <span class="frameworkcode">[% Frameworks.GetName(biblio.frameworkcode) | html %]</span> >+ [% SET framework_name = Frameworks.GetName(biblio.frameworkcode) %] >+ [% IF (framework_name) %] >+ <span class="frameworkcode">[% framework_name | html %]</span> >+ [% ELSE %] >+ <span class="frameworkcode">Default</span> >+ [% END %] > </span> > [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %] > <span class="results_summary itemtype"><span class="label">Itemtype:</span> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33607
:
150212
|
150238
|
150574
|
150578
|
150579
|
150836
|
150860
|
150861