Skip to content

Commit

Permalink
Merge pull request #895 from aholachek/classic-export-limit
Browse files Browse the repository at this point in the history
setting classic export to limit (3000) rather than default (500)
  • Loading branch information
aholachek committed Apr 28, 2016
2 parents e0b9144 + c73bf9b commit 0e29527
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/widgets/export/templates/classic_submit_form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<form action="http://adsabs.harvard.edu/cgi-bin/nph-abs_connect" target="_blank" method="post" class="hidden">
<input type="hidden" name="nr_to_return" value="500"/>
<input type="hidden" name="nr_to_return" value="{{exportLimit}}"/>

{{#each bibcodes}}
<input type="hidden" name="bibcode" value="{{this}}"/>
Expand Down
5 changes: 4 additions & 1 deletion src/js/widgets/export/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ define([
//special case, will eventually be removed
openClassicExports : function(options){
if (options.bibcodes){
var $form = $(ClassicFormTemplate({bibcodes: options.bibcodes}));
var $form = $(ClassicFormTemplate({
bibcodes: options.bibcodes,
exportLimit : apiTargets._limits.ExportWidget.limit
}));
$form.submit();
}
else if (options.currentQuery ) {
Expand Down
1 change: 0 additions & 1 deletion src/styles/sass/ads-sass/metrics.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
}

.nvtooltip {
@extend .ads-container;
box-shadow: 2px 2px 2px $gray-light;
}

Expand Down

0 comments on commit 0e29527

Please sign in to comment.