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

(-)a/C4/Accounts.pm (-9 / +9 lines)
Lines 35-49 BEGIN { Link Here
35
    require Exporter;
35
    require Exporter;
36
    @ISA = qw( Exporter );
36
    @ISA = qw( Exporter );
37
    @EXPORT_OK = qw(
37
    @EXPORT_OK = qw(
38
      &manualinvoice
38
        getnextacctno
39
      &getnextacctno
39
        chargelostitem
40
      &getcharges
40
        manualinvoice
41
      &ModNote
41
        getcharges
42
      &getcredits
42
        ModNote
43
      &getrefunds
43
        getcredits
44
      &chargelostitem
44
        getrefunds
45
      &ReversePayment
45
        ReversePayment
46
      &purge_zero_balance_fees
46
        purge_zero_balance_fees
47
    );
47
    );
48
}
48
}
49
49
(-)a/C4/Acquisition.pm (-44 / +57 lines)
Lines 48-97 BEGIN { Link Here
48
    require Exporter;
48
    require Exporter;
49
    @ISA = qw( Exporter );
49
    @ISA = qw( Exporter );
50
50
51
    @EXPORT = qw(
51
    @EXPORT_OK = qw(
52
        &GetBasket &NewBasket &CloseBasket &ReopenBasket &DelBasket &ModBasket
52
        GetOrderFromItemnumber
53
        &GetBasketAsCSV &GetBasketGroupAsCSV
53
        GetItemnumbersFromOrder
54
        &GetBasketsByBookseller &GetBasketsByBasketgroup
54
        GetBasket
55
        &GetBasketsInfosByBookseller
55
        NewBasket
56
56
        CloseBasket
57
        &GetBasketUsers &ModBasketUsers
57
        ReopenBasket
58
        &CanUserManageBasket
58
        GetBasketAsCSV
59
59
        GetBasketGroupAsCSV
60
        &ModBasketHeader
60
        CloseBasketgroup
61
61
        ReOpenBasketgroup
62
        &ModBasketgroup &NewBasketgroup &DelBasketgroup &GetBasketgroup &CloseBasketgroup
62
        DelBasket
63
        &GetBasketgroups &ReOpenBasketgroup
63
        ModBasket
64
64
        ModBasketHeader
65
        &DelOrder &ModOrder &GetOrder &GetOrders &GetOrdersByBiblionumber
65
        GetBasketsByBookseller
66
        &GetLateOrders &GetOrderFromItemnumber
66
        GetBasketsInfosByBookseller
67
        &SearchOrders &GetHistory &GetRecentAcqui
67
        GetBasketUsers
68
        &ModReceiveOrder &CancelReceipt
68
        ModBasketUsers
69
        &TransferOrder
69
        CanUserManageBasket
70
        &GetLastOrderNotReceivedFromSubscriptionid &GetLastOrderReceivedFromSubscriptionid
70
        GetBasketsByBasketgroup
71
        &ModItemOrder
71
        NewBasketgroup
72
72
        ModBasketgroup
73
        &GetParcels
73
        DelBasketgroup
74
74
        GetBasketgroup
75
        &GetInvoices
75
        GetBasketgroups
76
        &GetInvoice
76
        GetOrders
77
        &GetInvoiceDetails
77
        GetOrdersByBiblionumber
78
        &AddInvoice
78
        GetOrder
79
        &ModInvoice
79
        GetLastOrderNotReceivedFromSubscriptionid
80
        &CloseInvoice
80
        GetLastOrderReceivedFromSubscriptionid
81
        &ReopenInvoice
81
        ModOrder
82
        &DelInvoice
82
        ModItemOrder
83
        &MergeInvoices
83
        ModReceiveOrder
84
84
        CancelReceipt
85
        &GetItemnumbersFromOrder
85
        SearchOrders
86
86
        DelOrder
87
        &AddClaim
87
        TransferOrder
88
        &GetBiblioCountByBasketno
88
        GetParcels
89
89
        GetLateOrders
90
        &GetOrderUsers
90
        GetHistory
91
        &ModOrderUsers
91
        GetRecentAcqui
92
        &NotifyOrderUsers
92
        AddClaim
93
93
        GetInvoices
94
        &FillWithDefaultValues
94
        GetInvoice
95
        GetInvoiceDetails
96
        AddInvoice
97
        ModInvoice
98
        CloseInvoice
99
        ReopenInvoice
100
        DelInvoice
101
        MergeInvoices
102
        GetBiblioCountByBasketno
103
        populate_order_with_prices
104
        GetOrderUsers
105
        ModOrderUsers
106
        NotifyOrderUsers
107
        FillWithDefaultValues
95
    );
108
    );
96
}
109
}
97
110
(-)a/C4/Auth.pm (-2 / +16 lines)
Lines 53-60 BEGIN { Link Here
53
    require Exporter;
53
    require Exporter;
54
    @ISA = qw(Exporter);
54
    @ISA = qw(Exporter);
55
    @EXPORT_OK = qw(
55
    @EXPORT_OK = qw(
56
        &check_api_auth &get_session &check_cookie_auth &checkpw &checkpw_internal &checkpw_hash
56
        psgi_env
57
        &get_all_subpermissions &get_user_subpermissions
57
        safe_exit
58
        get_template_and_user
59
        haspermission
60
        checkauth
61
        check_api_auth
62
        check_cookie_auth
63
        get_session
64
        checkpw
65
        checkpw_internal
66
        checkpw_hash
67
        getuserflags
68
        get_user_subpermissions
69
        get_all_subpermissions
70
        haspermission
71
        getborrowernumber
58
    );
72
    );
59
73
60
    $debug     = $ENV{DEBUG};
74
    $debug     = $ENV{DEBUG};
(-)a/C4/Auth_with_cas.pm (-1 / +9 lines)
Lines 36-42 BEGIN { Link Here
36
	require Exporter;
36
	require Exporter;
37
	$debug = $ENV{DEBUG};
37
	$debug = $ENV{DEBUG};
38
	@ISA    = qw(Exporter);
38
	@ISA    = qw(Exporter);
39
	@EXPORT_OK = qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url);
39
    @EXPORT_OK = qw(
40
        multipleAuth
41
        getMultipleAuth
42
        logout_cas
43
        login_cas
44
        login_cas_url
45
        checkpw_cas
46
        check_api_auth_cas
47
    );
40
}
48
}
41
my $defaultcasserver;
49
my $defaultcasserver;
42
my $casservers;
50
my $casservers;
(-)a/C4/Auth_with_ldap.pm (-1 / +10 lines)
Lines 36-42 our (@ISA, @EXPORT_OK); Link Here
36
BEGIN {
36
BEGIN {
37
	require Exporter;
37
	require Exporter;
38
	@ISA    = qw(Exporter);
38
	@ISA    = qw(Exporter);
39
	@EXPORT_OK = qw( checkpw_ldap );
39
    @EXPORT_OK = qw(
40
        ldapserver_error
41
        description
42
        search_method
43
        checkpw_ldap
44
        ldap_entry_2_hash
45
        exists_local
46
        _do_changepassword
47
        update_local
48
    );
40
}
49
}
41
50
42
# Redefine checkpw_ldap:
51
# Redefine checkpw_ldap:
(-)a/C4/AuthoritiesMarc.pm (-23 / +24 lines)
Lines 41-69 BEGIN { Link Here
41
    require Exporter;
41
    require Exporter;
42
    @ISA = qw( Exporter );
42
    @ISA = qw( Exporter );
43
    @EXPORT_OK = qw(
43
    @EXPORT_OK = qw(
44
      &GetTagsLabels
44
        GetAuthMARCFromKohaField
45
      &GetAuthMARCFromKohaField
45
        SearchAuthorities
46
46
        CountUsage
47
      &AddAuthority
47
        CountUsageChildren
48
      &ModAuthority
48
        GuessAuthTypeCode
49
      &DelAuthority
49
        GuessAuthId
50
      &GetAuthority
50
        GetTagsLabels
51
      &GetAuthorityXML
51
        AddAuthority
52
52
        DelAuthority
53
      &CountUsage
53
        ModAuthority
54
      &CountUsageChildren
54
        GetAuthorityXML
55
      &SearchAuthorities
55
        GetAuthority
56
56
        FindDuplicateAuthority
57
      &BuildSummary
57
        BuildSummary
58
      &BuildAuthHierarchies
58
        GetAuthorizedHeading
59
      &BuildAuthHierarchy
59
        BuildAuthHierarchies
60
      &GenerateHierarchy
60
        BuildAuthHierarchy
61
61
        BuildAuthHierarchyBranch
62
      &merge
62
        GenerateHierarchy
63
      &FindDuplicateAuthority
63
        GetHeaderAuthority
64
64
        AddAuthorityTrees
65
      &GuessAuthTypeCode
65
        merge
66
      &GuessAuthId
66
        append_fields_ordered
67
        get_auth_type_location
67
    );
68
    );
68
}
69
}
69
70
(-)a/C4/Biblio.pm (-59 / +55 lines)
Lines 58-122 BEGIN { Link Here
58
    # to add biblios
58
    # to add biblios
59
    # EXPORTED FUNCTIONS.
59
    # EXPORTED FUNCTIONS.
60
    @EXPORT_OK = qw(
60
    @EXPORT_OK = qw(
61
      AddBiblio
61
        AddBiblio
62
      GetBiblio
62
        ModBiblio
63
      GetBiblioData
63
        DelBiblio
64
      GetMarcBiblio
64
        BiblioAutoLink
65
      GetBiblioItemData
65
        LinkBibHeadingsToAuthorities
66
      GetBiblioItemInfosOf
66
        GetRecordValue
67
      GetBiblioItemByBiblioNumber
67
        GetBiblioData
68
      GetBiblioFromItemNumber
68
        GetBiblioItemData
69
      GetBiblionumberFromItemnumber
69
        GetBiblioItemByBiblioNumber
70
70
        GetBiblionumberFromItemnumber
71
      &GetRecordValue
71
        GetBiblioFromItemNumber
72
72
        GetISBDView
73
      &GetISBDView
73
        GetBiblio
74
74
        GetBiblioItemInfosOf
75
      &GetMarcControlnumber
75
        IsMarcStructureInternal
76
      &GetMarcNotes
76
        GetMarcStructure
77
      &GetMarcISBN
77
        GetUsedMarcStructure
78
      &GetMarcISSN
78
        GetMarcSubfieldStructure
79
      &GetMarcSubjects
79
        GetMarcFromKohaField
80
      &GetMarcAuthors
80
        GetMarcSubfieldStructureFromKohaField
81
      &GetMarcSeries
81
        GetMarcBiblio
82
      &GetMarcHosts
82
        GetXmlBiblio
83
      GetMarcUrls
83
        GetCOinSBiblio
84
      &GetUsedMarcStructure
84
        GetMarcPrice
85
      &GetXmlBiblio
85
        MungeMarcPrice
86
      &GetCOinSBiblio
86
        GetMarcQuantity
87
      &GetMarcPrice
87
        GetAuthorisedValueDesc
88
      &MungeMarcPrice
88
        GetMarcControlnumber
89
      &GetMarcQuantity
89
        GetMarcISBN
90
90
        GetMarcISSN
91
      &GetAuthorisedValueDesc
91
        GetMarcNotes
92
      &GetMarcStructure
92
        GetMarcSubjects
93
      &IsMarcStructureInternal
93
        GetMarcAuthors
94
      &GetMarcFromKohaField
94
        GetMarcUrls
95
      &GetMarcSubfieldStructureFromKohaField
95
        GetMarcSeries
96
      &GetFrameworkCode
96
        GetMarcHosts
97
      &TransformKohaToMarc
97
        UpsertMarcSubfield
98
      &PrepHostMarcField
98
        UpsertMarcControlField
99
99
        GetFrameworkCode
100
      &CountItemsIssued
100
        TransformKohaToMarc
101
      &CountBiblioInOrders
101
        PrepHostMarcField
102
      &GetSubscriptionsId
102
        TransformHtmlToXml
103
103
        TransformHtmlToMarc
104
      &ModBiblio
104
        TransformMarcToKoha
105
      &ModZebra
105
        CountItemsIssued
106
      &UpdateTotalIssues
106
        get_koha_field_from_marc
107
      &RemoveAllNsb
107
        TransformMarcToKohaOneField
108
108
        ModZebra
109
      &DelBiblio
109
        EmbedItemsInMarcBiblio
110
110
        ModBiblioMarc
111
      &BiblioAutoLink
111
        CountBiblioInOrders
112
      &LinkBibHeadingsToAuthorities
112
        GetSubscriptionsId
113
113
        prepare_host_field
114
      &ModBiblioMarc
114
        UpdateTotalIssues
115
115
        RemoveAllNsb
116
      &TransformMarcToKoha
117
      &TransformHtmlToMarc
118
      &TransformHtmlToXml
119
      prepare_host_field
120
    );
116
    );
121
}
117
}
122
118
(-)a/C4/Bookseller.pm (+12 lines)
Lines 21-26 package C4::Bookseller; Link Here
21
use strict;
21
use strict;
22
use warnings;
22
use warnings;
23
23
24
our (@ISA, @EXPORT_OK);
25
BEGIN {
26
27
    require Exporter;
28
    @ISA = qw( Exporter );
29
30
    @EXPORT_OK = qw(
31
        GetBooksellersWithLateOrders
32
    );
33
};
34
35
24
=head1 NAME
36
=head1 NAME
25
37
26
C4::Bookseller - Koha functions for dealing with booksellers.
38
C4::Bookseller - Koha functions for dealing with booksellers.
(-)a/C4/Breeding.pm (-1 / +6 lines)
Lines 35-41 our (@ISA, @EXPORT_OK); Link Here
35
BEGIN {
35
BEGIN {
36
	require Exporter;
36
	require Exporter;
37
	@ISA = qw(Exporter);
37
	@ISA = qw(Exporter);
38
    @EXPORT_OK = qw(&BreedingSearch &Z3950Search &Z3950SearchAuth);
38
    @EXPORT_OK = qw(
39
        BreedingSearch
40
        Z3950Search
41
        ImportBreedingAuth
42
        Z3950SearchAuth
43
    );
39
}
44
}
40
45
41
=head1 NAME
46
=head1 NAME
(-)a/C4/Budgets.pm (-39 / +38 lines)
Lines 29-75 BEGIN { Link Here
29
    require Exporter;
29
    require Exporter;
30
    @ISA = qw( Exporter );
30
    @ISA = qw( Exporter );
31
    @EXPORT_OK = qw(
31
    @EXPORT_OK = qw(
32
        &GetBudget
32
        HideCols
33
        &GetBudgetByOrderNumber
33
        GetCols
34
        &GetBudgetByCode
34
        CheckBudgetParentPerm
35
        &GetBudgets
35
        AddBudgetPeriod
36
        &BudgetsByActivity
36
        GetPeriodsCount
37
        &GetBudgetsReport
37
        CheckBudgetParent
38
        &GetBudgetReport
38
        BudgetHasChildren
39
        &GetBudgetHierarchy
39
        GetBudgetChildren
40
        &AddBudget
40
        SetOwnerToFundHierarchy
41
        &ModBudget
41
        GetBudgetsPlanCell
42
        &DelBudget
42
        ModBudgetPlan
43
        &GetBudgetSpent
43
        GetBudgetSpent
44
        &GetBudgetOrdered
44
        GetBudgetOrdered
45
        &GetBudgetName
45
        GetBudgetName
46
        &GetPeriodsCount
46
        GetBudgetAuthCats
47
        GetBudgetPeriods
48
        GetBudgetPeriod
49
        DelBudgetPeriod
50
        ModBudgetPeriod
51
        GetBudgetHierarchy
52
        AddBudget
53
        ModBudget
54
        DelBudget
55
        GetBudget
56
        GetBudgetByOrderNumber
57
        GetBudgetReport
58
        GetBudgetsByActivity
59
        GetBudgetsReport
60
        GetBudgetByCode
47
        GetBudgetHierarchySpent
61
        GetBudgetHierarchySpent
48
        GetBudgetHierarchyOrdered
62
        GetBudgetHierarchyOrdered
49
63
        GetBudgets
50
        &GetBudgetUsers
64
        GetBudgetUsers
51
        &ModBudgetUsers
65
        ModBudgetUsers
52
        &CanUserUseBudget
66
        CanUserUseBudget
53
        &CanUserModifyBudget
67
        CanUserModifyBudget
54
68
        CloneBudgetPeriod
55
	    &GetBudgetPeriod
69
        CloneBudgetHierarchy
56
        &GetBudgetPeriods
70
        MoveOrders
57
        &ModBudgetPeriod
71
    );
58
        &AddBudgetPeriod
59
	    &DelBudgetPeriod
60
61
        &ModBudgetPlan
62
63
		&GetBudgetsPlanCell
64
        &AddBudgetPlanValue
65
        &GetBudgetAuthCats
66
        &BudgetHasChildren
67
        &CheckBudgetParent
68
        &CheckBudgetParentPerm
69
70
        &HideCols
71
        &GetCols
72
	);
73
}
72
}
74
73
75
# ----------------------------BUDGETS.PM-----------------------------";
74
# ----------------------------BUDGETS.PM-----------------------------";
(-)a/C4/Circulation.pm (-40 / +52 lines)
Lines 72-117 BEGIN { Link Here
72
72
73
    # FIXME subs that should probably be elsewhere
73
    # FIXME subs that should probably be elsewhere
74
    push @EXPORT_OK, qw(
74
    push @EXPORT_OK, qw(
75
      &barcodedecode
75
        barcodedecode
76
      &LostItem
76
        decode
77
      &ReturnLostItem
77
        transferbook
78
      &GetPendingOnSiteCheckouts
78
        TooMany
79
79
        CanBookBeIssued
80
      &CanBookBeIssued
80
        CanBookBeReturned
81
      &CanBookBeRenewed
81
        checkHighHolds
82
      &AddIssue
82
        AddIssue
83
      &AddRenewal
83
        GetLoanLength
84
      &GetRenewCount
84
        GetHardDueDate
85
      &GetSoonestRenewDate
85
        GetBranchBorrowerCircRule
86
      &GetLatestAutoRenewDate
86
        GetBranchItemRule
87
      &GetItemIssue
87
        AddReturn
88
      &GetIssuingCharges
88
        MarkIssueReturned
89
      &GetBranchBorrowerCircRule
89
        GetItemIssue
90
      &GetBranchItemRule
90
        GetOpenIssue
91
      &GetBiblioIssues
91
        GetBiblioIssues
92
      &GetOpenIssue
92
        GetUpcomingDueIssues
93
      &CheckIfIssuedToPatron
93
        CanBookBeRenewed
94
      &IsItemIssued
94
        AddRenewal
95
      GetTopIssues
95
        GetRenewCount
96
96
        GetSoonestRenewDate
97
      &AddReturn
97
        GetLatestAutoRenewDate
98
      &MarkIssueReturned
98
        GetIssuingCharges
99
99
        AddIssuingCharge
100
      &transferbook
100
        GetTransfers
101
      &GetTransfers
101
        GetTransfersFromTo
102
      &GetTransfersFromTo
102
        DeleteTransfer
103
      &updateWrongTransfer
103
        SendCirculationAlert
104
      &DeleteTransfer
104
        updateWrongTransfer
105
      &IsBranchTransferAllowed
105
        UpdateHoldingbranch
106
      &CreateBranchTransferLimit
106
        CalcDateDue
107
      &DeleteBranchTransferLimits
107
        CheckValidBarcode
108
      &TransferSlip
108
        IsBranchTransferAllowed
109
109
        CreateBranchTransferLimit
110
      &GetOfflineOperations
110
        DeleteBranchTransferLimits
111
      &GetOfflineOperation
111
        ReturnLostItem
112
      &AddOfflineOperation
112
        LostItem
113
      &DeleteOfflineOperation
113
        GetOfflineOperations
114
      &ProcessOfflineOperation
114
        GetOfflineOperation
115
        AddOfflineOperation
116
        DeleteOfflineOperation
117
        ProcessOfflineOperation
118
        ProcessOfflineReturn
119
        ProcessOfflineIssue
120
        ProcessOfflinePayment
121
        TransferSlip
122
        CheckIfIssuedToPatron
123
        IsItemIssued
124
        GetAgeRestriction
125
        GetPendingOnSiteCheckouts
126
        GetTopIssues
115
    );
127
    );
116
}
128
}
117
129
(-)a/C4/HoldsQueue.pm (-5 / +12 lines)
Lines 39-49 BEGIN { Link Here
39
    require Exporter;
39
    require Exporter;
40
    @ISA = qw(Exporter);
40
    @ISA = qw(Exporter);
41
    @EXPORT_OK = qw(
41
    @EXPORT_OK = qw(
42
        &CreateQueue
42
        TransportCostMatrix
43
        &GetHoldsQueueItems
43
        UpdateTransportCostMatrix
44
44
        GetHoldsQueueItems
45
        &TransportCostMatrix
45
        CreateQueue
46
        &UpdateTransportCostMatrix
46
        GetBibsWithPendingHoldRequests
47
        GetPendingHoldRequestsForBib
48
        GetItemsAvailableToFillHoldRequestsForBib
49
        MapItemsToHoldRequests
50
        CreatePicklistFromItemMap
51
        AddToHoldTargetMap
52
        load_branches_to_pull_from
53
        least_cost_branch
47
     );
54
     );
48
}
55
}
49
56
(-)a/C4/Items.pm (-17 / +12 lines)
Lines 56-98 BEGIN { Link Here
56
    # function exports
56
    # function exports
57
    @EXPORT_OK = qw(
57
    @EXPORT_OK = qw(
58
        GetItem
58
        GetItem
59
        CartToShelf
60
        ShelfToCart
59
        AddItemFromMarc
61
        AddItemFromMarc
60
        AddItem
62
        AddItem
61
        AddItemBatchFromMarc
63
        AddItemBatchFromMarc
62
        ModItemFromMarc
64
        ModItemFromMarc
63
    Item2Marc
64
        ModItem
65
        ModItem
65
        ModDateLastSeen
66
        ModItemTransfer
66
        ModItemTransfer
67
        ModDateLastSeen
67
        DelItem
68
        DelItem
68
    
69
        CheckItemPreSave
69
        CheckItemPreSave
70
    
71
        GetItemsForInventory
70
        GetItemsForInventory
72
        GetItemsByBiblioitemnumber
71
        GetItemsByBiblioitemnumber
73
        GetItemsInfo
72
        GetItemsInfo
74
	GetItemsLocationInfo
73
        GetItemsLocationInfo
75
	GetHostItemsInfo
74
        GetHostItemsInfo
75
        GetLastAcquisitions
76
        GetItemnumbersForBiblio
76
        GetItemnumbersForBiblio
77
	get_hostitemnumbers_of
77
        get_hostitemnumbers_of
78
        GetItemnumberFromBarcode
78
        GetItemnumberFromBarcode
79
        GetBarcodeFromItemnumber
79
        GetBarcodeFromItemnumber
80
        GetHiddenItemnumbers
80
        GetHiddenItemnumbers
81
        GetMarcItem
82
        Item2Marc
83
        MoveItemFromBiblio
81
        ItemSafeToDelete
84
        ItemSafeToDelete
82
        DelItemCheck
85
        DelItemCheck
83
    MoveItemFromBiblio
86
        GetAnalyticsCount
84
    GetLatestAcquisitions
85
86
        CartToShelf
87
        ShelfToCart
88
89
	GetAnalyticsCount
90
91
        SearchItemsByField
87
        SearchItemsByField
92
        SearchItems
88
        SearchItems
93
94
        PrepareItemrecordDisplay
89
        PrepareItemrecordDisplay
95
90
        ToggleNewStatus
96
    );
91
    );
97
}
92
}
98
93
(-)a/C4/Koha.pm (-25 / +26 lines)
Lines 39-70 BEGIN { Link Here
39
	require Exporter;
39
	require Exporter;
40
	@ISA    = qw(Exporter);
40
	@ISA    = qw(Exporter);
41
    @EXPORT_OK = qw(
41
    @EXPORT_OK = qw(
42
        &GetPrinters &GetPrinter
42
        GetItemTypesCategorized
43
        &getitemtypeinfo
43
        getitemtypeinfo
44
        &GetItemTypesCategorized
44
        getitemtypeimagedir
45
        &getallthemes
45
        getitemtypeimagesrc
46
        &getFacets
46
        getitemtypeimagelocation
47
        &getnbpages
47
        getImageSets
48
		&getitemtypeimagedir
48
        GetPrinters
49
		&getitemtypeimagesrc
49
        GetPrinter
50
		&getitemtypeimagelocation
50
        getnbpages
51
		&GetAuthorisedValues
51
        getallthemes
52
		&GetNormalizedUPC
52
        getFacets
53
		&GetNormalizedISBN
53
        GetAuthorisedValues
54
		&GetNormalizedEAN
54
        xml_escape
55
		&GetNormalizedOCLCNumber
55
        display_marc_indicators
56
        &xml_escape
56
        GetNormalizedUPC
57
57
        GetNormalizedISBN
58
        &GetVariationsOfISBN
58
        GetNormalizedEAN
59
        &GetVariationsOfISBNs
59
        GetNormalizedOCLCNumber
60
        &NormalizeISBN
61
        &GetVariationsOfISSN
62
        &GetVariationsOfISSNs
63
        &NormalizeISSN
64
65
        GetDailyQuote
60
        GetDailyQuote
66
61
        NormalizeISBN
67
	);
62
        GetVariationsOfISBN
63
        GetVariationsOfISBNs
64
        NormalizeISSN
65
        GetVariationsOfISSN
66
        GetVariationsOfISSNs
67
        IsKohaFieldLinked
68
    );
68
}
69
}
69
70
70
=head1 NAME
71
=head1 NAME
(-)a/C4/Languages.pm (-5 / +9 lines)
Lines 33-44 BEGIN { Link Here
33
    require Exporter;
33
    require Exporter;
34
    @ISA    = qw(Exporter);
34
    @ISA    = qw(Exporter);
35
    @EXPORT_OK = qw(
35
    @EXPORT_OK = qw(
36
        &getFrameworkLanguages
36
        getFrameworkLanguages
37
        &getTranslatedLanguages
37
        getTranslatedLanguages
38
        &getLanguages
38
        getAllLanguages
39
        &getAllLanguages
39
        getLanguages
40
        language_get_description
41
        regex_lang_subtags
42
        get_bidi
43
        accept_language
44
        getlanguage
40
    );
45
    );
41
    push @EXPORT_OK, qw(getFrameworkLanguages getTranslatedLanguages getAllLanguages getLanguages get_bidi regex_lang_subtags language_get_description accept_language getlanguage);
42
    $DEBUG = 0;
46
    $DEBUG = 0;
43
}
47
}
44
48
(-)a/C4/Letters.pm (-1 / +19 lines)
Lines 43-49 BEGIN { Link Here
43
    require Exporter;
43
    require Exporter;
44
    @ISA = qw(Exporter);
44
    @ISA = qw(Exporter);
45
    @EXPORT_OK = qw(
45
    @EXPORT_OK = qw(
46
        &GetLetters &GetLettersAvailableForALibrary &GetLetterTemplates &DelLetter &GetPreparedLetter &GetWrappedLetter &addalert &getalert &delalert &findrelatedto &SendAlerts &GetPrintMessages &GetMessageTransportTypes
46
        GetLetters
47
        GetLetterTemplates
48
        GetLettersAvailableForALibrary
49
        getletter
50
        DelLetter
51
        addalert
52
        delalert
53
        getalert
54
        findrelatedto
55
        SendAlerts
56
        GetPreparedLetter
57
        EnqueueLetter
58
        SendQueuedMessages
59
        GetRSSMessages
60
        GetPrintMessages
61
        GetQueuedMessages
62
        GetMessageTransportTypes
63
        GetMessage
64
        ResendMessage
47
    );
65
    );
48
}
66
}
49
67
(-)a/C4/Matcher.pm (+28 lines)
Lines 25-30 use Koha::SearchEngine; Link Here
25
use Koha::SearchEngine::Search;
25
use Koha::SearchEngine::Search;
26
use Koha::Util::Normalize qw( remove_spaces upper_case lower_case legacy_default );
26
use Koha::Util::Normalize qw( remove_spaces upper_case lower_case legacy_default );
27
27
28
our (@ISA, @EXPORT_OK);
29
BEGIN {
30
31
    require Exporter;
32
    @ISA = qw( Exporter );
33
34
    @EXPORT_OK = qw(
35
        GetMatcherList
36
        GetMatcherId
37
        new
38
        fetch
39
        store
40
        delete
41
        record_type
42
        threshold
43
        code
44
        description
45
        add_matchpoint
46
        add_simple_matchpoint
47
        add_required_check
48
        add_simple_required_check
49
        get_matches
50
        dump
51
        valid_normalization_routines
52
    );
53
};
54
55
28
=head1 NAME
56
=head1 NAME
29
57
30
C4::Matcher - find MARC records matching another one
58
C4::Matcher - find MARC records matching another one
(-)a/C4/Members.pm (-29 / +22 lines)
Lines 59-95 BEGIN { Link Here
59
    require Exporter;
59
    require Exporter;
60
    @ISA = qw(Exporter);
60
    @ISA = qw(Exporter);
61
    @EXPORT_OK = qw(
61
    @EXPORT_OK = qw(
62
        &GetMember
62
        patronflags
63
63
        GetMember
64
        &GetPendingIssues
64
        ModMember
65
        &GetAllIssues
65
        AddMember
66
66
        Check_Userid
67
        &GetFirstValidEmailAddress
67
        Generate_Userid
68
        &GetNoticeEmailAddress
68
        fixup_cardnumber
69
69
        GetPendingIssues
70
        &GetMemberAccountRecords
70
        GetAllIssues
71
        &GetBorNotifyAcctRecord
71
        GetMemberAccountRecords
72
72
        GetMemberAccountBalance
73
        &GetBorrowersToExpunge
73
        GetBorNotifyAcctRecord
74
74
        checkcardnumber
75
        &IssueSlip
75
        get_cardnumber_length
76
        GetFirstValidEmailAddress
77
        GetNoticeEmailAddress
78
        GetBorrowersToExpunge
79
        IssueSlip
76
        GetBorrowersWithEmail
80
        GetBorrowersWithEmail
77
81
        AddMember_Auto
82
        AddMember_Opac
83
        DeleteExpiredOpacRegistrations
84
        DeleteUnverifiedOpacRegistrations
78
        GetOverduesForPatron
85
        GetOverduesForPatron
79
80
        &ModMember
81
        &changepassword
82
83
        &AddMember
84
    &AddMember_Auto
85
        &AddMember_Opac
86
87
        &checkuniquemember
88
        &checkuserpassword
89
        &Check_Userid
90
        &Generate_Userid
91
        &fixup_cardnumber
92
        &checkcardnumber
93
    );
86
    );
94
}
87
}
95
88
(-)a/C4/Reserves.pm (-45 / +39 lines)
Lines 100-152 BEGIN { Link Here
100
    require Exporter;
100
    require Exporter;
101
    @ISA = qw(Exporter);
101
    @ISA = qw(Exporter);
102
    @EXPORT_OK = qw(
102
    @EXPORT_OK = qw(
103
        &AddReserve
103
        AddReserve
104
104
        GetReserve
105
        &GetReserve
105
        GetReservesFromBorrowernumber
106
        &GetReservesFromBorrowernumber
106
        CanBookBeReserved
107
        &GetReservesForBranch
107
        CanItemBeReserved
108
        &GetReservesToBranch
108
        CanReserveBeCanceledFromOpac
109
        &GetReserveCount
109
        GetReserveCount
110
        &GetReserveInfo
110
        GetOtherReserves
111
        &GetReserveStatus
111
        ChargeReserveFee
112
112
        GetReserveFee
113
        &GetOtherReserves
113
        GetReservesToBranch
114
114
        GetReservesForBranch
115
        &ModReserveFill
115
        GetReserveStatus
116
        &ModReserveAffect
116
        CheckReserves
117
        &ModReserve
117
        CancelExpiredReserves
118
        &ModReserveStatus
118
        AutoUnsuspendReserves
119
        &ModReserveCancelAll
119
        CancelReserve
120
        &ModReserveMinusPriority
120
        ModReserve
121
        &MoveReserve
121
        ModReserveFill
122
122
        ModReserveStatus
123
        &CheckReserves
123
        ModReserveAffect
124
        &CanBookBeReserved
124
        ModReserveCancelAll
125
        &CanItemBeReserved
125
        ModReserveMinusPriority
126
        &CanReserveBeCanceledFromOpac
126
        GetReserveInfo
127
        &CancelReserve
127
        IsAvailableForItemLevelRequest
128
        &CancelExpiredReserves
128
        OnShelfHoldsAllowed
129
129
        AlterPriority
130
        &AutoUnsuspendReserves
130
        ToggleLowestPriority
131
131
        ToggleSuspend
132
        &IsAvailableForItemLevelRequest
132
        SuspendAll
133
133
        OPACItemHoldsAllowed
134
        &OPACItemHoldsAllowed
134
        MoveReserve
135
135
        MergeHolds
136
        &AlterPriority
136
        RevertWaitingStatus
137
        &ToggleLowestPriority
137
        GetReserveId
138
138
        ReserveSlip
139
        &ReserveSlip
139
        GetReservesControlBranch
140
        &ToggleSuspend
140
        CalculatePriority
141
        &SuspendAll
142
143
        &GetReservesControlBranch
144
145
        IsItemOnHoldAndFound
141
        IsItemOnHoldAndFound
146
147
        GetMaxPatronHoldsForRecord
142
        GetMaxPatronHoldsForRecord
148
143
        GetHoldRule
149
        MergeHolds
150
    );
144
    );
151
}
145
}
152
146
(-)a/C4/RotatingCollections.pm (+2 lines)
Lines 62-67 BEGIN { Link Here
62
      TransferCollection
62
      TransferCollection
63
63
64
      GetCollectionItemBranches
64
      GetCollectionItemBranches
65
      isItemInThisCollection
66
      isItemInAnyCollection
65
    );
67
    );
66
}
68
}
67
69
(-)a/C4/Search.pm (-7 / +14 lines)
Lines 41-59 use MARC::Record; Link Here
41
use MARC::Field;
41
use MARC::Field;
42
use vars qw($DEBUG);
42
use vars qw($DEBUG);
43
43
44
our (@ISA, @EXPORT_OK);
44
BEGIN {
45
BEGIN {
45
    $DEBUG = ($ENV{DEBUG}) ? 1 : 0;
46
    $DEBUG = ($ENV{DEBUG}) ? 1 : 0;
46
47
47
    require Exporter;
48
    require Exporter;
48
    @ISA    = qw(Exporter);
49
    @ISA    = qw(Exporter);
49
    @EXPORT_OK = qw(
50
    @EXPORT_OK = qw(
50
      &FindDuplicate
51
        FindDuplicate
51
      &SimpleSearch
52
        SimpleSearch
52
      &searchResults
53
        getRecords
53
      &getRecords
54
        GetFacets
54
      &buildQuery
55
        pazGetRecords
55
      &GetDistinctValues
56
        getIndexes
56
      &enabled_staff_search_views
57
        parseQuery
58
        buildQuery
59
        searchResults
60
        enabled_staff_search_views
61
        z3950_search_args
62
        GetDistinctValues
63
        new_record_from_zebra
57
    );
64
    );
58
}
65
}
59
66
(-)a/C4/Serials.pm (-24 / +58 lines)
Lines 63-92 BEGIN { Link Here
63
    require Exporter;
63
    require Exporter;
64
    @ISA    = qw(Exporter);
64
    @ISA    = qw(Exporter);
65
    @EXPORT_OK = qw(
65
    @EXPORT_OK = qw(
66
      &NewSubscription    &ModSubscription    &DelSubscription
66
        GetSuppliersWithLateIssues
67
      &GetSubscription    &CountSubscriptionFromBiblionumber      &GetSubscriptionsFromBiblionumber
67
        GetSubscriptionHistoryFromSubscriptionId
68
      &SearchSubscriptions
68
        GetSerialStatusFromSerialId
69
      &GetFullSubscriptionsFromBiblionumber   &GetFullSubscription &ModSubscriptionHistory
69
        GetSerialInformation
70
      &HasSubscriptionStrictlyExpired &HasSubscriptionExpired &GetExpirationDate &abouttoexpire
70
        AddItem2Serial
71
      &GetSubscriptionHistoryFromSubscriptionId
71
        GetSubscription
72
72
        GetFullSubscription
73
      &GetNextSeq &GetSeq &NewIssue           &GetSerials
73
        PrepareSerialsData
74
      &GetLatestSerials   &ModSerialStatus    &GetNextDate       &GetSerials2
74
        GetSubscriptionsFromBiblionumber
75
      &ReNewSubscription  &GetLateOrMissingIssues
75
        GetFullSubscriptionsFromBiblionumber
76
      &GetSerialInformation                   &AddItem2Serial
76
        SearchSubscriptions
77
      &PrepareSerialsData &GetNextExpected    &ModNextExpected
77
        GetSerials
78
      &GetPreviousSerialid
78
        GetSerials2
79
79
        GetLatestSerials
80
      &GetSuppliersWithLateIssues             &getsupplierbyserialid
80
        GetPreviousSerialid
81
      &GetDistributedTo   &SetDistributedTo
81
        GetDistributedTo
82
      &getroutinglist     &delroutingmember   &addroutingmember
82
        GetNextSeq
83
      &reorder_members
83
        GetSeq
84
      &check_routing &updateClaim
84
        GetExpirationDate
85
      &CountIssues
85
        CountSubscriptionFromBiblionumber
86
      HasItems
86
        ModSubscriptionHistory
87
      &GetSubscriptionsFromBorrower
87
        ModSerialStatus
88
      &subscriptionCurrentlyOnOrder
88
        GetNextExpected
89
89
        ModNextExpected
90
        GetSubscriptionIrregularities
91
        ModSubscription
92
        NewSubscription
93
        ReNewSubscription
94
        NewIssue
95
        HasSubscriptionStrictlyExpired
96
        HasSubscriptionExpired
97
        SetDistributedto
98
        DelSubscription
99
        DelIssue
100
        GetLateOrMissingIssues
101
        updateClaim
102
        getsupplierbyserialid
103
        check_routing
104
        addroutingmember
105
        reorder_members
106
        delroutingmember
107
        getroutinglist
108
        countissuesfrom
109
        CountIssues
110
        HasItems
111
        abouttoexpire
112
        in_array
113
        GetSubscriptionsFromBorrower
114
        GetFictiveIssueNumber
115
        GetNextDate
116
        is_barcode_in_use
117
        CloseSubscription
118
        ReopenSubscription
119
        subscriptionCurrentlyOnOrder
120
        can_claim_subscription
121
        can_edit_subscription
122
        can_show_subscription
123
        findSerialsByStatus
90
    );
124
    );
91
}
125
}
92
126
(-)a/C4/ShelfBrowser.pm (-1 / +3 lines)
Lines 32-38 BEGIN { Link Here
32
	require Exporter;
32
	require Exporter;
33
	@ISA    = qw(Exporter);
33
	@ISA    = qw(Exporter);
34
    @EXPORT_OK = qw(
34
    @EXPORT_OK = qw(
35
	    &GetNearbyItems
35
        GetNearbyItems
36
        GetShelfInfo
37
        GetBibData
36
    );
38
    );
37
}
39
}
38
40
(-)a/C4/SocialData.pm (+12 lines)
Lines 21-26 use C4::Context; Link Here
21
use Business::ISBN;
21
use Business::ISBN;
22
use C4::Koha qw( GetNormalizedISBN );
22
use C4::Koha qw( GetNormalizedISBN );
23
23
24
our (@ISA, @EXPORT_OK);
25
BEGIN {
26
    require Exporter;
27
    @ISA = qw( Exporter );
28
29
    @EXPORT_OK = qw(
30
        get_data
31
        update_data
32
        get_report
33
    );
34
}:
35
24
=head1 NAME
36
=head1 NAME
25
37
26
C4::SocialData - Koha functions for dealing with social datas
38
C4::SocialData - Koha functions for dealing with social datas
(-)a/C4/UsageStats.pm (+13 lines)
Lines 25-30 use JSON; Link Here
25
25
26
use Koha::Libraries;
26
use Koha::Libraries;
27
27
28
our (@ISA, @EXPORT_OK);
29
BEGIN {
30
31
    require Exporter;
32
    @ISA = qw( Exporter );
33
34
    @EXPORT_OK = qw(
35
        NeedUpdate
36
        BuildReport
37
        ReportToCommunity
38
    );
39
};
40
28
=head1 NAME
41
=head1 NAME
29
42
30
C4::UsageStats
43
C4::UsageStats
(-)a/C4/XSLT.pm (-1 / +6 lines)
Lines 48-54 BEGIN { Link Here
48
    @ISA = qw( Exporter );
48
    @ISA = qw( Exporter );
49
49
50
    @EXPORT_OK = qw(
50
    @EXPORT_OK = qw(
51
        &XSLTParse4Display
51
        transformMARCXML4XSLT
52
        getAuthorisedValues4MARCSubfields
53
        get_xslt_sysprefs
54
        XSLTParse4Display
55
        buildKohaItemsNamespace
56
        engine
52
    );
57
    );
53
    $engine=Koha::XSLT_Handler->new( { do_not_return_source => 1 } );
58
    $engine=Koha::XSLT_Handler->new( { do_not_return_source => 1 } );
54
}
59
}
(-)a/Koha/Template/Plugin/KohaDates.pm (-2 / +1 lines)
Lines 22-28 use Modern::Perl; Link Here
22
use Template::Plugin::Filter;
22
use Template::Plugin::Filter;
23
use base qw( Template::Plugin::Filter );
23
use base qw( Template::Plugin::Filter );
24
24
25
use Koha::DateUtils;
25
use Koha::DateUtils qw( dt_from_string output_pref );
26
our $DYNAMIC = 1;
26
our $DYNAMIC = 1;
27
27
28
sub filter {
28
sub filter {
29
- 

Return to bug 17600