forked from vufind-org/vufind
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FINNA-2662] Adjust loan history export to use paging #3076
Open
LuomaJuha
wants to merge
25
commits into
NatLibFi:dev
Choose a base branch
from
LuomaJuha:add-paging-to-history
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9c2bf86
Paging for exporting transaction history until work processor is impl…
LuomaJuha 3c602e0
Adjusted loan history to show form to download
LuomaJuha 9a549d9
Added csrf
LuomaJuha 0d6b1c2
QA
LuomaJuha 4cfe9cc
Adjusted translations
LuomaJuha 33616de
Adjustments to loan history downloading
LuomaJuha 5573fca
Added comments to template
LuomaJuha 2d99afd
Merge branch 'dev' into add-paging-to-history
LuomaJuha a19346e
Adjusted to fetch file from ajax handler
LuomaJuha c78eb63
Removed unused files and translations
LuomaJuha 4497c6d
Adjusted translation, reverted change to demo driver
LuomaJuha 81b6326
Adjusted page numbers
LuomaJuha 42c1d18
Remove useless ilsdefaults
LuomaJuha 00fe1dd
Adjusted comments
LuomaJuha 7ab3039
Removed unused use
LuomaJuha 701d067
Merge branch 'dev' into add-paging-to-history
LuomaJuha e473b62
Changed naming from transactions to checkouts
LuomaJuha 39061ab
Added comments
LuomaJuha 9ba8d20
Removed unused parameter type
LuomaJuha 6ca8bb4
Adjusted js comments
LuomaJuha 6931dbf
Removed test variable..
LuomaJuha 1d742b5
Adjusted to calculate history properly
LuomaJuha 6125ab8
Added test for GetCheckoutHistory
LuomaJuha c6a274c
small tuning to test
LuomaJuha dc5359c
Fix
LuomaJuha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,34 @@ | ||
<!-- START of: finna - myresearch/downloadhistory.phtml --> | ||
<?php | ||
// Set up page title: | ||
$this->headTitle($this->translate('loan_history_download')); | ||
|
||
// Set up breadcrumbs: | ||
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li> <li class="active">' . $this->transEsc('Loan History') . '</li>'; | ||
?> | ||
<?=$this->context($this)->renderInContext('myresearch/menu.phtml', ['active' => 'historicLoans']); ?> | ||
|
||
<div class="<?=$this->layoutClass('mainbody-myresearch')?>"> | ||
<h2><?=$this->transEsc('loan_history_download')?></h2> | ||
<form name="download-loan-history-form" action="<?=$this->url('myresearch-downloadloanhistory')?>" method="POST" enctype="multipart/form-data"> | ||
<input type="hidden" name="csrf" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash())?>"> | ||
<div class="alert alert-info"> | ||
<span><?=$this->transEsc('loan_history_info', ['%%total%%' => $this->pagesDownloadCounter])?></span> | ||
</div> | ||
<span><?=$this->transEsc('loan_history_pages', ['%%total%%' => $this->pagesTotal])?></span> | ||
<div class="form-group"> | ||
<label class="control-label" for="history_start_index"><?=$this->transEsc('Start Page');?>:</label> | ||
<input class="form-control" id="history_start_index" name="startPage" type="number" value="1" min="1" max="<?=$this->escapeHtmlAttr($this->pagesTotal)?>"> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label" for="history_file_new"><?=$this->transEsc('loan_history_choose_file_format')?>:</label> | ||
<select class="form-control" name="history_file_format" id="history_file_new"> | ||
<?php foreach ($this->fileFormats as $format): ?> | ||
<option value="<?=$this->escapeHtmlAttr($format)?>"><?=$this->transEscWithPrefix('loan_history_download_', $format);?></option> | ||
<?php endforeach; ?> | ||
</select> | ||
</div> | ||
<button data-lightbox-ignore class="btn btn-primary" type="submit" name="submitLoanHistoryRequest" value="<?=$this->transEscAttr('Submit')?>"><?=$this->transEsc('Submit');?></button> | ||
</form> | ||
</div> | ||
<!-- END of: finna - myresearch/downloadhistory.phtml --> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tämä ei näytä vaikuttavan dropdownissa näkyvään sivumäärään.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ny pitäis taas vaikuttaa!