Marcel de Rooy
f539428d06
We need to add the format to the forms entering new requests: opac/opac-request-article circ/request-article If the pref contains multiple formats like SCAN|PHOTOCOPY, the first listed format will be preselected on the request form. If there is only one option, we should not disable the select however. (Possibly hide it.) If we have no mandatory fields, we should not allow the submit of a complete empty form (check on OPAC). And we need to show the format of pending requests on forms: opac/opac-user circ/request-article (biblio detail tab) circ/article-requests (staff form to handle requests) members/moremember (Article requests tab at the bottom) circ/circulation (Checkout/Article requests tab) Note: The last two forms use the same include file. Test plan: [1] Add an article request via opac or staff. Choose Scan. [2] Verify that you see the Scan format on opac-user and the above-mentioned staff forms. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
94 lines
3.8 KiB
HTML
94 lines
3.8 KiB
HTML
<div id="article-requests">
|
|
[% IF patron.article_requests_current.count %]
|
|
<table id="article-requests-table" class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="article-request-record-title anti-the">Record title</th>
|
|
<th class="article-request-created_on psort">Placed on</th>
|
|
<th class="article-request-title anti-the">Title</th>
|
|
<th class="article-request-author">Author</th>
|
|
<th class="article-request-volume">Volume</th>
|
|
<th class="article-request-issue">Issue</th>
|
|
<th class="article-request-date">Date</th>
|
|
<th class="article-request-pages">Pages</th>
|
|
<th class="article-request-chapters">Chapters</th>
|
|
<th class="article-request-notes">Notes</th>
|
|
<th class="article-request-format">Format</th>
|
|
<th class="article-request-status">Status</th>
|
|
<th class="article-request-branchcode">Pickup library</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
[% FOREACH ar IN patron.article_requests_current %]
|
|
<tr>
|
|
<td class="article-request-record-title">
|
|
<a class="article-request-title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | html %]">
|
|
[% ar.biblio.title | html %]
|
|
[% ar.item.enumchron | html %]
|
|
</a>
|
|
[% ar.biblio.author | html %]
|
|
[% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
|
|
</td>
|
|
|
|
<td class="article-request-created_on">
|
|
[% ar.created_on | $KohaDates %]
|
|
</td>
|
|
|
|
<td class="article-request-title">
|
|
[% ar.title | html %]
|
|
</td>
|
|
|
|
<td class="article-request-author">
|
|
[% ar.author | html %]
|
|
</td>
|
|
|
|
<td class="article-request-volume">
|
|
[% ar.volume | html %]
|
|
</td>
|
|
|
|
<td class="article-request-issue">
|
|
[% ar.issue | html %]
|
|
</td>
|
|
|
|
<td class="article-request-date">
|
|
[% ar.date | html %]
|
|
</td>
|
|
|
|
<td class="article-request-pages">
|
|
[% ar.pages | html %]
|
|
</td>
|
|
|
|
<td class="article-request-chapters">
|
|
[% ar.chapters | html %]
|
|
</td>
|
|
|
|
<td class="article-request-patron-notes">
|
|
[% ar.patron_notes | html %]
|
|
</td>
|
|
|
|
<td class="article-request-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td>
|
|
|
|
<td class="article-request-status">
|
|
[% IF ar.status == 'PENDING' %]
|
|
Pending
|
|
[% ELSIF ar.status == 'PROCESSING' %]
|
|
Processing
|
|
[% ELSIF ar.status == 'COMPLETED' %]
|
|
Completed
|
|
[% ELSIF ar.status == 'CANCELED' %]
|
|
Canceled
|
|
[% END %]
|
|
</td>
|
|
|
|
<td class="article-request-branchcode">
|
|
[% ar.branch.branchname | html %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
Patron has no current article requests.
|
|
[% END %]
|
|
</div>
|