Bugzilla – Attachment 123172 Details for
Bug 28543
Clicking on 'New record' will use default framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28543: Clicking on 'New record' will use default framework
Bug-28543-Clicking-on-New-record-will-use-default-.patch (text/plain), 2.99 KB, created by
Katrin Fischer
on 2021-07-25 00:04:09 UTC
(
hide
)
Description:
Bug 28543: Clicking on 'New record' will use default framework
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-07-25 00:04:09 UTC
Size:
2.99 KB
patch
obsolete
>From 4f005adcdbef870b777cdf3aa04fee354c8cbafe Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 10 Jun 2021 15:42:14 +0200 >Subject: [PATCH] Bug 28543: Clicking on 'New record' will use default > framework > >In biblio records cataloguing, clicking on 'New from z39.50/SRU' will run action with default framework. >Clicking on 'New record' should do the same. > >Test plan : >1) Go to cataloguing home page >2) Check you see 'New record' with a sparator and then a caret >(like 'New from z39.50/SRU') >3) Click on button text >=> You go to record edition with default framework >4) Clik on caret >=> You see list of framworks > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >index 77d3186a42..ef8e4fa2c8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >@@ -49,9 +49,12 @@ > <a id="useadvanced" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa fa-pencil"></i> Advanced editor</a> > [% END %] > <div class="btn-group"> >- <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New record <span class="caret"></span></button> >+ <button class="btn btn-default" id="newRecord"><i class="fa fa-plus"></i> New record</button> >+ <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> >+ <span class="caret"></span> >+ </button> > <ul class="dropdown-menu"> >- <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> >+ <li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> > [% FOREACH framework IN frameworks %] > <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li> > [% END %] >@@ -265,6 +268,12 @@ > //Set focus to cataloging search > $("input[name=q]:eq(0)").focus(); > >+ $("#newRecord").click(function(){ >+ var url = $("a#newRecordDefault").prop("href"); >+ window.location.href = url; >+ return false; >+ }); >+ > $("#z3950search").click(function(){ > PopupZ3950("Default"); > return false; >-- >2.11.0
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 28543
:
121793
|
121807
| 123172