File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
mir-module/src/main/resources/META-INF/resources/js/mir Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 425425 }
426426 }
427427
428- // Check the SOLR request after submitting
429- $ ( subSearchFormName ) . submit ( ( ) => {
430- let originalSearchAction = $ ( subSearchFormName ) . attr ( 'action' ) ;
431- // If the request not for 'find' but 'select'
432- if ( ! originalSearchAction . includes ( 'servlets/solr/find' ) ) {
433- let condQueryValue = '*' ;
434- if ( condQuery && ( $ ( condQuery ) . val ( ) . trim ( ) !== '' ) ) {
435- condQueryValue = $ ( condQuery ) . val ( ) . trim ( ) ;
436- }
437- let qQueryParameterElement = document . createElement ( "input" ) ;
438- qQueryParameterElement . setAttribute ( 'type' , 'hidden' ) ;
439- qQueryParameterElement . setAttribute ( 'name' , 'q' ) ;
440- qQueryParameterElement . setAttribute ( 'value' , condQueryValue ) ;
441- document . querySelector ( subSearchFormName ) . appendChild ( qQueryParameterElement ) ;
442- }
443- } ) ;
444-
445428 // Element with the link to toggle to show/hide md5 sums
446429 const toggleMD5LinkElement = '.toggleMD5Link' ;
447430 // Derivate action dropdown toggle button element
You can’t perform that action at this time.
0 commit comments