Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc
Tomas Cohen Arazi 792b0f764e Bug 13695: Add ISBD export option to OPAC (detail)
This patch adds the option to export a record (from within the
OPAC record detail page) in the ISBD format.

To test:
- Enable ISBD on the OpacExportOptions syspref
- Look for a record on your opac
- On the detail page, notice there's a new ISBD option for 'Save record'
- Choose ISBD
=> SUCCESS: a file containing the ISBD format for the record is downloaded

Sponsored-by: Orex Digital

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-03-31 10:34:30 -03:00

77 lines
4.2 KiB
HTML

<ul id="action">
[% UNLESS ( norequests ) %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
[% IF ( AllowOnShelfHolds OR ItemsIssued ) %]
<li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblionumber %]">Place hold</a></li>
[% END %]
[% END %]
[% END %]
[% END %]
<li><a class="print-large" href="#" onclick="window.print();">Print</a></li>
[% IF Koha.Preference( 'virtualshelves' ) == 1 %]
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
<li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% biblionumber %]'); return false;">
Save to your lists
</a></li>
[% END %]
[% END %]
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
[% IF ( incart ) %]
<li><a class="incart cart[% biblionumber %]" href="#" onclick="addRecord('[% biblionumber %]'); return false;">In your cart</a> <a class="cartRemove cartR[% biblionumber %]" href="#" onclick="delSingleRecord('[% biblionumber %]'); return false;">(remove)</a></li>
[% ELSE %]
<li><a class="addtocart cart[% biblionumber %]" href="#" onclick="addRecord('[% biblionumber %]'); return false;">Add to your cart</a> <a style="display:none;" class="cartRemove cartR[% biblionumber %]" href="#" onclick="delSingleRecord('[% biblionumber %]'); return false;">(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 %]
<li>
<a role="menuitem" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblionumber %]&amp;format=[% option %]">
[% SWITCH option %]
[% CASE 'bibtex' %]BIBTEX
[% CASE 'dc' %]Dublin Core (XML)
[% 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 %]
</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>