View | Details | Raw Unified | Return to bug 5523
Collapse All | Expand All

(-)a/C4/Auth.pm (+1 lines)
Lines 445-450 sub get_template_and_user { Link Here
445
            ShowReviewerPhoto         => C4::Context->preference("ShowReviewerPhoto"),
445
            ShowReviewerPhoto         => C4::Context->preference("ShowReviewerPhoto"),
446
            suggestion                => "" . C4::Context->preference("suggestion"),
446
            suggestion                => "" . C4::Context->preference("suggestion"),
447
            virtualshelves            => "" . C4::Context->preference("virtualshelves"),
447
            virtualshelves            => "" . C4::Context->preference("virtualshelves"),
448
	    catalgouinginprocess     => C4::Context->preference("catalgouinginprocess"),
448
            OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"),
449
            OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"),
449
            OpacAddMastheadLibraryPulldown => C4::Context->preference("OpacAddMastheadLibraryPulldown"),
450
            OpacAddMastheadLibraryPulldown => C4::Context->preference("OpacAddMastheadLibraryPulldown"),
450
            OPACXSLTDetailsDisplay           => C4::Context->preference("OPACXSLTDetailsDisplay"),
451
            OPACXSLTDetailsDisplay           => C4::Context->preference("OPACXSLTDetailsDisplay"),
(-)a/C4/Biblio.pm (+24 lines)
Lines 94-99 BEGIN { Link Here
94
      &GetFrameworkCode
94
      &GetFrameworkCode
95
      &TransformKohaToMarc
95
      &TransformKohaToMarc
96
      &PrepHostMarcField
96
      &PrepHostMarcField
97
      &GetInprocCount
97
98
98
      &CountItemsIssued
99
      &CountItemsIssued
99
      &CountBiblioInOrders
100
      &CountBiblioInOrders
Lines 399-404 sub ModBiblioframework { Link Here
399
    return 1;
400
    return 1;
400
}
401
}
401
402
403
=head2 GetInprocCount
404
405
  $count= &GetInprocCount()
406
407
Count of items in PROC shelving location. .
408
409
=cut
410
411
sub GetInprocCount {
412
    if (C4::Context->preference('NoZebra')) {
413
        # Read the index Koha-Auth-Number for this authid and count the lines
414
        my $result = C4::Search::NZanalyse("location=PROC");
415
        my @tab = split /;/,$result;
416
        return scalar @tab;
417
    } else {
418
        ### ZOOM search here
419
        my $query;
420
        $query= "location=PROC";
421
                my ($err,$res,$result) = C4::Search::SimpleSearch($query,0,10);
422
        return ($result);
423
    }
424
}
425
402
=head2 DelBiblio
426
=head2 DelBiblio
403
427
404
  my $error = &DelBiblio($biblionumber);
428
  my $error = &DelBiblio($biblionumber);
(-)a/cataloguing/addbooks.pl (+5 lines)
Lines 137-141 $template->param( Link Here
137
    z3950_search_params => C4::Search::z3950_search_args($query),
137
    z3950_search_params => C4::Search::z3950_search_args($query),
138
);
138
);
139
139
140
if (C4::Context->preference('catalgouinginprocess')) {
141
#Count of items in PROC shelving location.
142
$template->param('inproccount' =>GetInprocCount());
143
}
144
140
output_html_with_http_headers $input, $cookie, $template->output;
145
output_html_with_http_headers $input, $cookie, $template->output;
141
146
(-)a/installer/data/mysql/sysprefs.sql (-1 / +3 lines)
Lines 175-181 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
175
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('language','en','Set the default language in the staff client.',NULL,'Languages');
175
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('language','en','Set the default language in the staff client.',NULL,'Languages');
176
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('QueryAutoTruncate',1,'If ON, query truncation is enabled by default',NULL,'YesNo');
176
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('QueryAutoTruncate',1,'If ON, query truncation is enabled by default',NULL,'YesNo');
177
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('QueryRemoveStopwords',0,'If ON, stopwords listed in the Administration area will be removed from queries',NULL,'YesNo');
177
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('QueryRemoveStopwords',0,'If ON, stopwords listed in the Administration area will be removed from queries',NULL,'YesNo');
178
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('NoZebraIndexes','\'title\' => \'130a,210a,222a,240a,243a,245a,245b,246a,246b,247a,247b,250a,250b,440a,830a\',\r\n\'author\' => \'100a,100b,100c,100d,110a,111a,111b,111c,111d,245c,700a,710a,711a,800a,810a,811a\',\r\n\'isbn\' => \'020a\',\r\n\'issn\' => \'022a\',\r\n\'lccn\' => \'010a\',\r\n\'biblionumber\' => \'999c\',\r\n\'itemtype\' => \'942c\',\r\n\'publisher\' => \'260b\',\r\n\'date\' => \'260c\',\r\n\'note\' => \'500a, 501a,504a,505a,508a,511a,518a,520a,521a,522a,524a,526a,530a,533a,538a,541a,546a,555a,556a,562a,563a,583a,585a,582a\',\r\n\'subject\' => \'600*,610*,611*,630*,650*,651*,653*,654*,655*,662*,690*\',\r\n\'dewey\' => \'082\',\r\n\'bc\' => \'952p\',\r\n\'callnum\' => \'952o\',\r\n\'an\' => \'6009,6109,6119\',\r\n\'homebranch\' => \'952a,952c\'','Enter a specific hash for NoZebra indexes. Enter : \'indexname\' => \'100a,245a,500*\',\'index2\' => \'...\'','70|10','Textarea');
178
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('NoZebraIndexes','\'title\' => \'130a,210a,222a,240a,243a,245a,245b,246a,246b,247a,247b,250a,250b,440a,830a\',\r\n\'author\' => \'100a,100b,100c,100d,110a,111a,111b,111c,111d,245c,700a,710a,711a,800a,810a,811a\',\r\n\'isbn\' => \'020a\',\r\n\'issn\' => \'022a\',\r\n\'lccn\' => \'010a\',\r\n\'biblionumber\' => \'999c\',\r\n\'itemtype\' => \'942c\',\r\n\'publisher\' => \'260b\',\r\n\'date\' => \'260c\',\r\n\'note\' => \'500a, 501a,504a,505a,508a,511a,518a,520a,521a,522a,524a,526a,530a,533a,538a,541a,546a,555a,556a,562a,563a,583a,585a,582a\',\r\n\'subject\' => \'600*,610*,611*,630*,650*,651*,653*,654*,655*,662*,690*\',\r\n\'dewey\' => \'082\',\r\n\'bc\' => \'952p\',\r\n\'callnum\' => \'952o\',\r\n\'an\' => \'6009,6109,6119\',\r\n\'location\' => \'952c\',\r\n\'homebranch\' => \'952a,952b\'','Enter a specific hash for NoZebra indexes. Enter : \'indexname\' => \'100a,245a,500*\',\'index2\' => \'...\'','70|10','Textarea');
179
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacRenewalAllowed',0,'If ON, users can renew their issues directly from their OPAC account',NULL,'YesNo');
179
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacRenewalAllowed',0,'If ON, users can renew their issues directly from their OPAC account',NULL,'YesNo');
180
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('PatronsPerPage','20','Number of Patrons Per Page displayed by default','20','Integer');
180
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('PatronsPerPage','20','Number of Patrons Per Page displayed by default','20','Integer');
181
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('HomeOrHoldingBranch','holdingbranch','Used by Circulation to determine which branch of an item to check with independent branches on, and by search to determine which branch to choose for availability ','holdingbranch|homebranch','Choice');
181
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('HomeOrHoldingBranch','holdingbranch','Used by Circulation to determine which branch of an item to check with independent branches on, and by search to determine which branch to choose for availability ','holdingbranch|homebranch','Choice');
Lines 406-408 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
406
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free');
406
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free');
407
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free');
407
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free');
408
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free');
408
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free');
409
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('catalgouinginprocess','0','Display list of items which are to be cataloged in the cataloguing home page.','','YesNo');
410
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 6339-6344 if ( CheckVersion($DBversion) ) { Link Here
6339
   SetVersion ($DBversion);
6339
   SetVersion ($DBversion);
6340
}
6340
}
6341
6341
6342
$DBversion = 'XXX';
6343
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
6344
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('catalgouinginprocess','0','Display list of items which are to be cataloged in the cataloguing home page.','','YesNo')");
6345
    print "Upgrade to $DBversion done (Display list of items which are to be cataloged in the cataloguing home page.)\n";
6346
    SetVersion ($DBversion);
6347
}
6348
6342
=head1 FUNCTIONS
6349
=head1 FUNCTIONS
6343
6350
6344
=head2 TableExists($table)
6351
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloguing-menu.inc (+7 lines)
Line 0 Link Here
1
<ul>
2
<!-- TMPL_IF name="inproccount" -->
3
<li>
4
<a href="/cgi-bin/koha/catalogue/search.pl?idx=location&q=PROC&idx=location&idx=location&sort_by=relevance">Cataloguing in Progress[<!-- TMPL_VAR NAME="inproccount" -->]</a></li>
5
<!-- /TMPL_IF -->
6
</ul>
7
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-1 / +6 lines)
Lines 134-139 Cataloging: Link Here
134
                  economical: Do
134
                  economical: Do
135
            - collapse repeated tags of the same type into one tag entry on the display.
135
            - collapse repeated tags of the same type into one tag entry on the display.
136
        -
136
        -
137
            - pref: catalgouinginprocess
138
              choices:
139
                  yes: Show
140
                  no: "Don't show"
141
            - Display list of items which are to be cataloged in the cataloguing home page.
142
        -
137
            - By default, display biblio records in
143
            - By default, display biblio records in
138
            - pref: IntranetBiblioDefaultView
144
            - pref: IntranetBiblioDefaultView
139
              choices:
145
              choices:
140
- 

Return to bug 5523