Bugzilla – Attachment 136164 Details for
Bug 30937
Add a detail view for libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30937: Add a 'does not exist' hint if branchcode is invalid
Bug-30937-Add-a-does-not-exist-hint-if-branchcode-.patch (text/plain), 1.79 KB, created by
Jonathan Druart
on 2022-06-16 13:34:23 UTC
(
hide
)
Description:
Bug 30937: Add a 'does not exist' hint if branchcode is invalid
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-06-16 13:34:23 UTC
Size:
1.79 KB
patch
obsolete
>From 50ded19ff7effb4ae905b8592bec980eb6c9596f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Jun 2022 15:24:59 +0200 >Subject: [PATCH] Bug 30937: Add a 'does not exist' hint if branchcode is > invalid > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 5fdda101ddd..a30b21af4e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -130,7 +130,7 @@ Libraries › Administration › Koha > [% IF op == 'list' || op == 'view' %] > <div id="toolbar" class="btn-toolbar"> > <a class="btn btn-default" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> New library</a> >- [% IF op == 'view' %] >+ [% IF op == 'view' && library %] > <a class="btn btn-default" id="editbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode | uri %]"><i class="fa fa-pencil"></i> Edit library</a> > [% END %] > </div> >@@ -337,7 +337,7 @@ Libraries › Administration › Koha > [% END %] > [% END %] > >-[% IF op == 'view' %] >+[% IF op == 'view' && library %] > <h1>[% library.branchname | html %]</h1> > <div class="row"> > <div class="col-sm-6"> >@@ -470,6 +470,8 @@ Libraries › Administration › Koha > </div> > </div> > [% END %] >+[% ELSIF op == 'view' %] >+ <div>This library does not exist.</div> > [% END %] > > </main> >-- >2.25.1
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 30937
:
135913
|
135914
|
136163
| 136164 |
136165