From e2914a4499da78b33bdbd6897290bdbc82458e79 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 10 Dec 2004 16:11:29 +0000 Subject: [PATCH] Improvement : adding a systempref to define default view in OPAC (either normal, MARC or ISBD). Created automatically during install or update. Check that you have a Koha >> parameters >> systempreferences >> BiblioDefaultView, Variable type : Choice, Variable options : normal|marc|isbd --- koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl | 12 +++++++++++- opac/opac-search.pl | 2 ++ updater/updatedatabase | 14 ++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl index 22f272c051..f15a43a7d3 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl @@ -52,7 +52,17 @@ class="hilighted">"> class="hilighted">

-

">

+

+ + "> + + + "> + + "> + + +

- - diff --git a/opac/opac-search.pl b/opac/opac-search.pl index d86d9814b9..ca99955f41 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -125,6 +125,7 @@ if ($op eq "do_search") { } else { $to = (($startfrom+1)*$resultsperpage); } + my $defaultview = 'BiblioDefaultView'.C4::Context->preference('BiblioDefaultView'); $template->param(results => $results, startfrom=> $startfrom, displaynext=> $displaynext, @@ -139,6 +140,7 @@ if ($op eq "do_search") { to=>$to, numbers=>\@numbers, searchdesc=> $searchdesc, + $defaultview => 1, ); } else { diff --git a/updater/updatedatabase b/updater/updatedatabase index 967100e1c3..9740512483 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -782,6 +782,17 @@ my %tabledata = ( explanation => 'The MARC field/subfield that is used to calculate the itemcallnumber (in UNIMARC : 676a for Dewey, 680a for Loc)', type => 'free' }, + { + uniquefieldrequired => 'variable', + variable => 'BiblioDefaultView', + value => 'normal', + forceupdate => { 'explanation' => 1, + 'type' => 1, + 'options' => 1}, + explanation => 'Define the default view of a biblio. Can be either normal, marc or isbd', + type => 'Choice', + options => 'normal|marc|isbd' + }, ], ); @@ -1367,6 +1378,9 @@ $sth->finish; exit; # $Log$ +# Revision 1.100 2004/12/10 16:11:32 tipaul +# Improvement : adding a systempref to define default view in OPAC (either normal, MARC or ISBD). Created automatically during install or update. Check that you have a Koha >> parameters >> systempreferences >> BiblioDefaultView, Variable type : Choice, Variable options : normal|marc|isbd +# # Revision 1.99 2004/12/02 17:17:00 tipaul # adding acquisition permission # -- 2.39.5