Bugzilla – Attachment 10732 Details for
Bug 8208
Add "create authority" button to auth_finder plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNEd-OFF] Bug 8208 follow-up: move Clear and Create new buttons out of results
SIGNEd-OFF-Bug-8208-follow-up-move-Clear-and-Creat.patch (text/plain), 5.43 KB, created by
Katrin Fischer
on 2012-07-09 20:48:39 UTC
(
hide
)
Description:
[SIGNEd-OFF] Bug 8208 follow-up: move Clear and Create new buttons out of results
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-07-09 20:48:39 UTC
Size:
5.43 KB
patch
obsolete
>From 448812d3a98e0aeace5eab2772ce35f8cf4125ed Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Mon, 9 Jul 2012 08:56:27 -0400 >Subject: [PATCH] [SIGNEd-OFF] Bug 8208 follow-up: move Clear and Create new > buttons out of results > >Turns "Clear" and "Create new" links into buttons that are visible >before a search is performed, so that the user does not have to do >a search just to clear the field or create a new authority. This >commit also changes the formatting from textual links to buttons. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Nicer and more logical display. >Allows creating of a new authority without doing a search first >or when no results were found. >--- > .../intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ > .../prog/en/includes/auth-finder-search.inc | 17 ++++++++++++++- > .../modules/authorities/searchresultlist-auth.tt | 22 +------------------- > 3 files changed, 21 insertions(+), 22 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >index 0cfcdf7..a73e544 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -2352,6 +2352,10 @@ ul.ui-tabs-nav li { > font-style: italic; > } > >+#authfinderops { >+ float: right; >+} >+ > /* jQuery UI Datepicker */ > .ui-datepicker-trigger { > vertical-align: middle; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >index a6d55df..fe22d6b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >@@ -2,6 +2,11 @@ > //<![CDATA[ > > $(document).ready(function(){ >+ >+ var searchButton = new YAHOO.widget.Button("search"); >+ var cancelButton = new YAHOO.widget.Button("cancel"); >+ var clearButton = new YAHOO.widget.Button("clear"); >+ var newButton = new YAHOO.widget.Button("createnew"); > // marclist > $( "#value_any" ).autocomplete({ > source: function(request, response) { >@@ -85,6 +90,11 @@ $(document).ready(function(){ > }); > }); > >+function finderjumpfull(page) >+{ >+ window.open(page,'','fullscreen,scrollbars'); >+} >+ > //]]> > </script> > >@@ -159,5 +169,10 @@ $(document).ready(function(){ > <option value="HeadingDsc">Heading descendant</option> > </select> > </li></ol></fieldset> >- <fieldset class="action"> <input type="submit" value="Start search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset> >+ <fieldset class="action"> <input type="submit" value="Start search" class="submit" id="search" /> <a id="cancel" class="cancel close" href="#">Cancel</a> >+ <span id="authfinderops"> >+ <a href="javascript:finderjumpfull('blinddetail-biblio-search.pl?authid=0&index=[% index %]')" id="clear" class="button">Clear field</a> >+ <a href="javascript:finderjumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]')" id="createnew" class="button">Create new</a> >+ </span> >+ </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >index dc3a72e..8008930 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >@@ -56,26 +56,6 @@ function jumpfull(page) > <th>Get it!</th> > <th>Other action</th> > </tr> >- <tr> >- <td> </td> >- <td> </td> >- <td> >- <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=0&index=[% index %]')" class="button"> >- Clear >- </a> >- </td> >- <td> </td> >- </tr> >- <tr> >- <td> </td> >- <td> </td> >- <td> >- <a href="javascript:jumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]')" class="button"> >- Create new >- </a> >- </td> >- <td> </td> >- </tr> > [% FOREACH resul IN result %] > <tr> > <td>[% PROCESS authresult summary=resul.summary %]</td> >@@ -86,7 +66,7 @@ function jumpfull(page) > <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=[% resul.authid %]&index=[% repet.index %]&s;repet=[% repet.repet %]')" title="[% repet.value %]">[% repet.repet %]</a> > [% END %] > [% ELSE %] >- <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=[% resul.authid %]&index=[% index %]')">choose</a> >+ <a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=[% resul.authid %]&index=[% index %]')">Choose</a> > [% END %] > </td> > <td><a href="authorities.pl?authid=[% resul.authid %]">Edit authority</a></td> >-- >1.7.9.5
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 8208
:
10615
|
10708
|
10709
|
10714
| 10732