From a502b14bf062fc3abb0065849fed9df6d923bac2 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 15 Nov 2024 16:12:33 +0100 Subject: [PATCH] Bug 38460: [WIP] Enable translations for authorised values (alternative) As it's a WIP, not every place shows the translated description. One place where it works is the items table in the "edit item" page Test plan: 1. Edit one of LOC authorised values, you should see links to translate descriptions (for both staff and opac) Add translations for a language 2. Switch to this language, if not already done 3. Find a biblio record, edit one of its items and change the loc field to the value you translated. Save. 4. Now in the table at the top of the page you should see the translated description --- C4/Biblio.pm | 29 ++- Koha/AuthorisedValue.pm | 12 ++ Koha/Schema/Result/AccountCreditType.pm | 6 +- Koha/Schema/Result/AccountDebitType.pm | 14 +- Koha/Schema/Result/AccountOffset.pm | 14 +- Koha/Schema/Result/Accountline.pm | 59 ++++++- Koha/Schema/Result/ActionLog.pm | 22 +-- Koha/Schema/Result/AdditionalContent.pm | 18 +- Koha/Schema/Result/AdditionalField.pm | 16 +- Koha/Schema/Result/AdditionalFieldValue.pm | 12 +- Koha/Schema/Result/AdvancedEditorMacro.pm | 14 +- Koha/Schema/Result/ApiKey.pm | 14 +- Koha/Schema/Result/Aqbasket.pm | 36 +--- Koha/Schema/Result/Aqbookseller.pm | 78 ++++----- Koha/Schema/Result/Aqbudget.pm | 49 ++---- Koha/Schema/Result/Aqbudgetperiod.pm | 22 +-- Koha/Schema/Result/Aqcontact.pm | 30 +--- Koha/Schema/Result/Aqinvoice.pm | 22 +-- Koha/Schema/Result/AqinvoiceAdjustment.pm | 20 +-- Koha/Schema/Result/Aqorder.pm | 112 ++---------- Koha/Schema/Result/AqorderUser.pm | 8 +- Koha/Schema/Result/AqordersClaim.pm | 10 +- Koha/Schema/Result/AqordersItem.pm | 10 +- Koha/Schema/Result/ArticleRequest.pm | 6 +- Koha/Schema/Result/AuthHeader.pm | 21 ++- Koha/Schema/Result/AuthorisedValue.pm | 26 ++- Koha/Schema/Result/Biblio.pm | 49 ++---- Koha/Schema/Result/BiblioFramework.pm | 8 +- Koha/Schema/Result/BiblioMetadata.pm | 8 +- Koha/Schema/Result/Biblioitem.pm | 24 +-- Koha/Schema/Result/Booking.pm | 42 +++-- Koha/Schema/Result/Borrower.pm | 165 ++---------------- Koha/Schema/Result/BorrowerAttribute.pm | 10 +- Koha/Schema/Result/BorrowerAttributeType.pm | 76 ++++---- Koha/Schema/Result/BorrowerDebarment.pm | 20 +-- Koha/Schema/Result/BorrowerFile.pm | 18 +- Koha/Schema/Result/BorrowerModification.pm | 19 +- .../Schema/Result/BorrowerPasswordRecovery.pm | 10 +- Koha/Schema/Result/Branch.pm | 50 +----- Koha/Schema/Result/Branchtransfer.pm | 22 +-- Koha/Schema/Result/CashRegister.pm | 18 +- Koha/Schema/Result/CashRegisterAction.pm | 14 +- Koha/Schema/Result/Category.pm | 77 +++----- Koha/Schema/Result/CheckoutRenewal.pm | 6 +- Koha/Schema/Result/City.pm | 14 +- Koha/Schema/Result/ClubHold.pm | 12 +- Koha/Schema/Result/Collection.pm | 6 +- Koha/Schema/Result/Course.pm | 24 +-- Koha/Schema/Result/CourseInstructor.pm | 8 +- Koha/Schema/Result/CourseItem.pm | 52 +----- Koha/Schema/Result/CourseReserve.pm | 12 +- Koha/Schema/Result/CoverImage.pm | 18 +- Koha/Schema/Result/CreatorLayout.pm | 28 +-- Koha/Schema/Result/Currency.pm | 12 +- Koha/Schema/Result/Deletedbiblio.pm | 34 +--- Koha/Schema/Result/DeletedbiblioMetadata.pm | 8 +- Koha/Schema/Result/Deletedbiblioitem.pm | 24 +-- Koha/Schema/Result/Deletedborrower.pm | 165 ++---------------- Koha/Schema/Result/Deleteditem.pm | 101 +---------- Koha/Schema/Result/Desk.pm | 10 +- Koha/Schema/Result/ErmCounterFile.pm | 8 +- Koha/Schema/Result/ErmCounterLog.pm | 8 +- Koha/Schema/Result/ErmDocument.pm | 6 +- Koha/Schema/Result/HouseboundProfile.pm | 20 +-- Koha/Schema/Result/HouseboundRole.pm | 10 +- Koha/Schema/Result/HouseboundVisit.pm | 16 +- Koha/Schema/Result/Illcomment.pm | 14 +- Koha/Schema/Result/Illrequest.pm | 38 +--- Koha/Schema/Result/Illrequestattribute.pm | 12 +- Koha/Schema/Result/ImportBatch.pm | 30 +--- Koha/Schema/Result/ImportBatchProfile.pm | 28 +-- Koha/Schema/Result/ImportRecordMatch.pm | 12 +- Koha/Schema/Result/Issue.pm | 57 +++--- Koha/Schema/Result/Item.pm | 101 +---------- Koha/Schema/Result/Itemtype.pm | 12 +- Koha/Schema/Result/LanguageScriptBidi.pm | 8 +- Koha/Schema/Result/LanguageSubtagRegistry.pm | 8 +- Koha/Schema/Result/Letter.pm | 28 +-- Koha/Schema/Result/LibraryGroup.pm | 28 +-- Koha/Schema/Result/Linktracker.pm | 16 +- Koha/Schema/Result/MarcMatcher.pm | 24 ++- .../Result/MarcModificationTemplateAction.pm | 8 +- Koha/Schema/Result/Message.pm | 20 +-- Koha/Schema/Result/MiscFile.pm | 20 +-- Koha/Schema/Result/NeedMergeAuthority.pm | 14 +- Koha/Schema/Result/OauthAccessToken.pm | 10 +- Koha/Schema/Result/OldIssue.pm | 61 +++---- Koha/Schema/Result/OldReserve.pm | 59 ++----- Koha/Schema/Result/Overduerule.pm | 28 +-- Koha/Schema/Result/PatronList.pm | 10 +- Koha/Schema/Result/PatronListPatron.pm | 10 +- Koha/Schema/Result/Patronimage.pm | 10 +- Koha/Schema/Result/ProblemReport.pm | 24 +-- .../Result/PseudonymizedBorrowerAttribute.pm | 8 +- Koha/Schema/Result/Quote.pm | 12 +- Koha/Schema/Result/Rating.pm | 10 +- Koha/Schema/Result/Recall.pm | 34 +--- Koha/Schema/Result/RepeatableHoliday.pm | 27 ++- Koha/Schema/Result/ReportsDictionary.pm | 18 +- Koha/Schema/Result/Reserve.pm | 51 ++---- Koha/Schema/Result/ReturnClaim.pm | 28 +-- Koha/Schema/Result/Review.pm | 16 +- Koha/Schema/Result/SavedSql.pm | 20 +-- Koha/Schema/Result/SearchField.pm | 16 +- Koha/Schema/Result/SearchHistory.pm | 20 +-- Koha/Schema/Result/SearchMarcToField.pm | 42 ++--- Koha/Schema/Result/Serial.pm | 34 +--- Koha/Schema/Result/SpecialHoliday.pm | 29 ++- Koha/Schema/Result/Statistic.pm | 26 +-- Koha/Schema/Result/Stockrotationitem.pm | 12 +- Koha/Schema/Result/Stockrotationrota.pm | 12 +- Koha/Schema/Result/Stockrotationstage.pm | 14 +- Koha/Schema/Result/Subscription.pm | 76 +++----- Koha/Schema/Result/Subscriptionroutinglist.pm | 12 +- Koha/Schema/Result/Suggestion.pm | 70 +------- Koha/Schema/Result/Systempreference.pm | 14 +- Koha/Schema/Result/TablesSetting.pm | 20 ++- Koha/Schema/Result/TagAll.pm | 16 +- Koha/Schema/Result/TagsApproval.pm | 14 +- Koha/Schema/Result/TagsIndex.pm | 10 +- Koha/Schema/Result/Ticket.pm | 6 +- Koha/Schema/Result/TicketUpdate.pm | 6 +- Koha/Schema/Result/TmpHoldsqueue.pm | 6 +- Koha/Schema/Result/VendorEdiAccount.pm | 12 +- Koha/Schema/Result/Virtualshelfcontent.pm | 12 +- Koha/Schema/Result/Virtualshelfshare.pm | 14 +- Koha/Schema/Result/Virtualshelve.pm | 20 +-- Koha/Schema/Result/Z3950server.pm | 34 +--- Koha/Template/Plugin/AuthorisedValues.pm | 6 +- .../data/mysql/atomicupdate/bug-38460.pl | 28 +++ .../en/modules/admin/authorised_values.tt | 3 + 131 files changed, 792 insertions(+), 2618 deletions(-) create mode 100755 installer/data/mysql/atomicupdate/bug-38460.pl diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 6f162e2119..937ac608be 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1502,25 +1502,18 @@ sub GetAuthorisedValueDesc { my $dbh = C4::Context->dbh; if ( $category ne "" ) { - $cache_key = "AV_descriptions:" . $category; - my $av_descriptions = $cache->get_from_cache( $cache_key, { unsafe => 1 } ); - if ( !$av_descriptions ) { - $av_descriptions = { - map { - $_->authorised_value => - { lib => $_->lib, lib_opac => $_->lib_opac } - } Koha::AuthorisedValues->search( - { category => $category }, - { - columns => [ 'authorised_value', 'lib_opac', 'lib' ] - } - )->as_list - }; - $cache->set_in_cache($cache_key, $av_descriptions); + my $memory_cache = Koha::Cache::Memory::Lite->get_instance(); + my $cache_key = 'GetAuthorisedValueDesc:authorised_values'; + my $authorised_values = $memory_cache->get_from_cache($cache_key); + unless ($authorised_values) { + $authorised_values = { map { $_->authorised_value => $_ } Koha::AuthorisedValues->as_list }; + $memory_cache->set_in_cache($cache_key, $authorised_values); } - return ( $opac && $av_descriptions->{$value}->{'lib_opac'} ) - ? $av_descriptions->{$value}->{'lib_opac'} - : $av_descriptions->{$value}->{'lib'}; + my $av = $authorised_values->{$value}; + return unless $av; + + my $lang = C4::Languages::getlanguage(); + return $opac ? $av->opac_translated_description($lang) : $av->localization('lib', $lang); } else { return $value; # if nothing is found return the original value } diff --git a/Koha/AuthorisedValue.pm b/Koha/AuthorisedValue.pm index 5669ab6086..999f0c45f1 100644 --- a/Koha/AuthorisedValue.pm +++ b/Koha/AuthorisedValue.pm @@ -103,6 +103,18 @@ sub opac_description { return $self->lib_opac() || $self->lib(); } +=head3 opac_translated_description + +my $description = $av->opac_translated_description($lang); + +=cut + +sub opac_translated_description { + my ($self, $lang) = @_; + + return $self->localization('lib_opac', $lang) || $self->localization('lib', $lang); +} + =head3 to_api_mapping This method returns the mapping for representing a Koha::AuthorisedValue object diff --git a/Koha/Schema/Result/AccountCreditType.pm b/Koha/Schema/Result/AccountCreditType.pm index d246ebad99..66017bec3a 100644 --- a/Koha/Schema/Result/AccountCreditType.pm +++ b/Koha/Schema/Result/AccountCreditType.pm @@ -61,8 +61,6 @@ Is autogeneration of credit number enabled for this credit type default_value: 0 is_nullable: 0 -boolean flag to denote if this till is archived or not - =cut __PACKAGE__->add_columns( @@ -125,8 +123,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pqgg1XzDq/zm/epjihLT8Q +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9z6Ihv0XgezUAG/7CnUyJQ __PACKAGE__->add_columns( '+is_system' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/AccountDebitType.pm b/Koha/Schema/Result/AccountDebitType.pm index 7b00d5883d..d0df42cdaf 100644 --- a/Koha/Schema/Result/AccountDebitType.pm +++ b/Koha/Schema/Result/AccountDebitType.pm @@ -41,15 +41,11 @@ __PACKAGE__->table("account_debit_types"); default_value: 1 is_nullable: 0 -boolean flag to denote if this debit type is available for manual invoicing - =head2 can_be_sold data_type: 'tinyint' default_value: 0 - is_nullable: 0 - -boolean flag to denote if this debit type is available at point of sale + is_nullable: 1 =head2 default_amount @@ -69,8 +65,6 @@ boolean flag to denote if this debit type is available at point of sale default_value: 0 is_nullable: 0 -boolean flag to denote if this till is archived or not - =head2 restricts_checkouts data_type: 'tinyint' @@ -89,7 +83,7 @@ __PACKAGE__->add_columns( "can_be_invoiced", { data_type => "tinyint", default_value => 1, is_nullable => 0 }, "can_be_sold", - { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "default_amount", { data_type => "decimal", is_nullable => 1, size => [28, 6] }, "is_system", @@ -145,8 +139,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-01-10 14:49:18 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9+mMPMSWcc/PwryYNQ2Jqg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hYxJcO3aBCn6JuKHhlxWBA __PACKAGE__->add_columns( '+is_system' => { is_boolean => 1 } diff --git a/Koha/Schema/Result/AccountOffset.pm b/Koha/Schema/Result/AccountOffset.pm index 1b1e4bea09..c31397b2e4 100644 --- a/Koha/Schema/Result/AccountOffset.pm +++ b/Koha/Schema/Result/AccountOffset.pm @@ -29,40 +29,30 @@ __PACKAGE__->table("account_offsets"); is_auto_increment: 1 is_nullable: 0 -unique identifier for each offset - =head2 credit_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -The id of the accountline the increased the patron's balance - =head2 debit_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -The id of the accountline that decreased the patron's balance - =head2 type data_type: 'enum' extra: {list => ["CREATE","APPLY","VOID","OVERDUE_INCREASE","OVERDUE_DECREASE"]} is_nullable: 0 -The type of offset this is - =head2 amount data_type: 'decimal' is_nullable: 0 size: [26,6] -The amount of the change - =head2 created_on data_type: 'timestamp' @@ -159,8 +149,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-21 15:27:32 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zCeE/SWvdz898zlfcvfRGg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UC1xDrjAuAD1F4qECetAog sub koha_object_class { 'Koha::Account::Offset'; diff --git a/Koha/Schema/Result/Accountline.pm b/Koha/Schema/Result/Accountline.pm index d1ba673cf2..a2a69886ac 100644 --- a/Koha/Schema/Result/Accountline.pm +++ b/Koha/Schema/Result/Accountline.pm @@ -32,6 +32,13 @@ __PACKAGE__->table("accountlines"); =head2 issue_id data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +=head2 old_issue_id + + data_type: 'integer' + is_foreign_key: 1 is_nullable: 1 =head2 borrowernumber @@ -97,8 +104,6 @@ autogenerated number for credits is_nullable: 1 size: 80 -optional authorised value PAYMENT_TYPE - =head2 amountoutstanding data_type: 'decimal' @@ -142,15 +147,15 @@ optional authorised value PAYMENT_TYPE is_nullable: 1 size: 10 -the branchcode of the library where a payment was made, a manual invoice created, etc. - =cut __PACKAGE__->add_columns( "accountlines_id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "issue_id", - { data_type => "integer", is_nullable => 1 }, + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "old_issue_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "borrowernumber", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "itemnumber", @@ -335,6 +340,26 @@ __PACKAGE__->belongs_to( }, ); +=head2 issue + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "issue", + "Koha::Schema::Result::Issue", + { issue_id => "issue_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + =head2 itemnumber Type: belongs_to @@ -375,6 +400,26 @@ __PACKAGE__->belongs_to( }, ); +=head2 old_issue + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "old_issue", + "Koha::Schema::Result::OldIssue", + { issue_id => "old_issue_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + =head2 register Type: belongs_to @@ -396,8 +441,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjQR7oUkefiDt+eV69jZ3A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K4NaFTLMZFkAO9kFf0FqLQ =head2 patron diff --git a/Koha/Schema/Result/ActionLog.pm b/Koha/Schema/Result/ActionLog.pm index c97ffdcf21..25c995c64a 100644 --- a/Koha/Schema/Result/ActionLog.pm +++ b/Koha/Schema/Result/ActionLog.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("action_logs"); is_auto_increment: 1 is_nullable: 0 -unique identifier for each action - =head2 timestamp data_type: 'timestamp' @@ -38,52 +36,38 @@ unique identifier for each action default_value: current_timestamp is_nullable: 0 -the date and time the action took place - =head2 user data_type: 'integer' default_value: 0 is_nullable: 0 -the staff member who performed the action (borrowers.borrowernumber) - =head2 module data_type: 'mediumtext' is_nullable: 1 -the module this action was taken against - =head2 action data_type: 'mediumtext' is_nullable: 1 -the action (includes things like DELETED, ADDED, MODIFY, etc) - =head2 object data_type: 'integer' is_nullable: 1 -the object that the action was taken against (could be a borrowernumber, itemnumber, etc) - =head2 info data_type: 'mediumtext' is_nullable: 1 -information about the action (usually includes SQL statement) - =head2 interface data_type: 'varchar' is_nullable: 1 size: 30 -the context this action was taken in - =head2 script data_type: 'varchar' @@ -104,8 +88,6 @@ An optional stack trace enabled by ActionLogsTraceDepth data_type: 'longtext' is_nullable: 1 -Stores a diff of the changed object - =cut __PACKAGE__->add_columns( @@ -151,8 +133,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("action_id"); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 14:28:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8ZJaG4iJAbay93LAg5xPsQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FaRCXL9HY8tDIdIAVV17+w # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/AdditionalContent.pm b/Koha/Schema/Result/AdditionalContent.pm index c559107ca7..59cce8e3dd 100644 --- a/Koha/Schema/Result/AdditionalContent.pm +++ b/Koha/Schema/Result/AdditionalContent.pm @@ -46,8 +46,6 @@ category for the additional content is_nullable: 0 size: 100 -code to group content per lang - =head2 location data_type: 'varchar' @@ -63,16 +61,12 @@ location of the additional content is_nullable: 1 size: 10 -branch code users to create branch specific additional content, NULL is every branch. - =head2 published_on data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -publication date - =head2 updated_on data_type: 'timestamp' @@ -80,31 +74,23 @@ publication date default_value: current_timestamp is_nullable: 0 -last modification - =head2 expirationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the additional content is set to expire or no longer be visible - =head2 number data_type: 'integer' is_nullable: 1 -the order in which this additional content appears in that specific location - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -The user who created the additional content - =cut __PACKAGE__->add_columns( @@ -231,8 +217,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-03 07:19:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0w/fOUAy+4V4aVls/i7Wig +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PlwFnZyxRlTox7dDo4eH7w # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/AdditionalField.pm b/Koha/Schema/Result/AdditionalField.pm index 51e184d5ff..6c1521e542 100644 --- a/Koha/Schema/Result/AdditionalField.pm +++ b/Koha/Schema/Result/AdditionalField.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("additional_fields"); is_auto_increment: 1 is_nullable: 0 -primary key identifier - =head2 tablename data_type: 'varchar' @@ -38,8 +36,6 @@ primary key identifier is_nullable: 0 size: 255 -tablename of the new field - =head2 name data_type: 'varchar' @@ -47,8 +43,6 @@ tablename of the new field is_nullable: 0 size: 255 -name of the field - =head2 authorised_value_category data_type: 'varchar' @@ -64,8 +58,6 @@ is an authorised value category is_nullable: 0 size: 16 -contains the marc field to copied into the record - =head2 marcfield_mode data_type: 'enum' @@ -81,15 +73,13 @@ mode of operation (get or set) for marcfield default_value: 0 is_nullable: 0 -is the field searchable? - =head2 repeatable data_type: 'tinyint' default_value: 0 is_nullable: 0 -is the field repeatable? +does the field allow more than one option? =cut @@ -163,8 +153,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8ZpUf0l+6h44AHDf7eV/1g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+3pEANYwK5xbGbGkYFh81g __PACKAGE__->add_columns( '+repeatable' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/AdditionalFieldValue.pm b/Koha/Schema/Result/AdditionalFieldValue.pm index 36703647a9..6ed2b9e033 100644 --- a/Koha/Schema/Result/AdditionalFieldValue.pm +++ b/Koha/Schema/Result/AdditionalFieldValue.pm @@ -29,23 +29,17 @@ __PACKAGE__->table("additional_field_values"); is_auto_increment: 1 is_nullable: 0 -primary key identifier - =head2 field_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key references additional_fields(id) - =head2 record_id data_type: 'integer' is_nullable: 0 -record_id - =head2 value data_type: 'varchar' @@ -53,8 +47,6 @@ record_id is_nullable: 0 size: 255 -value for this field - =cut __PACKAGE__->add_columns( @@ -98,8 +90,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0XP6wuopWZEao4nJd4PF5g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t2xcroWAVtsBBmEI+NGEEQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/AdvancedEditorMacro.pm b/Koha/Schema/Result/AdvancedEditorMacro.pm index 5cd53cee35..9eba955998 100644 --- a/Koha/Schema/Result/AdvancedEditorMacro.pm +++ b/Koha/Schema/Result/AdvancedEditorMacro.pm @@ -29,39 +29,29 @@ __PACKAGE__->table("advanced_editor_macros"); is_auto_increment: 1 is_nullable: 0 -Unique ID of the macro - =head2 name data_type: 'varchar' is_nullable: 0 size: 80 -Name of the macro - =head2 macro data_type: 'longtext' is_nullable: 1 -The macro code itself - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -ID of the borrower who created this macro - =head2 shared data_type: 'tinyint' default_value: 0 is_nullable: 1 -Bit to define if shared or private macro - =cut __PACKAGE__->add_columns( @@ -112,8 +102,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:abYuKrQLDx8KB3ZdEGBlqA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PstMExAyyqnp0ZoQoMtE2g __PACKAGE__->add_columns( '+shared' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/ApiKey.pm b/Koha/Schema/Result/ApiKey.pm index 55946b34b9..8f74731ed0 100644 --- a/Koha/Schema/Result/ApiKey.pm +++ b/Koha/Schema/Result/ApiKey.pm @@ -29,40 +29,30 @@ __PACKAGE__->table("api_keys"); is_nullable: 0 size: 191 -API client ID - =head2 secret data_type: 'varchar' is_nullable: 0 size: 191 -API client secret used for API authentication - =head2 description data_type: 'varchar' is_nullable: 0 size: 255 -API client description - =head2 patron_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -Foreign key to the borrowers table - =head2 active data_type: 'tinyint' default_value: 1 is_nullable: 0 -0 means this API key is revoked - =cut __PACKAGE__->add_columns( @@ -122,8 +112,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2yvvoid4Taq7cjXFDuMoAA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CLvpwKD/mzeNSyEyM5lYCA __PACKAGE__->add_columns( '+active' => { is_boolean => 1 } diff --git a/Koha/Schema/Result/Aqbasket.pm b/Koha/Schema/Result/Aqbasket.pm index eb2ce481b7..242cb5a4fd 100644 --- a/Koha/Schema/Result/Aqbasket.pm +++ b/Koha/Schema/Result/Aqbasket.pm @@ -29,54 +29,40 @@ __PACKAGE__->table("aqbasket"); is_auto_increment: 1 is_nullable: 0 -primary key, Koha defined number - =head2 basketname data_type: 'varchar' is_nullable: 1 size: 50 -name given to the basket at creation - =head2 note data_type: 'longtext' is_nullable: 1 -the internal note added at basket creation - =head2 booksellernote data_type: 'longtext' is_nullable: 1 -the vendor note added at basket creation - =head2 contractnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -links this basket to the aqcontract table (aqcontract.contractnumber) - =head2 creationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the basket was created - =head2 closedate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the basket was closed - =head2 booksellerid data_type: 'integer' @@ -84,47 +70,35 @@ the date the basket was closed is_foreign_key: 1 is_nullable: 0 -the Koha assigned ID for the vendor (aqbooksellers.id) - =head2 authorisedby data_type: 'varchar' is_nullable: 1 size: 10 -the borrowernumber of the person who created the basket - =head2 booksellerinvoicenumber data_type: 'longtext' is_nullable: 1 -appears to always be NULL - =head2 basketgroupid data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -links this basket to its group (aqbasketgroups.id) - =head2 deliveryplace data_type: 'varchar' is_nullable: 1 size: 10 -basket delivery place - =head2 billingplace data_type: 'varchar' is_nullable: 1 size: 10 -basket billing place - =head2 branch data_type: 'varchar' @@ -132,24 +106,18 @@ basket billing place is_nullable: 1 size: 10 -basket branch - =head2 is_standing data_type: 'tinyint' default_value: 0 is_nullable: 0 -orders in this basket are standing - =head2 create_items data_type: 'enum' extra: {list => ["ordering","receiving","cataloguing"]} is_nullable: 1 -when items should be created for orders in this basket - =cut __PACKAGE__->add_columns( @@ -341,8 +309,8 @@ Composing rels: L -> borrowernumber __PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6NoSiMu1GqEqT7F5wAVeig +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TeaaOmdPMrA/1v2AfWirZA __PACKAGE__->has_many( "additional_field_values", diff --git a/Koha/Schema/Result/Aqbookseller.pm b/Koha/Schema/Result/Aqbookseller.pm index f9ce48cae4..da68a7b670 100644 --- a/Koha/Schema/Result/Aqbookseller.pm +++ b/Koha/Schema/Result/Aqbookseller.pm @@ -29,58 +29,42 @@ __PACKAGE__->table("aqbooksellers"); is_auto_increment: 1 is_nullable: 0 -primary key and unique identifier assigned by Koha - =head2 name data_type: 'longtext' is_nullable: 0 -vendor name - =head2 address1 data_type: 'longtext' is_nullable: 1 -first line of vendor physical address - =head2 address2 data_type: 'longtext' is_nullable: 1 -second line of vendor physical address - =head2 address3 data_type: 'longtext' is_nullable: 1 -third line of vendor physical address - =head2 address4 data_type: 'longtext' is_nullable: 1 -fourth line of vendor physical address - =head2 phone data_type: 'varchar' is_nullable: 1 size: 30 -vendor phone number - =head2 accountnumber data_type: 'longtext' is_nullable: 1 -vendor account number - =head2 type data_type: 'varchar' @@ -92,30 +76,22 @@ vendor account number data_type: 'longtext' is_nullable: 1 -order notes - =head2 postal data_type: 'longtext' is_nullable: 1 -vendor postal address (all lines) - =head2 url data_type: 'varchar' is_nullable: 1 size: 255 -vendor web address - =head2 active data_type: 'tinyint' is_nullable: 1 -is this vendor active (1 for yes, 0 for no) - =head2 listprice data_type: 'varchar' @@ -123,8 +99,6 @@ is this vendor active (1 for yes, 0 for no) is_nullable: 1 size: 10 -currency code for list prices - =head2 invoiceprice data_type: 'varchar' @@ -132,68 +106,50 @@ currency code for list prices is_nullable: 1 size: 10 -currency code for invoice prices - =head2 gstreg data_type: 'tinyint' is_nullable: 1 -is your library charged tax (1 for yes, 0 for no) - =head2 listincgst data_type: 'tinyint' is_nullable: 1 -is tax included in list prices (1 for yes, 0 for no) - =head2 invoiceincgst data_type: 'tinyint' is_nullable: 1 -is tax included in invoice prices (1 for yes, 0 for no) - =head2 tax_rate data_type: 'decimal' is_nullable: 1 size: [6,4] -the tax rate the library is charged - =head2 discount data_type: 'float' is_nullable: 1 size: [6,4] -discount offered on all items ordered from this vendor - =head2 fax data_type: 'varchar' is_nullable: 1 size: 50 -vendor fax number - =head2 deliverytime data_type: 'integer' is_nullable: 1 -vendor delivery time - =head2 external_id data_type: 'varchar' is_nullable: 1 size: 255 -external id of the vendor - =cut __PACKAGE__->add_columns( @@ -494,6 +450,36 @@ __PACKAGE__->belongs_to( }, ); +=head2 marc_order_accounts + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "marc_order_accounts", + "Koha::Schema::Result::MarcOrderAccount", + { "foreign.vendor_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 subscriptions + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "subscriptions", + "Koha::Schema::Result::Subscription", + { "foreign.aqbooksellerid" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 vendor_edi_accounts Type: has_many @@ -510,8 +496,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-30 09:54:35 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xjeOqpcdN3Kb1wmLGDjzLg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3sUuINV4jexCOmS9Fo4S7Q __PACKAGE__->add_columns( '+active' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Aqbudget.pm b/Koha/Schema/Result/Aqbudget.pm index 07612aa149..0b86d30eca 100644 --- a/Koha/Schema/Result/Aqbudget.pm +++ b/Koha/Schema/Result/Aqbudget.pm @@ -29,39 +29,29 @@ __PACKAGE__->table("aqbudgets"); is_auto_increment: 1 is_nullable: 0 -primary key and unique number assigned to each fund by Koha - =head2 budget_parent_id data_type: 'integer' is_nullable: 1 -if this fund is a child of another this will include the parent id (aqbudgets.budget_id) - =head2 budget_code data_type: 'varchar' is_nullable: 1 size: 30 -code assigned to the fund by the user - =head2 budget_name data_type: 'varchar' is_nullable: 1 size: 80 -name assigned to the fund by the user - =head2 budget_branchcode data_type: 'varchar' is_nullable: 1 size: 10 -branch that this fund belongs to (branches.branchcode) - =head2 budget_amount data_type: 'decimal' @@ -69,8 +59,6 @@ branch that this fund belongs to (branches.branchcode) is_nullable: 1 size: [28,6] -total amount for this fund - =head2 budget_encumb data_type: 'decimal' @@ -78,8 +66,6 @@ total amount for this fund is_nullable: 1 size: [28,6] -budget warning at percentage - =head2 budget_expend data_type: 'decimal' @@ -87,15 +73,11 @@ budget warning at percentage is_nullable: 1 size: [28,6] -budget warning at amount - =head2 budget_notes data_type: 'longtext' is_nullable: 1 -notes related to this fund - =head2 timestamp data_type: 'timestamp' @@ -103,47 +85,35 @@ notes related to this fund default_value: current_timestamp is_nullable: 0 -date and time this fund was last touched (created or modified) - =head2 budget_period_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -id of the budget that this fund belongs to (aqbudgetperiods.budget_period_id) - =head2 sort1_authcat data_type: 'varchar' is_nullable: 1 size: 80 -statistical category for this fund - =head2 sort2_authcat data_type: 'varchar' is_nullable: 1 size: 80 -second statistical category for this fund - =head2 budget_owner_id data_type: 'integer' is_nullable: 1 -borrowernumber of the person who owns this fund (borrowers.borrowernumber) - =head2 budget_permission data_type: 'integer' default_value: 0 is_nullable: 1 -level of permission for this fund (used only by the owner, only by the library, or anyone) - =cut __PACKAGE__->add_columns( @@ -303,6 +273,21 @@ __PACKAGE__->belongs_to( { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); +=head2 marc_order_accounts + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "marc_order_accounts", + "Koha::Schema::Result::MarcOrderAccount", + { "foreign.budget_id" => "self.budget_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 suggestions Type: has_many @@ -344,8 +329,8 @@ Composing rels: L -> borrowernumber __PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-19 17:02:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5solU2GxDRyXxtWgpbcGVQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HHjOfFq3ets5FzzId2iU5w __PACKAGE__->belongs_to( "budget", diff --git a/Koha/Schema/Result/Aqbudgetperiod.pm b/Koha/Schema/Result/Aqbudgetperiod.pm index 211cb9504f..9cfc34279a 100644 --- a/Koha/Schema/Result/Aqbudgetperiod.pm +++ b/Koha/Schema/Result/Aqbudgetperiod.pm @@ -29,70 +29,52 @@ __PACKAGE__->table("aqbudgetperiods"); is_auto_increment: 1 is_nullable: 0 -primary key and unique number assigned by Koha - =head2 budget_period_startdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 0 -date when the budget starts - =head2 budget_period_enddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 0 -date when the budget ends - =head2 budget_period_active data_type: 'tinyint' default_value: 0 is_nullable: 1 -whether this budget is active or not (1 for yes, 0 for no) - =head2 budget_period_description data_type: 'longtext' is_nullable: 1 -description assigned to this budget - =head2 budget_period_total data_type: 'decimal' is_nullable: 1 size: [28,6] -total amount available in this budget - =head2 budget_period_locked data_type: 'tinyint' is_nullable: 1 -whether this budget is locked or not (1 for yes, 0 for no) - =head2 sort1_authcat data_type: 'varchar' is_nullable: 1 size: 10 -statistical category for this budget - =head2 sort2_authcat data_type: 'varchar' is_nullable: 1 size: 10 -second statistical category for this budget - =cut __PACKAGE__->add_columns( @@ -146,8 +128,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/ipbU/Wrqy3pDInlmLOTw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NeJG180XyLOl3/+CqWPHRA sub koha_object_class { 'Koha::Acquisition::Budget'; diff --git a/Koha/Schema/Result/Aqcontact.pm b/Koha/Schema/Result/Aqcontact.pm index 295ee9187e..7958415697 100644 --- a/Koha/Schema/Result/Aqcontact.pm +++ b/Koha/Schema/Result/Aqcontact.pm @@ -29,103 +29,77 @@ __PACKAGE__->table("aqcontacts"); is_auto_increment: 1 is_nullable: 0 -primary key and unique number assigned by Koha - =head2 name data_type: 'varchar' is_nullable: 1 size: 100 -name of contact at vendor - =head2 position data_type: 'varchar' is_nullable: 1 size: 100 -contact person's position - =head2 phone data_type: 'varchar' is_nullable: 1 size: 100 -contact's phone number - =head2 altphone data_type: 'varchar' is_nullable: 1 size: 100 -contact's alternate phone number - =head2 fax data_type: 'varchar' is_nullable: 1 size: 100 -contact's fax number - =head2 email data_type: 'varchar' is_nullable: 1 size: 100 -contact's email address - =head2 notes data_type: 'longtext' is_nullable: 1 -notes related to the contact - =head2 orderacquisition data_type: 'tinyint' default_value: 0 is_nullable: 0 -should this contact receive acquisition orders - =head2 claimacquisition data_type: 'tinyint' default_value: 0 is_nullable: 0 -should this contact receive acquisitions claims - =head2 claimissues data_type: 'tinyint' default_value: 0 is_nullable: 0 -should this contact receive serial claims - =head2 acqprimary data_type: 'tinyint' default_value: 0 is_nullable: 0 -is this the primary contact for acquisitions messages - =head2 serialsprimary data_type: 'tinyint' default_value: 0 is_nullable: 0 -is this the primary contact for serials messages - =head2 booksellerid data_type: 'integer' @@ -195,8 +169,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IefjqDsoXPLWKSfhYGne1A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LzCPsNQtARK7I9GBJb9XcA __PACKAGE__->add_columns( '+orderacquisition' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Aqinvoice.pm b/Koha/Schema/Result/Aqinvoice.pm index 89fea491df..63fd0573a9 100644 --- a/Koha/Schema/Result/Aqinvoice.pm +++ b/Koha/Schema/Result/Aqinvoice.pm @@ -29,71 +29,53 @@ __PACKAGE__->table("aqinvoices"); is_auto_increment: 1 is_nullable: 0 -ID of the invoice, primary key - =head2 invoicenumber data_type: 'longtext' is_nullable: 0 -Name of invoice - =head2 booksellerid data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key to aqbooksellers - =head2 shipmentdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date of shipment - =head2 billingdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date of billing - =head2 closedate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -invoice close date, NULL means the invoice is open - =head2 shipmentcost data_type: 'decimal' is_nullable: 1 size: [28,6] -shipment cost - =head2 shipmentcost_budgetid data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key to aqbudgets, link the shipment cost to a budget - =head2 message_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key to edifact invoice message - =cut __PACKAGE__->add_columns( @@ -217,8 +199,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LkekSbup37Z2WVnU/c9K+g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LYqmd/oSMbfNkSsgpdYn3g __PACKAGE__->has_many( "additional_field_values", diff --git a/Koha/Schema/Result/AqinvoiceAdjustment.pm b/Koha/Schema/Result/AqinvoiceAdjustment.pm index 2977f2a4ce..5ef3b25742 100644 --- a/Koha/Schema/Result/AqinvoiceAdjustment.pm +++ b/Koha/Schema/Result/AqinvoiceAdjustment.pm @@ -29,55 +29,41 @@ __PACKAGE__->table("aqinvoice_adjustments"); is_auto_increment: 1 is_nullable: 0 -primary key for adjustments - =head2 invoiceid data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key to link an adjustment to an invoice - =head2 adjustment data_type: 'decimal' is_nullable: 1 size: [28,6] -amount of adjustment - =head2 reason data_type: 'varchar' is_nullable: 1 size: 80 -reason for adjustment defined by authorised values in ADJ_REASON category - =head2 note data_type: 'mediumtext' is_nullable: 1 -text to explain adjustment - =head2 budget_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -optional link to budget to apply adjustment to - =head2 encumber_open data_type: 'smallint' default_value: 1 is_nullable: 0 -whether or not to encumber the funds when invoice is still open, 1 = yes, 0 = no - =head2 timestamp data_type: 'timestamp' @@ -85,8 +71,6 @@ whether or not to encumber the funds when invoice is still open, 1 = yes, 0 = no default_value: current_timestamp is_nullable: 0 -timestamp of last adjustment to adjustment - =cut __PACKAGE__->add_columns( @@ -163,8 +147,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gy1vtvgPtZgUtWhwPWqlWA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ctYEQjFx8jWlFUTE7aEwkw sub koha_object_class { 'Koha::Acquisition::Invoice::Adjustment'; diff --git a/Koha/Schema/Result/Aqorder.pm b/Koha/Schema/Result/Aqorder.pm index 2adab1a8b4..b72ca0c798 100644 --- a/Koha/Schema/Result/Aqorder.pm +++ b/Koha/Schema/Result/Aqorder.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("aqorders"); is_auto_increment: 1 is_nullable: 0 -primary key and unique identifier assigned by Koha to each line - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -links the order to the biblio being ordered (biblio.biblionumber) - =head2 deleted_biblionumber data_type: 'integer' @@ -52,15 +48,11 @@ links the order to the deleted bibliographic record (deletedbiblio.biblionumber) datetime_undef_if_invalid: 1 is_nullable: 1 -the date the bib was added to the basket - =head2 quantity data_type: 'smallint' is_nullable: 1 -the quantity ordered - =head2 currency data_type: 'varchar' @@ -68,117 +60,87 @@ the quantity ordered is_nullable: 1 size: 10 -the currency used for the purchase - =head2 listprice data_type: 'decimal' is_nullable: 1 size: [28,6] -the vendor price for this line item - =head2 datereceived data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this order was received - =head2 invoiceid data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -id of invoice - =head2 freight data_type: 'decimal' is_nullable: 1 size: [28,6] -shipping costs (not used) - =head2 unitprice data_type: 'decimal' is_nullable: 1 size: [28,6] -the actual cost entered when receiving this line item - =head2 unitprice_tax_excluded data_type: 'decimal' is_nullable: 1 size: [28,6] -the unit price excluding tax (on receiving) - =head2 unitprice_tax_included data_type: 'decimal' is_nullable: 1 size: [28,6] -the unit price including tax (on receiving) - =head2 quantityreceived data_type: 'smallint' default_value: 0 is_nullable: 0 -the quantity that have been received so far - =head2 created_by data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -the borrowernumber of order line's creator - =head2 datecancellationprinted data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the line item was deleted - =head2 cancellationreason data_type: 'mediumtext' is_nullable: 1 -reason of cancellation - =head2 order_internalnote data_type: 'longtext' is_nullable: 1 -notes related to this order line, made for staff - =head2 order_vendornote data_type: 'longtext' is_nullable: 1 -notes related to this order line, made for vendor - =head2 basketno data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -links this order line to a specific basket (aqbasket.basketno) - =head2 timestamp data_type: 'timestamp' @@ -186,152 +148,108 @@ links this order line to a specific basket (aqbasket.basketno) default_value: current_timestamp is_nullable: 0 -the date and time this order line was last modified - =head2 rrp data_type: 'decimal' is_nullable: 1 size: [13,2] -the retail cost for this line item - -=head2 replacementprice - - data_type: 'decimal' - is_nullable: 1 - size: [28,6] - -the replacement cost for this line item - =head2 rrp_tax_excluded data_type: 'decimal' is_nullable: 1 size: [28,6] -the replacement cost excluding tax - =head2 rrp_tax_included data_type: 'decimal' is_nullable: 1 size: [28,6] -the replacement cost including tax - =head2 ecost data_type: 'decimal' is_nullable: 1 size: [13,2] -the replacement cost for this line item - =head2 ecost_tax_excluded data_type: 'decimal' is_nullable: 1 size: [28,6] -the estimated cost excluding tax - =head2 ecost_tax_included data_type: 'decimal' is_nullable: 1 size: [28,6] -the estimated cost including tax - =head2 tax_rate_bak data_type: 'decimal' is_nullable: 1 size: [6,4] -the tax rate for this line item (%) - =head2 tax_rate_on_ordering data_type: 'decimal' is_nullable: 1 size: [6,4] -the tax rate on ordering for this line item (%) - =head2 tax_rate_on_receiving data_type: 'decimal' is_nullable: 1 size: [6,4] -the tax rate on receiving for this line item (%) - =head2 tax_value_bak data_type: 'decimal' is_nullable: 1 size: [28,6] -the tax value for this line item - =head2 tax_value_on_ordering data_type: 'decimal' is_nullable: 1 size: [28,6] -the tax value on ordering for this line item - =head2 tax_value_on_receiving data_type: 'decimal' is_nullable: 1 size: [28,6] -the tax value on receiving for this line item - =head2 discount data_type: 'float' is_nullable: 1 size: [6,4] -the discount for this line item (%) - =head2 budget_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the fund this order goes against (aqbudgets.budget_id) - =head2 budgetdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -not used? always NULL - =head2 sort1 data_type: 'varchar' is_nullable: 1 size: 80 -statistical field - =head2 sort2 data_type: 'varchar' is_nullable: 1 size: 80 -second statistical field - =head2 sort1_authcat data_type: 'varchar' @@ -349,23 +267,17 @@ second statistical field data_type: 'tinyint' is_nullable: 1 -was this price uncertain (1 for yes, 0 for no) - =head2 subscriptionid data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -links this order line to a subscription (subscription.subscriptionid) - =head2 parent_ordernumber data_type: 'integer' is_nullable: 1 -ordernumber of parent order line, or same as ordernumber if no parent - =head2 orderstatus data_type: 'varchar' @@ -373,39 +285,29 @@ ordernumber of parent order line, or same as ordernumber if no parent is_nullable: 1 size: 16 -the current status for this line item. Can be 'new', 'ordered', 'partial', 'complete' or 'cancelled' - =head2 line_item_id data_type: 'varchar' is_nullable: 1 size: 35 -Supplier's article id for Edifact orderline - =head2 suppliers_reference_number data_type: 'varchar' is_nullable: 1 size: 35 -Suppliers unique edifact quote ref - =head2 suppliers_reference_qualifier data_type: 'varchar' is_nullable: 1 size: 3 -Type of number above usually 'QLI' - =head2 suppliers_report data_type: 'mediumtext' is_nullable: 1 -reports received from suppliers - =head2 estimated_delivery_date data_type: 'date' @@ -431,6 +333,12 @@ the unit price in foreign currency the currency of the invoice_unitprice +=head2 replacementprice + + data_type: 'decimal' + is_nullable: 1 + size: [28,6] + =cut __PACKAGE__->add_columns( @@ -483,8 +391,6 @@ __PACKAGE__->add_columns( }, "rrp", { data_type => "decimal", is_nullable => 1, size => [13, 2] }, - "replacementprice", - { data_type => "decimal", is_nullable => 1, size => [28, 6] }, "rrp_tax_excluded", { data_type => "decimal", is_nullable => 1, size => [28, 6] }, "rrp_tax_included", @@ -548,6 +454,8 @@ __PACKAGE__->add_columns( { data_type => "decimal", is_nullable => 1, size => [28, 6] }, "invoice_currency", { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, + "replacementprice", + { data_type => "decimal", is_nullable => 1, size => [28, 6] }, ); =head1 PRIMARY KEY @@ -805,8 +713,8 @@ Composing rels: L -> borrowernumber __PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-04-30 13:34:51 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FyRqcj4OmkBR6PpW3tY8bA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+2xQczVkjCrH00X4TZZ4KQ __PACKAGE__->belongs_to( "basket", diff --git a/Koha/Schema/Result/AqorderUser.pm b/Koha/Schema/Result/AqorderUser.pm index 4f6df2f0cd..2ad47328bf 100644 --- a/Koha/Schema/Result/AqorderUser.pm +++ b/Koha/Schema/Result/AqorderUser.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("aqorder_users"); is_foreign_key: 1 is_nullable: 0 -the order this patrons receive notifications from (aqorders.ordernumber) - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the borrowernumber for the patron receiving notifications for this order (borrowers.borrowernumber) - =cut __PACKAGE__->add_columns( @@ -95,8 +91,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G5LCF3HRXk7YKl8/t7HIyg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EGlJzn7/bZaUZSlc9SRXzA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/AqordersClaim.pm b/Koha/Schema/Result/AqordersClaim.pm index 10ca443eab..4a603f397f 100644 --- a/Koha/Schema/Result/AqordersClaim.pm +++ b/Koha/Schema/Result/AqordersClaim.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("aqorders_claims"); is_auto_increment: 1 is_nullable: 0 -ID of the claims - =head2 ordernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -order linked to this claim - =head2 claimed_on data_type: 'timestamp' @@ -46,8 +42,6 @@ order linked to this claim default_value: current_timestamp is_nullable: 0 -Date of the claims - =cut __PACKAGE__->add_columns( @@ -94,8 +88,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4/GYhhysSbrh67vIq67xZw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jl+K7hrdiEdr6DBvn22FzQ sub koha_object_class { 'Koha::Acquisition::Order::Claim'; diff --git a/Koha/Schema/Result/AqordersItem.pm b/Koha/Schema/Result/AqordersItem.pm index 147d8e8f33..b9bce8d217 100644 --- a/Koha/Schema/Result/AqordersItem.pm +++ b/Koha/Schema/Result/AqordersItem.pm @@ -29,15 +29,11 @@ __PACKAGE__->table("aqorders_items"); is_foreign_key: 1 is_nullable: 0 -the order this item is attached to (aqorders.ordernumber) - =head2 itemnumber data_type: 'integer' is_nullable: 0 -the item number for this item (items.itemnumber) - =head2 timestamp data_type: 'timestamp' @@ -45,8 +41,6 @@ the item number for this item (items.itemnumber) default_value: current_timestamp is_nullable: 0 -the date and time this order item was last touched - =cut __PACKAGE__->add_columns( @@ -93,8 +87,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0qoEUMlkDZDBMxvaNwYtrA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DbL5aWyOlfrCGbMuQDpPdA # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/ArticleRequest.pm b/Koha/Schema/Result/ArticleRequest.pm index f0c3475ffe..52ee3623a6 100644 --- a/Koha/Schema/Result/ArticleRequest.pm +++ b/Koha/Schema/Result/ArticleRequest.pm @@ -140,8 +140,6 @@ Debit line with cost for article scan request datetime_undef_if_invalid: 1 is_nullable: 1 -Be careful with two timestamps in one table not allowing NULL - =head2 updated_on data_type: 'timestamp' @@ -332,8 +330,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/mPsUO8VPK6DVIX7Rynk0A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lCBGn0HSuYssEZMRmxb6Gg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/AuthHeader.pm b/Koha/Schema/Result/AuthHeader.pm index 499b23a393..d3d7baee15 100644 --- a/Koha/Schema/Result/AuthHeader.pm +++ b/Koha/Schema/Result/AuthHeader.pm @@ -128,9 +128,26 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("authid"); +=head1 RELATIONS -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gYG6yQ6EC5gVMZHF1h6MJA +=head2 import_oai_authorities + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "import_oai_authorities", + "Koha::Schema::Result::ImportOaiAuthority", + { "foreign.authid" => "self.authid" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rERobZw9DeIMSIf9BGVONA sub koha_object_class { 'Koha::Authority'; diff --git a/Koha/Schema/Result/AuthorisedValue.pm b/Koha/Schema/Result/AuthorisedValue.pm index 874c166b02..25ce3ae907 100644 --- a/Koha/Schema/Result/AuthorisedValue.pm +++ b/Koha/Schema/Result/AuthorisedValue.pm @@ -142,6 +142,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 authorised_values_localizations + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "authorised_values_localizations", + "Koha::Schema::Result::AuthorisedValuesLocalization", + { "foreign.authorised_value_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 category Type: belongs_to @@ -173,9 +188,16 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LH9dpEEzlVVsjNVv/jnONg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 16:11:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mlwkraQyS4N5mlE7J5g7qQ +__PACKAGE__->load_components('+Koha::Schema::Component::Localization'); +__PACKAGE__->localization_add_relationships( + 'authorised_values_localizations', + 'authorised_value_id' => 'id', + 'lib', + 'lib_opac', +); # You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm index d1277e7ce8..e1f64616e5 100644 --- a/Koha/Schema/Result/Biblio.pm +++ b/Koha/Schema/Result/Biblio.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("biblio"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned to each bibliographic record - =head2 frameworkcode data_type: 'varchar' @@ -38,71 +36,51 @@ unique identifier assigned to each bibliographic record is_nullable: 0 size: 4 -foreign key from the biblio_framework table to identify which framework was used in cataloging this record - =head2 author data_type: 'longtext' is_nullable: 1 -statement of responsibility from MARC record (100$a in MARC21) - =head2 title data_type: 'longtext' is_nullable: 1 -title (without the subtitle) from the MARC record (245$a in MARC21) - =head2 medium data_type: 'longtext' is_nullable: 1 -medium from the MARC record (245$h in MARC21) - =head2 subtitle data_type: 'longtext' is_nullable: 1 -remainder of the title from the MARC record (245$b in MARC21) - =head2 part_number data_type: 'longtext' is_nullable: 1 -part number from the MARC record (245$n in MARC21) - =head2 part_name data_type: 'longtext' is_nullable: 1 -part name from the MARC record (245$p in MARC21) - =head2 unititle data_type: 'longtext' is_nullable: 1 -uniform title (without the subtitle) from the MARC record (240$a in MARC21) - =head2 notes data_type: 'longtext' is_nullable: 1 -values from the general notes field in the MARC record (500$a in MARC21) split by bar (|) - =head2 serial data_type: 'tinyint' is_nullable: 1 -Boolean indicating whether biblio is for a serial - =head2 seriestitle data_type: 'longtext' @@ -113,8 +91,6 @@ Boolean indicating whether biblio is for a serial data_type: 'smallint' is_nullable: 1 -publication or copyright date from the MARC record - =head2 timestamp data_type: 'timestamp' @@ -122,23 +98,17 @@ publication or copyright date from the MARC record default_value: current_timestamp is_nullable: 0 -date and time this record was last touched - =head2 datecreated data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 0 -the date this record was added to Koha - =head2 abstract data_type: 'longtext' is_nullable: 1 -summary from the MARC record (520$a in MARC21) - =cut __PACKAGE__->add_columns( @@ -360,6 +330,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 import_oai_biblios + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "import_oai_biblios", + "Koha::Schema::Result::ImportOaiBiblio", + { "foreign.biblionumber" => "self.biblionumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 item_groups Type: has_many @@ -616,8 +601,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-09 07:11:30 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AZgt+4mVV/QYtSsdhxmaBQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pGOj9Ovn5se6qzeqcNeKBw __PACKAGE__->has_many( "biblioitem", diff --git a/Koha/Schema/Result/BiblioFramework.pm b/Koha/Schema/Result/BiblioFramework.pm index 15755315d2..0325514422 100644 --- a/Koha/Schema/Result/BiblioFramework.pm +++ b/Koha/Schema/Result/BiblioFramework.pm @@ -30,8 +30,6 @@ __PACKAGE__->table("biblio_framework"); is_nullable: 0 size: 4 -the unique code assigned to the framework - =head2 frameworktext data_type: 'varchar' @@ -39,8 +37,6 @@ the unique code assigned to the framework is_nullable: 0 size: 255 -the description/name given to the framework - =cut __PACKAGE__->add_columns( @@ -63,8 +59,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("frameworkcode"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdCNaeY5v1WcfcDuA6xE0w +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HArFXS6lRQORjGfzITuF0A # FIXME This should not be needed, we need to add the FK at DB level # It cannot be done now because the default framework (frameworkcode=='') diff --git a/Koha/Schema/Result/BiblioMetadata.pm b/Koha/Schema/Result/BiblioMetadata.pm index e176f8b8cc..7c9a94580c 100644 --- a/Koha/Schema/Result/BiblioMetadata.pm +++ b/Koha/Schema/Result/BiblioMetadata.pm @@ -44,7 +44,7 @@ __PACKAGE__->table("biblio_metadata"); =head2 schema data_type: 'varchar' - is_nullable: 0 + is_nullable: 1 size: 16 =head2 metadata @@ -77,7 +77,7 @@ __PACKAGE__->add_columns( "format", { data_type => "varchar", is_nullable => 0, size => 16 }, "schema", - { data_type => "varchar", is_nullable => 0, size => 16 }, + { data_type => "varchar", is_nullable => 1, size => 16 }, "metadata", { data_type => "longtext", is_nullable => 0 }, "timestamp", @@ -162,8 +162,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-01 15:57:42 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ar73Sy86oYHspxu0udvnoA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vbc5f5kkUlzLRNHFHMrCWg sub koha_object_class { 'Koha::Biblio::Metadata'; diff --git a/Koha/Schema/Result/Biblioitem.pm b/Koha/Schema/Result/Biblioitem.pm index 27f15ccfa7..a6883dc9bd 100644 --- a/Koha/Schema/Result/Biblioitem.pm +++ b/Koha/Schema/Result/Biblioitem.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("biblioitems"); is_auto_increment: 1 is_nullable: 0 -primary key, unique identifier assigned by Koha - =head2 biblionumber data_type: 'integer' @@ -38,8 +36,6 @@ primary key, unique identifier assigned by Koha is_foreign_key: 1 is_nullable: 0 -foreign key linking this table to the biblio table - =head2 volume data_type: 'longtext' @@ -56,22 +52,16 @@ foreign key linking this table to the biblio table is_nullable: 1 size: 10 -biblio level item type (MARC21 942$c) - =head2 isbn data_type: 'longtext' is_nullable: 1 -ISBN (MARC21 020$a) - =head2 issn data_type: 'longtext' is_nullable: 1 -ISSN (MARC21 022$a) - =head2 ean data_type: 'longtext' @@ -100,8 +90,6 @@ publisher (MARC21 260$b and 264$b) data_type: 'mediumtext' is_nullable: 1 -volume information (MARC21 362$a) - =head2 collectiontitle data_type: 'longtext' @@ -179,16 +167,12 @@ library of congress control number (MARC21 010$a) data_type: 'mediumtext' is_nullable: 1 -url (MARC21 856$u) - =head2 cn_source data_type: 'varchar' is_nullable: 1 size: 10 -classification source (MARC21 942$2) - =head2 cn_class data_type: 'varchar' @@ -213,16 +197,12 @@ classification source (MARC21 942$2) is_nullable: 1 size: 255 -normalized version of the call number used for sorting - =head2 agerestriction data_type: 'varchar' is_nullable: 1 size: 255 -target audience/age restriction from the bib record (MARC21 521$a) - =head2 totalissues data_type: 'integer' @@ -352,8 +332,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-01 18:20:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fNII5fQeY3BY5JPXOMY48Q +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iW0q6emTA/r+GqSG7b4AEA __PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" ); diff --git a/Koha/Schema/Result/Booking.pm b/Koha/Schema/Result/Booking.pm index 8f38cd6919..30aac3a378 100644 --- a/Koha/Schema/Result/Booking.pm +++ b/Koha/Schema/Result/Booking.pm @@ -84,21 +84,21 @@ the end date of the booking =head2 creation_date - data_type: 'timestamp' + data_type: 'datetime' datetime_undef_if_invalid: 1 - default_value: current_timestamp - is_nullable: 0 + default_value: 'current_timestamp()' + is_nullable: 1 -the timestamp for when a booking was created +The datetime for when a bookings was created =head2 modification_date - data_type: 'timestamp' + data_type: 'datetime' datetime_undef_if_invalid: 1 - default_value: current_timestamp - is_nullable: 0 + default_value: 'current_timestamp()' + is_nullable: 1 -the timestamp for when a booking has been updated +The datetime for when a booking has been updated =head2 status @@ -109,6 +109,14 @@ the timestamp for when a booking has been updated current status of the booking +=head2 cancellation_reason + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +optional authorised value BOOKING_CANCELLATION + =cut __PACKAGE__->add_columns( @@ -146,17 +154,17 @@ __PACKAGE__->add_columns( }, "creation_date", { - data_type => "timestamp", + data_type => "datetime", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", - is_nullable => 0, + default_value => "current_timestamp()", + is_nullable => 1, }, "modification_date", { - data_type => "timestamp", + data_type => "datetime", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", - is_nullable => 0, + default_value => "current_timestamp()", + is_nullable => 1, }, "status", { @@ -165,6 +173,8 @@ __PACKAGE__->add_columns( extra => { list => ["new", "cancelled", "completed"] }, is_nullable => 0, }, + "cancellation_reason", + { data_type => "varchar", is_nullable => 1, size => 80 }, ); =head1 PRIMARY KEY @@ -247,8 +257,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-09-18 08:58:14 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ctwNEgFUMhV+uR/UGSWag +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9QxeC0EBtW2bUtpWAVVEdg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index bf8ba36030..0a48bfa131 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -29,29 +29,28 @@ __PACKAGE__->table("borrowers"); is_auto_increment: 1 is_nullable: 0 -primary key, Koha assigned ID number for patrons/borrowers - =head2 cardnumber data_type: 'varchar' is_nullable: 1 size: 32 -unique key, library assigned ID number for patrons/borrowers - =head2 surname data_type: 'longtext' is_nullable: 1 -patron/borrower's last name (surname) - =head2 firstname data_type: 'mediumtext' is_nullable: 1 -patron/borrower's first name +=head2 preferred_name + + data_type: 'longtext' + is_nullable: 1 + +patron/borrower's preferred name =head2 middle_name @@ -65,215 +64,159 @@ patron/borrower's middle name data_type: 'longtext' is_nullable: 1 -patron/borrower's title, for example: Mr. or Mrs. - =head2 othernames data_type: 'longtext' is_nullable: 1 -any other names associated with the patron/borrower - =head2 initials data_type: 'mediumtext' is_nullable: 1 -initials for your patron/borrower - =head2 pronouns data_type: 'longtext' is_nullable: 1 -patron/borrower pronouns +patron/borrower's pronouns =head2 streetnumber data_type: 'tinytext' is_nullable: 1 -the house number for your patron/borrower's primary address - =head2 streettype data_type: 'tinytext' is_nullable: 1 -the street type (Rd., Blvd, etc) for your patron/borrower's primary address - =head2 address data_type: 'longtext' is_nullable: 1 -the first address line for your patron/borrower's primary address - =head2 address2 data_type: 'mediumtext' is_nullable: 1 -the second address line for your patron/borrower's primary address - =head2 city data_type: 'longtext' is_nullable: 1 -the city or town for your patron/borrower's primary address - =head2 state data_type: 'mediumtext' is_nullable: 1 -the state or province for your patron/borrower's primary address - =head2 zipcode data_type: 'tinytext' is_nullable: 1 -the zip or postal code for your patron/borrower's primary address - =head2 country data_type: 'mediumtext' is_nullable: 1 -the country for your patron/borrower's primary address - =head2 email data_type: 'longtext' is_nullable: 1 -the primary email address for your patron/borrower's primary address - =head2 phone data_type: 'mediumtext' is_nullable: 1 -the primary phone number for your patron/borrower's primary address - =head2 mobile data_type: 'tinytext' is_nullable: 1 -the other phone number for your patron/borrower's primary address - =head2 fax data_type: 'longtext' is_nullable: 1 -the fax number for your patron/borrower's primary address - =head2 emailpro data_type: 'mediumtext' is_nullable: 1 -the secondary email addres for your patron/borrower's primary address - =head2 phonepro data_type: 'mediumtext' is_nullable: 1 -the secondary phone number for your patron/borrower's primary address - =head2 B_streetnumber accessor: 'b_streetnumber' data_type: 'tinytext' is_nullable: 1 -the house number for your patron/borrower's alternate address - =head2 B_streettype accessor: 'b_streettype' data_type: 'tinytext' is_nullable: 1 -the street type (Rd., Blvd, etc) for your patron/borrower's alternate address - =head2 B_address accessor: 'b_address' data_type: 'mediumtext' is_nullable: 1 -the first address line for your patron/borrower's alternate address - =head2 B_address2 accessor: 'b_address2' data_type: 'mediumtext' is_nullable: 1 -the second address line for your patron/borrower's alternate address - =head2 B_city accessor: 'b_city' data_type: 'longtext' is_nullable: 1 -the city or town for your patron/borrower's alternate address - =head2 B_state accessor: 'b_state' data_type: 'mediumtext' is_nullable: 1 -the state for your patron/borrower's alternate address - =head2 B_zipcode accessor: 'b_zipcode' data_type: 'tinytext' is_nullable: 1 -the zip or postal code for your patron/borrower's alternate address - =head2 B_country accessor: 'b_country' data_type: 'mediumtext' is_nullable: 1 -the country for your patron/borrower's alternate address - =head2 B_email accessor: 'b_email' data_type: 'mediumtext' is_nullable: 1 -the patron/borrower's alternate email address - =head2 B_phone accessor: 'b_phone' data_type: 'longtext' is_nullable: 1 -the patron/borrower's alternate phone number - =head2 dateofbirth data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the patron/borrower's date of birth (YYYY-MM-DD) - =head2 branchcode data_type: 'varchar' @@ -282,8 +225,6 @@ the patron/borrower's date of birth (YYYY-MM-DD) is_nullable: 0 size: 10 -foreign key from the branches table, includes the code of the patron/borrower's home branch - =head2 categorycode data_type: 'varchar' @@ -292,122 +233,90 @@ foreign key from the branches table, includes the code of the patron/borrower's is_nullable: 0 size: 10 -foreign key from the categories table, includes the code of the patron category - =head2 dateenrolled data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron was added to Koha (YYYY-MM-DD) - =head2 dateexpiry data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron/borrower's card is set to expire (YYYY-MM-DD) - =head2 password_expiration_date data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron/borrower's password is set to expire (YYYY-MM-DD) - =head2 date_renewed data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron/borrower's card was last renewed - =head2 gonenoaddress data_type: 'tinyint' is_nullable: 1 -set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address - =head2 lost data_type: 'tinyint' is_nullable: 1 -set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card - =head2 debarred data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYYY-MM-DD) - =head2 debarredcomment data_type: 'varchar' is_nullable: 1 size: 255 -comment on the stop of the patron - =head2 contactname data_type: 'longtext' is_nullable: 1 -used for children and profesionals to include surname or last name of guarantor or organization name - =head2 contactfirstname data_type: 'mediumtext' is_nullable: 1 -used for children to include first name of guarantor - =head2 contacttitle data_type: 'mediumtext' is_nullable: 1 -used for children to include title (Mr., Mrs., etc) of guarantor - =head2 borrowernotes data_type: 'longtext' is_nullable: 1 -a note on the patron/borrower's account that is only visible in the staff interface - =head2 relationship data_type: 'varchar' is_nullable: 1 size: 100 -used for children to include the relationship to their guarantor - =head2 sex data_type: 'varchar' is_nullable: 1 size: 1 -patron/borrower's gender - =head2 password data_type: 'varchar' is_nullable: 1 size: 60 -patron/borrower's Bcrypt encrypted password - =head2 secret data_type: 'mediumtext' @@ -437,142 +346,104 @@ will include a number associated with the staff member's permissions is_nullable: 1 size: 75 -patron/borrower's opac and/or staff interface log in - =head2 opacnote data_type: 'longtext' is_nullable: 1 -a note on the patron/borrower's account that is visible in the OPAC and staff interface - =head2 contactnote data_type: 'varchar' is_nullable: 1 size: 255 -a note related to the patron/borrower's alternate address - =head2 sort1 data_type: 'varchar' is_nullable: 1 size: 80 -a field that can be used for any information unique to the library - =head2 sort2 data_type: 'varchar' is_nullable: 1 size: 80 -a field that can be used for any information unique to the library - =head2 altcontactfirstname data_type: 'mediumtext' is_nullable: 1 -first name of alternate contact for the patron/borrower - =head2 altcontactsurname data_type: 'mediumtext' is_nullable: 1 -surname or last name of the alternate contact for the patron/borrower - =head2 altcontactaddress1 data_type: 'mediumtext' is_nullable: 1 -the first address line for the alternate contact for the patron/borrower - =head2 altcontactaddress2 data_type: 'mediumtext' is_nullable: 1 -the second address line for the alternate contact for the patron/borrower - =head2 altcontactaddress3 data_type: 'mediumtext' is_nullable: 1 -the city for the alternate contact for the patron/borrower - =head2 altcontactstate data_type: 'mediumtext' is_nullable: 1 -the state for the alternate contact for the patron/borrower - =head2 altcontactzipcode data_type: 'mediumtext' is_nullable: 1 -the zipcode for the alternate contact for the patron/borrower - =head2 altcontactcountry data_type: 'mediumtext' is_nullable: 1 -the country for the alternate contact for the patron/borrower - =head2 altcontactphone data_type: 'mediumtext' is_nullable: 1 -the phone number for the alternate contact for the patron/borrower - =head2 smsalertnumber data_type: 'varchar' is_nullable: 1 size: 50 -the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on) - =head2 sms_provider_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -the provider of the mobile phone number defined in smsalertnumber - =head2 privacy data_type: 'integer' default_value: 1 is_nullable: 0 -patron/borrower's privacy settings related to their checkout history - =head2 privacy_guarantor_fines data_type: 'tinyint' default_value: 0 is_nullable: 0 -controls if relatives can see this patron's fines - =head2 privacy_guarantor_checkouts data_type: 'tinyint' default_value: 0 is_nullable: 0 -controls if relatives can see this patron's checkouts - =head2 checkprevcheckout data_type: 'varchar' @@ -580,8 +451,6 @@ controls if relatives can see this patron's checkouts is_nullable: 0 size: 7 -produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. - =head2 updated_on data_type: 'timestamp' @@ -597,8 +466,6 @@ time of last change could be useful for synchronization with external systems (a datetime_undef_if_invalid: 1 is_nullable: 1 -last time a patron has been seen (connected at the OPAC or staff interface) - =head2 lang data_type: 'varchar' @@ -606,47 +473,35 @@ last time a patron has been seen (connected at the OPAC or staff interface) is_nullable: 0 size: 25 -lang to use to send notices to this patron - =head2 login_attempts data_type: 'integer' default_value: 0 is_nullable: 0 -number of failed login attemps - =head2 overdrive_auth_token data_type: 'mediumtext' is_nullable: 1 -persist OverDrive auth token - =head2 anonymized data_type: 'tinyint' default_value: 0 is_nullable: 0 -flag for data anonymization - =head2 autorenew_checkouts data_type: 'tinyint' default_value: 1 is_nullable: 0 -flag for allowing auto-renewal - =head2 primary_contact_method data_type: 'varchar' is_nullable: 1 size: 45 -useful for reporting purposes - =head2 protected data_type: 'tinyint' @@ -666,6 +521,8 @@ __PACKAGE__->add_columns( { data_type => "longtext", is_nullable => 1 }, "firstname", { data_type => "mediumtext", is_nullable => 1 }, + "preferred_name", + { data_type => "longtext", is_nullable => 1 }, "middle_name", { data_type => "longtext", is_nullable => 1 }, "title", @@ -2188,8 +2045,8 @@ Composing rels: L -> permission __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jUOMoSonNmA3KwtZKVxqOA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4jqUuLydPvfX65PL7oC3wA __PACKAGE__->has_many( "restrictions", diff --git a/Koha/Schema/Result/BorrowerAttribute.pm b/Koha/Schema/Result/BorrowerAttribute.pm index df7acd8f38..e7650ef16e 100644 --- a/Koha/Schema/Result/BorrowerAttribute.pm +++ b/Koha/Schema/Result/BorrowerAttribute.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("borrower_attributes"); is_auto_increment: 1 is_nullable: 0 -Row id field - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key from the borrowers table, defines which patron/borrower has this attribute - =head2 code data_type: 'varchar' @@ -54,8 +50,6 @@ foreign key from the borrower_attribute_types table, defines which custom field is_nullable: 1 size: 255 -custom patron field value - =cut __PACKAGE__->add_columns( @@ -114,8 +108,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TBNaH57NxoyhytT5cXD/WQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8H2GvgjmqxvdqHHU5TLTFg =head2 borrower_attribute_types diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm index d5d4b9e31d..21944d5542 100644 --- a/Koha/Schema/Result/BorrowerAttributeType.pm +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -37,56 +37,42 @@ unique key used to identify each custom field is_nullable: 0 size: 255 -description for each custom field - =head2 repeatable data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines whether one patron/borrower can have multiple values for this custom field (1 for yes, 0 for no) - =head2 unique_id data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this value needs to be unique (1 for yes, 0 for no) - =head2 is_date data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this field is displayed as a date - =head2 opac_display data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this field is visible to patrons on their account in the OPAC (1 for yes, 0 for no) - =head2 opac_editable data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this field is editable by patrons on their account in the OPAC (1 for yes, 0 for no) - =head2 staff_searchable data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this field is searchable via the patron search in the staff interface (1 for yes, 0 for no) - =head2 searched_by_default data_type: 'tinyint' @@ -101,20 +87,15 @@ defines if this field is included in "Standard" patron searches in the staff int is_nullable: 1 size: 32 -foreign key from authorised_values that links this custom field to an authorized value category - =head2 display_checkout data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this field displays in checkout screens - =head2 category_code data_type: 'varchar' - is_foreign_key: 1 is_nullable: 1 size: 10 @@ -127,24 +108,18 @@ defines a category for an attribute_type is_nullable: 0 size: 255 -defines a class for an attribute_type - =head2 keep_for_pseudonymization data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if this field is copied to anonymized_borrower_attributes (1 for yes, 0 for no) - =head2 mandatory data_type: 'tinyint' default_value: 0 is_nullable: 0 -defines if the attribute is mandatory or not - =cut __PACKAGE__->add_columns( @@ -171,7 +146,7 @@ __PACKAGE__->add_columns( "display_checkout", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "category_code", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, + { data_type => "varchar", is_nullable => 1, size => 10 }, "class", { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, "keep_for_pseudonymization", @@ -209,39 +184,34 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 borrower_attributes +=head2 borrower_attribute_types_categories Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( - "borrower_attributes", - "Koha::Schema::Result::BorrowerAttribute", - { "foreign.code" => "self.code" }, + "borrower_attribute_types_categories", + "Koha::Schema::Result::BorrowerAttributeTypesCategory", + { "foreign.borrower_attribute_type_code" => "self.code" }, { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 category_code +=head2 borrower_attributes -Type: belongs_to +Type: has_many -Related object: L +Related object: L =cut -__PACKAGE__->belongs_to( - "category_code", - "Koha::Schema::Result::Category", - { categorycode => "category_code" }, - { - is_deferrable => 1, - join_type => "LEFT", - on_delete => "RESTRICT", - on_update => "RESTRICT", - }, +__PACKAGE__->has_many( + "borrower_attributes", + "Koha::Schema::Result::BorrowerAttribute", + { "foreign.code" => "self.code" }, + { cascade_copy => 0, cascade_delete => 0 }, ); =head2 pseudonymized_borrower_attributes @@ -259,9 +229,23 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 categorycodes + +Type: many_to_many + +Composing rels: L -> categorycode + +=cut + +__PACKAGE__->many_to_many( + "categorycodes", + "borrower_attribute_types_categories", + "categorycode", +); + -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZmiiXHqRGV2SDb4IgSPvJQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nFJm8Bi3C6xdsvJqG9LaCA __PACKAGE__->add_columns( '+keep_for_pseudonymization' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/BorrowerDebarment.pm b/Koha/Schema/Result/BorrowerDebarment.pm index da2b141328..a379c41fe3 100644 --- a/Koha/Schema/Result/BorrowerDebarment.pm +++ b/Koha/Schema/Result/BorrowerDebarment.pm @@ -29,24 +29,18 @@ __PACKAGE__->table("borrower_debarments"); is_auto_increment: 1 is_nullable: 0 -unique key for the restriction - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key for borrowers.borrowernumber for patron who is restricted - =head2 expiration data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -expiration date of the restriction - =head2 type data_type: 'varchar' @@ -54,22 +48,16 @@ expiration date of the restriction is_nullable: 0 size: 50 -type of restriction, FK to restriction_types.code - =head2 comment data_type: 'mediumtext' is_nullable: 1 -comments about the restriction - =head2 manager_id data_type: 'integer' is_nullable: 1 -foreign key for borrowers.borrowernumber for the librarian managing the restriction - =head2 created data_type: 'timestamp' @@ -77,16 +65,12 @@ foreign key for borrowers.borrowernumber for the librarian managing the restrict default_value: current_timestamp is_nullable: 0 -date the restriction was added - =head2 updated data_type: 'timestamp' datetime_undef_if_invalid: 1 is_nullable: 1 -date the restriction was updated - =cut __PACKAGE__->add_columns( @@ -162,8 +146,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-19 17:53:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kDCkA7XrjKXlrFG5lk8Lgg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AzL+ri/7OrtFxwiuEkpqFQ sub koha_objects_class { 'Koha::Patron::Restrictions'; diff --git a/Koha/Schema/Result/BorrowerFile.pm b/Koha/Schema/Result/BorrowerFile.pm index bcbed92a95..5a7c95b3c5 100644 --- a/Koha/Schema/Result/BorrowerFile.pm +++ b/Koha/Schema/Result/BorrowerFile.pm @@ -29,47 +29,35 @@ __PACKAGE__->table("borrower_files"); is_auto_increment: 1 is_nullable: 0 -unique key - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key linking to the patron via the borrowernumber - =head2 file_name data_type: 'varchar' is_nullable: 0 size: 255 -file name - =head2 file_type data_type: 'varchar' is_nullable: 0 size: 255 -type of file - =head2 file_description data_type: 'varchar' is_nullable: 1 size: 255 -description given to the file - =head2 file_content data_type: 'longblob' is_nullable: 0 -the file - =head2 date_uploaded data_type: 'timestamp' @@ -77,8 +65,6 @@ the file default_value: current_timestamp is_nullable: 0 -date and time the file was added - =cut __PACKAGE__->add_columns( @@ -133,8 +119,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fWpDdEeF4RHkIiD71sGvsQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L2mSnSmc1tTxkGB5ia1mJQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/BorrowerModification.pm b/Koha/Schema/Result/BorrowerModification.pm index 4c7ab99ebb..e388e72399 100644 --- a/Koha/Schema/Result/BorrowerModification.pm +++ b/Koha/Schema/Result/BorrowerModification.pm @@ -64,6 +64,13 @@ __PACKAGE__->table("borrower_modifications"); data_type: 'mediumtext' is_nullable: 1 +=head2 preferred_name + + data_type: 'longtext' + is_nullable: 1 + +patron/borrower's preferred name + =head2 middle_name data_type: 'longtext' @@ -91,6 +98,8 @@ patron/borrower's middle name data_type: 'longtext' is_nullable: 1 +patron/borrower's pronouns + =head2 streetnumber data_type: 'varchar' @@ -433,16 +442,12 @@ patron/borrower's middle name datetime_undef_if_invalid: 1 is_nullable: 1 -data processing consent - =head2 primary_contact_method data_type: 'varchar' is_nullable: 1 size: 45 -useful for reporting purposes - =head2 lang data_type: 'varchar' @@ -471,6 +476,8 @@ __PACKAGE__->add_columns( { data_type => "longtext", is_nullable => 1 }, "firstname", { data_type => "mediumtext", is_nullable => 1 }, + "preferred_name", + { data_type => "longtext", is_nullable => 1 }, "middle_name", { data_type => "longtext", is_nullable => 1 }, "title", @@ -646,8 +653,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("verification_token", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-08 13:26:34 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pgmClJsT12pxLZHRYrRY9g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dF2+w/IDra9VOgqWW09Jzw sub koha_object_class { 'Koha::Patron::Modification'; diff --git a/Koha/Schema/Result/BorrowerPasswordRecovery.pm b/Koha/Schema/Result/BorrowerPasswordRecovery.pm index 3c3dab0e4c..721782fe74 100644 --- a/Koha/Schema/Result/BorrowerPasswordRecovery.pm +++ b/Koha/Schema/Result/BorrowerPasswordRecovery.pm @@ -28,16 +28,12 @@ __PACKAGE__->table("borrower_password_recovery"); data_type: 'integer' is_nullable: 0 -the user asking a password recovery - =head2 uuid data_type: 'varchar' is_nullable: 0 size: 128 -a unique string to identify a password recovery attempt - =head2 valid_until data_type: 'timestamp' @@ -45,8 +41,6 @@ a unique string to identify a password recovery attempt default_value: current_timestamp is_nullable: 0 -a time limit on the password recovery attempt - =cut __PACKAGE__->add_columns( @@ -76,8 +70,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hEkX4lXahD+yz2VEb+JP1A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZFiLBGd0N11JjTF2Up3vxg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index c9d55a8182..da778bb51d 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -30,168 +30,122 @@ __PACKAGE__->table("branches"); is_nullable: 0 size: 10 -a unique key assigned to each branch - =head2 branchname data_type: 'longtext' is_nullable: 0 -the name of your library or branch - =head2 branchaddress1 data_type: 'longtext' is_nullable: 1 -the first address line of for your library or branch - =head2 branchaddress2 data_type: 'longtext' is_nullable: 1 -the second address line of for your library or branch - =head2 branchaddress3 data_type: 'longtext' is_nullable: 1 -the third address line of for your library or branch - =head2 branchzip data_type: 'varchar' is_nullable: 1 size: 25 -the zip or postal code for your library or branch - =head2 branchcity data_type: 'longtext' is_nullable: 1 -the city or province for your library or branch - =head2 branchstate data_type: 'longtext' is_nullable: 1 -the state for your library or branch - =head2 branchcountry data_type: 'mediumtext' is_nullable: 1 -the county for your library or branch - =head2 branchphone data_type: 'longtext' is_nullable: 1 -the primary phone for your library or branch - =head2 branchfax data_type: 'longtext' is_nullable: 1 -the fax number for your library or branch - =head2 branchemail data_type: 'longtext' is_nullable: 1 -the primary email address for your library or branch - =head2 branchillemail data_type: 'longtext' is_nullable: 1 -the ILL staff email address for your library or branch - =head2 branchreplyto data_type: 'longtext' is_nullable: 1 -the email to be used as a Reply-To - =head2 branchreturnpath data_type: 'longtext' is_nullable: 1 -the email to be used as Return-Path - =head2 branchurl data_type: 'longtext' is_nullable: 1 -the URL for your library or branch's website - =head2 issuing data_type: 'tinyint' is_nullable: 1 -unused in Koha - =head2 branchip data_type: 'varchar' is_nullable: 1 size: 15 -the IP address for your library or branch - =head2 branchnotes data_type: 'longtext' is_nullable: 1 -notes related to your library or branch - =head2 geolocation data_type: 'varchar' is_nullable: 1 size: 255 -geolocation of your library - =head2 marcorgcode data_type: 'varchar' is_nullable: 1 size: 16 -MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode - =head2 pickup_location data_type: 'tinyint' default_value: 1 is_nullable: 0 -the ability to act as a pickup location - =head2 public data_type: 'tinyint' default_value: 1 is_nullable: 0 -whether this library should show in the opac - =head2 opacuserjs data_type: 'longtext' @@ -996,8 +950,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uPEqYhJHemEHpZZOv0Z3ww __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 87b1cdcfb6..04d94a260b 100644 --- a/Koha/Schema/Result/Branchtransfer.pm +++ b/Koha/Schema/Result/Branchtransfer.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("branchtransfers"); is_auto_increment: 1 is_nullable: 0 -primary key - =head2 itemnumber data_type: 'integer' @@ -38,8 +36,6 @@ primary key is_foreign_key: 1 is_nullable: 0 -the itemnumber that it is in transit (items.itemnumber) - =head2 daterequested data_type: 'timestamp' @@ -47,16 +43,12 @@ the itemnumber that it is in transit (items.itemnumber) default_value: current_timestamp is_nullable: 0 -the date the transfer was requested - =head2 datesent data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the transfer was initialized - =head2 frombranch data_type: 'varchar' @@ -65,24 +57,18 @@ the date the transfer was initialized is_nullable: 0 size: 10 -the branch the transfer is coming from - =head2 datearrived data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the transfer arrived at its destination - =head2 datecancelled data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the transfer was cancelled - =head2 tobranch data_type: 'varchar' @@ -91,15 +77,11 @@ the date the transfer was cancelled is_nullable: 0 size: 10 -the branch the transfer was going to - =head2 comments data_type: 'longtext' is_nullable: 1 -any comments related to the transfer - =head2 reason data_type: 'enum' @@ -275,8 +257,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 16:48:17 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BkhtfptiDqKKSv/hmCQy3w +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yLYZESmZvW47JfIa9UA4sw sub koha_object_class { 'Koha::Item::Transfer'; diff --git a/Koha/Schema/Result/CashRegister.pm b/Koha/Schema/Result/CashRegister.pm index 339142a51c..fb08cf7989 100644 --- a/Koha/Schema/Result/CashRegister.pm +++ b/Koha/Schema/Result/CashRegister.pm @@ -29,23 +29,17 @@ __PACKAGE__->table("cash_registers"); is_auto_increment: 1 is_nullable: 0 -unique identifier for each account register - =head2 name data_type: 'varchar' is_nullable: 0 size: 24 -the user friendly identifier for each account register - =head2 description data_type: 'longtext' is_nullable: 0 -the user friendly description for each account register - =head2 branch data_type: 'varchar' @@ -53,32 +47,24 @@ the user friendly description for each account register is_nullable: 0 size: 10 -the foreign key the library this account register belongs - =head2 branch_default data_type: 'tinyint' default_value: 0 is_nullable: 0 -boolean flag to denote that this till is the branch default - =head2 starting_float data_type: 'decimal' is_nullable: 1 size: [28,6] -the starting float this account register should be assigned - =head2 archived data_type: 'tinyint' default_value: 0 is_nullable: 0 -boolean flag to denote if this till is archived or not - =cut __PACKAGE__->add_columns( @@ -174,8 +160,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NNSzc20vEH34dmEsTb5K0Q +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rrdVRgOYAuRLA2cwjYtmsg __PACKAGE__->add_columns( '+archived' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/CashRegisterAction.pm b/Koha/Schema/Result/CashRegisterAction.pm index 41c63d7e3c..7e0b307c69 100644 --- a/Koha/Schema/Result/CashRegisterAction.pm +++ b/Koha/Schema/Result/CashRegisterAction.pm @@ -29,40 +29,30 @@ __PACKAGE__->table("cash_register_actions"); is_auto_increment: 1 is_nullable: 0 -unique identifier for each account register action - =head2 code data_type: 'varchar' is_nullable: 0 size: 24 -action code denoting the type of action recorded (enum), - =head2 register_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -id of cash_register this action belongs to, - =head2 manager_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -staff member performing the action - =head2 amount data_type: 'decimal' is_nullable: 1 size: [28,6] -amount recorded in action (signed) - =head2 timestamp data_type: 'timestamp' @@ -137,8 +127,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fo6979mQEueJrDQw38Bh0w +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9Z4ns7whpf04cCNjWLozvQ sub koha_objects_class { 'Koha::Cash::Register::Actions'; diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index f7dd0fbf75..cd49484dd4 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -30,82 +30,60 @@ __PACKAGE__->table("categories"); is_nullable: 0 size: 10 -unique primary key used to idenfity the patron category - =head2 description data_type: 'longtext' is_nullable: 1 -description of the patron category - =head2 enrolmentperiod data_type: 'smallint' is_nullable: 1 -number of months the patron is enrolled for (will be NULL if enrolmentperioddate is set) - =head2 enrolmentperioddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron is enrolled until (will be NULL if enrolmentperiod is set) - =head2 password_expiry_days data_type: 'smallint' is_nullable: 1 -number of days after which the patron must reset their password - =head2 upperagelimit data_type: 'smallint' is_nullable: 1 -age limit for the patron - =head2 dateofbirthrequired data_type: 'tinyint' is_nullable: 1 -the minimum age required for the patron category - =head2 enrolmentfee data_type: 'decimal' is_nullable: 1 size: [28,6] -enrollment fee for the patron - =head2 overduenoticerequired data_type: 'tinyint' is_nullable: 1 -are overdue notices sent to this patron category (1 for yes, 0 for no) - =head2 reservefee data_type: 'decimal' is_nullable: 1 size: [28,6] -cost to place holds - =head2 hidelostitems data_type: 'tinyint' default_value: 0 is_nullable: 0 -are lost items shown to this category (1 for yes, 0 for no) - =head2 category_type data_type: 'varchar' @@ -113,8 +91,6 @@ are lost items shown to this category (1 for yes, 0 for no) is_nullable: 0 size: 1 -type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff) - =head2 BlockExpiredPatronOpacActions accessor: 'block_expired_patron_opac_actions' @@ -132,8 +108,6 @@ specific actions expired patrons of this category are blocked from performing or extra: {list => ["default","never","forever"]} is_nullable: 0 -Default privacy setting for this patron category - =head2 checkprevcheckout data_type: 'varchar' @@ -141,8 +115,6 @@ Default privacy setting for this patron category is_nullable: 0 size: 7 -produce a warning for this patron category if this item has previously been checked out to this patron if 'yes', not if 'no', defer to syspref setting if 'inherit'. - =head2 can_place_ill_in_opac data_type: 'tinyint' @@ -164,57 +136,46 @@ if patrons of this category can be guarantees data_type: 'tinyint' is_nullable: 1 -if patrons of this category can do the password reset flow, - =head2 change_password data_type: 'tinyint' is_nullable: 1 -if patrons of this category can change their passwords in the OAPC - =head2 min_password_length data_type: 'smallint' is_nullable: 1 -set minimum password length for patrons in this category - =head2 require_strong_password data_type: 'tinyint' is_nullable: 1 -set required password strength for patrons in this category +=head2 force_password_reset_when_set_by_staff + + data_type: 'tinyint' + is_nullable: 1 =head2 exclude_from_local_holds_priority data_type: 'tinyint' is_nullable: 1 -Exclude patrons of this category from local holds priority - =head2 noissuescharge data_type: 'integer' is_nullable: 1 -define maximum amount outstanding before checkouts are blocked - =head2 noissueschargeguarantees data_type: 'integer' is_nullable: 1 -define maximum amount that the guarantees of a patron in this category can have outstanding before checkouts are blocked - =head2 noissueschargeguarantorswithguarantees data_type: 'integer' is_nullable: 1 -define maximum amount that the guarantors with guarantees of a patron in this category can have outstanding before checkouts are blocked - =cut __PACKAGE__->add_columns( @@ -276,6 +237,8 @@ __PACKAGE__->add_columns( { data_type => "smallint", is_nullable => 1 }, "require_strong_password", { data_type => "tinyint", is_nullable => 1 }, + "force_password_reset_when_set_by_staff", + { data_type => "tinyint", is_nullable => 1 }, "exclude_from_local_holds_priority", { data_type => "tinyint", is_nullable => 1 }, "noissuescharge", @@ -300,18 +263,18 @@ __PACKAGE__->set_primary_key("categorycode"); =head1 RELATIONS -=head2 borrower_attribute_types +=head2 borrower_attribute_types_categories Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( - "borrower_attribute_types", - "Koha::Schema::Result::BorrowerAttributeType", - { "foreign.category_code" => "self.categorycode" }, + "borrower_attribute_types_categories", + "Koha::Schema::Result::BorrowerAttributeTypesCategory", + { "foreign.categorycode" => "self.categorycode" }, { cascade_copy => 0, cascade_delete => 0 }, ); @@ -390,9 +353,23 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 borrower_attribute_type_codes + +Type: many_to_many + +Composing rels: L -> borrower_attribute_type_code + +=cut + +__PACKAGE__->many_to_many( + "borrower_attribute_type_codes", + "borrower_attribute_types_categories", + "borrower_attribute_type_code", +); + -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-19 12:29:41 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WC8+n0x/UB9kDO1ZAVTo/A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P1wpV4Q/NsFQup4HKLpmfA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/CheckoutRenewal.pm b/Koha/Schema/Result/CheckoutRenewal.pm index 569fcfc049..dd5373d5c2 100644 --- a/Koha/Schema/Result/CheckoutRenewal.pm +++ b/Koha/Schema/Result/CheckoutRenewal.pm @@ -76,8 +76,6 @@ the date and time the renewal took place extra: {list => ["Automatic","Manual"]} is_nullable: 0 -whether the renewal was an automatic or manual renewal - =cut __PACKAGE__->add_columns( @@ -142,8 +140,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-12-08 10:49:16 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Si1gkXWqpvt98YN0dO7vgw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jFcTuBbtRSNwCTN1OMIbkw =head2 checkout diff --git a/Koha/Schema/Result/City.pm b/Koha/Schema/Result/City.pm index 5855dd21ec..e33948d96e 100644 --- a/Koha/Schema/Result/City.pm +++ b/Koha/Schema/Result/City.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("cities"); is_auto_increment: 1 is_nullable: 0 -unique identifier added by Koha - =head2 city_name data_type: 'varchar' @@ -38,32 +36,24 @@ unique identifier added by Koha is_nullable: 0 size: 100 -name of the city - =head2 city_state data_type: 'varchar' is_nullable: 1 size: 100 -name of the state/province - =head2 city_country data_type: 'varchar' is_nullable: 1 size: 100 -name of the country - =head2 city_zipcode data_type: 'varchar' is_nullable: 1 size: 20 -zip or postal code - =cut __PACKAGE__->add_columns( @@ -92,8 +82,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("cityid"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PF0pi+dNbKvxVDSpvHgB1Q +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4l2AyN8gHIoCaHGqscndEQ sub koha_objects_class { 'Koha::Cities'; diff --git a/Koha/Schema/Result/ClubHold.pm b/Koha/Schema/Result/ClubHold.pm index 04759bf412..c1cd721f94 100644 --- a/Koha/Schema/Result/ClubHold.pm +++ b/Koha/Schema/Result/ClubHold.pm @@ -35,24 +35,18 @@ __PACKAGE__->table("club_holds"); is_foreign_key: 1 is_nullable: 0 -id for the club the hold was generated for - =head2 biblio_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -id for the bibliographic record the hold has been placed against - =head2 item_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -If item-level, the id for the item the hold has been placed agains - =head2 date_created data_type: 'timestamp' @@ -60,8 +54,6 @@ If item-level, the id for the item the hold has been placed agains default_value: current_timestamp is_nullable: 0 -Timestamp for the placed hold - =cut __PACKAGE__->add_columns( @@ -162,8 +154,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dGkIYbw9CX0LqiH8XmuGAQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tWYWUZf1RQLyVUmgVUDKgg sub koha_objects_class { 'Koha::Club::Holds'; diff --git a/Koha/Schema/Result/Collection.pm b/Koha/Schema/Result/Collection.pm index 9c40fcd6be..bf62297c38 100644 --- a/Koha/Schema/Result/Collection.pm +++ b/Koha/Schema/Result/Collection.pm @@ -52,8 +52,6 @@ __PACKAGE__->table("collections"); is_nullable: 1 size: 10 -'branchcode for branch where item should be held.' - =cut __PACKAGE__->add_columns( @@ -134,8 +132,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-04-29 07:54:20 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:le+rc9BRLaPAApAZSZrKRg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fyc/JdSGpr2vSICa3moXRg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Course.pm b/Koha/Schema/Result/Course.pm index 29823d75df..f33f75b717 100644 --- a/Koha/Schema/Result/Course.pm +++ b/Koha/Schema/Result/Course.pm @@ -29,70 +29,52 @@ __PACKAGE__->table("courses"); is_auto_increment: 1 is_nullable: 0 -unique id for the course - =head2 department data_type: 'varchar' is_nullable: 1 size: 80 -the authorised value for the DEPARTMENT - =head2 course_number data_type: 'varchar' is_nullable: 1 size: 255 -the 'course number' assigned to a course - =head2 section data_type: 'varchar' is_nullable: 1 size: 255 -the 'section' of a course - =head2 course_name data_type: 'varchar' is_nullable: 1 size: 255 -the name of the course - =head2 term data_type: 'varchar' is_nullable: 1 size: 80 -the authorised value for the TERM - =head2 staff_note data_type: 'longtext' is_nullable: 1 -the text of the staff only note - =head2 public_note data_type: 'longtext' is_nullable: 1 -the text of the public / opac note - =head2 students_count data_type: 'varchar' is_nullable: 1 size: 20 -how many students will be taking this course/section - =head2 enabled data_type: 'enum' @@ -100,8 +82,6 @@ how many students will be taking this course/section extra: {list => ["yes","no"]} is_nullable: 0 -determines whether the course is active - =head2 timestamp data_type: 'timestamp' @@ -201,8 +181,8 @@ Composing rels: L -> borrowernumber __PACKAGE__->many_to_many("borrowernumbers", "course_instructors", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yoy4Un1rFmPk2EJW7Rf5/g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gdVuHSUiAgdQImlorqRs3g # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/CourseInstructor.pm b/Koha/Schema/Result/CourseInstructor.pm index 961d07c710..eb916f5828 100644 --- a/Koha/Schema/Result/CourseInstructor.pm +++ b/Koha/Schema/Result/CourseInstructor.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("course_instructors"); is_foreign_key: 1 is_nullable: 0 -foreign key to link to courses.course_id - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key to link to borrowers.borrowernumber for instructor information - =cut __PACKAGE__->add_columns( @@ -95,8 +91,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8JrMgWOtc6LGT7EjOzyjrQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XAAuCU7SFX5GhwR7mjCSRQ sub koha_objects_class { 'Koha::Course::Instructors'; diff --git a/Koha/Schema/Result/CourseItem.pm b/Koha/Schema/Result/CourseItem.pm index 76683eb517..f802362417 100644 --- a/Koha/Schema/Result/CourseItem.pm +++ b/Koha/Schema/Result/CourseItem.pm @@ -29,63 +29,53 @@ __PACKAGE__->table("course_items"); is_auto_increment: 1 is_nullable: 0 -course item id - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -items.itemnumber for the item on reserve - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -biblio.biblionumber for the bibliographic record on reserve - =head2 itype data_type: 'varchar' is_nullable: 1 size: 10 -new itemtype for the item to have while on reserve (optional) - =head2 itype_enabled data_type: 'tinyint' default_value: 0 is_nullable: 0 -indicates if itype should be changed while on course reserve - =head2 itype_storage data_type: 'varchar' is_nullable: 1 size: 10 -a place to store the itype when item is on course reserve - =head2 ccode data_type: 'varchar' is_nullable: 1 size: 80 -new category code for the item to have while on reserve (optional) - =head2 ccode_enabled data_type: 'tinyint' default_value: 0 is_nullable: 0 -indicates if ccode should be changed while on course reserve +=head2 holdingbranch_storage + + data_type: 'varchar' + is_nullable: 1 + size: 10 =head2 ccode_storage @@ -93,8 +83,6 @@ indicates if ccode should be changed while on course reserve is_nullable: 1 size: 80 -a place to store the ccode when item is on course reserve - =head2 homebranch data_type: 'varchar' @@ -102,16 +90,12 @@ a place to store the ccode when item is on course reserve is_nullable: 1 size: 10 -new home branch for the item to have while on reserve (optional) - =head2 homebranch_enabled data_type: 'tinyint' default_value: 0 is_nullable: 0 -indicates if homebranch should be changed while on course reserve - =head2 homebranch_storage data_type: 'varchar' @@ -119,8 +103,6 @@ indicates if homebranch should be changed while on course reserve is_nullable: 1 size: 10 -a place to store the homebranch when item is on course reserve - =head2 holdingbranch data_type: 'varchar' @@ -128,24 +110,12 @@ a place to store the homebranch when item is on course reserve is_nullable: 1 size: 10 -new holding branch for the item to have while on reserve (optional) - =head2 holdingbranch_enabled data_type: 'tinyint' default_value: 0 is_nullable: 0 -indicates if itype should be changed while on course reserve - -=head2 holdingbranch_storage - - data_type: 'varchar' - is_nullable: 1 - size: 10 - -a place to store the holdingbranch when item is on course reserve - =head2 location data_type: 'varchar' @@ -160,16 +130,12 @@ new shelving location for the item to have while on reserve (optional) default_value: 0 is_nullable: 0 -indicates if itype should be changed while on course reserve - =head2 location_storage data_type: 'varchar' is_nullable: 1 size: 80 -a place to store the location when the item is on course reserve - =head2 enabled data_type: 'enum' @@ -205,6 +171,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 80 }, "ccode_enabled", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "holdingbranch_storage", + { data_type => "varchar", is_nullable => 1, size => 10 }, "ccode_storage", { data_type => "varchar", is_nullable => 1, size => 80 }, "homebranch", @@ -217,8 +185,6 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, "holdingbranch_enabled", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, - "holdingbranch_storage", - { data_type => "varchar", is_nullable => 1, size => 10 }, "location", { data_type => "varchar", is_nullable => 1, size => 80 }, "location_enabled", @@ -380,8 +346,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-19 12:30:40 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZlR7CGNngDWQKmuggaYgVw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QSanYN7G9YbvdQBrKzTtTQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/CourseReserve.pm b/Koha/Schema/Result/CourseReserve.pm index 65a3f743b0..ab580b89e3 100644 --- a/Koha/Schema/Result/CourseReserve.pm +++ b/Koha/Schema/Result/CourseReserve.pm @@ -35,30 +35,22 @@ __PACKAGE__->table("course_reserves"); is_foreign_key: 1 is_nullable: 0 -foreign key to link to courses.course_id - =head2 ci_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key to link to courses_items.ci_id - =head2 staff_note data_type: 'longtext' is_nullable: 1 -staff only note - =head2 public_note data_type: 'longtext' is_nullable: 1 -public, OPAC visible note - =head2 timestamp data_type: 'timestamp' @@ -149,8 +141,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K3co29iVHAcF2/S0tGT1LA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BoVVaH3AYL42xGh/SAtcZQ sub koha_objects_class { 'Koha::Course::Reserves'; diff --git a/Koha/Schema/Result/CoverImage.pm b/Koha/Schema/Result/CoverImage.pm index 034933d41b..fac0aedac4 100644 --- a/Koha/Schema/Result/CoverImage.pm +++ b/Koha/Schema/Result/CoverImage.pm @@ -29,46 +29,34 @@ __PACKAGE__->table("cover_images"); is_auto_increment: 1 is_nullable: 0 -unique identifier for the image - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from biblio table to link to biblionumber - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from item table to link to itemnumber - =head2 mimetype data_type: 'varchar' is_nullable: 0 size: 15 -image type - =head2 imagefile data_type: 'mediumblob' is_nullable: 0 -image file contents - =head2 thumbnail data_type: 'mediumblob' is_nullable: 0 -thumbnail file contents - =head2 timestamp data_type: 'timestamp' @@ -76,8 +64,6 @@ thumbnail file contents default_value: current_timestamp is_nullable: 0 -image creation/update time - =cut __PACKAGE__->add_columns( @@ -157,8 +143,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qzy8edw2HP4jZbZRNCOf4A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Chx7eVkDFVejuTk4LY6HQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/CreatorLayout.pm b/Koha/Schema/Result/CreatorLayout.pm index 1dd3263b8f..e0536d1ff9 100644 --- a/Koha/Schema/Result/CreatorLayout.pm +++ b/Koha/Schema/Result/CreatorLayout.pm @@ -83,17 +83,15 @@ __PACKAGE__->table("creator_layouts"); =head2 scale_width - data_type: 'decimal' - default_value: 0.800000 + data_type: 'float' + default_value: 0.8 is_nullable: 0 - size: [28,6] =head2 scale_height - data_type: 'decimal' - default_value: 0.010000 + data_type: 'float' + default_value: 0.01 is_nullable: 0 - size: [28,6] =head2 units @@ -166,19 +164,9 @@ __PACKAGE__->add_columns( "font_size", { data_type => "integer", default_value => 10, is_nullable => 0 }, "scale_width", - { - data_type => "decimal", - default_value => "0.800000", - is_nullable => 0, - size => [28, 6], - }, + { data_type => "float", default_value => 0.8, is_nullable => 0 }, "scale_height", - { - data_type => "decimal", - default_value => "0.010000", - is_nullable => 0, - size => [28, 6], - }, + { data_type => "float", default_value => 0.01, is_nullable => 0 }, "units", { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 }, "callnum_split", @@ -216,8 +204,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("layout_id"); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-24 13:05:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W/ICw+9yY7wxZ0IgqqXcFg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I5tEDWTLS9yzjMLUU9ZPJg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm index 13a04ca326..48bd04be4c 100644 --- a/Koha/Schema/Result/Currency.pm +++ b/Koha/Schema/Result/Currency.pm @@ -72,6 +72,12 @@ __PACKAGE__->table("currency"); default_value: 0 is_nullable: 1 +=head2 p_cs_precedes + + data_type: 'tinyint' + default_value: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -96,6 +102,8 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "p_sep_by_space", { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "p_cs_precedes", + { data_type => "tinyint", default_value => 1, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -173,8 +181,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-06 16:45:06 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FmTABTXRmT/kwlkKkO/0pw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kUKfAYtgL+mkeJMRwJ/NIg sub koha_object_class { diff --git a/Koha/Schema/Result/Deletedbiblio.pm b/Koha/Schema/Result/Deletedbiblio.pm index 33b8c92ead..a2eabfef49 100644 --- a/Koha/Schema/Result/Deletedbiblio.pm +++ b/Koha/Schema/Result/Deletedbiblio.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("deletedbiblio"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned to each bibliographic record - =head2 frameworkcode data_type: 'varchar' @@ -38,71 +36,51 @@ unique identifier assigned to each bibliographic record is_nullable: 0 size: 4 -foriegn key from the biblio_framework table to identify which framework was used in cataloging this record - =head2 author data_type: 'longtext' is_nullable: 1 -statement of responsibility from MARC record (100$a in MARC21) - =head2 title data_type: 'longtext' is_nullable: 1 -title (without the subtitle) from the MARC record (245$a in MARC21) - =head2 medium data_type: 'longtext' is_nullable: 1 -medium from the MARC record (245$h in MARC21) - =head2 subtitle data_type: 'longtext' is_nullable: 1 -remainder of the title from the MARC record (245$b in MARC21) - =head2 part_number data_type: 'longtext' is_nullable: 1 -part number from the MARC record (245$n in MARC21) - =head2 part_name data_type: 'longtext' is_nullable: 1 -part name from the MARC record (245$p in MARC21) - =head2 unititle data_type: 'longtext' is_nullable: 1 -uniform title (without the subtitle) from the MARC record (240$a in MARC21) - =head2 notes data_type: 'longtext' is_nullable: 1 -values from the general notes field in the MARC record (500$a in MARC21) split by bar (|) - =head2 serial data_type: 'tinyint' is_nullable: 1 -Boolean indicating whether biblio is for a serial - =head2 seriestitle data_type: 'longtext' @@ -113,8 +91,6 @@ Boolean indicating whether biblio is for a serial data_type: 'smallint' is_nullable: 1 -publication or copyright date from the MARC record - =head2 timestamp data_type: 'timestamp' @@ -122,23 +98,17 @@ publication or copyright date from the MARC record default_value: current_timestamp is_nullable: 0 -date and time this record was last touched - =head2 datecreated data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 0 -the date this record was added to Koha - =head2 abstract data_type: 'longtext' is_nullable: 1 -summary from the MARC record (520$a in MARC21) - =cut __PACKAGE__->add_columns( @@ -211,8 +181,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KwlqhkWWX6CYWb3l2fCcSg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Gp0l2H0e065Q7W/gEW2Sog __PACKAGE__->has_many( "biblioitem", diff --git a/Koha/Schema/Result/DeletedbiblioMetadata.pm b/Koha/Schema/Result/DeletedbiblioMetadata.pm index 38fd6e974c..c38ecf4a0f 100644 --- a/Koha/Schema/Result/DeletedbiblioMetadata.pm +++ b/Koha/Schema/Result/DeletedbiblioMetadata.pm @@ -44,7 +44,7 @@ __PACKAGE__->table("deletedbiblio_metadata"); =head2 schema data_type: 'varchar' - is_nullable: 0 + is_nullable: 1 size: 16 =head2 metadata @@ -77,7 +77,7 @@ __PACKAGE__->add_columns( "format", { data_type => "varchar", is_nullable => 0, size => 16 }, "schema", - { data_type => "varchar", is_nullable => 0, size => 16 }, + { data_type => "varchar", is_nullable => 1, size => 16 }, "metadata", { data_type => "longtext", is_nullable => 0 }, "timestamp", @@ -162,8 +162,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:23:01 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n/IgiGmKu1znMd78vA+pVw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:duTrmoI+4eVn9b6LMSbumA sub koha_objects_class { 'Koha::Old::Biblio::Metadatas'; diff --git a/Koha/Schema/Result/Deletedbiblioitem.pm b/Koha/Schema/Result/Deletedbiblioitem.pm index 58f8870ff3..9f67bf1248 100644 --- a/Koha/Schema/Result/Deletedbiblioitem.pm +++ b/Koha/Schema/Result/Deletedbiblioitem.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("deletedbiblioitems"); default_value: 0 is_nullable: 0 -primary key, unique identifier assigned by Koha - =head2 biblionumber data_type: 'integer' default_value: 0 is_nullable: 0 -foreign key linking this table to the biblio table - =head2 volume data_type: 'longtext' @@ -55,22 +51,16 @@ foreign key linking this table to the biblio table is_nullable: 1 size: 10 -biblio level item type (MARC21 942$c) - =head2 isbn data_type: 'longtext' is_nullable: 1 -ISBN (MARC21 020$a) - =head2 issn data_type: 'longtext' is_nullable: 1 -ISSN (MARC21 022$a) - =head2 ean data_type: 'longtext' @@ -99,8 +89,6 @@ publisher (MARC21 260$b and 264$b) data_type: 'mediumtext' is_nullable: 1 -volume information (MARC21 362$a) - =head2 collectiontitle data_type: 'longtext' @@ -178,16 +166,12 @@ library of congress control number (MARC21 010$a) data_type: 'mediumtext' is_nullable: 1 -url (MARC21 856$u) - =head2 cn_source data_type: 'varchar' is_nullable: 1 size: 10 -classification source (MARC21 942$2) - =head2 cn_class data_type: 'varchar' @@ -212,16 +196,12 @@ classification source (MARC21 942$2) is_nullable: 1 size: 255 -normalized version of the call number used for sorting - =head2 agerestriction data_type: 'varchar' is_nullable: 1 size: 255 -target audience/age restriction from the bib record (MARC21 521$a) - =head2 totalissues data_type: 'integer' @@ -314,8 +294,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("biblioitemnumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-29 12:50:28 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q5ULiqLlmYdZQy4qr0wBtg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xZqKWgUwuzurhDperScQ9w sub koha_objects_class { 'Koha::Old::Biblioitems'; diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm index 866b8b3537..a590c22655 100644 --- a/Koha/Schema/Result/Deletedborrower.pm +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -29,29 +29,28 @@ __PACKAGE__->table("deletedborrowers"); default_value: 0 is_nullable: 0 -primary key, Koha assigned ID number for patrons/borrowers - =head2 cardnumber data_type: 'varchar' is_nullable: 1 size: 32 -unique key, library assigned ID number for patrons/borrowers - =head2 surname data_type: 'longtext' is_nullable: 1 -patron/borrower's last name (surname) - =head2 firstname data_type: 'mediumtext' is_nullable: 1 -patron/borrower's first name +=head2 preferred_name + + data_type: 'longtext' + is_nullable: 1 + +patron/borrower's preferred name =head2 middle_name @@ -65,215 +64,159 @@ patron/borrower's middle name data_type: 'longtext' is_nullable: 1 -patron/borrower's title, for example: Mr. or Mrs. - =head2 othernames data_type: 'longtext' is_nullable: 1 -any other names associated with the patron/borrower - =head2 initials data_type: 'mediumtext' is_nullable: 1 -initials for your patron/borrower - =head2 pronouns data_type: 'longtext' is_nullable: 1 -patron/borrower pronouns +patron/borrower's pronouns =head2 streetnumber data_type: 'tinytext' is_nullable: 1 -the house number for your patron/borrower's primary address - =head2 streettype data_type: 'tinytext' is_nullable: 1 -the street type (Rd., Blvd, etc) for your patron/borrower's primary address - =head2 address data_type: 'longtext' is_nullable: 1 -the first address line for your patron/borrower's primary address - =head2 address2 data_type: 'mediumtext' is_nullable: 1 -the second address line for your patron/borrower's primary address - =head2 city data_type: 'longtext' is_nullable: 1 -the city or town for your patron/borrower's primary address - =head2 state data_type: 'mediumtext' is_nullable: 1 -the state or province for your patron/borrower's primary address - =head2 zipcode data_type: 'tinytext' is_nullable: 1 -the zip or postal code for your patron/borrower's primary address - =head2 country data_type: 'mediumtext' is_nullable: 1 -the country for your patron/borrower's primary address - =head2 email data_type: 'longtext' is_nullable: 1 -the primary email address for your patron/borrower's primary address - =head2 phone data_type: 'mediumtext' is_nullable: 1 -the primary phone number for your patron/borrower's primary address - =head2 mobile data_type: 'tinytext' is_nullable: 1 -the other phone number for your patron/borrower's primary address - =head2 fax data_type: 'longtext' is_nullable: 1 -the fax number for your patron/borrower's primary address - =head2 emailpro data_type: 'mediumtext' is_nullable: 1 -the secondary email addres for your patron/borrower's primary address - =head2 phonepro data_type: 'mediumtext' is_nullable: 1 -the secondary phone number for your patron/borrower's primary address - =head2 B_streetnumber accessor: 'b_streetnumber' data_type: 'tinytext' is_nullable: 1 -the house number for your patron/borrower's alternate address - =head2 B_streettype accessor: 'b_streettype' data_type: 'tinytext' is_nullable: 1 -the street type (Rd., Blvd, etc) for your patron/borrower's alternate address - =head2 B_address accessor: 'b_address' data_type: 'mediumtext' is_nullable: 1 -the first address line for your patron/borrower's alternate address - =head2 B_address2 accessor: 'b_address2' data_type: 'mediumtext' is_nullable: 1 -the second address line for your patron/borrower's alternate address - =head2 B_city accessor: 'b_city' data_type: 'longtext' is_nullable: 1 -the city or town for your patron/borrower's alternate address - =head2 B_state accessor: 'b_state' data_type: 'mediumtext' is_nullable: 1 -the state for your patron/borrower's alternate address - =head2 B_zipcode accessor: 'b_zipcode' data_type: 'tinytext' is_nullable: 1 -the zip or postal code for your patron/borrower's alternate address - =head2 B_country accessor: 'b_country' data_type: 'mediumtext' is_nullable: 1 -the country for your patron/borrower's alternate address - =head2 B_email accessor: 'b_email' data_type: 'mediumtext' is_nullable: 1 -the patron/borrower's alternate email address - =head2 B_phone accessor: 'b_phone' data_type: 'longtext' is_nullable: 1 -the patron/borrower's alternate phone number - =head2 dateofbirth data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the patron/borrower's date of birth (YYYY-MM-DD) - =head2 branchcode data_type: 'varchar' @@ -281,8 +224,6 @@ the patron/borrower's date of birth (YYYY-MM-DD) is_nullable: 0 size: 10 -foreign key from the branches table, includes the code of the patron/borrower's home branch - =head2 categorycode data_type: 'varchar' @@ -290,122 +231,90 @@ foreign key from the branches table, includes the code of the patron/borrower's is_nullable: 0 size: 10 -foreign key from the categories table, includes the code of the patron category - =head2 dateenrolled data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron was added to Koha (YYYY-MM-DD) - =head2 dateexpiry data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron/borrower's card is set to expire (YYYY-MM-DD) - =head2 password_expiration_date data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron/borrower's password is set to expire (YYYY-MM-DD) - =head2 date_renewed data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the patron/borrower's card was last renewed - =head2 gonenoaddress data_type: 'tinyint' is_nullable: 1 -set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address - =head2 lost data_type: 'tinyint' is_nullable: 1 -set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card - =head2 debarred data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYYY-MM-DD) - =head2 debarredcomment data_type: 'varchar' is_nullable: 1 size: 255 -comment on the stop of patron - =head2 contactname data_type: 'longtext' is_nullable: 1 -used for children and profesionals to include surname or last name of guarantor or organization name - =head2 contactfirstname data_type: 'mediumtext' is_nullable: 1 -used for children to include first name of guarantor - =head2 contacttitle data_type: 'mediumtext' is_nullable: 1 -used for children to include title (Mr., Mrs., etc) of guarantor - =head2 borrowernotes data_type: 'longtext' is_nullable: 1 -a note on the patron/borrower's account that is only visible in the staff interface - =head2 relationship data_type: 'varchar' is_nullable: 1 size: 100 -used for children to include the relationship to their guarantor - =head2 sex data_type: 'varchar' is_nullable: 1 size: 1 -patron/borrower's gender - =head2 password data_type: 'varchar' is_nullable: 1 size: 60 -patron/borrower's encrypted password - =head2 secret data_type: 'mediumtext' @@ -435,141 +344,103 @@ will include a number associated with the staff member's permissions is_nullable: 1 size: 75 -patron/borrower's opac and/or staff interface log in - =head2 opacnote data_type: 'longtext' is_nullable: 1 -a note on the patron/borrower's account that is visible in the OPAC and staff interface - =head2 contactnote data_type: 'varchar' is_nullable: 1 size: 255 -a note related to the patron/borrower's alternate address - =head2 sort1 data_type: 'varchar' is_nullable: 1 size: 80 -a field that can be used for any information unique to the library - =head2 sort2 data_type: 'varchar' is_nullable: 1 size: 80 -a field that can be used for any information unique to the library - =head2 altcontactfirstname data_type: 'mediumtext' is_nullable: 1 -first name of alternate contact for the patron/borrower - =head2 altcontactsurname data_type: 'mediumtext' is_nullable: 1 -surname or last name of the alternate contact for the patron/borrower - =head2 altcontactaddress1 data_type: 'mediumtext' is_nullable: 1 -the first address line for the alternate contact for the patron/borrower - =head2 altcontactaddress2 data_type: 'mediumtext' is_nullable: 1 -the second address line for the alternate contact for the patron/borrower - =head2 altcontactaddress3 data_type: 'mediumtext' is_nullable: 1 -the city for the alternate contact for the patron/borrower - =head2 altcontactstate data_type: 'mediumtext' is_nullable: 1 -the state for the alternate contact for the patron/borrower - =head2 altcontactzipcode data_type: 'mediumtext' is_nullable: 1 -the zipcode for the alternate contact for the patron/borrower - =head2 altcontactcountry data_type: 'mediumtext' is_nullable: 1 -the country for the alternate contact for the patron/borrower - =head2 altcontactphone data_type: 'mediumtext' is_nullable: 1 -the phone number for the alternate contact for the patron/borrower - =head2 smsalertnumber data_type: 'varchar' is_nullable: 1 size: 50 -the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on) - =head2 sms_provider_id data_type: 'integer' is_nullable: 1 -the provider of the mobile phone number defined in smsalertnumber - =head2 privacy data_type: 'integer' default_value: 1 is_nullable: 0 -patron/borrower's privacy settings related to their checkout history KEY `borrowernumber` (`borrowernumber`), - =head2 privacy_guarantor_fines data_type: 'tinyint' default_value: 0 is_nullable: 0 -controls if relatives can see this patron's fines - =head2 privacy_guarantor_checkouts data_type: 'tinyint' default_value: 0 is_nullable: 0 -controls if relatives can see this patron's checkouts - =head2 checkprevcheckout data_type: 'varchar' @@ -577,8 +448,6 @@ controls if relatives can see this patron's checkouts is_nullable: 0 size: 7 -produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. - =head2 updated_on data_type: 'timestamp' @@ -594,8 +463,6 @@ time of last change could be useful for synchronization with external systems (a datetime_undef_if_invalid: 1 is_nullable: 1 -last time a patron has been seen (connected at the OPAC or staff interface) - =head2 lang data_type: 'varchar' @@ -603,47 +470,35 @@ last time a patron has been seen (connected at the OPAC or staff interface) is_nullable: 0 size: 25 -lang to use to send notices to this patron - =head2 login_attempts data_type: 'integer' default_value: 0 is_nullable: 0 -number of failed login attemps - =head2 overdrive_auth_token data_type: 'mediumtext' is_nullable: 1 -persist OverDrive auth token - =head2 anonymized data_type: 'tinyint' default_value: 0 is_nullable: 0 -flag for data anonymization - =head2 autorenew_checkouts data_type: 'tinyint' default_value: 1 is_nullable: 0 -flag for allowing auto-renewal - =head2 primary_contact_method data_type: 'varchar' is_nullable: 1 size: 45 -useful for reporting purposes - =head2 protected data_type: 'tinyint' @@ -663,6 +518,8 @@ __PACKAGE__->add_columns( { data_type => "longtext", is_nullable => 1 }, "firstname", { data_type => "mediumtext", is_nullable => 1 }, + "preferred_name", + { data_type => "longtext", is_nullable => 1 }, "middle_name", { data_type => "longtext", is_nullable => 1 }, "title", @@ -848,8 +705,8 @@ __PACKAGE__->add_columns( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-01 18:21:38 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdNGUFdglTb3Heu+VjLWFw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4CVBr61zGnR30QlsXFM8nQ __PACKAGE__->add_columns( '+anonymized' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index a681163b1e..f95b9f8e51 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -29,39 +29,30 @@ __PACKAGE__->table("deleteditems"); default_value: 0 is_nullable: 0 -primary key and unique identifier added by Koha - =head2 biblionumber data_type: 'integer' default_value: 0 is_nullable: 0 -foreign key from biblio table used to link this item to the right bib record - =head2 biblioitemnumber data_type: 'integer' default_value: 0 is_nullable: 0 -foreign key from the biblioitems table to link to item to additional information - =head2 barcode data_type: 'varchar' is_nullable: 1 size: 20 -item barcode (MARC21 952$p) - =head2 bookable data_type: 'tinyint' - default_value: 0 - is_nullable: 0 + is_nullable: 1 -boolean value defining whether this item is available for bookings or not +nullable boolean value defining whether this this item is available for bookings or not =head2 dateaccessioned @@ -69,63 +60,47 @@ boolean value defining whether this item is available for bookings or not datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was acquired or added to Koha (MARC21 952$d) - =head2 booksellerid data_type: 'longtext' is_nullable: 1 -where the item was purchased (MARC21 952$e) - =head2 homebranch data_type: 'varchar' is_nullable: 1 size: 10 -foreign key from the branches table for the library that owns this item (MARC21 952$a) - =head2 price data_type: 'decimal' is_nullable: 1 size: [8,2] -purchase price (MARC21 952$g) - =head2 replacementprice data_type: 'decimal' is_nullable: 1 size: [8,2] -cost the library charges to replace the item if it has been marked lost (MARC21 952$v) - =head2 replacementpricedate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the price is effective from (MARC21 952$w) - =head2 datelastborrowed data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the item was last checked out - =head2 datelastseen data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the item was last see (usually the last time the barcode was scanned or inventory was done) - =head2 stack data_type: 'tinyint' @@ -137,130 +112,98 @@ the date the item was last see (usually the last time the barcode was scanned or default_value: 0 is_nullable: 0 -authorized value defining why this item is not for loan (MARC21 952$7) - =head2 damaged data_type: 'tinyint' default_value: 0 is_nullable: 0 -authorized value defining this item as damaged (MARC21 952$4) - =head2 damaged_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time an item was last marked as damaged, NULL if not damaged - =head2 itemlost data_type: 'tinyint' default_value: 0 is_nullable: 0 -authorized value defining this item as lost (MARC21 952$1) - =head2 itemlost_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time an item was last marked as lost, NULL if not lost - =head2 withdrawn data_type: 'tinyint' default_value: 0 is_nullable: 0 -authorized value defining this item as withdrawn (MARC21 952$0) - =head2 withdrawn_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time an item was last marked as withdrawn, NULL if not withdrawn - =head2 itemcallnumber data_type: 'varchar' is_nullable: 1 size: 255 -call number for this item (MARC21 952$o) - =head2 coded_location_qualifier data_type: 'varchar' is_nullable: 1 size: 10 -coded location qualifier(MARC21 952$f) - =head2 issues data_type: 'smallint' default_value: 0 is_nullable: 1 -number of times this item has been checked out - =head2 renewals data_type: 'smallint' is_nullable: 1 -number of times this item has been renewed - =head2 localuse data_type: 'smallint' is_nullable: 1 -number of times this item has been recorded as localuse +deleteditems local use count =head2 reserves data_type: 'smallint' is_nullable: 1 -number of times this item has been placed on hold/reserved - =head2 restricted data_type: 'tinyint' is_nullable: 1 -authorized value defining use restrictions for this item (MARC21 952$5) - =head2 itemnotes data_type: 'longtext' is_nullable: 1 -public notes on this item (MARC21 952$z) - =head2 itemnotes_nonpublic data_type: 'longtext' is_nullable: 1 -non-public notes on this item (MARC21 952$x) - =head2 holdingbranch data_type: 'varchar' is_nullable: 1 size: 10 -foreign key from the branches table for the library that is currently in possession item (MARC21 952$b) - =head2 timestamp data_type: 'timestamp' @@ -268,8 +211,6 @@ foreign key from the branches table for the library that is currently in possess default_value: current_timestamp is_nullable: 0 -date and time this item was last altered - =head2 deleted_on data_type: 'datetime' @@ -284,115 +225,85 @@ date/time of deletion is_nullable: 1 size: 80 -authorized value for the shelving location for this item (MARC21 952$c) - =head2 permanent_location data_type: 'varchar' is_nullable: 1 size: 80 -linked to the CART and PROC temporary locations feature, stores the permanent shelving location - =head2 onloan data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -defines if item is checked out (NULL for not checked out, and due date for checked out) - =head2 cn_source data_type: 'varchar' is_nullable: 1 size: 10 -classification source used on this item (MARC21 952$2) - =head2 cn_sort data_type: 'varchar' is_nullable: 1 size: 255 -normalized form of the call number (MARC21 952$o) used for sorting - =head2 ccode data_type: 'varchar' is_nullable: 1 size: 80 -authorized value for the collection code associated with this item (MARC21 952$8) - =head2 materials data_type: 'mediumtext' is_nullable: 1 -materials specified (MARC21 952$3) - =head2 uri data_type: 'mediumtext' is_nullable: 1 -URL for the item (MARC21 952$u) - =head2 itype data_type: 'varchar' is_nullable: 1 size: 10 -foreign key from the itemtypes table defining the type for this item (MARC21 952$y) - =head2 more_subfields_xml data_type: 'longtext' is_nullable: 1 -additional 952 subfields in XML format - =head2 enumchron data_type: 'mediumtext' is_nullable: 1 -serial enumeration/chronology for the item (MARC21 952$h) - =head2 copynumber data_type: 'varchar' is_nullable: 1 size: 32 -copy number (MARC21 952$t) - =head2 stocknumber data_type: 'varchar' is_nullable: 1 size: 32 -inventory number (MARC21 952$i) - =head2 new_status data_type: 'varchar' is_nullable: 1 size: 32 -'new' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob. - =head2 exclude_from_local_holds_priority data_type: 'tinyint' is_nullable: 1 -Exclude this item from local holds priority - =cut __PACKAGE__->add_columns( @@ -405,7 +316,7 @@ __PACKAGE__->add_columns( "barcode", { data_type => "varchar", is_nullable => 1, size => 20 }, "bookable", - { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", is_nullable => 1 }, "dateaccessioned", { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, "booksellerid", @@ -532,8 +443,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("itemnumber"); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YYwxdwFVXmG0NJ0oFd8bUg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Y1SpAvgRu3lEpPslJa09g __PACKAGE__->add_columns( '+bookable' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Desk.pm b/Koha/Schema/Result/Desk.pm index 20aae97fe0..69d1dbb562 100644 --- a/Koha/Schema/Result/Desk.pm +++ b/Koha/Schema/Result/Desk.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("desks"); is_auto_increment: 1 is_nullable: 0 -unique identifier - =head2 desk_name data_type: 'varchar' @@ -38,8 +36,6 @@ unique identifier is_nullable: 0 size: 100 -name of the desk - =head2 branchcode data_type: 'varchar' @@ -47,8 +43,6 @@ name of the desk is_nullable: 0 size: 10 -library the desk is located at - =cut __PACKAGE__->add_columns( @@ -105,8 +99,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7qeCP25arGQpM4xxnTmWbw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yrEgeIm5/N7WpA+8osCdtg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/ErmCounterFile.pm b/Koha/Schema/Result/ErmCounterFile.pm index f9564b3e83..a79b04ef89 100644 --- a/Koha/Schema/Result/ErmCounterFile.pm +++ b/Koha/Schema/Result/ErmCounterFile.pm @@ -67,7 +67,7 @@ content of the counter file data_type: 'timestamp' datetime_undef_if_invalid: 1 default_value: current_timestamp - is_nullable: 1 + is_nullable: 0 counter file upload date @@ -89,7 +89,7 @@ __PACKAGE__->add_columns( data_type => "timestamp", datetime_undef_if_invalid => 1, default_value => \"current_timestamp", - is_nullable => 1, + is_nullable => 0, }, ); @@ -143,8 +143,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-30 17:43:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnXyJtZQBhfxPPNnkyxJ8Q +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yYR3WnsXxqTwOZktcyLerQ sub koha_object_class { diff --git a/Koha/Schema/Result/ErmCounterLog.pm b/Koha/Schema/Result/ErmCounterLog.pm index 4927a96aea..680ecf35ba 100644 --- a/Koha/Schema/Result/ErmCounterLog.pm +++ b/Koha/Schema/Result/ErmCounterLog.pm @@ -60,7 +60,7 @@ foreign key to erm_usage_data_providers data_type: 'timestamp' datetime_undef_if_invalid: 1 default_value: current_timestamp - is_nullable: 1 + is_nullable: 0 counter file import date @@ -95,7 +95,7 @@ __PACKAGE__->add_columns( data_type => "timestamp", datetime_undef_if_invalid => 1, default_value => \"current_timestamp", - is_nullable => 1, + is_nullable => 0, }, "filename", { data_type => "varchar", is_nullable => 1, size => 80 }, @@ -178,8 +178,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-30 17:43:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEB6HZDsjTTJVWlnW+y/Ng +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JFKRlR0HcnqIMTFnOyBFiQ sub koha_object_class { diff --git a/Koha/Schema/Result/ErmDocument.pm b/Koha/Schema/Result/ErmDocument.pm index e39705444f..47f9be03ae 100644 --- a/Koha/Schema/Result/ErmDocument.pm +++ b/Koha/Schema/Result/ErmDocument.pm @@ -45,7 +45,7 @@ link to the agreement is_foreign_key: 1 is_nullable: 1 -link to the license +link to the agreement =head2 file_name @@ -195,8 +195,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-21 09:22:27 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rbU2G4zjKlEcOtuwVBSXaw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zjASY5cR5PtRB6pI1uhgwA sub koha_object_class { 'Koha::ERM::Document'; diff --git a/Koha/Schema/Result/HouseboundProfile.pm b/Koha/Schema/Result/HouseboundProfile.pm index 5c37bb36d5..6e790646b9 100644 --- a/Koha/Schema/Result/HouseboundProfile.pm +++ b/Koha/Schema/Result/HouseboundProfile.pm @@ -29,57 +29,41 @@ __PACKAGE__->table("housebound_profile"); is_foreign_key: 1 is_nullable: 0 -Number of the borrower associated with this profile. - =head2 day data_type: 'mediumtext' is_nullable: 0 -The preferred day of the week for delivery. - =head2 frequency data_type: 'mediumtext' is_nullable: 0 -The Authorised_Value definining the pattern for delivery. - =head2 fav_itemtypes data_type: 'mediumtext' is_nullable: 1 -Free text describing preferred itemtypes. - =head2 fav_subjects data_type: 'mediumtext' is_nullable: 1 -Free text describing preferred subjects. - =head2 fav_authors data_type: 'mediumtext' is_nullable: 1 -Free text describing preferred authors. - =head2 referral data_type: 'mediumtext' is_nullable: 1 -Free text indicating how the borrower was added to the service. - =head2 notes data_type: 'mediumtext' is_nullable: 1 -Free text for additional notes. - =cut __PACKAGE__->add_columns( @@ -146,8 +130,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VmCvv8WVQCmAXCfWHsLIdg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y0wlmZ8Taku/B/icA/Etpg sub koha_object_class { 'Koha::Patron::HouseboundProfile'; diff --git a/Koha/Schema/Result/HouseboundRole.pm b/Koha/Schema/Result/HouseboundRole.pm index d0c267f5c7..8f168e4e34 100644 --- a/Koha/Schema/Result/HouseboundRole.pm +++ b/Koha/Schema/Result/HouseboundRole.pm @@ -29,24 +29,18 @@ __PACKAGE__->table("housebound_role"); is_foreign_key: 1 is_nullable: 0 -borrowernumber link - =head2 housebound_chooser data_type: 'tinyint' default_value: 0 is_nullable: 0 -set to 1 to indicate this patron is a housebound chooser volunteer - =head2 housebound_deliverer data_type: 'tinyint' default_value: 0 is_nullable: 0 -set to 1 to indicate this patron is a housebound deliverer volunteer - =cut __PACKAGE__->add_columns( @@ -88,8 +82,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BocU8VE+5j4lYlxNU6Lofw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s2PnvRRo5tOqRfG/OxfqdQ sub koha_object_class { 'Koha::Patron::HouseboundRole'; diff --git a/Koha/Schema/Result/HouseboundVisit.pm b/Koha/Schema/Result/HouseboundVisit.pm index a0488bab0f..f2d17a44c2 100644 --- a/Koha/Schema/Result/HouseboundVisit.pm +++ b/Koha/Schema/Result/HouseboundVisit.pm @@ -29,48 +29,36 @@ __PACKAGE__->table("housebound_visit"); is_auto_increment: 1 is_nullable: 0 -ID of the visit. - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -Number of the borrower, & the profile, linked to this visit. - =head2 appointment_date data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -Date of visit. - =head2 day_segment data_type: 'varchar' is_nullable: 1 size: 10 -Rough time frame: 'morning', 'afternoon' 'evening' - =head2 chooser_brwnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -Number of the borrower to choose items for delivery. - =head2 deliverer_brwnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -Number of the borrower to deliver items. - =cut __PACKAGE__->add_columns( @@ -158,8 +146,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PJwWk4901BF+CG6AXgjffg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YOMDRcb24vwXqrGIcmdqyw sub koha_object_class { 'Koha::Patron::HouseboundVisit'; diff --git a/Koha/Schema/Result/Illcomment.pm b/Koha/Schema/Result/Illcomment.pm index 62f0341b7a..14d5f35743 100644 --- a/Koha/Schema/Result/Illcomment.pm +++ b/Koha/Schema/Result/Illcomment.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("illcomments"); is_auto_increment: 1 is_nullable: 0 -Unique ID of the comment - =head2 illrequest_id data_type: 'bigint' @@ -38,23 +36,17 @@ Unique ID of the comment is_foreign_key: 1 is_nullable: 0 -ILL request number - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -Link to the user who made the comment (could be librarian, patron or ILL partner library) - =head2 comment data_type: 'text' is_nullable: 1 -The text of the comment - =head2 timestamp data_type: 'timestamp' @@ -62,8 +54,6 @@ The text of the comment default_value: current_timestamp is_nullable: 0 -Date and time when the comment was made - =cut __PACKAGE__->add_columns( @@ -139,8 +129,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z5Y6mVTLtrYxmqmyAc/E7A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7JsdOuwMPLzGXsWQ1cm5Fw # sub koha_objects_class { 'Koha::ILL::Comments'; diff --git a/Koha/Schema/Result/Illrequest.pm b/Koha/Schema/Result/Illrequest.pm index 98d68f700b..60edf72dc8 100644 --- a/Koha/Schema/Result/Illrequest.pm +++ b/Koha/Schema/Result/Illrequest.pm @@ -30,24 +30,18 @@ __PACKAGE__->table("illrequests"); is_auto_increment: 1 is_nullable: 0 -ILL request number - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -Patron associated with request - =head2 biblio_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -Potential bib linked to request - =head2 deleted_biblio_id data_type: 'integer' @@ -70,16 +64,12 @@ Custom date due specified by backend, leave NULL for default date_due calculatio is_nullable: 0 size: 50 -The branch associated with the request - =head2 status data_type: 'varchar' is_nullable: 1 size: 50 -Current Koha status of request - =head2 status_alias data_type: 'varchar' @@ -87,24 +77,18 @@ Current Koha status of request is_nullable: 1 size: 80 -Foreign key to relevant authorised_values.authorised_value - =head2 placed data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -Date the request was placed - =head2 replied data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -Last API response - =head2 updated data_type: 'timestamp' @@ -118,70 +102,52 @@ Last API response datetime_undef_if_invalid: 1 is_nullable: 1 -Date the request was completed - =head2 medium data_type: 'varchar' is_nullable: 1 size: 30 -The Koha request type - =head2 accessurl data_type: 'varchar' is_nullable: 1 size: 500 -Potential URL for accessing item - =head2 cost data_type: 'varchar' is_nullable: 1 size: 20 -Quotes cost of request - =head2 price_paid data_type: 'varchar' is_nullable: 1 size: 20 -Final cost of request - =head2 notesopac data_type: 'mediumtext' is_nullable: 1 -Patron notes attached to request - =head2 notesstaff data_type: 'mediumtext' is_nullable: 1 -Staff notes attached to request - =head2 orderid data_type: 'varchar' is_nullable: 1 size: 50 -Backend id attached to request - =head2 backend data_type: 'varchar' is_nullable: 1 size: 20 -The backend used to create request - =head2 batch_id data_type: 'integer' @@ -391,8 +357,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-10 14:49:40 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DQl+7uwLCz5GeqU2hBFmMA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zNb38zhSBhr1qFuX0MKLpw __PACKAGE__->has_many( "comments", diff --git a/Koha/Schema/Result/Illrequestattribute.pm b/Koha/Schema/Result/Illrequestattribute.pm index a52e87ec67..fb7f1b6c2f 100644 --- a/Koha/Schema/Result/Illrequestattribute.pm +++ b/Koha/Schema/Result/Illrequestattribute.pm @@ -30,8 +30,6 @@ __PACKAGE__->table("illrequestattributes"); is_foreign_key: 1 is_nullable: 0 -ILL request number - =head2 backend data_type: 'varchar' @@ -46,23 +44,17 @@ API ILL backend name is_nullable: 0 size: 200 -API ILL property name - =head2 value data_type: 'mediumtext' is_nullable: 0 -API ILL property value - =head2 readonly data_type: 'tinyint' default_value: 1 is_nullable: 0 -Is this attribute read only - =cut __PACKAGE__->add_columns( @@ -117,8 +109,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-25 14:33:42 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ACb1xoMuMjLHDIit/H29Vw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7bKpM3D84mESMJCB1qWzTQ __PACKAGE__->add_columns( '+readonly' => { is_boolean => 1 } diff --git a/Koha/Schema/Result/ImportBatch.pm b/Koha/Schema/Result/ImportBatch.pm index da8f290a74..3c2d71729a 100644 --- a/Koha/Schema/Result/ImportBatch.pm +++ b/Koha/Schema/Result/ImportBatch.pm @@ -29,15 +29,11 @@ __PACKAGE__->table("import_batches"); is_auto_increment: 1 is_nullable: 0 -unique identifier and primary key - =head2 matcher_id data_type: 'integer' is_nullable: 1 -the id of the match rule used (matchpoints.matcher_id) - =head2 template_id data_type: 'integer' @@ -55,16 +51,12 @@ the id of the match rule used (matchpoints.matcher_id) default_value: 0 is_nullable: 0 -number of records in the file - =head2 num_items data_type: 'integer' default_value: 0 is_nullable: 0 -number of items in the file - =head2 upload_timestamp data_type: 'timestamp' @@ -72,8 +64,6 @@ number of items in the file default_value: current_timestamp is_nullable: 0 -date and time the file was uploaded - =head2 overlay_action data_type: 'enum' @@ -81,8 +71,6 @@ date and time the file was uploaded extra: {list => ["replace","create_new","use_template","ignore"]} is_nullable: 0 -how to handle duplicate records - =head2 nomatch_action data_type: 'enum' @@ -90,8 +78,6 @@ how to handle duplicate records extra: {list => ["create_new","ignore"]} is_nullable: 0 -how to handle records where no match is found - =head2 item_action data_type: 'enum' @@ -99,8 +85,6 @@ how to handle records where no match is found extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]} is_nullable: 0 -what to do with item records - =head2 import_status data_type: 'enum' @@ -108,8 +92,6 @@ what to do with item records extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]} is_nullable: 0 -the status of the imported file - =head2 batch_type data_type: 'enum' @@ -117,8 +99,6 @@ the status of the imported file extra: {list => ["batch","z3950","webservice"]} is_nullable: 0 -where this batch has come from - =head2 record_type data_type: 'enum' @@ -126,23 +106,17 @@ where this batch has come from extra: {list => ["biblio","auth","holdings"]} is_nullable: 0 -type of record in the batch - =head2 file_name data_type: 'varchar' is_nullable: 1 size: 100 -the name of the file uploaded - =head2 comments data_type: 'longtext' is_nullable: 1 -any comments added when the file was uploaded - =head2 profile_id data_type: 'integer' @@ -289,8 +263,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+/u1tQQzT5ygzGwVgWxxwg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uFoAppnU5qt3O5SGTpDYNA =head2 koha_object_class diff --git a/Koha/Schema/Result/ImportBatchProfile.pm b/Koha/Schema/Result/ImportBatchProfile.pm index faf19433ff..900f4edcc6 100644 --- a/Koha/Schema/Result/ImportBatchProfile.pm +++ b/Koha/Schema/Result/ImportBatchProfile.pm @@ -29,92 +29,68 @@ __PACKAGE__->table("import_batch_profiles"); is_auto_increment: 1 is_nullable: 0 -unique identifier and primary key - =head2 name data_type: 'varchar' is_nullable: 0 size: 100 -name of this profile - =head2 matcher_id data_type: 'integer' is_nullable: 1 -the id of the match rule used (matchpoints.matcher_id) - =head2 template_id data_type: 'integer' is_nullable: 1 -the id of the marc modification template - =head2 overlay_action data_type: 'varchar' is_nullable: 1 size: 50 -how to handle duplicate records - =head2 nomatch_action data_type: 'varchar' is_nullable: 1 size: 50 -how to handle records where no match is found - =head2 item_action data_type: 'varchar' is_nullable: 1 size: 50 -what to do with item records - =head2 parse_items data_type: 'tinyint' is_nullable: 1 -should items be parsed - =head2 record_type data_type: 'varchar' is_nullable: 1 size: 50 -type of record in the batch - =head2 encoding data_type: 'varchar' is_nullable: 1 size: 50 -file encoding - =head2 format data_type: 'varchar' is_nullable: 1 size: 50 -marc format - =head2 comments data_type: 'longtext' is_nullable: 1 -any comments added when the file was uploaded - =cut __PACKAGE__->add_columns( @@ -188,8 +164,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RmvuwPN8RT+tBsxR+Q7unA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OUHaIfgycYzwP8lVDNIq2w # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/ImportRecordMatch.pm b/Koha/Schema/Result/ImportRecordMatch.pm index 06ffb07d7e..182332282a 100644 --- a/Koha/Schema/Result/ImportRecordMatch.pm +++ b/Koha/Schema/Result/ImportRecordMatch.pm @@ -29,30 +29,22 @@ __PACKAGE__->table("import_record_matches"); is_foreign_key: 1 is_nullable: 0 -the id given to the imported bib record (import_records.import_record_id) - =head2 candidate_match_id data_type: 'integer' is_nullable: 0 -the biblio the imported record matches (biblio.biblionumber) - =head2 score data_type: 'integer' default_value: 0 is_nullable: 0 -the match score - =head2 chosen data_type: 'tinyint' is_nullable: 1 -whether this match has been allowed or denied - =cut __PACKAGE__->add_columns( @@ -98,8 +90,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-03 20:30:28 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a1GMA3K9ZgtPGdsCWmDMFw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:puw090AMgWU8yoOKjM3fIA __PACKAGE__->add_columns( '+chosen' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index 05fde17f46..64412e2ac4 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("issues"); is_auto_increment: 1 is_nullable: 0 -primary key for issues table - =head2 borrowernumber data_type: 'integer' @@ -45,8 +43,6 @@ foreign key, linking this to the borrowers table for the patron this item was ch is_foreign_key: 1 is_nullable: 1 -foreign key, linking this to the borrowers table for the user who checked out this item - =head2 itemnumber data_type: 'integer' @@ -61,23 +57,25 @@ foreign key, linking this to the items table for the item that was checked out datetime_undef_if_invalid: 1 is_nullable: 1 -datetime the item is due (yyyy-mm-dd hh:mm::ss) - =head2 branchcode data_type: 'varchar' is_nullable: 1 size: 10 -foreign key, linking to the branches table for the location the item was checked out - =head2 returndate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was returned, will be NULL until moved to old_issues +=head2 checkin_library + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +library the item was checked in at =head2 lastreneweddate @@ -85,8 +83,6 @@ date the item was returned, will be NULL until moved to old_issues datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was last renewed - =head2 renewals_count data_type: 'tinyint' @@ -101,24 +97,18 @@ lists the number of times the item was renewed default_value: 0 is_nullable: 0 -lists the number of consecutive times the item was renewed without being seen - =head2 auto_renew data_type: 'tinyint' default_value: 0 is_nullable: 1 -automatic renewal - =head2 auto_renew_error data_type: 'varchar' is_nullable: 1 size: 32 -automatic renewal error - =head2 timestamp data_type: 'timestamp' @@ -126,46 +116,34 @@ automatic renewal error default_value: current_timestamp is_nullable: 0 -the date and time this record was last touched - =head2 issuedate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was checked out or issued - =head2 onsite_checkout data_type: 'integer' default_value: 0 is_nullable: 0 -in house use flag - =head2 note data_type: 'longtext' is_nullable: 1 -issue note text - =head2 notedate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -datetime of issue note (yyyy-mm-dd hh:mm::ss) - =head2 noteseen data_type: 'integer' is_nullable: 1 -describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null - =cut __PACKAGE__->add_columns( @@ -191,6 +169,8 @@ __PACKAGE__->add_columns( datetime_undef_if_invalid => 1, is_nullable => 1, }, + "checkin_library", + { data_type => "varchar", is_nullable => 1, size => 10 }, "lastreneweddate", { data_type => "datetime", @@ -260,6 +240,21 @@ __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); =head1 RELATIONS +=head2 accountlines + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "accountlines", + "Koha::Schema::Result::Accountline", + { "foreign.issue_id" => "self.issue_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 borrowernumber Type: belongs_to @@ -311,8 +306,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-12 11:34:50 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eNzDAKc3bmTLWeDu8u4nTQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qe/lwF8MIus9bQNtrvdSQg __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 92fe4d1088..f8ec93f475 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("items"); is_auto_increment: 1 is_nullable: 0 -primary key and unique identifier added by Koha - =head2 biblionumber data_type: 'integer' @@ -38,8 +36,6 @@ primary key and unique identifier added by Koha is_foreign_key: 1 is_nullable: 0 -foreign key from biblio table used to link this item to the right bib record - =head2 biblioitemnumber data_type: 'integer' @@ -47,23 +43,18 @@ foreign key from biblio table used to link this item to the right bib record is_foreign_key: 1 is_nullable: 0 -foreign key from the biblioitems table to link to item to additional information - =head2 barcode data_type: 'varchar' is_nullable: 1 size: 20 -item barcode (MARC21 952$p) - =head2 bookable data_type: 'tinyint' - default_value: 0 - is_nullable: 0 + is_nullable: 1 -boolean value defining whether this item is available for bookings or not +nullable boolean value defining whether this this item is available for bookings or not =head2 dateaccessioned @@ -71,15 +62,11 @@ boolean value defining whether this item is available for bookings or not datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was acquired or added to Koha (MARC21 952$d) - =head2 booksellerid data_type: 'longtext' is_nullable: 1 -where the item was purchased (MARC21 952$e) - =head2 homebranch data_type: 'varchar' @@ -87,48 +74,36 @@ where the item was purchased (MARC21 952$e) is_nullable: 1 size: 10 -foreign key from the branches table for the library that owns this item (MARC21 952$a) - =head2 price data_type: 'decimal' is_nullable: 1 size: [8,2] -purchase price (MARC21 952$g) - =head2 replacementprice data_type: 'decimal' is_nullable: 1 size: [8,2] -cost the library charges to replace the item if it has been marked lost (MARC21 952$v) - =head2 replacementpricedate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the price is effective from (MARC21 952$w) - =head2 datelastborrowed data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the item was last checked out/issued - =head2 datelastseen data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the item was last see (usually the last time the barcode was scanned or inventory was done) - =head2 stack data_type: 'tinyint' @@ -140,122 +115,92 @@ the date the item was last see (usually the last time the barcode was scanned or default_value: 0 is_nullable: 0 -authorized value defining why this item is not for loan (MARC21 952$7) - =head2 damaged data_type: 'tinyint' default_value: 0 is_nullable: 0 -authorized value defining this item as damaged (MARC21 952$4) - =head2 damaged_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time an item was last marked as damaged, NULL if not damaged - =head2 itemlost data_type: 'tinyint' default_value: 0 is_nullable: 0 -authorized value defining this item as lost (MARC21 952$1) - =head2 itemlost_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time an item was last marked as lost, NULL if not lost - =head2 withdrawn data_type: 'tinyint' default_value: 0 is_nullable: 0 -authorized value defining this item as withdrawn (MARC21 952$0) - =head2 withdrawn_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time an item was last marked as withdrawn, NULL if not withdrawn - =head2 itemcallnumber data_type: 'varchar' is_nullable: 1 size: 255 -call number for this item (MARC21 952$o) - =head2 coded_location_qualifier data_type: 'varchar' is_nullable: 1 size: 10 -coded location qualifier(MARC21 952$f) - =head2 issues data_type: 'smallint' default_value: 0 is_nullable: 1 -number of times this item has been checked out/issued - =head2 renewals data_type: 'smallint' is_nullable: 1 -number of times this item has been renewed - =head2 localuse data_type: 'smallint' is_nullable: 1 -number of times this item has been recorded as localuse +item's local use count =head2 reserves data_type: 'smallint' is_nullable: 1 -number of times this item has been placed on hold/reserved - =head2 restricted data_type: 'tinyint' is_nullable: 1 -authorized value defining use restrictions for this item (MARC21 952$5) - =head2 itemnotes data_type: 'longtext' is_nullable: 1 -public notes on this item (MARC21 952$z) - =head2 itemnotes_nonpublic data_type: 'longtext' is_nullable: 1 -non-public notes on this item (MARC21 952$x) - =head2 holdingbranch data_type: 'varchar' @@ -263,8 +208,6 @@ non-public notes on this item (MARC21 952$x) is_nullable: 1 size: 10 -foreign key from the branches table for the library that is currently in possession item (MARC21 952$b) - =head2 timestamp data_type: 'timestamp' @@ -272,8 +215,6 @@ foreign key from the branches table for the library that is currently in possess default_value: current_timestamp is_nullable: 0 -date and time this item was last altered - =head2 deleted_on data_type: 'datetime' @@ -288,115 +229,85 @@ date/time of deletion is_nullable: 1 size: 80 -authorized value for the shelving location for this item (MARC21 952$c) - =head2 permanent_location data_type: 'varchar' is_nullable: 1 size: 80 -linked to the CART and PROC temporary locations feature, stores the permanent shelving location - =head2 onloan data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -defines if item is checked out (NULL for not checked out, and due date for checked out) - =head2 cn_source data_type: 'varchar' is_nullable: 1 size: 10 -classification source used on this item (MARC21 952$2) - =head2 cn_sort data_type: 'varchar' is_nullable: 1 size: 255 -normalized form of the call number (MARC21 952$o) used for sorting - =head2 ccode data_type: 'varchar' is_nullable: 1 size: 80 -authorized value for the collection code associated with this item (MARC21 952$8) - =head2 materials data_type: 'mediumtext' is_nullable: 1 -materials specified (MARC21 952$3) - =head2 uri data_type: 'mediumtext' is_nullable: 1 -URL for the item (MARC21 952$u) - =head2 itype data_type: 'varchar' is_nullable: 1 size: 10 -foreign key from the itemtypes table defining the type for this item (MARC21 952$y) - =head2 more_subfields_xml data_type: 'longtext' is_nullable: 1 -additional 952 subfields in XML format - =head2 enumchron data_type: 'mediumtext' is_nullable: 1 -serial enumeration/chronology for the item (MARC21 952$h) - =head2 copynumber data_type: 'varchar' is_nullable: 1 size: 32 -copy number (MARC21 952$t) - =head2 stocknumber data_type: 'varchar' is_nullable: 1 size: 32 -inventory number (MARC21 952$i) - =head2 new_status data_type: 'varchar' is_nullable: 1 size: 32 -'new' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob. - =head2 exclude_from_local_holds_priority data_type: 'tinyint' is_nullable: 1 -Exclude this item from local holds priority - =cut __PACKAGE__->add_columns( @@ -419,7 +330,7 @@ __PACKAGE__->add_columns( "barcode", { data_type => "varchar", is_nullable => 1, size => 20 }, "bookable", - { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", is_nullable => 1 }, "dateaccessioned", { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, "booksellerid", @@ -992,8 +903,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5OoZ3tUXC5pzN5JXWWu7fA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UfX6t/8BFJctorSaf3rc0w __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 3b4c89654a..d5afe7607f 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -176,6 +176,12 @@ Group this item type with others with the same value on OPAC search options If automatic checkin is enabled for items of this type +=head2 bookable + + data_type: 'integer' + default_value: 0 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -222,6 +228,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 80 }, "automatic_checkin", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "bookable", + { data_type => "integer", default_value => 0, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -349,8 +357,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-10-09 21:42:51 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+/gmrTCXAvhf12UGXmC3yg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tvirQVYkf7pk/Uo0RE1E+Q __PACKAGE__->add_columns( '+automatic_checkin' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/LanguageScriptBidi.pm b/Koha/Schema/Result/LanguageScriptBidi.pm index 76f7654811..9be149ed50 100644 --- a/Koha/Schema/Result/LanguageScriptBidi.pm +++ b/Koha/Schema/Result/LanguageScriptBidi.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("language_script_bidi"); is_nullable: 1 size: 25 -script subtag, Arab, Hebr, etc. - =head2 bidi data_type: 'varchar' is_nullable: 1 size: 3 -rtl ltr - =cut __PACKAGE__->add_columns( @@ -49,8 +45,8 @@ __PACKAGE__->add_columns( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GSnruAebthrEidJqzPY6Yg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:utCAo0eCBCglxXLbaJqVSw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/LanguageSubtagRegistry.pm b/Koha/Schema/Result/LanguageSubtagRegistry.pm index 7534bcb73b..8f94165367 100644 --- a/Koha/Schema/Result/LanguageSubtagRegistry.pm +++ b/Koha/Schema/Result/LanguageSubtagRegistry.pm @@ -35,16 +35,12 @@ __PACKAGE__->table("language_subtag_registry"); is_nullable: 1 size: 25 -language-script-region-variant-extension-privateuse - =head2 description data_type: 'varchar' is_nullable: 1 size: 255 -only one of the possible descriptions for ease of reference, see language_descriptions for the complete list - =head2 added data_type: 'date' @@ -101,8 +97,8 @@ __PACKAGE__->set_primary_key("id"); __PACKAGE__->add_unique_constraint("uniq_lang", ["subtag", "type"]); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-09 07:52:09 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZeDY9hf5cnovkdtPQRe2Aw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XSzbBlpgWkhk6PFNAXqeVw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm index a473612e51..0a8a1902fe 100644 --- a/Koha/Schema/Result/Letter.pm +++ b/Koha/Schema/Result/Letter.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("letter"); is_auto_increment: 1 is_nullable: 0 -primary key identifier - =head2 module data_type: 'varchar' @@ -38,8 +36,6 @@ primary key identifier is_nullable: 0 size: 20 -Koha module that triggers this notice or slip - =head2 code data_type: 'varchar' @@ -47,8 +43,6 @@ Koha module that triggers this notice or slip is_nullable: 0 size: 20 -unique identifier for this notice or slip - =head2 branchcode data_type: 'varchar' @@ -56,8 +50,6 @@ unique identifier for this notice or slip is_nullable: 0 size: 10 -the branch this notice or slip is used at (branches.branchcode) - =head2 name data_type: 'varchar' @@ -65,16 +57,12 @@ the branch this notice or slip is used at (branches.branchcode) is_nullable: 0 size: 100 -plain text name for this notice or slip - =head2 is_html data_type: 'tinyint' default_value: 0 is_nullable: 1 -does this notice or slip use HTML (1 for yes, 0 for no) - =head2 title data_type: 'varchar' @@ -82,15 +70,11 @@ does this notice or slip use HTML (1 for yes, 0 for no) is_nullable: 0 size: 200 -subject line of the notice - =head2 content data_type: 'mediumtext' is_nullable: 1 -body text for the notice or slip - =head2 message_transport_type data_type: 'varchar' @@ -99,8 +83,6 @@ body text for the notice or slip is_nullable: 0 size: 20 -transport type for this notice - =head2 lang data_type: 'varchar' @@ -108,8 +90,6 @@ transport type for this notice is_nullable: 0 size: 25 -lang of the notice - =head2 updated_on data_type: 'timestamp' @@ -117,15 +97,11 @@ lang of the notice default_value: current_timestamp is_nullable: 0 -last modification - =head2 style data_type: 'mediumtext' is_nullable: 1 -custom styles for this notice - =cut __PACKAGE__->add_columns( @@ -241,8 +217,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 17:01:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UglmO8Xk7xnC09bYETA5+w +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UFwxC/tQJckiRjdStuhV2A sub koha_object_class { 'Koha::Notice::Template'; diff --git a/Koha/Schema/Result/LibraryGroup.pm b/Koha/Schema/Result/LibraryGroup.pm index 4bd64609e6..72bf37fd5a 100644 --- a/Koha/Schema/Result/LibraryGroup.pm +++ b/Koha/Schema/Result/LibraryGroup.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("library_groups"); is_auto_increment: 1 is_nullable: 0 -unique id for each group - =head2 parent_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -if this is a child group, the id of the parent group - =head2 branchcode data_type: 'varchar' @@ -46,63 +42,47 @@ if this is a child group, the id of the parent group is_nullable: 1 size: 10 -The branchcode of a branch belonging to the parent group - =head2 title data_type: 'varchar' is_nullable: 1 size: 100 -Short description of the goup - =head2 description data_type: 'mediumtext' is_nullable: 1 -Longer explanation of the group, if necessary - =head2 ft_hide_patron_info data_type: 'tinyint' default_value: 0 is_nullable: 0 -Turn on the feature 'Hide patron's info' for this group - =head2 ft_limit_item_editing data_type: 'tinyint' default_value: 0 is_nullable: 0 -Turn on the feature "Limit item editing by group" for this group - =head2 ft_search_groups_opac data_type: 'tinyint' default_value: 0 is_nullable: 0 -Use this group for staff side search groups - =head2 ft_search_groups_staff data_type: 'tinyint' default_value: 0 is_nullable: 0 -Use this group for opac side search groups - =head2 ft_local_hold_group data_type: 'tinyint' default_value: 0 is_nullable: 0 -Use this group to identify libraries as pick up location for holds - =head2 ft_local_float_group data_type: 'tinyint' @@ -117,8 +97,6 @@ Use this group to identify libraries as part of float group datetime_undef_if_invalid: 1 is_nullable: 1 -Date and time of creation - =head2 updated_on data_type: 'timestamp' @@ -126,8 +104,6 @@ Date and time of creation default_value: current_timestamp is_nullable: 0 -Date and time of last - =cut __PACKAGE__->add_columns( @@ -266,8 +242,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-04 17:58:31 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M9YgMuCWhncegAzkH8uoJg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4AxoI+SJ7Ds7xALwzdOoZg sub koha_object_class { 'Koha::Library::Group'; diff --git a/Koha/Schema/Result/Linktracker.pm b/Koha/Schema/Result/Linktracker.pm index 6cc99ce859..38322d2a8c 100644 --- a/Koha/Schema/Result/Linktracker.pm +++ b/Koha/Schema/Result/Linktracker.pm @@ -29,47 +29,35 @@ __PACKAGE__->table("linktracker"); is_auto_increment: 1 is_nullable: 0 -primary key identifier - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -biblionumber of the record the link is from - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -itemnumber if applicable that the link was from - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrowernumber who clicked the link - =head2 url data_type: 'mediumtext' is_nullable: 1 -the link itself - =head2 timeclicked data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time the link was clicked - =cut __PACKAGE__->add_columns( @@ -166,8 +154,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-27 08:42:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ksT3i//fQn+HnBKt4YZlhg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fafcir6jNWbVKJ7DPb/JCg sub koha_object_class { 'Koha::TrackedLink'; diff --git a/Koha/Schema/Result/MarcMatcher.pm b/Koha/Schema/Result/MarcMatcher.pm index 3f1750a0bc..7abbfc9b44 100644 --- a/Koha/Schema/Result/MarcMatcher.pm +++ b/Koha/Schema/Result/MarcMatcher.pm @@ -56,6 +56,22 @@ __PACKAGE__->table("marc_matchers"); default_value: 0 is_nullable: 0 +=head2 use_for_manual_cataloging + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +Use this matching rule to find duplicates while cataloging manually instead of the default matching mechanism + +=head2 forbid_duplicate_creation + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +Do not show an option to create a duplicate record when a duplicate is found + =cut __PACKAGE__->add_columns( @@ -74,6 +90,10 @@ __PACKAGE__->add_columns( }, "threshold", { data_type => "integer", default_value => 0, is_nullable => 0 }, + "use_for_manual_cataloging", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "forbid_duplicate_creation", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -136,8 +156,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2K4K9wfjRlJJKDztPgHJDA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xmqg/jJHJzD3aO6VW6myIA # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/MarcModificationTemplateAction.pm b/Koha/Schema/Result/MarcModificationTemplateAction.pm index a39a02ef7b..87b17d8130 100644 --- a/Koha/Schema/Result/MarcModificationTemplateAction.pm +++ b/Koha/Schema/Result/MarcModificationTemplateAction.pm @@ -44,7 +44,7 @@ __PACKAGE__->table("marc_modification_template_actions"); data_type: 'enum' extra: {list => ["delete_field","add_field","update_field","move_field","copy_field","copy_and_replace_field"]} - is_nullable: 0 + is_nullable: 1 =head2 field_number @@ -160,7 +160,7 @@ __PACKAGE__->add_columns( "copy_and_replace_field", ], }, - is_nullable => 0, + is_nullable => 1, }, "field_number", { data_type => "smallint", default_value => 0, is_nullable => 0 }, @@ -234,8 +234,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-24 20:18:23 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yDK2nFt+Fj3UuXAij1UwQw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vv2bxtISArzl/CINxnSeiQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Message.pm b/Koha/Schema/Result/Message.pm index 5aa3733230..840a49d96f 100644 --- a/Koha/Schema/Result/Message.pm +++ b/Koha/Schema/Result/Message.pm @@ -29,39 +29,29 @@ __PACKAGE__->table("messages"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key linking this message to the borrowers table - =head2 branchcode data_type: 'varchar' is_nullable: 1 size: 10 -foreign key linking the message to the branches table - =head2 message_type data_type: 'varchar' is_nullable: 0 size: 1 -whether the message is for the librarians (L) or the patron (B) - =head2 message data_type: 'mediumtext' is_nullable: 0 -the text of the message - =head2 message_date data_type: 'timestamp' @@ -69,24 +59,18 @@ the text of the message default_value: current_timestamp is_nullable: 0 -the date and time the message was written - =head2 manager_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -creator of message - =head2 patron_read_date data_type: 'timestamp' datetime_undef_if_invalid: 1 is_nullable: 1 -the date and time the patron dismissed the message - =cut __PACKAGE__->add_columns( @@ -167,8 +151,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-20 18:35:40 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y3cJsv6T0LekoQiyi3T/aA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Az+E1LqqgJo9oLC7YLnQ7Q sub koha_object_class { 'Koha::Patron::Message'; diff --git a/Koha/Schema/Result/MiscFile.pm b/Koha/Schema/Result/MiscFile.pm index a9a3e4326f..288eb57576 100644 --- a/Koha/Schema/Result/MiscFile.pm +++ b/Koha/Schema/Result/MiscFile.pm @@ -29,54 +29,40 @@ __PACKAGE__->table("misc_files"); is_auto_increment: 1 is_nullable: 0 -unique id for the file record - =head2 table_tag data_type: 'varchar' is_nullable: 0 size: 255 -usually table name, or arbitrary unique tag - =head2 record_id data_type: 'integer' is_nullable: 0 -record id from the table this file is associated to - =head2 file_name data_type: 'varchar' is_nullable: 0 size: 255 -file name - =head2 file_type data_type: 'varchar' is_nullable: 0 size: 255 -MIME type of the file - =head2 file_description data_type: 'varchar' is_nullable: 1 size: 255 -description given to the file - =head2 file_content data_type: 'longblob' is_nullable: 0 -file content - =head2 date_uploaded data_type: 'timestamp' @@ -84,8 +70,6 @@ file content default_value: current_timestamp is_nullable: 0 -date and time the file was added - =cut __PACKAGE__->add_columns( @@ -125,8 +109,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("file_id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pMegXaTV3y1vCURBL1Zsdg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RuXau+YOz1SIXSXRV1JGDA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/NeedMergeAuthority.pm b/Koha/Schema/Result/NeedMergeAuthority.pm index 88d87e1a91..04afda40e5 100644 --- a/Koha/Schema/Result/NeedMergeAuthority.pm +++ b/Koha/Schema/Result/NeedMergeAuthority.pm @@ -29,29 +29,21 @@ __PACKAGE__->table("need_merge_authorities"); is_auto_increment: 1 is_nullable: 0 -unique id - =head2 authid data_type: 'bigint' is_nullable: 0 -reference to original authority record - =head2 authid_new data_type: 'bigint' is_nullable: 1 -reference to optional new authority record - =head2 reportxml data_type: 'mediumtext' is_nullable: 1 -xml showing original reporting tag - =head2 timestamp data_type: 'timestamp' @@ -59,8 +51,6 @@ xml showing original reporting tag default_value: current_timestamp is_nullable: 0 -date and time last modified - =head2 done data_type: 'tinyint' @@ -102,8 +92,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZGE483WQMHZLpdgAAPHMKg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iz9qkeTppTB1c7IlFaWx1Q sub koha_object_class { 'Koha::Authority::MergeRequest'; diff --git a/Koha/Schema/Result/OauthAccessToken.pm b/Koha/Schema/Result/OauthAccessToken.pm index acae6ea479..ffb797e078 100644 --- a/Koha/Schema/Result/OauthAccessToken.pm +++ b/Koha/Schema/Result/OauthAccessToken.pm @@ -29,23 +29,17 @@ __PACKAGE__->table("oauth_access_tokens"); is_nullable: 0 size: 191 -generarated access token - =head2 client_id data_type: 'varchar' is_nullable: 0 size: 191 -the client id the access token belongs to - =head2 expires data_type: 'integer' is_nullable: 0 -expiration time in seconds - =cut __PACKAGE__->add_columns( @@ -70,8 +64,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("access_token"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3mL1s811AK45Nn5yPSJSaA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LKgmlWrdARp2aAphOAuaYw sub koha_object_class { 'Koha::OAuthAccessToken'; diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index 50ef4a82e0..e789dd8adc 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -28,55 +28,49 @@ __PACKAGE__->table("old_issues"); data_type: 'integer' is_nullable: 0 -primary key for issues table - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key, linking this to the borrowers table for the patron this item was checked out to - =head2 issuer_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key, linking this to the borrowers table for the user who checked out this item - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key, linking this to the items table for the item that was checked out - =head2 date_due data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date the item is due (yyyy-mm-dd) - =head2 branchcode data_type: 'varchar' is_nullable: 1 size: 10 -foreign key, linking to the branches table for the location the item was checked out - =head2 returndate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was returned +=head2 checkin_library + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +library the item was checked in at =head2 lastreneweddate @@ -84,8 +78,6 @@ date the item was returned datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was last renewed - =head2 renewals_count data_type: 'tinyint' @@ -100,24 +92,18 @@ lists the number of times the item was renewed default_value: 0 is_nullable: 0 -lists the number of consecutive times the item was renewed without being seen - =head2 auto_renew data_type: 'tinyint' default_value: 0 is_nullable: 1 -automatic renewal - =head2 auto_renew_error data_type: 'varchar' is_nullable: 1 size: 32 -automatic renewal error - =head2 timestamp data_type: 'timestamp' @@ -125,46 +111,34 @@ automatic renewal error default_value: current_timestamp is_nullable: 0 -the date and time this record was last touched - =head2 issuedate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date the item was checked out or issued - =head2 onsite_checkout data_type: 'integer' default_value: 0 is_nullable: 0 -in house use flag - =head2 note data_type: 'longtext' is_nullable: 1 -issue note text - =head2 notedate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -datetime of issue note (yyyy-mm-dd hh:mm::ss) - =head2 noteseen data_type: 'integer' is_nullable: 1 -describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null - =cut __PACKAGE__->add_columns( @@ -190,6 +164,8 @@ __PACKAGE__->add_columns( datetime_undef_if_invalid => 1, is_nullable => 1, }, + "checkin_library", + { data_type => "varchar", is_nullable => 1, size => 10 }, "lastreneweddate", { data_type => "datetime", @@ -245,6 +221,21 @@ __PACKAGE__->set_primary_key("issue_id"); =head1 RELATIONS +=head2 accountlines + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "accountlines", + "Koha::Schema::Result::Accountline", + { "foreign.old_issue_id" => "self.issue_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 borrowernumber Type: belongs_to @@ -306,8 +297,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-18 12:35:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0XlDHyg8uB3oD9/jJtOxRg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R2IhmytEDnDBAG2TzZzvcA __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm index cbe46e7881..f4baeff5d2 100644 --- a/Koha/Schema/Result/OldReserve.pm +++ b/Koha/Schema/Result/OldReserve.pm @@ -28,31 +28,30 @@ __PACKAGE__->table("old_reserves"); data_type: 'integer' is_nullable: 0 -primary key - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from the borrowers table defining which patron this hold is for - =head2 reservedate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the hold was places - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from the biblio table defining which bib record this hold is on +=head2 deleted_biblionumber + + data_type: 'integer' + is_nullable: 1 + +links the hold to the deleted bibliographic record (deletedbiblio.biblionumber) =head2 item_group_id @@ -60,8 +59,6 @@ foreign key from the biblio table defining which bib record this hold is on is_foreign_key: 1 is_nullable: 1 -foreign key from the item_groups table defining if this is an item group level hold - =head2 branchcode data_type: 'varchar' @@ -69,70 +66,52 @@ foreign key from the item_groups table defining if this is an item group level h is_nullable: 1 size: 10 -foreign key from the branches table defining which branch the patron wishes to pick this hold up at - =head2 desk_id data_type: 'integer' is_nullable: 1 -foreign key from the desks table defining which desk the patron should pick this hold up at - =head2 notificationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -currently unused - =head2 reminderdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -currently unused - =head2 cancellationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this hold was cancelled - =head2 cancellation_reason data_type: 'varchar' is_nullable: 1 size: 80 -optional authorised value CANCELLATION_REASON - =head2 reservenotes data_type: 'longtext' is_nullable: 1 -notes related to this hold - =head2 priority data_type: 'smallint' default_value: 1 is_nullable: 0 -where in the queue the patron sits - =head2 found data_type: 'varchar' is_nullable: 1 size: 1 -a one letter code defining what the status is of the hold is after it has been confirmed - =head2 timestamp data_type: 'timestamp' @@ -140,32 +119,24 @@ a one letter code defining what the status is of the hold is after it has been c default_value: current_timestamp is_nullable: 0 -the date and time this hold was last updated - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with - =head2 waitingdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the item was marked as waiting for the patron at the library - =head2 expirationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) - =head2 patron_expiration_date data_type: 'date' @@ -181,24 +152,18 @@ the date the hold expires - usually the date entered by the patron to say they d default_value: 0 is_nullable: 0 -has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no) - =head2 suspend data_type: 'tinyint' default_value: 0 is_nullable: 0 -in this hold suspended (1 for yes, 0 for no) - =head2 suspend_until data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this hold is suspended until (NULL for infinitely) - =head2 itemtype data_type: 'varchar' @@ -206,24 +171,18 @@ the date this hold is suspended until (NULL for infinitely) is_nullable: 1 size: 10 -If record level hold, the optional itemtype of the item the patron is requesting - =head2 item_level_hold data_type: 'tinyint' default_value: 0 is_nullable: 0 -Is the hold placed at item level - =head2 non_priority data_type: 'tinyint' default_value: 0 is_nullable: 0 -Is this a non priority hold - =cut __PACKAGE__->add_columns( @@ -235,6 +194,8 @@ __PACKAGE__->add_columns( { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, "biblionumber", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "deleted_biblionumber", + { data_type => "integer", is_nullable => 1 }, "item_group_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "branchcode", @@ -428,8 +389,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-05 06:44:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SQp2OEYb3im1x3A+W0h37w +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NrjO5Qm10RH9vr+NCyF3Sw __PACKAGE__->belongs_to( "item", diff --git a/Koha/Schema/Result/Overduerule.pm b/Koha/Schema/Result/Overduerule.pm index c52005ca50..b3b6586f19 100644 --- a/Koha/Schema/Result/Overduerule.pm +++ b/Koha/Schema/Result/Overduerule.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("overduerules"); is_auto_increment: 1 is_nullable: 0 -unique identifier for the overduerules - =head2 branchcode data_type: 'varchar' @@ -38,8 +36,6 @@ unique identifier for the overduerules is_nullable: 0 size: 10 -foreign key from the branches table to define which branch this rule is for (if blank it's all libraries) - =head2 categorycode data_type: 'varchar' @@ -47,23 +43,17 @@ foreign key from the branches table to define which branch this rule is for (if is_nullable: 0 size: 10 -foreign key from the categories table to define which patron category this rule is for - =head2 delay1 data_type: 'integer' is_nullable: 1 -number of days after the item is overdue that the first notice is sent - =head2 letter1 data_type: 'varchar' is_nullable: 1 size: 20 -foreign key from the letter table to define which notice should be sent as the first notice - =head2 debarred1 data_type: 'varchar' @@ -71,15 +61,11 @@ foreign key from the letter table to define which notice should be sent as the f is_nullable: 1 size: 1 -is the patron restricted when the first notice is sent (1 for yes, 0 for no) - =head2 delay2 data_type: 'integer' is_nullable: 1 -number of days after the item is overdue that the second notice is sent - =head2 debarred2 data_type: 'varchar' @@ -87,39 +73,29 @@ number of days after the item is overdue that the second notice is sent is_nullable: 1 size: 1 -is the patron restricted when the second notice is sent (1 for yes, 0 for no) - =head2 letter2 data_type: 'varchar' is_nullable: 1 size: 20 -foreign key from the letter table to define which notice should be sent as the second notice - =head2 delay3 data_type: 'integer' is_nullable: 1 -number of days after the item is overdue that the third notice is sent - =head2 letter3 data_type: 'varchar' is_nullable: 1 size: 20 -foreign key from the letter table to define which notice should be sent as the third notice - =head2 debarred3 data_type: 'integer' default_value: 0 is_nullable: 1 -is the patron restricted when the third notice is sent (1 for yes, 0 for no) - =cut __PACKAGE__->add_columns( @@ -195,8 +171,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pORigxtC5qztZWHI29mZ/g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QywQERZW9y9xcxcePmWdTQ sub koha_object_class { 'Koha::OverdueRule'; diff --git a/Koha/Schema/Result/PatronList.pm b/Koha/Schema/Result/PatronList.pm index ccb9fb1d5c..202d2b966c 100644 --- a/Koha/Schema/Result/PatronList.pm +++ b/Koha/Schema/Result/PatronList.pm @@ -29,24 +29,18 @@ __PACKAGE__->table("patron_lists"); is_auto_increment: 1 is_nullable: 0 -unique identifier - =head2 name data_type: 'varchar' is_nullable: 0 size: 255 -the list's name - =head2 owner data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -borrowernumber of the list creator - =head2 shared data_type: 'tinyint' @@ -111,8 +105,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gAlf5GQ7YSgAtFIXgqVWw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+9NJkvfoz1TpBRUtWXM1EQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/PatronListPatron.pm b/Koha/Schema/Result/PatronListPatron.pm index 6ff8f0ab67..155cc66553 100644 --- a/Koha/Schema/Result/PatronListPatron.pm +++ b/Koha/Schema/Result/PatronListPatron.pm @@ -29,24 +29,18 @@ __PACKAGE__->table("patron_list_patrons"); is_auto_increment: 1 is_nullable: 0 -unique identifier - =head2 patron_list_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the list this entry is part of - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the borrower that is part of this list - =cut __PACKAGE__->add_columns( @@ -103,8 +97,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WEOKHfprX7+detNjQ3pV/g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9w1Pdu1hWQ5jpWwcW2mTqw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Patronimage.pm b/Koha/Schema/Result/Patronimage.pm index 40fa54dfc4..5cabd469df 100644 --- a/Koha/Schema/Result/Patronimage.pm +++ b/Koha/Schema/Result/Patronimage.pm @@ -29,23 +29,17 @@ __PACKAGE__->table("patronimage"); is_foreign_key: 1 is_nullable: 0 -the borrowernumber of the patron this image is attached to (borrowers.borrowernumber) - =head2 mimetype data_type: 'varchar' is_nullable: 0 size: 15 -the format of the image (png, jpg, etc) - =head2 imagefile data_type: 'mediumblob' is_nullable: 0 -the image - =cut __PACKAGE__->add_columns( @@ -87,8 +81,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DWbMgbxlYcZhGF1YK9fDIA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ETwVPZfltjB6HXa+B93F1Q sub koha_object_class { 'Koha::Patron::Image'; diff --git a/Koha/Schema/Result/ProblemReport.pm b/Koha/Schema/Result/ProblemReport.pm index 9987a3343f..26e767c65b 100644 --- a/Koha/Schema/Result/ProblemReport.pm +++ b/Koha/Schema/Result/ProblemReport.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("problem_reports"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 title data_type: 'varchar' @@ -38,15 +36,11 @@ unique identifier assigned by Koha is_nullable: 0 size: 40 -report subject line - =head2 content data_type: 'text' is_nullable: 0 -report message content - =head2 borrowernumber data_type: 'integer' @@ -54,8 +48,6 @@ report message content is_foreign_key: 1 is_nullable: 0 -the user who created the problem report - =head2 branchcode data_type: 'varchar' @@ -64,23 +56,17 @@ the user who created the problem report is_nullable: 0 size: 10 -borrower's branch - =head2 username data_type: 'varchar' is_nullable: 1 size: 75 -OPAC username - =head2 problempage data_type: 'text' is_nullable: 1 -page the user triggered the problem report form from - =head2 recipient data_type: 'enum' @@ -88,8 +74,6 @@ page the user triggered the problem report form from extra: {list => ["admin","library"]} is_nullable: 0 -the 'to-address' of the problem report - =head2 created_on data_type: 'timestamp' @@ -97,8 +81,6 @@ the 'to-address' of the problem report default_value: current_timestamp is_nullable: 0 -timestamp of report submission - =head2 status data_type: 'varchar' @@ -106,8 +88,6 @@ timestamp of report submission is_nullable: 0 size: 6 -status of the report. New, Viewed, Closed - =cut __PACKAGE__->add_columns( @@ -199,8 +179,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-12 13:27:06 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdCX1Hak6UwiJo1iBJqqzg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xsbTQDex5Qytc3Jk4hDWEw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm b/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm index aad49c0dbe..f4899cb4b3 100644 --- a/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm +++ b/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("pseudonymized_borrower_attributes"); is_auto_increment: 1 is_nullable: 0 -Row id field - =head2 transaction_id data_type: 'integer' @@ -52,8 +50,6 @@ foreign key from the borrower_attribute_types table, defines which custom field is_nullable: 1 size: 255 -custom patron field value - =cut __PACKAGE__->add_columns( @@ -112,8 +108,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:09zbX6WErMxrZSBrc/nvdA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HAp46+QfDzJssQk8LHEaGg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Quote.pm b/Koha/Schema/Result/Quote.pm index 842316a337..c18146c002 100644 --- a/Koha/Schema/Result/Quote.pm +++ b/Koha/Schema/Result/Quote.pm @@ -29,30 +29,22 @@ __PACKAGE__->table("quotes"); is_auto_increment: 1 is_nullable: 0 -unique id for the quote - =head2 source data_type: 'mediumtext' is_nullable: 1 -source/credit for the quote - =head2 text data_type: 'longtext' is_nullable: 0 -text of the quote - =head2 timestamp data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date and time that the quote last appeared in the opac - =cut __PACKAGE__->add_columns( @@ -83,8 +75,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AsjlfoqGCpt8DKeRpizVjA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:joJqM519yhWSVIPJv92MtQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Rating.pm b/Koha/Schema/Result/Rating.pm index a25f1eae72..51ceaa30ee 100644 --- a/Koha/Schema/Result/Rating.pm +++ b/Koha/Schema/Result/Rating.pm @@ -29,23 +29,17 @@ __PACKAGE__->table("ratings"); is_foreign_key: 1 is_nullable: 0 -the borrowernumber of the patron who left this rating (borrowers.borrowernumber) - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the biblio this rating is for (biblio.biblionumber) - =head2 rating_value data_type: 'tinyint' is_nullable: 0 -the rating, from 1 to 5 - =head2 timestamp data_type: 'timestamp' @@ -118,8 +112,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wUwI/h1WR8kVGMNCrv/tUQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s/mt0FLycvwtE6eQSbF+KQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Recall.pm b/Koha/Schema/Result/Recall.pm index 6bc3cbb855..d4613edb41 100644 --- a/Koha/Schema/Result/Recall.pm +++ b/Koha/Schema/Result/Recall.pm @@ -6,7 +6,7 @@ package Koha::Schema::Result::Recall; =head1 NAME -Koha::Schema::Result::Recall - Information related to recalls in Koha +Koha::Schema::Result::Recall =cut @@ -29,8 +29,6 @@ __PACKAGE__->table("recalls"); is_auto_increment: 1 is_nullable: 0 -Unique identifier for this recall - =head2 patron_id data_type: 'integer' @@ -38,16 +36,12 @@ Unique identifier for this recall is_foreign_key: 1 is_nullable: 0 -Identifier for patron who requested recall - =head2 created_date data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -Date the recall was requested - =head2 biblio_id data_type: 'integer' @@ -63,30 +57,22 @@ Identifier for bibliographic record that has been recalled is_nullable: 1 size: 10 -Identifier for recall pickup library - =head2 completed_date data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -Date the recall is completed (fulfilled, cancelled or expired) - =head2 notes data_type: 'mediumtext' is_nullable: 1 -Notes related to the recall - =head2 priority data_type: 'smallint' is_nullable: 1 -Where in the queue the patron sits - =head2 status data_type: 'enum' @@ -94,8 +80,6 @@ Where in the queue the patron sits extra: {list => ["requested","overdue","waiting","in_transit","cancelled","expired","fulfilled"]} is_nullable: 1 -Status of recall - =head2 timestamp data_type: 'timestamp' @@ -103,48 +87,36 @@ Status of recall default_value: current_timestamp is_nullable: 0 -Date and time the recall was last updated - =head2 item_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -Identifier for item record that was recalled, if an item-level recall - =head2 waiting_date data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -Date an item was marked as waiting for the patron at the library - =head2 expiration_date data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -Date recall is no longer required, or date recall will expire after waiting on shelf for pickup - =head2 completed data_type: 'tinyint' default_value: 0 is_nullable: 0 -Flag if recall is old and no longer active, i.e. expired, cancelled or completed - =head2 item_level data_type: 'tinyint' default_value: 0 is_nullable: 0 -Flag if recall is for a specific item - =cut __PACKAGE__->add_columns( @@ -306,8 +278,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 17:06:39 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PHc8RtTZ7G02D0ZW4wrPGQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YjuOo2c0kpcFk3tvLziBWA __PACKAGE__->add_columns( '+completed' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/RepeatableHoliday.pm b/Koha/Schema/Result/RepeatableHoliday.pm index 882f063bc1..966d0db0d4 100644 --- a/Koha/Schema/Result/RepeatableHoliday.pm +++ b/Koha/Schema/Result/RepeatableHoliday.pm @@ -29,38 +29,29 @@ __PACKAGE__->table("repeatable_holidays"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 branchcode data_type: 'varchar' + default_value: (empty string) is_foreign_key: 1 is_nullable: 0 size: 10 -foreign key from the branches table, defines which branch this closing is for - =head2 weekday data_type: 'smallint' is_nullable: 1 -day of the week (0=Sunday, 1=Monday, etc) this closing is repeated on - =head2 day data_type: 'smallint' is_nullable: 1 -day of the month this closing is on - =head2 month data_type: 'smallint' is_nullable: 1 -month this closing is in - =head2 title data_type: 'varchar' @@ -68,22 +59,24 @@ month this closing is in is_nullable: 0 size: 50 -title of this closing - =head2 description data_type: 'mediumtext' is_nullable: 0 -description for this closing - =cut __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "branchcode", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, + { + data_type => "varchar", + default_value => "", + is_foreign_key => 1, + is_nullable => 0, + size => 10, + }, "weekday", { data_type => "smallint", is_nullable => 1 }, "day", @@ -126,8 +119,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OZykv+F1kgqeLvezCyhvZA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8QO1YRNFnTyIppJKRYXQ8A # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/ReportsDictionary.pm b/Koha/Schema/Result/ReportsDictionary.pm index edacbab816..4c9a1b9ff2 100644 --- a/Koha/Schema/Result/ReportsDictionary.pm +++ b/Koha/Schema/Result/ReportsDictionary.pm @@ -29,54 +29,40 @@ __PACKAGE__->table("reports_dictionary"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 name data_type: 'varchar' is_nullable: 1 size: 255 -name for this definition - =head2 description data_type: 'mediumtext' is_nullable: 1 -description for this definition - =head2 date_created data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date and time this definition was created - =head2 date_modified data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date and time this definition was last modified - =head2 saved_sql data_type: 'mediumtext' is_nullable: 1 -SQL snippet for us in reports - =head2 report_area data_type: 'varchar' is_nullable: 1 size: 6 -Koha module this definition is for Circulation, Catalog, Patrons, Acquistions, Accounts) - =cut __PACKAGE__->add_columns( @@ -117,8 +103,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7r8vJ2yWD3yQCyri+uNSRw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gNbGITm89dAUiVZ7ZtRU6Q # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index a91c14c9a0..1a65dc7886 100644 --- a/Koha/Schema/Result/Reserve.pm +++ b/Koha/Schema/Result/Reserve.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("reserves"); is_auto_increment: 1 is_nullable: 0 -primary key - =head2 borrowernumber data_type: 'integer' @@ -38,16 +36,12 @@ primary key is_foreign_key: 1 is_nullable: 0 -foreign key from the borrowers table defining which patron this hold is for - =head2 reservedate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the hold was placed - =head2 biblionumber data_type: 'integer' @@ -55,7 +49,12 @@ the date the hold was placed is_foreign_key: 1 is_nullable: 0 -foreign key from the biblio table defining which bib record this hold is on +=head2 deleted_biblionumber + + data_type: 'integer' + is_nullable: 1 + +links the hold to the deleted bibliographic record (deletedbiblio.biblionumber) =head2 item_group_id @@ -63,8 +62,6 @@ foreign key from the biblio table defining which bib record this hold is on is_foreign_key: 1 is_nullable: 1 -foreign key from the item_groups table defining if this is an item group level hold - =head2 branchcode data_type: 'varchar' @@ -80,63 +77,47 @@ foreign key from the branches table defining which branch the patron wishes to p is_foreign_key: 1 is_nullable: 1 -foreign key from the desks table defining which desk the patron should pick this hold up at - =head2 notificationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -currently unused - =head2 reminderdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -currently unused - =head2 cancellationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this hold was cancelled - =head2 cancellation_reason data_type: 'varchar' is_nullable: 1 size: 80 -optional authorised value CANCELLATION_REASON - =head2 reservenotes data_type: 'longtext' is_nullable: 1 -notes related to this hold - =head2 priority data_type: 'smallint' default_value: 1 is_nullable: 0 -where in the queue the patron sits - =head2 found data_type: 'varchar' is_nullable: 1 size: 1 -a one letter code defining what the status is of the hold is after it has been confirmed - =head2 timestamp data_type: 'timestamp' @@ -144,32 +125,24 @@ a one letter code defining what the status is of the hold is after it has been c default_value: current_timestamp is_nullable: 0 -the date and time this hold was last updated - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with - =head2 waitingdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the item was marked as waiting for the patron at the library - =head2 expirationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the hold expires (calculated value) - =head2 patron_expiration_date data_type: 'date' @@ -204,24 +177,18 @@ the date the hold expires - usually the date entered by the patron to say they d is_nullable: 1 size: 10 -If record level hold, the optional itemtype of the item the patron is requesting - =head2 item_level_hold data_type: 'tinyint' default_value: 0 is_nullable: 0 -Is the hold placed at item level - =head2 non_priority data_type: 'tinyint' default_value: 0 is_nullable: 0 -Is this a non priority hold - =cut __PACKAGE__->add_columns( @@ -243,6 +210,8 @@ __PACKAGE__->add_columns( is_foreign_key => 1, is_nullable => 0, }, + "deleted_biblionumber", + { data_type => "integer", is_nullable => 1 }, "item_group_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "branchcode", @@ -456,8 +425,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-01 18:21:38 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6BAjuPSwjtyWJaJN9fcOtg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ALXxCzoT0I7SshXvFZL9cQ __PACKAGE__->belongs_to( "item", diff --git a/Koha/Schema/Result/ReturnClaim.pm b/Koha/Schema/Result/ReturnClaim.pm index 3bedf15463..24bd28fb2d 100644 --- a/Koha/Schema/Result/ReturnClaim.pm +++ b/Koha/Schema/Result/ReturnClaim.pm @@ -29,94 +29,70 @@ __PACKAGE__->table("return_claims"); is_auto_increment: 1 is_nullable: 0 -Unique ID of the return claim - =head2 itemnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -ID of the item - =head2 issue_id data_type: 'integer' is_nullable: 1 -ID of the checkout that triggered the claim - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -ID of the patron - =head2 notes data_type: 'mediumtext' is_nullable: 1 -Notes about the claim - =head2 created_on data_type: 'timestamp' datetime_undef_if_invalid: 1 is_nullable: 1 -Time and date the claim was created - =head2 created_by data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -ID of the staff member that registered the claim - =head2 updated_on data_type: 'timestamp' datetime_undef_if_invalid: 1 is_nullable: 1 -Time and date of the latest change on the claim (notes) - =head2 updated_by data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -ID of the staff member that updated the claim - =head2 resolution data_type: 'varchar' is_nullable: 1 size: 80 -Resolution code (RETURN_CLAIM_RESOLUTION AVs) - =head2 resolved_on data_type: 'timestamp' datetime_undef_if_invalid: 1 is_nullable: 1 -Time and date the claim was resolved - =head2 resolved_by data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -ID of the staff member that resolved the claim - =cut __PACKAGE__->add_columns( @@ -279,8 +255,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-18 15:06:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xj7Juwt0e0wxEf+CZRfyMQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uvBDk30Gpy8XhZQpiBLapA =head2 checkout diff --git a/Koha/Schema/Result/Review.pm b/Koha/Schema/Result/Review.pm index c796e82022..f445478c3f 100644 --- a/Koha/Schema/Result/Review.pm +++ b/Koha/Schema/Result/Review.pm @@ -29,47 +29,35 @@ __PACKAGE__->table("reviews"); is_auto_increment: 1 is_nullable: 0 -unique identifier for this comment - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from the borrowers table defining which patron left this comment - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key from the biblio table defining which bibliographic record this comment is for - =head2 review data_type: 'mediumtext' is_nullable: 1 -the body of the comment - =head2 approved data_type: 'tinyint' default_value: 0 is_nullable: 1 -whether this comment has been approved by a librarian (1 for yes, 0 for no) - =head2 datereviewed data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date the comment was left - =cut __PACKAGE__->add_columns( @@ -146,8 +134,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1Am1qqe4ETom7ylth3Tvpg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UclEmfhbvc8Xg8YffpAXSA # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/SavedSql.pm b/Koha/Schema/Result/SavedSql.pm index dd441fc853..67f25954fe 100644 --- a/Koha/Schema/Result/SavedSql.pm +++ b/Koha/Schema/Result/SavedSql.pm @@ -29,38 +29,28 @@ __PACKAGE__->table("saved_sql"); is_auto_increment: 1 is_nullable: 0 -unique id and primary key assigned by Koha - =head2 borrowernumber data_type: 'integer' is_nullable: 1 -the staff member who created this report (borrowers.borrowernumber) - =head2 date_created data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this report was created - =head2 last_modified data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this report was last edited - =head2 savedsql data_type: 'mediumtext' is_nullable: 1 -the SQL for this report - =head2 last_run data_type: 'datetime' @@ -74,23 +64,17 @@ the SQL for this report is_nullable: 0 size: 255 -the name of this report - =head2 type data_type: 'varchar' is_nullable: 1 size: 255 -always 1 for tabular - =head2 notes data_type: 'mediumtext' is_nullable: 1 -the notes or description given to this report - =head2 cache_expiry data_type: 'integer' @@ -186,8 +170,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:198dNG9DGQzop+s5IHy7sw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IkZZ0EdwQ0tk1p9W9g9R8A __PACKAGE__->add_columns( '+public' => { is_boolean => 1 } diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index 0ac2626b87..57c5c17be3 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -49,9 +49,7 @@ the human readable name of the field, for display data_type: 'enum' extra: {list => ["","string","date","number","boolean","sum","isbn","stdno","year","callnumber","geo_point"]} - is_nullable: 0 - -what type of data this holds, relevant when storing it in the search engine + is_nullable: 1 =head2 weight @@ -64,8 +62,6 @@ what type of data this holds, relevant when storing it in the search engine data_type: 'tinyint' is_nullable: 1 -the order place of the field in facet list if faceted - =head2 staff_client data_type: 'tinyint' @@ -83,16 +79,12 @@ the order place of the field in facet list if faceted data_type: 'tinyint' is_nullable: 1 -if marked this field is not editable or removable - =head2 authorised_value_category data_type: 'varchar' is_nullable: 1 size: 32 -link to authorised value category - =cut __PACKAGE__->add_columns( @@ -120,7 +112,7 @@ __PACKAGE__->add_columns( "geo_point", ], }, - is_nullable => 0, + is_nullable => 1, }, "weight", { data_type => "decimal", is_nullable => 1, size => [5, 2] }, @@ -180,8 +172,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-07 09:45:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/WPJEu04y32zDMr+vnK5og +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GOVmhjLLLjKwhFQAK9UkQQ __PACKAGE__->add_columns( '+mandatory' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/SearchHistory.pm b/Koha/Schema/Result/SearchHistory.pm index 4765530135..4fc39e81fe 100644 --- a/Koha/Schema/Result/SearchHistory.pm +++ b/Koha/Schema/Result/SearchHistory.pm @@ -29,38 +29,28 @@ __PACKAGE__->table("search_history"); is_auto_increment: 1 is_nullable: 0 -search history id - =head2 userid data_type: 'integer' is_nullable: 0 -the patron who performed the search (borrowers.borrowernumber) - =head2 sessionid data_type: 'varchar' is_nullable: 0 size: 32 -a system generated session id - =head2 query_desc data_type: 'varchar' is_nullable: 0 size: 255 -the search that was performed - =head2 query_cgi data_type: 'mediumtext' is_nullable: 0 -the string to append to the search url to rerun the search - =head2 type data_type: 'varchar' @@ -68,15 +58,11 @@ the string to append to the search url to rerun the search is_nullable: 0 size: 16 -search type, must be 'biblio' or 'authority' - =head2 total data_type: 'integer' is_nullable: 0 -the total of results found - =head2 time data_type: 'timestamp' @@ -84,8 +70,6 @@ the total of results found default_value: current_timestamp is_nullable: 0 -the date and time the search was run - =cut __PACKAGE__->add_columns( @@ -130,8 +114,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3NBo7G2g9DhTUj1FT3I3Mw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jqZExSWA4ZY1BNQEflCizg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/SearchMarcToField.pm b/Koha/Schema/Result/SearchMarcToField.pm index 1451e3e1b2..9701c7f469 100644 --- a/Koha/Schema/Result/SearchMarcToField.pm +++ b/Koha/Schema/Result/SearchMarcToField.pm @@ -23,21 +23,6 @@ __PACKAGE__->table("search_marc_to_field"); =head1 ACCESSORS -=head2 search - - data_type: 'tinyint' - default_value: 1 - is_nullable: 0 - -=head2 filter - - data_type: 'varchar' - default_value: (empty string) - is_nullable: 0 - size: 100 - -specify a filter to be applied to field - =head2 search_marc_map_id data_type: 'integer' @@ -74,13 +59,24 @@ true if this field can be used to generate suggestions for browse Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this +=head2 search + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 filter + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 100 + +specify a filter to be applied to field + =cut __PACKAGE__->add_columns( - "search", - { data_type => "tinyint", default_value => 1, is_nullable => 0 }, - "filter", - { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, "search_marc_map_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "search_field_id", @@ -91,6 +87,10 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "sort", { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "search", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "filter", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, ); =head1 PRIMARY KEY @@ -142,8 +142,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-24 18:41:10 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rJQhUx0rIc6RVz4HJ5vy/g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gZsYD80m/cTCXRpZ6JRT3w __PACKAGE__->add_columns( '+facet' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Serial.pm b/Koha/Schema/Result/Serial.pm index 46c22cc420..ed28df7905 100644 --- a/Koha/Schema/Result/Serial.pm +++ b/Koha/Schema/Result/Serial.pm @@ -29,24 +29,18 @@ __PACKAGE__->table("serial"); is_auto_increment: 1 is_nullable: 0 -unique key for the issue - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key for the biblio.biblionumber that this issue is attached to - =head2 subscriptionid data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key to the subscription.subscriptionid that this issue is part of - =head2 serialseq data_type: 'varchar' @@ -54,94 +48,70 @@ foreign key to the subscription.subscriptionid that this issue is part of is_nullable: 0 size: 100 -issue information (volume, number, etc) - =head2 serialseq_x data_type: 'varchar' is_nullable: 1 size: 100 -first part of issue information - =head2 serialseq_y data_type: 'varchar' is_nullable: 1 size: 100 -second part of issue information - =head2 serialseq_z data_type: 'varchar' is_nullable: 1 size: 100 -third part of issue information - =head2 status data_type: 'tinyint' default_value: 0 is_nullable: 0 -status code for this issue (see manual for full descriptions) - =head2 planneddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date expected - =head2 notes data_type: 'mediumtext' is_nullable: 1 -notes - =head2 publisheddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date published - =head2 publisheddatetext data_type: 'varchar' is_nullable: 1 size: 100 -date published (descriptive) - =head2 claimdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date claimed - =head2 claims_count data_type: 'integer' default_value: 0 is_nullable: 1 -number of claims made related to this issue - =head2 routingnotes data_type: 'mediumtext' is_nullable: 1 -notes from the routing list - =cut __PACKAGE__->add_columns( @@ -237,8 +207,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SD7llCvCO+/67cXetzRKPQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eldD42j7YhM4Au1KgEjvbA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/SpecialHoliday.pm b/Koha/Schema/Result/SpecialHoliday.pm index a52248f53a..6d6b3cef14 100644 --- a/Koha/Schema/Result/SpecialHoliday.pm +++ b/Koha/Schema/Result/SpecialHoliday.pm @@ -29,49 +29,38 @@ __PACKAGE__->table("special_holidays"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 branchcode data_type: 'varchar' + default_value: (empty string) is_foreign_key: 1 is_nullable: 0 size: 10 -foreign key from the branches table, defines which branch this closing is for - =head2 day data_type: 'smallint' default_value: 0 is_nullable: 0 -day of the month this closing is on - =head2 month data_type: 'smallint' default_value: 0 is_nullable: 0 -month this closing is in - =head2 year data_type: 'smallint' default_value: 0 is_nullable: 0 -year this closing is in - =head2 isexception data_type: 'smallint' default_value: 1 is_nullable: 0 -is this a holiday exception to a repeatable holiday (1 for yes, 0 for no) - =head2 title data_type: 'varchar' @@ -79,22 +68,24 @@ is this a holiday exception to a repeatable holiday (1 for yes, 0 for no) is_nullable: 0 size: 50 -title for this closing - =head2 description data_type: 'mediumtext' is_nullable: 0 -description of this closing - =cut __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "branchcode", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, + { + data_type => "varchar", + default_value => "", + is_foreign_key => 1, + is_nullable => 0, + size => 10, + }, "day", { data_type => "smallint", default_value => 0, is_nullable => 0 }, "month", @@ -139,8 +130,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H3PUa5HiJKKfdndKXbmJ6A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mUW+wn5TMo4MFprutaJkMw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Statistic.pm b/Koha/Schema/Result/Statistic.pm index 87de3f1ec5..e528ced1d9 100644 --- a/Koha/Schema/Result/Statistic.pm +++ b/Koha/Schema/Result/Statistic.pm @@ -29,77 +29,57 @@ __PACKAGE__->table("statistics"); datetime_undef_if_invalid: 1 is_nullable: 1 -date and time of the transaction - =head2 branch data_type: 'varchar' is_nullable: 1 size: 10 -foreign key, branch where the transaction occurred - =head2 value data_type: 'double precision' is_nullable: 1 size: [16,4] -monetary value associated with the transaction - =head2 type data_type: 'varchar' is_nullable: 1 size: 16 -transaction type (localuse, issue, return, renew, writeoff, payment) - =head2 other data_type: 'longtext' is_nullable: 1 -used by SIP - =head2 itemnumber data_type: 'integer' is_nullable: 1 -foreign key from the items table, links transaction to a specific item - =head2 itemtype data_type: 'varchar' is_nullable: 1 size: 10 -foreign key from the itemtypes table, links transaction to a specific item type - =head2 location data_type: 'varchar' is_nullable: 1 size: 80 -authorized value for the shelving location for this item (MARC21 952$c) - =head2 borrowernumber data_type: 'integer' is_nullable: 1 -foreign key from the borrowers table, links transaction to a specific borrower - =head2 ccode data_type: 'varchar' is_nullable: 1 size: 80 -foreign key from the items table, links transaction to a specific collection code - =head2 categorycode data_type: 'varchar' @@ -114,7 +94,7 @@ foreign key from the borrowers table, links transaction to a specific borrower c is_nullable: 1 size: 30 -the context this action was taken in +interface =cut @@ -150,8 +130,8 @@ __PACKAGE__->add_columns( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 17:08:44 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3mznfs//6bH21hFpyZl7lw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7OXGo0/QU+xErueiWMytTQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Stockrotationitem.pm b/Koha/Schema/Result/Stockrotationitem.pm index 970c64a3d6..851f976dcc 100644 --- a/Koha/Schema/Result/Stockrotationitem.pm +++ b/Koha/Schema/Result/Stockrotationitem.pm @@ -29,32 +29,24 @@ __PACKAGE__->table("stockrotationitems"); is_foreign_key: 1 is_nullable: 0 -Itemnumber to link to a stage & rota - =head2 stage_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -stage ID to link the item to - =head2 indemand data_type: 'tinyint' default_value: 0 is_nullable: 0 -Should this item be skipped for rotation? - =head2 fresh data_type: 'tinyint' default_value: 0 is_nullable: 0 -Flag showing item is only just added to rota - =cut __PACKAGE__->add_columns( @@ -113,8 +105,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k/nuwkR8IxEq2D/L6PxmxA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9O3NjeuF/pp58DQw+3RA0w __PACKAGE__->add_columns( '+indemand' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Stockrotationrota.pm b/Koha/Schema/Result/Stockrotationrota.pm index 4f266b0f52..5a4131da15 100644 --- a/Koha/Schema/Result/Stockrotationrota.pm +++ b/Koha/Schema/Result/Stockrotationrota.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("stockrotationrotas"); is_auto_increment: 1 is_nullable: 0 -Stockrotation rota ID - =head2 title data_type: 'varchar' is_nullable: 0 size: 100 -Title for this rota - =head2 description data_type: 'text' @@ -52,16 +48,12 @@ Description for this rota default_value: 0 is_nullable: 0 -Should items on this rota keep cycling? - =head2 active data_type: 'tinyint' default_value: 0 is_nullable: 0 -Is this rota currently active? - =cut __PACKAGE__->add_columns( @@ -121,8 +113,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-20 11:37:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9jp+fNV7DMuz5i+eMrt/Cw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6t8fRNEQtvSq1FVM5GgXAQ __PACKAGE__->add_columns( '+cyclical' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Stockrotationstage.pm b/Koha/Schema/Result/Stockrotationstage.pm index a53bdf7a0e..03c0bf62a8 100644 --- a/Koha/Schema/Result/Stockrotationstage.pm +++ b/Koha/Schema/Result/Stockrotationstage.pm @@ -29,23 +29,17 @@ __PACKAGE__->table("stockrotationstages"); is_auto_increment: 1 is_nullable: 0 -Unique stage ID - =head2 position data_type: 'integer' is_nullable: 0 -The position of this stage within its rota - =head2 rota_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -The rota this stage belongs to - =head2 branchcode_id data_type: 'varchar' @@ -53,16 +47,12 @@ The rota this stage belongs to is_nullable: 0 size: 10 -Branch this stage relates to - =head2 duration data_type: 'integer' default_value: 4 is_nullable: 0 -The number of days items shoud occupy this stage - =cut __PACKAGE__->add_columns( @@ -138,8 +128,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNvTMdYD3BCwd0McGICpFg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:db70JLpsN49QYvqCJQTgRA # We use DBIx::Class::Ordered to handle stages manipulation. __PACKAGE__->load_components(qw( Ordered )); diff --git a/Koha/Schema/Result/Subscription.pm b/Koha/Schema/Result/Subscription.pm index cb5d1533f4..fb418de7ea 100644 --- a/Koha/Schema/Result/Subscription.pm +++ b/Koha/Schema/Result/Subscription.pm @@ -29,16 +29,12 @@ __PACKAGE__->table("subscription"); is_foreign_key: 1 is_nullable: 0 -foreign key for biblio.biblionumber that this subscription is attached to - =head2 subscriptionid data_type: 'integer' is_auto_increment: 1 is_nullable: 0 -unique key for this subscription - =head2 librarian data_type: 'varchar' @@ -46,20 +42,16 @@ unique key for this subscription is_nullable: 1 size: 100 -the librarian's username from borrowers.userid - =head2 startdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -start date for this subscription - =head2 aqbooksellerid data_type: 'integer' - default_value: 0 + is_foreign_key: 1 is_nullable: 1 foreign key for aqbooksellers.id to link to the vendor @@ -82,32 +74,24 @@ foreign key for aqbooksellers.id to link to the vendor default_value: 0 is_nullable: 1 -subscription length in weeks (will not be filled in if monthlength or numberlength is set) - =head2 monthlength data_type: 'integer' default_value: 0 is_nullable: 1 -subscription length in weeks (will not be filled in if weeklength or numberlength is set) - =head2 numberlength data_type: 'integer' default_value: 0 is_nullable: 1 -subscription length in weeks (will not be filled in if monthlength or weeklength is set) - =head2 periodicity data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -frequency type links to subscription_frequencies.id - =head2 countissuesperunit data_type: 'integer' @@ -119,8 +103,6 @@ frequency type links to subscription_frequencies.id data_type: 'longtext' is_nullable: 1 -notes - =head2 status data_type: 'varchar' @@ -128,8 +110,6 @@ notes is_nullable: 0 size: 100 -status of this subscription - =head2 lastvalue1 data_type: 'integer' @@ -169,23 +149,17 @@ status of this subscription datetime_undef_if_invalid: 1 is_nullable: 1 -first issue received date - =head2 manualhistory data_type: 'tinyint' default_value: 0 is_nullable: 0 -yes or no to managing the history manually - =head2 irregularity data_type: 'mediumtext' is_nullable: 1 -any irregularities in the subscription - =head2 skip_serialseq data_type: 'tinyint' @@ -204,16 +178,12 @@ any irregularities in the subscription is_foreign_key: 1 is_nullable: 1 -the numbering pattern used links to subscription_numberpatterns.id - =head2 locale data_type: 'varchar' is_nullable: 1 size: 80 -for foreign language subscriptions to display months, seasons, etc correctly - =head2 distributedto data_type: 'mediumtext' @@ -229,8 +199,6 @@ for foreign language subscriptions to display months, seasons, etc correctly data_type: 'mediumtext' is_nullable: 1 -default call number - =head2 location data_type: 'varchar' @@ -238,8 +206,6 @@ default call number is_nullable: 1 size: 80 -default shelving location (items.location) - =head2 branchcode data_type: 'varchar' @@ -247,8 +213,6 @@ default shelving location (items.location) is_nullable: 0 size: 10 -default branches (items.homebranch) - =head2 lastbranch data_type: 'varchar' @@ -261,8 +225,6 @@ default branches (items.homebranch) default_value: 0 is_nullable: 0 -does receiving this serial create an item record - =head2 staffdisplaycount data_type: 'integer' @@ -283,32 +245,24 @@ how many issues to show to the public default_value: 0 is_nullable: 0 -grace period in days - =head2 enddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -subscription end date - =head2 closed data_type: 'tinyint' default_value: 0 is_nullable: 0 -yes / no if the subscription is closed - =head2 reneweddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date of last renewal for the subscription - =head2 itemtype data_type: 'varchar' @@ -332,8 +286,6 @@ date of last renewal for the subscription is_nullable: 1 size: 80 -collection code to assign to serial items - =head2 published_on_template data_type: 'text' @@ -353,7 +305,7 @@ __PACKAGE__->add_columns( "startdate", { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, "aqbooksellerid", - { data_type => "integer", default_value => 0, is_nullable => 1 }, + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "cost", { data_type => "integer", default_value => 0, is_nullable => 1 }, "aqbudgetid", @@ -450,6 +402,26 @@ __PACKAGE__->set_primary_key("subscriptionid"); =head1 RELATIONS +=head2 aqbooksellerid + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "aqbooksellerid", + "Koha::Schema::Result::Aqbookseller", + { id => "aqbooksellerid" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + =head2 aqorders Type: has_many @@ -566,8 +538,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-14 11:46:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LICIiWzag365cUAq5OYD2A +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u8jqPSBzckOtP4gYrvuv4w __PACKAGE__->has_many( "additional_field_values", diff --git a/Koha/Schema/Result/Subscriptionroutinglist.pm b/Koha/Schema/Result/Subscriptionroutinglist.pm index c585737410..010e5134e3 100644 --- a/Koha/Schema/Result/Subscriptionroutinglist.pm +++ b/Koha/Schema/Result/Subscriptionroutinglist.pm @@ -29,31 +29,23 @@ __PACKAGE__->table("subscriptionroutinglist"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key from the borrowers table, defines with patron is on the routing list - =head2 ranking data_type: 'integer' is_nullable: 1 -where the patron stands in line to receive the serial - =head2 subscriptionid data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key from the subscription table, defines which subscription this routing list is for - =cut __PACKAGE__->add_columns( @@ -128,8 +120,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L/6xUg+37bAUntrGWWYlaw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NXha7WbjPtCOf7RlyN39yQ sub koha_object_class { 'Koha::Subscription::Routinglist'; diff --git a/Koha/Schema/Result/Suggestion.pm b/Koha/Schema/Result/Suggestion.pm index ff65a54d95..53e992738e 100644 --- a/Koha/Schema/Result/Suggestion.pm +++ b/Koha/Schema/Result/Suggestion.pm @@ -29,88 +29,66 @@ __PACKAGE__->table("suggestions"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned automatically by Koha - =head2 suggestedby data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrowernumber for the person making the suggestion, foreign key linking to the borrowers table - =head2 suggesteddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 0 -date the suggestion was submitted - =head2 managedby data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrowernumber for the librarian managing the suggestion, foreign key linking to the borrowers table - =head2 manageddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the suggestion was updated - =head2 acceptedby data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrowernumber for the librarian who accepted the suggestion, foreign key linking to the borrowers table - =head2 accepteddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the suggestion was marked as accepted - =head2 rejectedby data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table - =head2 rejecteddate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date the suggestion was marked as rejected - =head2 lastmodificationby data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrowernumber for the librarian who edit the suggestion for the last time - =head2 lastmodificationdate data_type: 'date' datetime_undef_if_invalid: 1 is_nullable: 1 -date of the last modification - =head2 STATUS accessor: 'status' @@ -119,29 +97,23 @@ date of the last modification is_nullable: 0 size: 10 -suggestion status (ASKED, CHECKED, ACCEPTED, REJECTED, ORDERED, AVAILABLE or a value from the SUGGEST_STATUS authorised value category) - =head2 archived data_type: 'tinyint' default_value: 0 is_nullable: 0 -is the suggestion archived? - =head2 note data_type: 'longtext' is_nullable: 1 -note entered on the suggestion - =head2 staff_note data_type: 'longtext' is_nullable: 1 -non-public note entered on the suggestion +suggestions table non-public note =head2 author @@ -149,31 +121,23 @@ non-public note entered on the suggestion is_nullable: 1 size: 80 -author of the suggested item - =head2 title data_type: 'varchar' is_nullable: 1 size: 255 -title of the suggested item - =head2 copyrightdate data_type: 'smallint' is_nullable: 1 -copyright date of the suggested item - =head2 publishercode data_type: 'varchar' is_nullable: 1 size: 255 -publisher of the suggested item - =head2 date data_type: 'timestamp' @@ -181,8 +145,6 @@ publisher of the suggested item default_value: current_timestamp is_nullable: 0 -date and time the suggestion was updated - =head2 volumedesc data_type: 'varchar' @@ -201,46 +163,34 @@ date and time the suggestion was updated is_nullable: 1 size: 255 -publication place of the suggested item - =head2 isbn data_type: 'varchar' is_nullable: 1 size: 30 -isbn of the suggested item - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key linking the suggestion to the biblio table after the suggestion has been ordered - =head2 reason data_type: 'mediumtext' is_nullable: 1 -reason for accepting or rejecting the suggestion - =head2 patronreason data_type: 'mediumtext' is_nullable: 1 -reason for making the suggestion - =head2 budgetid data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key linking the suggested budget to the aqbudgets table - =head2 branchcode data_type: 'varchar' @@ -248,54 +198,40 @@ foreign key linking the suggested budget to the aqbudgets table is_nullable: 1 size: 10 -foreign key linking the suggested branch to the branches table - =head2 collectiontitle data_type: 'mediumtext' is_nullable: 1 -collection name for the suggested item - =head2 itemtype data_type: 'varchar' is_nullable: 1 size: 30 -suggested item type - =head2 quantity data_type: 'smallint' is_nullable: 1 -suggested quantity to be purchased - =head2 currency data_type: 'varchar' is_nullable: 1 size: 10 -suggested currency for the suggested price - =head2 price data_type: 'decimal' is_nullable: 1 size: [28,6] -suggested price - =head2 total data_type: 'decimal' is_nullable: 1 size: [28,6] -suggested total cost (price*quantity updated for currency) - =cut __PACKAGE__->add_columns( @@ -557,8 +493,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-07 20:40:07 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NSX5a0b7SJyhLVT8Fx4jaQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FflVxqKqisBh3EdEhNy4ig __PACKAGE__->belongs_to( "suggester", diff --git a/Koha/Schema/Result/Systempreference.pm b/Koha/Schema/Result/Systempreference.pm index 6b17d816ea..00504abce4 100644 --- a/Koha/Schema/Result/Systempreference.pm +++ b/Koha/Schema/Result/Systempreference.pm @@ -30,37 +30,27 @@ __PACKAGE__->table("systempreferences"); is_nullable: 0 size: 50 -system preference name - =head2 value data_type: 'mediumtext' is_nullable: 1 -system preference values - =head2 options data_type: 'longtext' is_nullable: 1 -options for multiple choice system preferences - =head2 explanation data_type: 'mediumtext' is_nullable: 1 -descriptive text for the system preference - =head2 type data_type: 'varchar' is_nullable: 1 size: 20 -type of question this preference asks (multiple choice, plain text, yes or no, etc) - =cut __PACKAGE__->add_columns( @@ -89,8 +79,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("variable"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d9V4/gPRw1ucbd/TzEzNUQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T0o/BYj03YR9U8qKsWlDyw sub koha_object_class { 'Koha::Config::SysPref'; diff --git a/Koha/Schema/Result/TablesSetting.pm b/Koha/Schema/Result/TablesSetting.pm index 6946dc2713..6ead9d178e 100644 --- a/Koha/Schema/Result/TablesSetting.pm +++ b/Koha/Schema/Result/TablesSetting.pm @@ -52,6 +52,18 @@ __PACKAGE__->table("tables_settings"); is_nullable: 1 size: 255 +=head2 default_save_state + + data_type: 'tinyint' + default_value: 1 + is_nullable: 1 + +=head2 default_save_state_search + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -65,6 +77,10 @@ __PACKAGE__->add_columns( { data_type => "smallint", is_nullable => 1 }, "default_sort_order", { data_type => "varchar", is_nullable => 1, size => 255 }, + "default_save_state", + { data_type => "tinyint", default_value => 1, is_nullable => 1 }, + "default_save_state_search", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -84,8 +100,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("module", "page", "tablename"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-12-16 11:41:48 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:42x+rSLgXvSZBVLx5mh2ng +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:slctZHXdtIp5B3U2sDtMXQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/TagAll.pm b/Koha/Schema/Result/TagAll.pm index 90e7cbb56e..f2b460dc62 100644 --- a/Koha/Schema/Result/TagAll.pm +++ b/Koha/Schema/Result/TagAll.pm @@ -29,47 +29,35 @@ __PACKAGE__->table("tags_all"); is_auto_increment: 1 is_nullable: 0 -unique id and primary key - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -the patron who added the tag (borrowers.borrowernumber) - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the bib record this tag was left on (biblio.biblionumber) - =head2 term data_type: 'varchar' is_nullable: 0 size: 191 -the tag - =head2 language data_type: 'integer' is_nullable: 1 -the language the tag was left in - =head2 date_created data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 0 -the date the tag was added - =cut __PACKAGE__->add_columns( @@ -141,8 +129,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qQsYlIAUc1KP7M/RUaqd8g +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dfy1CvR/RjphjerU+Unpug sub koha_object_class { 'Koha::Tag'; diff --git a/Koha/Schema/Result/TagsApproval.pm b/Koha/Schema/Result/TagsApproval.pm index 4e0bac093b..4267050e61 100644 --- a/Koha/Schema/Result/TagsApproval.pm +++ b/Koha/Schema/Result/TagsApproval.pm @@ -29,40 +29,30 @@ __PACKAGE__->table("tags_approval"); is_nullable: 0 size: 191 -the tag - =head2 approved data_type: 'integer' default_value: 0 is_nullable: 0 -whether the tag is approved or not (1=yes, 0=pending, -1=rejected) - =head2 date_approved data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -the date this tag was approved - =head2 approved_by data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -the librarian who approved the tag (borrowers.borrowernumber) - =head2 weight_total data_type: 'integer' default_value: 1 is_nullable: 0 -the total number of times this tag was used - =cut __PACKAGE__->add_columns( @@ -132,8 +122,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PR7rfXKXExWpmkdxcXRrbQ +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n9nDVPRyUaoUEV0XGUe3/g sub koha_object_class { 'Koha::Tags::Approval'; diff --git a/Koha/Schema/Result/TagsIndex.pm b/Koha/Schema/Result/TagsIndex.pm index ee7a63114b..8f0cedd1ed 100644 --- a/Koha/Schema/Result/TagsIndex.pm +++ b/Koha/Schema/Result/TagsIndex.pm @@ -30,24 +30,18 @@ __PACKAGE__->table("tags_index"); is_nullable: 0 size: 191 -the tag - =head2 biblionumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -the bib record this tag was used on (biblio.biblionumber) - =head2 weight data_type: 'integer' default_value: 1 is_nullable: 0 -the number of times this term was used on this bib record - =cut __PACKAGE__->add_columns( @@ -106,8 +100,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s+HP8nlAKZz2S7PI8MQBOA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4dhL0ouHjE+4BsFOD1bosg sub koha_object_class { 'Koha::Tags::Index'; diff --git a/Koha/Schema/Result/Ticket.pm b/Koha/Schema/Result/Ticket.pm index abc639a055..6627c72e72 100644 --- a/Koha/Schema/Result/Ticket.pm +++ b/Koha/Schema/Result/Ticket.pm @@ -86,7 +86,7 @@ current status of the ticket is_foreign_key: 1 is_nullable: 1 -id of the user who this ticket is assigned to +id of the user this ticket is assigned to =head2 resolver_id @@ -263,8 +263,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8bWiSb7hXPFYRzRzrVG3kw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mWbStmyimtwPc0ZOIuOj1Q # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/TicketUpdate.pm b/Koha/Schema/Result/TicketUpdate.pm index 06851ec9b6..eb9a720235 100644 --- a/Koha/Schema/Result/TicketUpdate.pm +++ b/Koha/Schema/Result/TicketUpdate.pm @@ -54,7 +54,7 @@ id of the user who logged the update is_foreign_key: 1 is_nullable: 1 -id of the user who this ticket was assigned to at this update +id of the user this ticket was assigned to with this update =head2 public @@ -184,8 +184,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yfQ97AZ3ZYRI5uUndgLKMA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CkjxdeHs3Z2O68O/epUBRQ __PACKAGE__->add_columns( '+public' => { is_boolean => 1 }, ); diff --git a/Koha/Schema/Result/TmpHoldsqueue.pm b/Koha/Schema/Result/TmpHoldsqueue.pm index 7198134ede..60e837bd37 100644 --- a/Koha/Schema/Result/TmpHoldsqueue.pm +++ b/Koha/Schema/Result/TmpHoldsqueue.pm @@ -115,8 +115,6 @@ __PACKAGE__->table("tmp_holdsqueue"); default_value: current_timestamp is_nullable: 0 -date and time this entry as added/last updated - =cut __PACKAGE__->add_columns( @@ -224,8 +222,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-26 17:44:52 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5vbBn2tKY/nPx5aA4gaEtg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/cs5/9K8dwWLLd2Cub8s6g __PACKAGE__->add_columns( '+item_level_request' => { is_boolean => 1 } diff --git a/Koha/Schema/Result/VendorEdiAccount.pm b/Koha/Schema/Result/VendorEdiAccount.pm index 27e52b8477..88efbc261e 100644 --- a/Koha/Schema/Result/VendorEdiAccount.pm +++ b/Koha/Schema/Result/VendorEdiAccount.pm @@ -51,12 +51,12 @@ __PACKAGE__->table("vendor_edi_accounts"); data_type: 'mediumtext' is_nullable: 1 -=head2 upload_port +=head2 download_port data_type: 'integer' is_nullable: 1 -=head2 download_port +=head2 upload_port data_type: 'integer' is_nullable: 1 @@ -166,10 +166,10 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 40 }, "password", { data_type => "mediumtext", is_nullable => 1 }, - "upload_port", - { data_type => "integer", is_nullable => 1 }, "download_port", { data_type => "integer", is_nullable => 1 }, + "upload_port", + { data_type => "integer", is_nullable => 1 }, "last_activity", { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, "vendor_id", @@ -272,8 +272,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-19 16:25:44 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jenUF3Wx7J7F5270mLQMbw +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zAr9+z7ZyZQEDsJVo/nutg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Virtualshelfcontent.pm b/Koha/Schema/Result/Virtualshelfcontent.pm index a9816f129c..40d5e12df4 100644 --- a/Koha/Schema/Result/Virtualshelfcontent.pm +++ b/Koha/Schema/Result/Virtualshelfcontent.pm @@ -30,8 +30,6 @@ __PACKAGE__->table("virtualshelfcontents"); is_foreign_key: 1 is_nullable: 0 -foreign key linking to the virtualshelves table, defines the list that this record has been added to - =head2 biblionumber data_type: 'integer' @@ -39,8 +37,6 @@ foreign key linking to the virtualshelves table, defines the list that this reco is_foreign_key: 1 is_nullable: 0 -foreign key linking to the biblio table, defines the bib record that has been added to the list - =head2 dateadded data_type: 'timestamp' @@ -48,16 +44,12 @@ foreign key linking to the biblio table, defines the bib record that has been ad default_value: current_timestamp is_nullable: 0 -date and time this bib record was added to the list - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrower number that created this list entry (only the first one is saved: no need for use in/as key) - =cut __PACKAGE__->add_columns( @@ -139,8 +131,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-20 15:47:49 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BRP+j1kip95rxOd8H5ootg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BOxp/Fsxib4UiFPYaS3+Kg #TODO See BZ 14544: Should be resolved by db revision __PACKAGE__->set_primary_key("shelfnumber","biblionumber"); diff --git a/Koha/Schema/Result/Virtualshelfshare.pm b/Koha/Schema/Result/Virtualshelfshare.pm index 4c1be76d2a..be25aa3867 100644 --- a/Koha/Schema/Result/Virtualshelfshare.pm +++ b/Koha/Schema/Result/Virtualshelfshare.pm @@ -29,40 +29,30 @@ __PACKAGE__->table("virtualshelfshares"); is_auto_increment: 1 is_nullable: 0 -unique key - =head2 shelfnumber data_type: 'integer' is_foreign_key: 1 is_nullable: 0 -foreign key for virtualshelves - =head2 borrowernumber data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -borrower that accepted access to this list - =head2 invitekey data_type: 'varchar' is_nullable: 1 size: 10 -temporary string used in accepting the invitation to access thist list; not-empty means that the invitation has not been accepted yet - =head2 sharedate data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 1 -date of invitation or acceptance of invitation - =cut __PACKAGE__->add_columns( @@ -132,8 +122,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Aovcx4icmIsaRskB9qUSlA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YJepNKlhs6UJnjfQ0pFP0Q # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm index b2cd76ec4f..cc5bad6ae1 100644 --- a/Koha/Schema/Result/Virtualshelve.pm +++ b/Koha/Schema/Result/Virtualshelve.pm @@ -29,24 +29,18 @@ __PACKAGE__->table("virtualshelves"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 shelfname data_type: 'varchar' is_nullable: 1 size: 255 -name of the list - =head2 owner data_type: 'integer' is_foreign_key: 1 is_nullable: 1 -foreign key linking to the borrowers table (using borrowernumber) for the creator of this list (changed from varchar(80) to int) - =head2 public data_type: 'tinyint' @@ -62,8 +56,6 @@ If the list is public is_nullable: 1 size: 16 -the field this list is sorted on - =head2 lastmodified data_type: 'timestamp' @@ -71,32 +63,24 @@ the field this list is sorted on default_value: current_timestamp is_nullable: 0 -date and time the list was last modified - =head2 created_on data_type: 'datetime' datetime_undef_if_invalid: 1 is_nullable: 0 -creation time - =head2 allow_change_from_owner data_type: 'tinyint' default_value: 1 is_nullable: 1 -can owner change contents? - =head2 allow_change_from_others data_type: 'tinyint' default_value: 0 is_nullable: 1 -can others change contents? - =head2 allow_change_from_staff data_type: 'tinyint' @@ -219,8 +203,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-17 19:59:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EKq7nDW2AeZ2NQce2BPMWA +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:joDodaAcubf3gU4DJlspHw sub koha_object_class { 'Koha::Virtualshelf'; diff --git a/Koha/Schema/Result/Z3950server.pm b/Koha/Schema/Result/Z3950server.pm index f03ab2bf80..b1444e6856 100644 --- a/Koha/Schema/Result/Z3950server.pm +++ b/Koha/Schema/Result/Z3950server.pm @@ -29,8 +29,6 @@ __PACKAGE__->table("z3950servers"); is_auto_increment: 1 is_nullable: 0 -unique identifier assigned by Koha - =head2 host data_type: 'varchar' @@ -44,53 +42,39 @@ target's host name data_type: 'integer' is_nullable: 1 -port number used to connect to target - =head2 db data_type: 'varchar' is_nullable: 1 size: 255 -target's database name - =head2 userid data_type: 'varchar' is_nullable: 1 size: 255 -username needed to log in to target - =head2 password data_type: 'varchar' is_nullable: 1 size: 255 -password needed to log in to target - =head2 servername data_type: 'longtext' is_nullable: 0 -name given to the target by the library - =head2 checked data_type: 'smallint' is_nullable: 1 -whether this target is checked by default (1 for yes, 0 for no) - =head2 rank data_type: 'integer' is_nullable: 1 -where this target appears in the list of targets - =head2 syntax data_type: 'varchar' @@ -105,8 +89,6 @@ MARC format provided by this target default_value: 0 is_nullable: 0 -number of seconds before Koha stops trying to access this server - =head2 servertype data_type: 'enum' @@ -114,8 +96,6 @@ number of seconds before Koha stops trying to access this server extra: {list => ["zed","sru"]} is_nullable: 0 -zed means z39.50 server - =head2 encoding data_type: 'mediumtext' @@ -130,38 +110,28 @@ characters encoding provided by this target extra: {list => ["authority","biblio"]} is_nullable: 0 -server contains bibliographic or authority records - =head2 sru_options data_type: 'varchar' is_nullable: 1 size: 255 -options like sru=get, sru_version=1.1; will be passed to the server via ZOOM - =head2 sru_fields data_type: 'longtext' is_nullable: 1 -contains the mapping between the Z3950 search fields and the specific SRU server indexes - =head2 add_xslt data_type: 'longtext' is_nullable: 1 -zero or more paths to XSLT files to be processed on the search results - =head2 attributes data_type: 'varchar' is_nullable: 1 size: 255 -additional attributes passed to PQF queries - =cut __PACKAGE__->add_columns( @@ -226,8 +196,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 11:30:07 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1uIZOogM1tV2M7fbpPRDwg +# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p1IJvVkLfwX0NXooSBw2kQ sub koha_object_class { 'Koha::Z3950Server'; diff --git a/Koha/Template/Plugin/AuthorisedValues.pm b/Koha/Template/Plugin/AuthorisedValues.pm index 4e74c1bbad..7f9fe53189 100644 --- a/Koha/Template/Plugin/AuthorisedValues.pm +++ b/Koha/Template/Plugin/AuthorisedValues.pm @@ -22,15 +22,17 @@ use Template::Plugin; use base qw( Template::Plugin ); use C4::Koha qw( GetAuthorisedValues ); +use C4::Languages; use Koha::AuthorisedValues; sub GetByCode { my ( $self, $category, $code, $opac ) = @_; my $av = Koha::AuthorisedValues->search({ category => $category, authorised_value => $code }); + my $lang = C4::Languages::getlanguage(); return $av->count ? $opac - ? $av->next->opac_description - : $av->next->lib + ? $av->next->opac_translated_description($lang) + : $av->next->localization('lib', $lang) : $code; } diff --git a/installer/data/mysql/atomicupdate/bug-38460.pl b/installer/data/mysql/atomicupdate/bug-38460.pl new file mode 100755 index 0000000000..6e9ab64860 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug-38460.pl @@ -0,0 +1,28 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); + +return { + bug_number => '38460', + description => 'Add authorised_values_localizations table', + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + unless ( TableExists('authorised_values_localizations') ) { + $dbh->do( " + CREATE TABLE `authorised_values_localizations` ( + `authorised_values_localizations_id` int(11) NOT NULL AUTO_INCREMENT, + `authorised_value_id` int(11) NOT NULL, + `property` varchar(100) NOT NULL, + `lang` varchar(25) NOT NULL, + `translation` mediumtext DEFAULT NULL, + PRIMARY KEY (`authorised_values_localizations_id`), + UNIQUE KEY `authorised_value_id_property_lang` (`authorised_value_id`, `property`, `lang`), + CONSTRAINT `authorised_values_localizations_authorised_value_id_fk` + FOREIGN KEY (`authorised_value_id`) REFERENCES `authorised_values` (`id`) + ON DELETE CASCADE ON UPDATE CASCADE + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + " ); + } + }, +}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 2bfb4f3f7f..06c8b71590 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -180,10 +180,12 @@
  • + [% INCLUDE 'localization-link.inc' source='AuthorisedValue' object_id=av.id property='lib' %]
  • + [% INCLUDE 'localization-link.inc' source='AuthorisedValue' object_id=av.id property='lib_opac' %]