Bug 6774 Display barcode on OPAC detail page(Correcting Typo).

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Rebased to current master, works in my tests, but needs another set of eyes.
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Amit Gupta 2011-10-07 10:57:24 +05:30 committed by Paul Poulain
parent d094e24af9
commit 5836738957
5 changed files with 20 additions and 2 deletions

View file

@ -369,3 +369,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holding tab','','YesNo');

View file

@ -5378,6 +5378,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.09.00.016";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holding tab','','YesNo')");
print "Upgrade to $DBversion done (Add syspref OPACShowBarcode)\n";
SetVersion ($DBversion);
}
=head1 FUNCTIONS
=head2 TableExists($table)

View file

@ -107,6 +107,13 @@ OPAC:
yes: Show
no: "Don't show"
- a link to recent comments in the OPAC masthead.
-
- pref: OPACShowBarcode
default: 0
choices:
yes: Show
no: "Don't show"
- Show items barcode in holding tab.
-
- pref: OpacHighlightedWords
choices:

View file

@ -718,6 +718,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
<th id="item_status">Status</th>
[% IF ( itemdata_itemnotes ) %]<th id="item_notes">Notes</th>[% END %]
<th id="item_datedue">Date due</th>
[% IF ( OPACShowBarcode ) %]<th>Barcode</th>[% END %]
[% IF holds_count.defined %]
<th>Item holds</th>
[% ELSIF show_priority %]
@ -746,7 +747,8 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
[% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
<td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
<td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
[% IF ( OPACShowBarcode ) %]<td>[% ITEM_RESULT.barcode %]</td>[% END %]
[% IF holds_count.defined || show_priority %]
<td>
[% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]

View file

@ -393,7 +393,8 @@ $template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
$template->param('OPACShowBarcode' => C4::Context->preference("OPACShowBarcode") );
# change back when ive fixed request.pl
my @all_items = GetItemsInfo( $biblionumber );