Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
library
uw_lib_refshelf
Commits
c4fa1760
Commit
c4fa1760
authored
Jan 15, 2018
by
Ganesharatnam
Browse files
clean script
parent
ac707d00
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_lib_refshelf.module
View file @
c4fa1760
...
...
@@ -446,7 +446,6 @@ function _handlingKeywordCaseSensitivityORS($word, $str) {
/**
* Apply the style for search word
*/
//function _styleWordORS($word) {
function
_styleWordORS
(
$word
,
$data
)
{
$word_style
=
"<span class='highlight-search-word'>"
.
$word
.
"</span>"
;
$regex
=
'\'(?!((<.*?)|(<a.*?)))(\b'
.
$word
.
'\b)(?!(([^<>]*?)>)|([^>]*?</a>))\'s'
;
...
...
@@ -498,7 +497,6 @@ function _viewSearchResultsORS($no_duplicates, $word, $pagenum, $offset) {
/**
* Formatting the search results to display
*/
//function _processingSearchResultsORS($status, $desc, $link_name, $link_url, $word) {
function
_processingSearchResultsORS
(
$status
,
$desc
,
$link_name
,
$link_url
,
$word
,
$restricted
)
{
$content
=
""
;
$link_url
=
_filterRestrictedResourceORS
(
$restricted
,
$link_url
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment