Bugzilla – Attachment 18829 Details for
Bug 9665
Staff client bibliographic record export missing some options available in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 9665 [Revised] Staff client bibliographic record export missing some options available in the OPAC
SIGNED-OFF-Bug-9665-Revised-Staff-client-bibliogra.patch (text/plain), 4.46 KB, created by
David Cook
on 2013-06-11 03:28:24 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 9665 [Revised] Staff client bibliographic record export missing some options available in the OPAC
Filename:
MIME Type:
Creator:
David Cook
Created:
2013-06-11 03:28:24 UTC
Size:
4.46 KB
patch
obsolete
>From 9106c87f9e98e33d423e77ba2a5dfae3ab8ffdcb Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 31 May 2013 11:03:56 -0400 >Subject: [PATCH] [SIGNED OFF] Bug 9665 [Revised] Staff client bibliographic > record export missing some options available in the OPAC > >The OPAC offers RIS and BIBTEX as choices for bibliographic downloads, >but the staff client is missing these options. This patch adds them. > >To test, view a record in the staff client (detail.pl, MARCdetail.pl, >etc.) and click the "Save..." toolbar button. BIBTEX and RIS should be >available and functional. > >Revision reimplements the changes on the new Bootstrap version of the >menu. > >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > catalogue/export.pl | 14 ++++++++++++++ > .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 9 +++++---- > 2 files changed, 19 insertions(+), 4 deletions(-) > >diff --git a/catalogue/export.pl b/catalogue/export.pl >index 26e189b..935dd6b 100755 >--- a/catalogue/export.pl >+++ b/catalogue/export.pl >@@ -7,6 +7,7 @@ use C4::Auth; > use C4::Output; > use C4::Biblio; > use CGI; >+use C4::Ris; > > > >@@ -35,10 +36,20 @@ if ($op eq "export") { > } > elsif ($format =~ /marcxml/) { > $marc = marc2marcxml($marc); >+ $format = "marcxml"; > } > elsif ($format=~ /mods/) { > $marc = marc2modsxml($marc); >+ $format = "mods"; > } >+ elsif ($format =~ /ris/) { >+ $marc = marc2ris($marc); >+ $format = "ris"; >+ } >+ elsif ($format =~ /bibtex/) { >+ $marc = marc2bibtex($marc); >+ $format = "bibtex"; >+ } > elsif ($format =~ /dc/) { > ($error,$marc) = marc2dcxml($marc,1); > $format = "dublin-core.xml"; >@@ -46,14 +57,17 @@ if ($op eq "export") { > elsif ($format =~ /marc8/) { > $marc = changeEncoding($marc,"MARC","MARC21","MARC-8"); > $marc = $marc->as_usmarc(); >+ $format = "marc8"; > } > elsif ($format =~ /utf8/) { > C4::Charset::SetUTF8Flag($marc, 1); > $marc = $marc->as_usmarc(); >+ $format = "utf8"; > } > elsif ($format =~ /marcstd/) { > C4::Charset::SetUTF8Flag($marc,1); > ($error, $marc) = marc2marc($marc, 'marcstd', C4::Context->preference('marcflavour')); >+ $format = "marcstd"; > } > print $query->header( > -type => 'application/octet-stream', >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index f669d2c..3683ac9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -173,13 +173,14 @@ CAN_user_serials_create_subscription ) %] > <div class="btn-group"> > <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-download-alt"></i> Save <span class="caret"></span></button> > <ul class="dropdown-menu"> >- <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&op=export&bib=[% biblionumber %]">MODS (XML)</a></li> >- <li><a href="/cgi-bin/koha/catalogue/export.pl?format=dc&op=export&bib=[% biblionumber %] >-">Dublic Core (XML)</a></li> >+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=bibtex&op=export&bib=[% biblionumber %]">BIBTEX</a></li> >+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=dc&op=export&bib=[% biblionumber %]">Dublin Core (XML)</a></li> > <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcxml&op=export&bib=[% biblionumber %]">MARCXML</a></li> > <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marc8&op=export&bib=[% biblionumber %]">MARC (non-Unicode/MARC-8)</a></li> >- <li><a href="/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber %]">MARC (Unicode/UTF-8</a></li> >+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber %]">MARC (Unicode/UTF-8)</a></li> > <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcstd&op=export&bib=[% biblionumber %]">MARC (Unicode/UTF-8, Standard)</a></li> >+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&op=export&bib=[% biblionumber %]">MODS (XML)</a></li> >+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=ris&op=export&bib=[% biblionumber %]">RIS</a></li> > </ul> > </div> > >-- >1.7.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9665
:
15559
|
15651
|
18549
|
18551
|
18829
|
18915
|
18916