a9779b67d6
Test plan: - Checkout an item - Place hold on this item, - Return the item - Make sure the hold is waiting (found W) and AllowOnShelfHolds is not to 'Allow' - Check that the button "Place hold" appears in opac detail page of the biblio - do the samewith items/reserves in transit Changes on C4::Reserves::IsAvailableForItemLevelRequest Make sure this tests pass: - t/db_dependent/Reserves.t - t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t Rebased - 2017-12-12 - Alex Arnaud Bug 4319 - [QA fix] Create Koha::Biblio->hasItemswaitingOrInTransit Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
118 lines
5.8 KiB
HTML
118 lines
5.8 KiB
HTML
[% USE Biblio %]
|
|
<ul id="action">
|
|
[% UNLESS ( norequests ) %]
|
|
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
|
|
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
|
|
[% IF ( ReservableItems ) %]
|
|
<li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblio.biblionumber %]">Place hold</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
|
|
<li><a class="print-large" href="#">Print</a></li>
|
|
|
|
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
|
|
[% IF Koha.Preference('ArticleRequests') %]
|
|
<li><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber %]">Request article</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'virtualshelves' ) == 1 %]
|
|
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
|
|
<li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber %]">Save to your lists</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
|
|
[% IF ( incart ) %]
|
|
<li><a class="incart cart[% biblio.biblionumber %] addrecord" href="#">In your cart</a> <a class="cartRemove cartR[% biblio.biblionumber %]" href="#">(remove)</a></li>
|
|
[% ELSE %]
|
|
<li><a class="addtocart cart[% biblio.biblionumber %] addrecord" href="#">Add to your cart</a> <a style="display:none;" class="cartRemove cartR[% biblio.biblionumber %]" href="#">(remove)</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( OpacHighlightedWords && query_desc ) %]
|
|
<li>
|
|
<a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
|
|
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
|
|
</li>
|
|
[% END %]
|
|
|
|
[% SET export_options = Koha.Preference('OpacExportOptions').split(',') %]
|
|
[% IF export_options.size %]
|
|
<li>
|
|
<div id="export">
|
|
<div class="dropdown">
|
|
<a id="format" class="dropdown-toggle" data-toggle="dropdown" href="#">Save record <b class="caret"></b></a>
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="format">
|
|
[% FOREACH option IN export_options %]
|
|
[% IF option == 'dc' %]
|
|
<li><a role="menuitem" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
|
|
[% ELSE %]
|
|
<li>
|
|
<a role="menuitem" href="/cgi-bin/koha/opac-export.pl?op=export&bib=[% biblio.biblionumber %]&format=[% option %]">
|
|
[% SWITCH option %]
|
|
[% CASE 'bibtex' %]BIBTEX
|
|
[% CASE 'endnote' %]EndNote
|
|
[% CASE 'marcxml' %]MARCXML
|
|
[% CASE 'marc8' %]MARC (non-Unicode/MARC-8)
|
|
[% CASE 'utf8' %]MARC (Unicode/UTF-8)
|
|
[% CASE 'marcstd' %]MARC (Unicode/UTF-8, Standard)
|
|
[% CASE 'mods' %]MODS (XML)
|
|
[% CASE 'ris' %]RIS
|
|
[% CASE 'isbd' %]ISBD
|
|
[% END %]
|
|
</a>
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
[% END %]
|
|
|
|
[% IF ( OPACSearchForTitleIn ) %]
|
|
<li>
|
|
<div id="moresearches_menu">
|
|
<div class="dropdown">
|
|
<a id="furthersearches" class="dropdown-toggle" data-toggle="dropdown" href="#">More searches <b class="caret"></b></a>
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="furthersearches">
|
|
<li><a href="#" class="menu-inactive">Search for this title in:</a></li>
|
|
[% OPACSearchForTitleIn %]
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
|
|
<!-- Dublin Core Modal Form -->
|
|
<div class="modal hide" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_" aria-hidden="true">
|
|
<div class="modal-header">
|
|
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h3 class="modal-title" id="exportModalLabel">Exporting to Dublin Core...</h3>
|
|
</div>
|
|
<form method="get" action="/cgi-bin/koha/opac-export.pl">
|
|
<div class="modal-body">
|
|
<fieldset id="dc_fieldset">
|
|
<input id="input-simple" type="radio" name="format" value="rdfdc">
|
|
<label class="label_dc" for="input-simple">Simple DC-RDF</label>
|
|
<br>
|
|
<input id="input-oai" type="radio" name="format" value="oaidc" checked>
|
|
<label class="label_dc" for="input-oai">OAI-DC</label>
|
|
<br>
|
|
<input id="input-srw" type="radio" name="format" value="srwdc">
|
|
<label class="label_dc" for="input-srw">SRW-DC</label>
|
|
<br>
|
|
<input type="hidden" name="op" value="export">
|
|
<input type="hidden" name="bib" value="[% biblio.biblionumber %]">
|
|
</fieldset>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn">Export</button>
|
|
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
|
</div>
|
|
</form>
|
|
</div>
|