Koha-clms/Koha/Schema/Result
Matt Blenkinsop 65b2c90f58 Bug 30642: (follow-up) Change sql and adapt for translations
New column has now been changed to an enum in line with comments and the strings have been amended to be picked up for translation. The file koha-tmpl/intranet-tmpl/prog/en/includes/str/checkout_renewals.inc has been removed as the variables can be included within the javascript file.

Test plan:
1) In the database shell run "show columns from checkout_renewals;" and observe that there is currently no column for recording the type of renewal
2) Apply patch
3) In the shell run "dbic" and "perl installer/data/mysql/updatedatabase.pl" to update the database schema with the new column.
4) Create some checkouts
5) Renew some checkouts manually and observe in the database that there is now a column called "renewal_type" that will have recorded these as "Manual"
6) Create some checkouts that can be automatically renewed
7) Run the cron script in automatic_renewals.pl and observe that there are now also entries with a renewal_type of "Automatic"
8) Send a GET request to http://localhost:8081/api/v1/checkouts/1/renewals and observe that the renewal_type is now returned in the response
9) In the Item Details tab for a record, there is the "Current renewals" option which has a button to view renewals. Click on this and observe that the modal now displays the new information.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 7fe9e76af8)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
2023-02-13 09:28:58 +00:00
..
AccountCreditType.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AccountCreditTypesBranch.pm Bug 23805: DBIC Classes 2019-10-24 17:35:19 +01:00
AccountDebitType.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AccountDebitTypesBranch.pm Bug 23049: Add DBIC Classes 2019-10-24 17:25:30 +01:00
AccountOffset.pm Bug 22435: Update DBIC Schema's 2021-08-04 14:06:43 +02:00
Accountline.pm Bug 31254: Add additional fields for accountlines 2022-09-21 18:58:28 -03:00
ActionLog.pm Bug 30984: DBIC update 2022-08-01 10:00:54 -03:00
AdditionalContent.pm Bug 29605: Update DBIC schema 2022-02-01 21:39:39 -10:00
AdditionalField.pm Bug 29336: Update DBIC schema 2022-01-18 21:15:05 -10:00
AdditionalFieldValue.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AdvancedEditorMacro.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Alert.pm Bug 13535: DBIC schema changes 2020-10-08 16:18:19 +02:00
ApiKey.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Aqbasket.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Aqbasketgroup.pm Bug 24461: Add to_api_mapping to Koha::Acquisition::BasketGroup 2020-03-24 11:32:37 +00:00
Aqbasketuser.pm
…
Aqbookseller.pm Bug 32030: DBIC 2022-11-08 09:44:49 -03:00
Aqbudget.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Aqbudgetborrower.pm
…
Aqbudgetperiod.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AqbudgetsPlanning.pm
…
Aqcontact.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Aqcontract.pm
…
Aqinvoice.pm Bug 31115: Add support for additional fields for invoices 2022-10-24 14:11:06 -03:00
AqinvoiceAdjustment.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Aqorder.pm Bug 15348: DBIC schema 2022-09-16 10:56:40 -03:00
AqorderUser.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AqordersClaim.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AqordersItem.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AqordersTransfer.pm
…
ArticleRequest.pm Bug 27946: Update DBIC schema 2022-01-28 11:09:07 -10:00
AudioAlert.pm
…
AuthHeader.pm Bug 23152: Fix more pluralisation (and add tests) 2019-10-24 17:01:45 +01:00
AuthSubfieldStructure.pm Bug 29336: Update DBIC schema 2022-01-18 21:15:05 -10:00
AuthTagStructure.pm Bug 29336: Update DBIC schema 2022-01-18 21:15:05 -10:00
AuthType.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
AuthorisedValue.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
AuthorisedValueCategory.pm Bug 17355: DBIC changes - boolean flag 2020-05-04 07:57:21 +01:00
AuthorisedValuesBranch.pm
…
BackgroundJob.pm Bug 30889: Schema update 2022-06-30 12:03:19 -03:00
Biblio.pm Bug 32030: DBIC 2022-11-08 09:44:49 -03:00
BiblioFramework.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
BiblioMetadata.pm Bug 23152: Fix more pluralisation (and add tests) 2019-10-24 17:01:45 +01:00
Biblioitem.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Borrower.pm Bug 31095: DBIC additions and relation name tweak 2023-02-01 15:40:46 +00:00
BorrowerAttribute.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
BorrowerAttributeType.pm Bug 30449: DBIC updates 2022-05-02 11:22:57 -10:00
BorrowerAttributeTypesBranch.pm
…
BorrowerDebarment.pm Bug 31095: DBIC additions and relation name tweak 2023-02-01 15:40:46 +00:00
BorrowerFile.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
BorrowerMessagePreference.pm
…
BorrowerMessageTransportPreference.pm
…
BorrowerModification.pm Bug 10950: DBIC schema 2022-10-03 15:04:06 -03:00
BorrowerPasswordRecovery.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
BorrowerRelationship.pm Bug 30472: DBIC schema 2022-09-19 15:12:28 -03:00
Branch.pm Bug 31378: DBIC schema 2022-11-08 14:41:43 -03:00
BranchTransferLimit.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
BranchesOverdrive.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
Branchtransfer.pm Bug 30944: DBIC schema 2022-10-03 13:48:42 -03:00
Browser.pm
…
CashRegister.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
CashRegisterAction.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
CategoriesBranch.pm
…
Category.pm Bug 31378: DBIC schema 2022-11-08 14:41:43 -03:00
CheckoutRenewal.pm Bug 30642: (follow-up) Change sql and adapt for translations 2023-02-13 09:28:58 +00:00
CirculationRule.pm Bug 18930: (RM follow-up) Restore primary key find 2019-07-16 13:53:54 +01:00
City.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
ClassSortRule.pm
…
ClassSource.pm
…
ClassSplitRule.pm
…
Club.pm Bug 19618: DBRev 19.06.00.030 2019-10-01 08:14:59 +01:00
ClubEnrollment.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
ClubEnrollmentField.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
ClubField.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
ClubHold.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
ClubHoldsToPatronHold.pm Bug 16787: DBIC schema changes 2021-04-22 14:49:58 +02:00
ClubTemplate.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
ClubTemplateEnrollmentField.pm Bug 29336: Update DBIC schema 2022-01-18 21:15:05 -10:00
ClubTemplateField.pm Bug 29336: Update DBIC schema 2022-01-18 21:15:05 -10:00
Collection.pm Bug 17202: DBIC schema changes 2021-04-29 09:55:38 +02:00
CollectionsTracking.pm Bug 17202: DBIC schema changes 2021-04-29 09:55:38 +02:00
ColumnsSetting.pm Bug 24156: DBIC changes 2020-06-25 10:51:59 +02:00
Course.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
CourseInstructor.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
CourseItem.pm Bug 14237: (follow-up) Make the routines exclusively take itemnumber, biblionumber, or ci_id 2021-07-12 12:09:44 +02:00
CourseReserve.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
CoverImage.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
CreatorBatch.pm
…
CreatorImage.pm
…
CreatorLayout.pm
…
CreatorTemplate.pm
…
CurbsidePickup.pm Bug 30650: DBIC 2022-07-29 15:01:10 -03:00
CurbsidePickupIssue.pm Bug 30650: DBIC 2022-07-29 15:01:10 -03:00
CurbsidePickupOpeningSlot.pm Bug 30650: DBIC 2022-07-29 15:01:10 -03:00
CurbsidePickupPolicy.pm Bug 30650: Add missing koha_object[s]_class methods 2022-08-01 09:01:25 -03:00
Currency.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
Deletedbiblio.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
DeletedbiblioMetadata.pm
…
Deletedbiblioitem.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Deletedborrower.pm Bug 10950: DBIC schema 2022-10-03 15:04:06 -03:00
Deleteditem.pm Bug 30392: DBIC update 2022-08-01 14:34:11 -03:00
Desk.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Discharge.pm
…
EdifactEan.pm
…
EdifactMessage.pm Bug 21294: Replace BOOLEAN with TINYINT(1) in our DB structure 2020-04-29 16:58:45 +01:00
ErmAgreement.pm Bug 32162: DBIC schema 2022-11-11 08:52:41 -03:00
ErmAgreementLicense.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmAgreementPeriod.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmAgreementRelationship.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmDocument.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmEholdingsPackage.pm Bug 32162: DBIC schema 2022-11-11 08:52:41 -03:00
ErmEholdingsPackagesAgreement.pm Bug 32161: (bug 32030 follow-up) Fix koha_object[s]_class for ErmEholdingsPackagesAgreement 2022-11-11 08:58:28 -03:00
ErmEholdingsResource.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmEholdingsTitle.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmLicense.pm Bug 32030: DBIC Specific 2022-11-08 09:44:50 -03:00
ErmUserRole.pm Bug 32154: DBIC schema 2022-11-16 09:24:09 -03:00
ExportFormat.pm Bug 5087: (QA follow-up) Rename the attribute to fit later API usage 2020-07-23 10:52:10 +02:00
HoldCancellationRequest.pm Bug 22456: DBIC update 2022-07-29 15:28:17 -03:00
HoldFillTarget.pm Bug 18958: DBIC schema changes 2020-09-18 11:49:29 +02:00
HouseboundProfile.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
HouseboundRole.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
HouseboundVisit.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
IdentityProvider.pm Bug 31378: DBIC schema 2022-11-10 10:03:25 -03:00
IdentityProviderDomain.pm Bug 31378: Rename Auth Provider to Identity Provider and add Client.t tests 2022-11-08 14:39:51 -03:00
Illcomment.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Illrequest.pm Bug 24239: DBIC update 2022-06-23 15:44:44 -03:00
Illrequestattribute.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
ImportAuth.pm
…
ImportBatch.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
ImportBatchProfile.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
ImportBiblio.pm Bug 31569: (QA follow-up) Add missing entries in schema 2022-10-17 18:00:41 -03:00
ImportItem.pm Bug 30830: Add Koha Objects for Koha Import Items 2022-05-31 08:53:55 -03:00
ImportRecord.pm Bug 31569: DBIC schema 2022-10-17 08:18:44 -03:00
ImportRecordMatch.pm Bug 22785: Update DBIC schema 2022-05-03 11:19:50 -10:00
Issue.pm Bug 30483: DBIC schema 2022-09-12 08:35:37 -03:00
Item.pm Bug 30392: DBIC update 2022-08-01 14:34:11 -03:00
ItemBundle.pm Bug 28854: DBIC update 2022-07-13 10:36:16 -03:00
ItemCirculationAlertPreference.pm
…
ItemEditorTemplate.pm Bug 24606: DBIC schema 2022-11-10 14:44:59 -03:00
ItemGroup.pm Bug 24860: DBIC schema 2022-11-04 19:44:59 -03:00
ItemGroupItem.pm Bug 24857: Add object classes to Schema 2022-07-08 16:00:26 -03:00
ItemsLastBorrower.pm
…
ItemsSearchField.pm
…
Itemtype.pm Bug 30490: DBIC schema 2022-09-22 08:31:54 -03:00
ItemtypeLocalization.pm
…
ItemtypesBranch.pm Bug 15497: Modify schemas 2019-09-12 16:31:06 +01:00
KeyboardShortcut.pm Bug 21411: DBRev 18.12.00.074 2019-05-10 19:05:38 +00:00
LanguageDescription.pm Bug 29605: Update DBIC schema 2022-02-01 21:39:39 -10:00
LanguageRfc4646ToIso639.pm Bug 29605: Update DBIC schema 2022-02-01 21:39:39 -10:00
LanguageScriptBidi.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
LanguageScriptMapping.pm Bug 29605: Update DBIC schema 2022-02-01 21:39:39 -10:00
LanguageSubtagRegistry.pm Bug 30128: DBIC Schema update 2022-03-08 23:03:33 -10:00
Letter.pm Bug 31626: DBIC schema 2022-10-18 09:50:41 -03:00
LibraryGroup.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
LibrarySmtpServer.pm Bug 22343: Add new tables schema file 2020-10-02 10:54:40 +02:00
Linktracker.pm Bug 22690: Add koha_object[s]_class to fix TestBuilder.t 2021-08-27 17:06:09 +02:00
Localization.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
MarcMatcher.pm
…
MarcModificationTemplate.pm
…
MarcModificationTemplateAction.pm
…
MarcOverlayRule.pm Bug 14957: DBIC schema changes 2021-10-26 16:46:03 +02:00
MarcSubfieldStructure.pm Bug 8976: DBIC schema changes 2021-03-01 15:14:22 +01:00
MarcTagStructure.pm Bug 29336: Update DBIC schema 2022-01-18 21:15:05 -10:00
Matchcheck.pm
…
MatcherMatchpoint.pm
…
Matchpoint.pm
…
MatchpointComponent.pm
…
MatchpointComponentNorm.pm
…
Message.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
MessageAttribute.pm
…
MessageQueue.pm Bug 31626: DBIC schema 2022-10-18 09:50:41 -03:00
MessageTransport.pm
…
MessageTransportType.pm
…
MiscFile.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
NeedMergeAuthority.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
OaiSet.pm
…
OaiSetsBiblio.pm
…
OaiSetsDescription.pm
…
OaiSetsMapping.pm Bug 21520: (RM follow-up) Add missed schema update 2020-01-20 14:03:42 +00:00
OauthAccessToken.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
OldIssue.pm Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
OldReserve.pm Bug 28674: DBIC schema 2023-02-13 09:26:00 +00:00
Overduerule.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
OverduerulesTransportType.pm
…
PatronConsent.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
PatronList.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
PatronListPatron.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Patronimage.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
PendingOfflineOperation.pm
…
Permission.pm Bug 30060: Update DBIC Schema 2022-02-24 14:35:36 -10:00
PluginData.pm
…
PluginMethod.pm Bug 23152: (RM follow-up) Add handling for Koha::Plugin::Methods 2019-06-24 17:03:19 +01:00
PrintersProfile.pm
…
ProblemReport.pm Bug 27726: DBIC schema changes 2021-04-12 15:27:50 +02:00
PseudonymizedBorrowerAttribute.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
PseudonymizedTransaction.pm Bug 29341: DBIC schema changes 2021-11-19 15:23:27 +01:00
Quote.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Rating.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Recall.pm Bug 30291: Update DBIC schema 2022-05-05 11:17:36 -10:00
RepeatableHoliday.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
ReportsDictionary.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Reserve.pm Bug 28674: DBIC schema 2023-02-13 09:26:00 +00:00
RestrictionType.pm Bug 23681: Move to ::Patron::Restriction::Type(s) 2022-08-25 08:50:35 -03:00
ReturnClaim.pm Bug 28854: DBIC update 2022-07-18 12:07:42 -03:00
Review.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
SavedReport.pm
…
SavedSql.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
SearchField.pm Bug 29632: DBIC update 2022-07-18 12:11:15 -03:00
SearchFilter.pm Bug 17170: (QA follow-up) DB changes 2022-10-21 11:15:21 -03:00
SearchHistory.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
SearchMarcMap.pm Bug 18984: DBIC schema changes 2021-10-07 15:49:01 +02:00
SearchMarcToField.pm Bug 30572: DBIx schema change for SearchMarcToField 2022-05-02 11:22:57 -10:00
Serial.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Serialitem.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
Session.pm Bug 28489: DBIC schema changes 2021-06-14 17:35:19 +02:00
SmsProvider.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
SmtpServer.pm Bug 22343: Add new tables schema file 2020-10-02 10:54:40 +02:00
SocialData.pm Bug 22782: DBIC update for SocialData 2019-05-10 12:14:00 +00:00
SpecialHoliday.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Statistic.pm Bug 7021: DBIC schema 2022-09-22 09:41:31 -03:00
Stockrotationitem.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Stockrotationrota.pm Bug 30565: DBIx schema change for stockrotationrotas 2022-05-02 11:22:56 -10:00
Stockrotationstage.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Subscription.pm Bug 24010: DBIC update 2022-07-05 14:45:47 -03:00
SubscriptionFrequency.pm Bug 23152: Fix more pluralisation (and add tests) 2019-10-24 17:01:45 +01:00
SubscriptionNumberpattern.pm Bug 23152: Implement koha_object[s]_class when needed 2019-06-24 16:36:57 +01:00
Subscriptionhistory.pm Bug 21901: DBRev 19.12.00.076 2020-04-17 10:17:32 +01:00
Subscriptionroutinglist.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Suggestion.pm Bug 31374: DBIC schema 2022-09-07 13:40:39 -07:00
Systempreference.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
TablesSetting.pm Bug 29648: DBIC Schema changes 2022-04-27 11:20:44 -10:00
Tag.pm
…
TagAll.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
TagsApproval.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
TagsIndex.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
TmpHoldsqueue.pm Bug 24860: DBIC schema 2022-11-04 19:44:59 -03:00
TransportCost.pm
…
UploadedFile.pm
…
UserPermission.pm Bug 30060: Update DBIC Schema 2022-02-24 14:35:36 -10:00
Userflag.pm
…
VendorEdiAccount.pm Bug 30130: DBIC Update 2022-04-13 15:55:39 +02:00
Virtualshelfcontent.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Virtualshelfshare.pm Bug 26947: DBIC schema changes 2021-01-21 14:39:51 +01:00
Virtualshelve.pm Bug 26346: (follow-up) Fixing for QA tool 2022-04-12 17:13:02 +02:00
Z3950server.pm Bug 30571: DBIC schema 2022-10-03 08:30:37 -03:00
Zebraqueue.pm
…