From 045bfc6271fdf0aaeb3b603501a9b60c7424c7da Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Thu, 1 May 2014 14:14:12 -0600 Subject: [PATCH] Bug 11559 followup - Remove pazpar2 search functionality for now --- .../prog/en/includes/cateditor-ui.inc | 66 +----------- .../prog/en/modules/cataloguing/editor.tt | 120 --------------------- 2 files changed, 1 insertion(+), 185 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index c0637be..2fdaa85 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -105,43 +105,6 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr event.preventDefault(); } ); - - shortcut.add( 'alt+ctrl+k', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-keywords' ).focus(); - - return false; - } ); - - shortcut.add( 'alt+ctrl+a', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-author' ).focus(); - - return false; - } ); - - shortcut.add( 'alt+ctrl+i', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-isbn' ).focus(); - - return false; - } ); - - shortcut.add( 'alt+ctrl+t', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-title' ).focus(); - - return false; - } ); - - $('#quicksearch .search-box').each( function() { - shortcut.add( 'enter', $.proxy( function() { - var q = this.value; - if (!q) return false; - - if ( Search.Start( z3950Targets, $(this).data('qualifier') + q, 20 ) ) { - showResultsBox(); - } - - return false; - }, this), { target: this, type: 'keypress' } ); - } ); } // Record loading @@ -756,23 +719,11 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr } } ); - $( '#show-advanced-search' ).click( function() { - showAdvancedSearch(); - - return false; - } ); - - $('#advanced-search').submit( function() { - startAdvancedSearch(); - - return false; - } ); - // Key bindings bindGlobalKeys(); // Setup UI - $("#advanced-search-ui, #search-results-ui, #macro-ui").each( function() { + $("#macro-ui").each( function() { $(this).modal({ show: false }).css({ marginLeft: function() { return -($(this).width() / 2); @@ -780,15 +731,6 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr }); } ); - var $quicksearch = $('#quicksearch fieldset'); - $('

' + _("Search unavailable") + '

').css({ - position: 'absolute', - top: $quicksearch.offset().top, - left: $quicksearch.offset().left, - height: $quicksearch.outerHeight(), - width: $quicksearch.outerWidth(), - }).appendTo(document.body).hide(); - var prevAlerts = []; humanMsg.logMsg = function(msg, options) { $('#show-alerts').popover('hide'); @@ -808,12 +750,6 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Preferences.Load( [% USER_INFO.0.borrowernumber %] ); displayPreferences(editor); makeAuthorisedValueWidgets( '' ); - Search.Init( z3950Targets, { - onresults: function(data) { showSearchResults( editor, data ) }, - onbytarget: showSearchTargets, - onerror: handleSearchError, - oniniterror: handleSearchInitError, - } ); function finishCb() { Resources.GetAll().done( function() { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt index 17ef1b7..de931cd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt @@ -24,8 +24,6 @@

Cataloging editor

-
-
@@ -66,125 +64,7 @@
-
- - - - - - - - -