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
This commit is contained in:
parent
2bf0cd561e
commit
e2914a4499
|
|
@ -52,7 +52,17 @@
|
|||
<td<!-- TMPL_IF name="even" --> class="hilighted"<!-- /TMPL_IF -->><input type="checkbox" name="bibid" value="<!-- TMPL_VAR NAME="biblionumber" -->"></td>
|
||||
<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
|
||||
<p>
|
||||
<p><b><a class="transparent" href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a></b></p>
|
||||
<p>
|
||||
<!-- TMPL_IF name="BiblioDefaultViewmarc" -->
|
||||
<b><a class="transparent" href="/cgi-bin/koha/opac-MARCdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a></b>
|
||||
<!-- TMPL_ELSE -->
|
||||
<!-- TMPL_IF name="BiblioDefaultViewisbd" -->
|
||||
<b><a class="transparent" href="/cgi-bin/koha/opac-ISBDdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a></b>
|
||||
<!-- TMPL_ELSE -->
|
||||
<b><a class="transparent" href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a></b>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF -->
|
||||
</p>
|
||||
<p><!-- TMPL_VAR NAME="author" -->
|
||||
<!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue