-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse index option at advanced form #195
- Loading branch information
1 parent
68902c3
commit c3aaf58
Showing
14 changed files
with
207 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.clear {clear: both;} | ||
.advanced-form {width: 90%; margin: 0 auto;} | ||
.advanced-form .mini {width: 90px;} | ||
.advanced-form .q-first input {width: 75%;} | ||
.advanced-form select.index {width: 178px;} | ||
.advanced-form .openerIndexes {background: url(../../static/image/indexes.gif)no-repeat; padding: 2px 0 2px 18px;text-decoration: none;} | ||
.advanced-form .openerIndexes:hover {text-decoration: underline;} | ||
.block-q .q, .more .q {width: 54.5%;} | ||
.indexList .vBlockR, .indexList .vBlockL {float:left;} | ||
.indexList .vBlockL.first {width: 590px;margin: -11px 0 0 1px;} | ||
.indexList .vBlockL {width: 498px;margin: -11px 0 0 93px;} | ||
.indexList select {width: 100%;} | ||
.indexList .prev, .indexList .next {margin: 0 0 8px 4px;} | ||
.indexList .refresh {margin: 82px 0 8px 10px;} | ||
.indexList .prev a {background: url(../../static/image/arrow-up.gif) no-repeat; padding: 2px 0 2px 18px;text-decoration: none;} | ||
.indexList .next a {background: url(../../static/image/arrow-down.gif) no-repeat; padding: 2px 0 2px 18px;text-decoration: none;} | ||
.indexList .refresh a {background: url(../../static/image/refresh.gif) no-repeat; padding: 2px 0 2px 18px;text-decoration: none;} | ||
.advanced-form .openerIndexes:hover, .indexList .prev a:hover, .indexList .next a:hover, .indexList .refresh a:hover {text-decoration: underline;} | ||
|
||
.advanced-form .q-first input {width: 65%;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
use Symfony\Component\HttpFoundation\Request; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
$app->get('browse-index/{index}/', function (Request $request, $index) use ($app, $DEFAULT_PARAMS, $config) { | ||
|
||
$init = $request->get("init"); | ||
$direction = $request->get("dir"); | ||
if ($init == ''){ | ||
$init = '"'; | ||
} | ||
|
||
if ($direction == ''){ | ||
$direction = 'next'; | ||
} | ||
|
||
$service_url = $config->browse_index_url . "/PreviousTermServlet?fields=" . $index . "&init=" . $init . "&maxTerms=200&direction=" . $direction; | ||
|
||
$result = file_get_contents($service_url); | ||
|
||
// start session | ||
$SESSION = $app['session']; | ||
$SESSION->start(); | ||
|
||
// log user action | ||
log_user_action($lang, $col, $site, 'id:' . $id, '', '', '', '', 'browseindex', $SESSION->getId()); | ||
|
||
// output vars | ||
$output_array = array(); | ||
|
||
$response = new Response($result); | ||
$response->headers->set('Content-Type', 'application/json'); | ||
|
||
return $response; | ||
|
||
}); | ||
|
||
?> |