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. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
5ff81e2e8e
commit
899597c826
3 changed files with 21 additions and 22 deletions
|
@ -2347,6 +2347,10 @@ ul.ui-tabs-nav li {
|
|||
font-style: italic;
|
||||
}
|
||||
|
||||
#authfinderops {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* jQuery UI Datepicker */
|
||||
.ui-datepicker-trigger {
|
||||
vertical-align: middle;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue