18 |
my $config = from_json( read_file( $config_path ) ); |
my $config = from_json( read_file( $config_path ) ); |
19 |
my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path"; |
my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path"; |
20 |
my $svnweb = $config->{svnweb} || die "no svnweb in $config_path"; |
my $svnweb = $config->{svnweb} || die "no svnweb in $config_path"; |
21 |
|
die "no js URLs to Exhibit API and/or plugins" unless $config->{js}; |
22 |
|
|
23 |
my $limit = 1000; |
my $limit = 1000; |
24 |
|
|
49 |
return ( |
return ( |
50 |
$q->start_form( -name => 'current_repository', -id => 'current_repository', -method => 'post' ), |
$q->start_form( -name => 'current_repository', -id => 'current_repository', -method => 'post' ), |
51 |
"From repository ", |
"From repository ", |
52 |
$q->popup_menu( -name => 'repository', -values => [ @repositories ], -onChange => $onChange ), |
$q->param('did_submit') ? |
53 |
|
$q->popup_menu( -name => 'repository', -values => [ @repositories ], -onChange => $onChange ) : |
54 |
|
$q->radio_group( -name => 'repository', -values => [ @repositories ], -onChange => $onChange ), # , -linebreak => 'true' ), |
55 |
" show ", |
" show ", |
56 |
$q->popup_menu( -name => 'limit', -values => [ qw/100 500 1000 5000 10000/ ], -onChange => $onChange ), |
$q->popup_menu( -name => 'limit', -values => [ qw/100 500 1000 5000 10000/ ], -onChange => $onChange ), |
57 |
" revisions and ", |
" revisions and ", |
58 |
$q->checkbox(-name=>'path', -checked=>1, -value=>'ON', -label=>'path modifications', -onChange => $onChange ), |
$q->checkbox(-name=>'path', -checked=>1, -value=>'ON', -label=>'path modifications', -onChange => $onChange ), |
59 |
" ", |
" ", |
60 |
$q->submit(-name=>'did_submit', -value=>'in Exhibit'), |
$q->submit(-value=>'in Exhibit'), |
61 |
|
$q->hidden(-name=>'did_submit', -value=>1), |
62 |
$q->end_form |
$q->end_form |
63 |
); |
); |
64 |
} |
} |
77 |
type="application/json" |
type="application/json" |
78 |
href="|, $q->url( -query => 1 ), qq|&json=1" /> |
href="|, $q->url( -query => 1 ), qq|&json=1" /> |
79 |
|
|
80 |
<!-- |
|, join("\n", map { qq|<script src="$_" type="text/javascript"></script>| } @{ $config->{js} } ), qq| |
|
<script |
|
|
src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js" |
|
|
type="text/javascript"></script> |
|
|
|
|
|
<script |
|
|
src="http://static.simile.mit.edu/exhibit/extensions-2.0/time/time-extension.js"></script> |
|
|
--> |
|
|
|
|
|
<script |
|
|
src="../exhibit/api/exhibit-api.js" |
|
|
type="text/javascript"></script> |
|
|
<script |
|
|
src="..//exhibit/extensions/time/time-extension.js"></script> |
|
|
|
|
81 |
|
|
82 |
</head> |
</head> |
83 |
<body> |
<body> |