From pianohacker at gmail.com Wed Jun 1 02:11:55 2011 From: pianohacker at gmail.com (Jesse Weaver) Date: Tue, 31 May 2011 18:11:55 -0600 Subject: [Koha-patches] [PATCH] Bug 5918 : Use the default messaging preferences if the user does not select any Message-ID: <1306887115-10076-1-git-send-email-pianohacker@gmail.com> From: Chris Cormack Signed-off-by: Jesse Weaver --- C4/Form/MessagingPreferences.pm | 21 +++++++++++++------ .../prog/en/modules/members/memberentrygen.tt | 3 ++ members/memberentry.pl | 9 +++++-- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/C4/Form/MessagingPreferences.pm b/C4/Form/MessagingPreferences.pm index 808719f..4bc742d 100644 --- a/C4/Form/MessagingPreferences.pm +++ b/C4/Form/MessagingPreferences.pm @@ -54,7 +54,7 @@ the same thing in staff and OPAC. =head2 handle_form_action - C4::Form::MessagingPreferences::handle_form_action($input, { categorycode => 'CPL' }, $template); + C4::Form::MessagingPreferences::handle_form_action($input, { categorycode => 'CPL' }, $template, $insert); Processes CGI parameters and updates the target patron or patron category's preferences. @@ -64,17 +64,16 @@ C<$input> is the CGI query object. C<$target_params> is a hashref containing either a C key or a C key identifying the patron or patron category whose messaging preferences are to be updated. -C<$template> is the HTML::Template::Pro object for the response; this routine +C<$template> is the Template::Toolkit object for the response; this routine adds a settings_updated template variable. =cut sub handle_form_action { - my ($query, $target_params, $template) = @_; + my ($query, $target_params, $template, $insert, $categorycode) = @_; my $messaging_options = C4::Members::Messaging::GetMessagingOptions(); - # TODO: If a "NONE" box and another are checked somehow (javascript failed), we should pay attention to the "NONE" box - + my $prefs_set = 0; OPTION: foreach my $option ( @$messaging_options ) { my $updater = { %{ $target_params }, message_attribute_id => $option->{'message_attribute_id'} }; @@ -96,8 +95,16 @@ sub handle_form_action { } C4::Members::Messaging::SetMessagingPreference( $updater ); - } + if ($query->param( $option->{'message_attribute_id'})){ + $prefs_set = 1; + } + } + if (! $prefs_set && $insert){ + # this is new borrower, and we have no preferences set, use the defaults + $target_params->{categorycode} = $categorycode; + C4::Members::Messaging::SetMessagingPreferencesFromDefaults( $target_params ); + } # show the success message $template->param( settings_updated => 1 ); } @@ -112,7 +119,7 @@ and fills the corresponding template variables. C<$target_params> is a hashref containing either a C key or a C key identifying the patron or patron category. -C<$template> is the HTML::Template::Pro object for the response. +C<$template> is the Template::Toolkit object for the response. =cut diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index a4361cd..3c2db31 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1072,6 +1072,9 @@ [% END %] Patron messaging preferences + [% IF type_only %] + If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved + [% END %] [% INCLUDE 'messaging-preference-form.inc' %] [% IF ( SMSSendDriver ) %]

diff --git a/members/memberentry.pl b/members/memberentry.pl index a8e764c..61c3c2c 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -105,14 +105,17 @@ $template->param( "duplicate" => 1 ) if ( $op eq 'duplicate' ); $template->param( "checked" => 1 ) if ( defined($nodouble) && $nodouble eq 1 ); ( $borrower_data = GetMember( 'borrowernumber' => $borrowernumber ) ) if ( $op eq 'modify' or $op eq 'save' or $op eq 'duplicate' ); my $categorycode = $input->param('categorycode') || $borrower_data->{'categorycode'}; -my $category_type = $input->param('category_type'); +my $category_type = $input->param('category_type') || ''; +if ($category_type){ + $template->{VARS}->{'type_only'} = 1; +} my $new_c_type = $category_type; #if we have input param, then we've already chosen the cat_type. unless ($category_type or !($categorycode)){ my $borrowercategory = GetBorrowercategory($categorycode); $category_type = $borrowercategory->{'category_type'}; my $category_name = $borrowercategory->{'description'}; $template->param("categoryname"=>$category_name); -} + } $category_type="A" unless $category_type; # FIXME we should display a error message instead of a 500 error ! # if a add or modify is requested => check validity of data. @@ -334,7 +337,7 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ C4::Members::Attributes::SetBorrowerAttributes($borrowernumber, $extended_patron_attributes); } if (C4::Context->preference('EnhancedMessagingPreferences') and $input->param('setting_messaging_prefs')) { - C4::Form::MessagingPreferences::handle_form_action($input, { borrowernumber => $borrowernumber }, $template); + C4::Form::MessagingPreferences::handle_form_action($input, { borrowernumber => $borrowernumber }, $template, 1, $newdata{'categorycode'}); } } elsif ($op eq 'save'){ if ($NoUpdateLogin) { -- 1.7.4.1 From Katrin.Fischer.83 at web.de Wed Jun 1 07:32:50 2011 From: Katrin.Fischer.83 at web.de (Katrin Fischer) Date: Wed, 1 Jun 2011 07:32:50 +0200 Subject: [Koha-patches] =?utf-8?b?W1BBVENIXSBbU0lHTkVELU9GRl0gKGJ1ZyAjMzky?= =?utf-8?q?4_MT2500=29_fix_useDaysMode_use?= Message-ID: <1306906370-1482-1-git-send-email-Katrin.Fischer.83@web.de> From: Nahuel ANGELINETTI This fix system preference choices, and delete some useless code. Signed-off-by: Henri-Damien LAURENT Signed-off-by: Katrin Fischer Fix is for fr-FR sql file. All other langages correctly include all 3 possible options for useDaysMode. The patch also includes a database update. --- .../1-Obligatoire/unimarc_standard_systemprefs.sql | 4 ++-- installer/data/mysql/updatedatabase.pl | 8 ++++++++ kohaversion.pl | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 185c74b..205281c 100755 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -120,7 +120,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('timeout', '30600', 'Ce param?tre d?finit la dur?e d''inactivit? au del? de laquelle l''utilisateur (professionnel ou opac) est automatiquement d?connect?', '', 'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('TransfersMaxDaysWarning', '3', 'D?lai maximum au del? duquel un transfert sera consid?r? comme ayant rencontr? un probl?me', '', 'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('uppercasesurnames', '0', 'Force les noms de famille ? ?tre en majuscule', NULL, 'YesNo'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('useDaysMode', 'Calendar', 'Comment calculer les dates de retour : ''Calendar'' signifie que les dates de retour sauteront les jours ferm?s. ''Days'' ignore le calendrier', 'Calendar|Days', 'Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('useDaysMode', 'Calendar', 'Comment calculer les dates de retour : ''Calendar'' signifie que les dates de retour sauteront les jours ferm?s. ''Days'' ignore le calendrier', 'Calendar|Days|Datedue', 'Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('virtualshelves', '1', 'Si ce param?tre est activ?, les adh?rents (identifi?s) peuvent cr?er des ?tag?res virtuelles', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('z3950AuthorAuthFields', '701,702,700', 'Ce param?tre permet de remplir automatiquement le champ 200$f (s''il est vide) avec le champ 700$a. Utile pour l''affichage, mais pas vraiment rigoureux du point de vue de la norme UNIMARC.', '', ''); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('z3950NormalizeAuthor', '0', 'Si activ?, les autorit?s auteur servent ? remplir le champ 200$f s''il est vide (param?tre sp?cifique ? l''UNIMARC', NULL, NULL); @@ -312,4 +312,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 52951e7..17074f4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4332,6 +4332,14 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.05.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("UPDATE systempreferences SET options = 'Calendar|Days|Datedue' WHERE variable = 'useDaysMode'"); + + print "Upgrade to $DBversion done (upgrade useDaysMode syspref)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) diff --git a/kohaversion.pl b/kohaversion.pl index c3b86a9..a780d8e 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.05.00.001'; + our $VERSION = '3.05.00.XXX'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 1.7.4.1 From fridolyn.somers at progilone.fr Wed Jun 1 10:44:05 2011 From: fridolyn.somers at progilone.fr (Fridolyn SOMERS) Date: Wed, 1 Jun 2011 10:44:05 +0200 Subject: [Koha-patches] [PATCH] BUG4319 waiting items cannot be reserved Message-ID: <1306917845-5761-1-git-send-email-fridolyn.somers@progilone.fr> --- C4/Search.pm | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index ab7cb59..c3cff65 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1671,7 +1671,7 @@ sub searchResults { ($reservestatus, $reserveitem) = C4::Reserves::CheckReserves($item->{itemnumber}); } - # item is withdrawn, lost or damaged + # item is withdrawn, lost, damaged, not for loan, reserved or in transit if ( $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} @@ -1686,6 +1686,15 @@ sub searchResults { $item_in_transit_count++ if $transfertwhen ne ''; $item_onhold_count++ if $reservestatus eq 'Waiting'; $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan}; + + # can place hold on item ? + if ((!$item->{damaged} || C4::Context->preference('AllowHoldsOnDamagedItems')) + && !$item->{itemlost} + && !$item->{withdrawn} + ) { + $can_place_holds = 1; + } + $other_count++; my $key = $prefix . $item->{status}; -- 1.7.1 From M.de.Rooy at rijksmuseum.nl Wed Jun 1 14:07:52 2011 From: M.de.Rooy at rijksmuseum.nl (Marcel de Rooy) Date: Wed, 1 Jun 2011 12:07:52 +0000 Subject: [Koha-patches] [PATCH] Bug 4839: Follow-up patch for installing pref In-Reply-To: <1306929954-14961-1-git-send-email-m.de.rooy@rijksmuseum.nl> References: <1306929954-14961-1-git-send-email-m.de.rooy@rijksmuseum.nl> Message-ID: <809BE39CD64BFD4EB9036172EBCCFA312D1F17@S-MAIL-1B.rijksmuseum.intra> Installs syspref MARCAuthorityControlField008. Rebased June 1, 2011 for master. --- installer/data/mysql/de-DE/mandatory/sysprefs.sql | 3 ++- installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../1-Obligatoire/unimarc_standard_systemprefs.sql | 3 ++- installer/data/mysql/it-IT/necessari/sysprefs.sql | 1 + .../data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql | 1 + installer/data/mysql/pl-PL/mandatory/sysprefs.sql | 3 ++- ...m_preferences_full_optimal_for_install_only.sql | 3 ++- ...m_preferences_full_optimal_for_install_only.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 +++++++ 9 files changed, 19 insertions(+), 4 deletions(-) diff --git a/installer/data/mysql/de-DE/mandatory/sysprefs.sql b/installer/data/mysql/de-DE/mandatory/sysprefs.sql index c7c885d..b62292d 100755 --- a/installer/data/mysql/de-DE/mandatory/sysprefs.sql +++ b/installer/data/mysql/de-DE/mandatory/sysprefs.sql @@ -311,4 +311,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems' ,'','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index f98b053..a205bfd 100755 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -312,3 +312,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 185c74b..883bd8a 100755 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -312,4 +312,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/it-IT/necessari/sysprefs.sql b/installer/data/mysql/it-IT/necessari/sysprefs.sql index fca0cfb..358ea27 100755 --- a/installer/data/mysql/it-IT/necessari/sysprefs.sql +++ b/installer/data/mysql/it-IT/necessari/sysprefs.sql @@ -299,3 +299,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql b/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql index b1c6fb5..5ced4cd 100644 --- a/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql +++ b/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql @@ -320,3 +320,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql index c39e231..a29a837 100755 --- a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql +++ b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql @@ -310,4 +310,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql index a7c6a10..1f23aaf 100755 --- a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -365,4 +365,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql index f370766..f71ac85 100755 --- a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -391,3 +391,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 52951e7..28a6ebd 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4332,6 +4332,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.05.00.XXX"; #FIXME +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea')"); + print "Upgrade to $DBversion done (Add syspref MARCAuthorityControlField008)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) -- 1.6.0.6 From oleonard at myacpl.org Wed Jun 1 15:10:00 2011 From: oleonard at myacpl.org (Owen Leonard) Date: Wed, 1 Jun 2011 09:10:00 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] BUG4319 waiting items cannot be reserved Message-ID: <1306933800-31420-1-git-send-email-oleonard@myacpl.org> From: Fridolyn SOMERS Signed-off-by: Owen Leonard --- C4/Search.pm | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index ab7cb59..c3cff65 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1671,7 +1671,7 @@ sub searchResults { ($reservestatus, $reserveitem) = C4::Reserves::CheckReserves($item->{itemnumber}); } - # item is withdrawn, lost or damaged + # item is withdrawn, lost, damaged, not for loan, reserved or in transit if ( $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} @@ -1686,6 +1686,15 @@ sub searchResults { $item_in_transit_count++ if $transfertwhen ne ''; $item_onhold_count++ if $reservestatus eq 'Waiting'; $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan}; + + # can place hold on item ? + if ((!$item->{damaged} || C4::Context->preference('AllowHoldsOnDamagedItems')) + && !$item->{itemlost} + && !$item->{withdrawn} + ) { + $can_place_holds = 1; + } + $other_count++; my $key = $prefix . $item->{status}; -- 1.7.3 From nengard at bywatersolutions.com Wed Jun 1 06:08:50 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Wed, 1 Jun 2011 00:08:50 -0400 Subject: [Koha-patches] [PATCH] bug 6442 change opacnav wording so it's more accurate Message-ID: <1306901330-2028-1-git-send-email-nengard@bywatersolutions.com> Signed-off-by: Nicole C. Engard --- .../prog/en/modules/admin/preferences/opac.pref | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index 7f92cd6..71c9426 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -138,7 +138,7 @@ OPAC: type: textarea class: code - - - "Show the following HTML on the left hand column of all pages on the OPAC (generally navigation links):" + - "Show the following HTML on the left hand column of the main page and patron account on the OPAC (generally navigation links):" - pref: OpacNav type: textarea class: code -- 1.7.2.3 From oleonard at myacpl.org Wed Jun 1 15:39:11 2011 From: oleonard at myacpl.org (Owen Leonard) Date: Wed, 1 Jun 2011 09:39:11 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6437: Added div with id yui-main around advsearch form Message-ID: <1306935551-31799-1-git-send-email-oleonard@myacpl.org> From: Elliott Davis Testing: Make sure div shows up directly above form Signed-off-by: Owen Leonard --- .../opac-tmpl/prog/en/modules/opac-advsearch.tt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt index e882bb8..216ce8e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt @@ -6,7 +6,7 @@

[% INCLUDE 'masthead.inc' %] - +
[% IF ( if_expanded_options_actually_worked ) %] @@ -286,7 +286,7 @@
- +
@@ -33,7 +33,7 @@ function GetIt(aqbooksellerid,name) [% END %] [% loop_supplier.name %] - Choose + Choose [% END %] -- 1.7.5.1 From f.demians at tamil.fr Wed Jun 1 21:37:33 2011 From: f.demians at tamil.fr (=?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?=) Date: Wed, 1 Jun 2011 21:37:33 +0200 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] [3.2] Bug 6444 Corrects encoding problems in subscription-add.pl In-Reply-To: <1306957053-28253-1-git-send-email-f.demians@tamil.fr> References: <1306957053-28253-1-git-send-email-f.demians@tamil.fr> Message-ID: <1306957053-28253-2-git-send-email-f.demians@tamil.fr> From: Fr?d?rick Capovilla When searching for a vendor, if the vendor has accented character in its name, the vendor's name that's added in the form of subscription-add.pl is encoded incorrectly. [2011.06.01] F. Demians. I confirm the bug and the solution Signed-off-by: Fr?d?ric Demians --- .../en/modules/serials/acqui-search-result.tmpl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl index f5a1577..689d307 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl @@ -6,7 +6,7 @@ function GetIt(aqbooksellerid,name) { opener.document.f.aqbooksellerid.value = aqbooksellerid; - opener.document.f.aqbooksellername.value = unescape(name); + opener.document.f.aqbooksellername.value = name; window.close(); } @@ -33,7 +33,7 @@ function GetIt(aqbooksellerid,name) - ,'')">Choose + ,$(this).parent().prev().text())">Choose -- 1.7.5.1 From srdjan at catalyst.net.nz Thu Jun 2 04:29:14 2011 From: srdjan at catalyst.net.nz (Srdjan Jankovic) Date: Thu, 2 Jun 2011 14:29:14 +1200 Subject: [Koha-patches] [PATCH] bug_6190: BorrowerUnwantedField syspref and removing fields from the patron entry In-Reply-To: References: Message-ID: <1306981754-20337-1-git-send-email-srdjan@catalyst.net.nz> --- admin/systempreferences.pl | 1 + installer/data/mysql/de-DE/mandatory/sysprefs.sql | 3 +- installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../1-Obligatoire/unimarc_standard_systemprefs.sql | 3 +- installer/data/mysql/it-IT/necessari/sysprefs.sql | 1 + .../data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql | 18 +++- installer/data/mysql/pl-PL/mandatory/sysprefs.sql | 3 +- ...m_preferences_full_optimal_for_install_only.sql | 3 +- ...m_preferences_full_optimal_for_install_only.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 ++ .../prog/en/modules/admin/preferences/patrons.pref | 5 + .../prog/en/modules/help/members/memberentry.tt | 1 + .../prog/en/modules/members/memberentrygen.tt | 111 +++++++++++++++++++- members/memberentry.pl | 7 ++ xt/syspref.t | 1 + 15 files changed, 157 insertions(+), 9 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 87ecac4..39a81e6 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -223,6 +223,7 @@ $tabsysprefs{intranetreadinghistory} = "Patrons"; $tabsysprefs{NotifyBorrowerDeparture} = "Patrons"; $tabsysprefs{memberofinstitution} = "Patrons"; $tabsysprefs{BorrowerMandatoryField} = "Patrons"; +$tabsysprefs{BorrowerUnwantedField} = "Patrons"; $tabsysprefs{borrowerRelationship} = "Patrons"; $tabsysprefs{BorrowersTitles} = "Patrons"; $tabsysprefs{patronimages} = "Patrons"; diff --git a/installer/data/mysql/de-DE/mandatory/sysprefs.sql b/installer/data/mysql/de-DE/mandatory/sysprefs.sql index c7c885d..59c2972 100755 --- a/installer/data/mysql/de-DE/mandatory/sysprefs.sql +++ b/installer/data/mysql/de-DE/mandatory/sysprefs.sql @@ -20,6 +20,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum',1,'If ON, patron number is auto-calculated','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BiblioDefaultView','normal','Choose the default detail view in the catalog; choose between normal, marc or isbd','normal|marc|isbd','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField','zipcode|surname|cardnumber','Choose the mandatory fields for a patron\'s account',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship','Vater|Mutter','Define valid relationships between a guarantor & a guarantee (separated by | or ,)','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog',1,'If ON, log edit/create/delete actions on patron data',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casAuthentication', '0', 'Enable or disable CAS authentication', '', 'YesNo'); @@ -311,4 +312,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems' ,'','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index f98b053..139ba38 100755 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -20,6 +20,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum',1,'If ON, patron number is auto-calculated','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BiblioDefaultView','normal','Choose the default detail view in the catalog; choose between normal, marc or isbd','normal|marc|isbd','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField','zipcode|surname|cardnumber','Choose the mandatory fields for a patron\'s account',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship','father|mother','Define valid relationships between a guarantor & a guarantee (separated by | or ,)','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog',1,'If ON, log edit/create/delete actions on patron data',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casAuthentication', '0', 'Enable or disable CAS authentication', '', 'YesNo'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 185c74b..df52093 100755 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -19,6 +19,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AutomaticItemReturn', '1', 'Ce param??tre permet de faire les retours vers le site propri??taire automatiquement', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum', '1', 'Si ce param??tre est activ??, le num??ro des adh??rents est automatiquement calcul??. Ne sera pas activ?? si vous avez des cartes pr??-imprim??es.', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField', '', 'Liste les champs obligatoires dans la grille de saisie des adh??rents (s??par??s par | ou ,)', 'cardnumber|surname|address', 'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship', '', 'Liste les relations entre les garants et leurs garantis (separ??es par | ou ,)', 'P??re|M??re|grand-parent|Tuteur l??gal|Autre\r\n', 'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog', '0', 'Activer ce param??tre pour enregistrer les actions sur les lecteurs', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersTitles', '', 'Liste les titres de politesse (s??par??s par | ou ,)', 'M|Mme|Mlle', 'free'); @@ -312,4 +313,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); diff --git a/installer/data/mysql/it-IT/necessari/sysprefs.sql b/installer/data/mysql/it-IT/necessari/sysprefs.sql index fca0cfb..acf995d 100755 --- a/installer/data/mysql/it-IT/necessari/sysprefs.sql +++ b/installer/data/mysql/it-IT/necessari/sysprefs.sql @@ -35,6 +35,7 @@ insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('BiblioAddsAuthorities','1','','Se ON, aggiungendo un nuovo record bibliografico il sistema controlla se ci sono i records di authority corrispondenti per i campi collegati con l???authority. Se non ci sono, gli equivalenti rcords di autority sono creati al volo.','YesNo'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('BiblioDefaultView','normal','normal|marc|isbd','Per scegliere la visualizzazione di default della scheda dettagliata nel catalogo; scegliere tra normal, marc o isbd.','Choice'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('BorrowerMandatoryField','city|surname|cardnumber','','Per decidere quali campi sono obbligatori nell\'account di un utente.','free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('borrowerRelationship','father|mother','','Definisce la relazione valida tra garante e garanzia (separali con | o ,)','free'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('BorrowersLog','0','','Se ON, logga le azioni di modifica/creazione/cancellazione sui dati utente.','YesNo'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('BorrowersTitles','Sig|Sig.ra|Sig.na','','Definisce i titoli appropriati per gli utenti','free'); diff --git a/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql b/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql index b1c6fb5..975a3e4 100644 --- a/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql +++ b/installer/data/mysql/nb-NO/1-Obligatorisk/sysprefs.sql @@ -41,6 +41,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum',1,'If ON, patron number is auto-calculated','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BiblioDefaultView','normal','Choose the default detail view in the catalog; choose between normal, marc or isbd','normal|marc|isbd','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField','surname|cardnumber','Choose the mandatory fields for a patron\'s account',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship','far|mor','Define valid relationships between a guarantor & a guarantee (separated by | or ,)','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog',1,'If ON, log edit/create/delete actions on patron data',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casAuthentication', '0', 'Enable or disable CAS authentication', '', 'YesNo'); @@ -48,6 +49,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casServerUrl', 'https://localhost:8443/cas', 'URL of the cas server', '', 'Free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CataloguingLog',1,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('checkdigit','none','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','none|katipo','Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('COinSinOPACResults', 1, 'If ON, use COinS in OPAC search results page. NOTE: this can slow down search response time significantly','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('delimiter',';','Define the default separator character for exporting reports',';|tabulation|,|/|\\|#|\|','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('EnhancedMessagingPreferences',0,'If ON, allows patrons to select to receive additional messages about items due or nearly due.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('expandedSearchOption',0,'If ON, set advanced search to be expanded by default',NULL,'YesNo'); @@ -55,6 +57,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FinesLog',1,'If ON, log fines',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems',0,'If ON, disables display of\"lost\" items in OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc',0,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches',0,'If ON, increases security between libraries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure',0,'If ON, bypasses all authentication. Be careful!',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetBiblioDefaultView','normal','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','normal|marc|isbd|labeled_marc','Choice'); @@ -118,6 +121,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ReturnBeforeExpiry',0,'If ON, checkout will be prevented if returndate is after patron card expiry',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ReturnLog',1,'If ON, enables the circulation (returns) log',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('reviewson',1,'If ON, enables patron reviews of bibliographic records in the OPAC','','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ShowReviewer',1,'If ON, name of reviewer will be shown above comments in OPAC','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SpecifyDueDate',1,'Define whether to display \"Specify Due Date\" form in Circulation','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SubscriptionHistory','simplified','Define the display preference for serials issue history in OPAC','simplified|full','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SubscriptionLog',1,'If ON, enables subscriptions log',NULL,'YesNo'); @@ -126,6 +130,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('timeout',12000000,'Inactivity timeout for cookies authentication (in seconds)',NULL,'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('TransfersMaxDaysWarning',3,'Define the days before a transfer is suspected of having a problem',NULL,'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('useDaysMode','Calendar','Choose the method for calculating due date: select Calendar to use the holidays module, and Days to ignore the holidays module','Calendar|Days|Datedue','Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('UseControlNumber',0,'If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('virtualshelves',1,'If ON, enables Lists management','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('z3950AuthorAuthFields','701,702,700','Define the MARC biblio fields for Personal Name Authorities to fill biblio.author',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('z3950NormalizeAuthor',0,'If ON, Personal Name Authorities will replace authors in biblio.author','','YesNo'); @@ -159,6 +164,9 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES -- need AddressType to distinguish between US and other, telephone numbers, maori stuff, sex, nationality, etc. -- LDAP ? required fields? INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WebBasedSelfCheck',0,'If ON, enables the web-based self-check system',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SelfCheckTimeout',120,'Define the number of seconds before the Web-based Self Checkout times out a patron','','Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AllowSelfCheckReturns',0,'If enabled, patrons may return items through the Web-based Self Checkout','','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SelfCheckHelpMessage','','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','70|10','Textarea'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numSearchResults',20,'Specify the maximum number of results to display on a page of results',NULL,'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACnumSearchResults',20,'Specify the maximum number of results to display on a page of results',NULL,'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('defaultSortField',NULL,'Specify the default field used for sorting','relevance|popularity|call_number|pubdate|acqdate|title|author','Choice'); @@ -172,8 +180,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'If ON, emails the librarian whenever a hold is placed',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Number of returned items to show on the check-in page',NULL,'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines). Requires accruefines cronjob.','off|test|production','Choice'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','If set, allows a global static due date for all checkouts','10','free'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','whitespace|T-prefix|cuecat|libsuite8','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Operate in Single-branch mode, hide branch selection in the OPAC',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Text to display as the link anchor in the OPAC',NULL,'free'); @@ -285,6 +291,7 @@ INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanatio INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'DisplayClearScreenButton', '0', '', 'If set to ON, a clear screen button will appear on the circulation page.', 'YesNo'); INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('HidePatronName', '0', '', 'If this is switched on, patron''s cardnumber will be shown instead of their name on the holds and catalog screens', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACSearchForTitleIn','
  • Andre bibliotek (WorldCat)
  • \n
  • Andre databaser (Google Scholar)
  • \n
  • Nettbutikker (Bookfinder.com)
  • ','Skriv inn HTML som vil vises i \'Flere s??k\'-menyen i detaljvisningen i OPACen. Bruk {TITLE}, {AUTHOR} eller {ISBN} som variabler i URLer. La feltet v??re tomt for ?? skru av \'Flere s??k\'-menyen.','70|10','Textarea'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACMySummaryHTML','','Enter the HTML that will appear in a column on the \'my profile\' tab when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','70|10','Textarea'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACPatronDetails','1','If OFF the patron details tab in the OPAC is disabled.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACFinesTab','1','If OFF the patron fines tab in the OPAC is disabled.','','YesNo'); INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'If ON, displays the format, audience, type icons in XSLT MARC21 results and display pages.', 'YesNo'); @@ -320,3 +327,10 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACDisplay856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','OFF|Details|Results|Both','Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); diff --git a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql index c39e231..5b658eb 100755 --- a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql +++ b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql @@ -20,6 +20,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum',1,'If ON, patron number is auto-calculated','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BiblioDefaultView','normal','Choose the default detail view in the catalog; choose between normal, marc or isbd','normal|marc|isbd','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField','zipcode|surname|cardnumber','Choose the mandatory fields for a patron\'s account',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship','father|mother','Define valid relationships between a guarantor & a guarantee (separated by | or ,)','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog',1,'If ON, log edit/create/delete actions on patron data',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casAuthentication', '0', 'Enable or disable CAS authentication', '', 'YesNo'); @@ -310,4 +311,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql index a7c6a10..735b9ca 100755 --- a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -35,6 +35,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum',1,'If ON, patron number is auto-calculated','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BiblioDefaultView','normal','Choose the default detail view in the catalog; choose between normal, marc or isbd','normal|marc|isbd','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField','surname|cardnumber','Choose the mandatory fields for a patron\'s account',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship','father|mother','Define valid relationships between a guarantor & a guarantee (separated by | or ,)','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog',1,'If ON, log edit/create/delete actions on patron data',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CataloguingLog',1,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.',NULL,'YesNo'); @@ -365,4 +366,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql index f370766..7a33660 100755 --- a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -34,6 +34,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('autoMemberNum',1,'If ON, patron number is auto-calculated','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BiblioDefaultView','normal','Choose the default detail view in the catalog; choose between normal, marc or isbd','normal|marc|isbd','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerMandatoryField','surname|cardnumber','Choose the mandatory fields for a patron\'s account',NULL,'free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('borrowerRelationship','father|mother','Define valid relationships between a guarantor & a guarantee (separated by | or ,)','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersLog',1,'If ON, log edit/create/delete actions on patron data',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CataloguingLog',1,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.',NULL,'YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 52951e7..b31c4d0 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4332,6 +4332,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.05.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free')"); + print "Upgrade to $DBversion done (BorrowerUnwantedField syspref)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref index ac3e1d2..6bfa0df 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref @@ -32,6 +32,11 @@ Patrons: class: multi - (separate columns with |) - + - "The following database columns will not appear on the patron entry screen:" + - pref: BorrowerUnwantedField + class: multi + - (separate columns with |) + - - "Guarantors can be the following of those they guarantee:" - pref: borrowerRelationship class: multi diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/memberentry.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/memberentry.tt index b832f4c..9dcaf60 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/memberentry.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/memberentry.tt @@ -22,6 +22,7 @@
  • Enter the identifying information regarding your patron
    • Required fields are defined in the BorrowerMandatoryField system preference
    • +
    • Unwanted fields are defined in the BorrowerUnwantedField system preference
    • Salutation is populated by the BorrowersTitles system preference
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 3c2db31..e3feee3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -169,6 +169,7 @@ [% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity
      [% UNLESS ( I ) %] + [% UNLESS notitle %] [% IF ( title_cgipopup ) %]
    1. [% IF ( mandatorytitle ) %] @@ -182,6 +183,8 @@
    2. [% END %] [% END %] + [% END %] + [% UNLESS nosurname %]
    3. [% IF ( mandatorysurname ) %]
    4. + [% END %] [% UNLESS ( I ) %] + [% UNLESS nofirstname %]
    5. [% IF ( mandatoryfirstname ) %]
    6. + [% END %] + [% UNLESS nodateofbirth %]
    7. [% IF ( mandatorydateofbirth ) %]
    8. + [% END %] + [% UNLESS noinitials %]
    9. [% IF ( mandatoryinitials ) %]
    10. [% END %] + [% END %] + [% UNLESS noothernames %]
    11. [% IF ( mandatoryothernames ) %]
    12. + [% END %] [% UNLESS ( I ) %] + [% UNLESS nosex %]
    13. [% IF ( female ) %] @@ -276,6 +289,7 @@ [% END %]
    14. + [% END %] [% END %]
    @@ -310,6 +324,7 @@ [% END %] Patron #: [% IF ( guarantorid ) %] [% guarantorid %][% END %] + [% UNLESS nocontactname %]
  • [% IF ( guarantorid ) %] @@ -319,6 +334,8 @@ [% END %]
  • + [% END %] + [% UNLESS nocontactfirstname %]
  • [% IF ( guarantorid ) %] @@ -328,6 +345,7 @@ [% END %]
  • + [% END %] [% IF ( relshiploop ) %]
  • @@ -357,8 +375,10 @@ [% END %] +[% UNLESS noaddress && nocity && nostate %]
    Main address
      + [% UNLESS nostreetnumber %]
    1. [% IF ( mandatorystreetnumber ) %]
    2. + [% END %] + [% UNLESS nostreettype %] [% IF ( road_cgipopup ) %]
    3. [% IF ( mandatorystreettype ) %] @@ -381,6 +403,8 @@ [% IF ( mandatorystreettype ) %]Required[% END %]
    4. [% END %] + [% END %] + [% UNLESS noaddress %]
    5. [% IF ( mandatoryaddress ) %]
    6. + [% END %] + [% UNLESS noaddress2 %]
    7. [% IF ( mandatoryaddress2 ) %]
    8. + [% END %] + [% UNLESS nocity %]
    9. [% IF ( mandatorycity ) %]
    10. + [% END %] + [% UNLESS nostate %]
    11. [% IF ( mandatorystate ) %]
    12. + [% END %] + [% UNLESS nozipcode %]
    13. [% IF ( mandatoryzipcode ) %]
    14. - + [% END %] + [% UNLESS nocountry %]
    15. [% IF ( mandatorycountry ) %]
    16. - + [% END %]
    +[% END # nostreet && nocity etc group%]
    Contact
      + [% UNLESS nophone %]
    1. [% IF ( mandatoryphone ) %]
    2. + [% END %] + [% UNLESS nophonepro %]
    3. [% IF ( mandatoryphonepro ) %]
    4. + [% END %] + [% UNLESS nomobile %]
    5. [% IF ( mandatorymobile ) %]
    6. + [% END %] + [% UNLESS noemail %]
    7. [% IF ( mandatoryemail ) %]
    8. + [% END %] + [% UNLESS noemailpro %]
    9. [% IF ( mandatoryemailpro ) %]
    10. + [% END %] + [% UNLESS nofax %]
    11. [% IF ( mandatoryfax ) %]
    12. + [% END %]
    @@ -531,8 +577,10 @@ [% END %] [% IF ( step_6 ) %] + [% UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
    Alternate address
      + [% UNLESS noB_address %]
    1. [% IF ( mandatoryB_address ) %]
    2. + [% END %] + [% UNLESS noB_address2 %]
    3. [% IF ( mandatoryB_address2 ) %]
    4. + [% END %] + [% UNLESS noB_city %]
    5. [% IF ( mandatoryB_city ) %]
    6. + [% END %] + [% UNLESS noB_state %]
    7. [% IF ( mandatoryB_state ) %]
    8. + [% END %] + [% UNLESS noB_zipcode %]
    9. [% IF ( mandatoryB_zipcode ) %]
    10. + [% END %] + [% UNLESS noB_country %]
    11. [% IF ( mandatoryB_country ) %]
    12. + [% END %] + [% UNLESS noB_phone %]
    13. [% IF ( mandatoryB_phone ) %]
    14. + [% END %] + [% UNLESS noB_email %]
    15. [% IF ( mandatoryB_email ) %] [% IF ( mandatoryB_email ) %]Required[% END %]
    16. + [% END %] + [% UNLESS nocontactnote %]
    17. [% IF ( mandatorycontactnote ) %]
    18. + [% END %]
    + [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] [% END %] [% IF ( step_2 ) %] + [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactphone %]
    Alternate Contact
      + [% UNLESS noaltcontactsurname %]
    1. [% IF ( mandatoryaltcontactsurname ) %]
    2. + [% END %] + [% UNLESS noaltcontactfirstname %]
    3. [% IF ( mandatoryaltcontactfirstname ) %]
    4. + [% END %] + [% UNLESS noaltcontactaddress1 %]
    5. [% IF ( mandatoryaltcontactaddress1 ) %]
    6. + [% END %] + [% UNLESS noaltcontactaddress2 %]
    7. [% IF ( mandatoryaltcontactaddress2 ) %]
    8. + [% END %] + [% UNLESS noaltcontactaddress3 %]
    9. [% IF ( mandatoryaltcontactaddress3 ) %]
    10. + [% END %] + [% UNLESS noaltcontactstate %]
    11. [% IF ( mandatoryaltcontactstate ) %]
    12. + [% END %] + [% UNLESS noaltcontactzipcode %]
    13. [% IF ( mandatoryaltcontactzipcode ) %]
    14. + [% END %] + [% UNLESS noaltcontactcountry %]
    15. [% IF ( mandatoryaltcontactcountry ) %]
    16. + [% END %] + [% UNLESS noaltcontactphone %]
    17. [% IF ( mandatoryaltcontactphone ) %]
    18. + [% END %]
    + [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] [% IF ( I ) %] @@ -746,6 +832,7 @@
    Library Management
      + [% UNLESS nocardnumber %]
    1. [% IF ( mandatorycardnumber ) %] [% IF ( mandatorycardnumber ) %]Required[% END %]
    2. + [% END %] + [% UNLESS nobranchcode %]
    3. [% IF ( mandatorybranchcode ) %]
    4. + [% END %]
    5. + [% UNLESS nosort1 %]
    6. [% IF ( mandatorysort1 ) %]
    7. + [% END %] + [% UNLESS nosort2 %]
    8. [% IF ( mandatorysort2 ) %]
    9. + [% END %]
    Library set-up
      + [% UNLESS nodateenrolled %]
    1. [% IF ( mandatorydateenrolled ) %]
    2. + [% END %] + [% UNLESS nodateexpiry %]
    3. [% IF ( mandatorydateexpiry ) %]
    4. + [% END %] + [% UNLESS noopacnote %]
    5. [% IF ( mandatoryopacnote ) %]
    6. + [% END %] + [% UNLESS noborrowernotes %]
    7. [% IF ( mandatoryborrowernotes ) %]
    8. + [% END %]
    OPAC/Staff Login
      + [% UNLESS nouserid %]
    1. [% IF ( mandatoryuserid ) %]
    +
  • + [% END %] + [% UNLESS ( opadd ) %] diff --git a/members/memberentry.pl b/members/memberentry.pl index 61c3c2c..517ec7c 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -100,6 +100,13 @@ my @field_check=split(/\|/,$check_BorrowerMandatoryField); foreach (@field_check) { $template->param( "mandatory$_" => 1); } +# function to designate unwanted fields +my $check_BorrowerUnwantedField=C4::Context->preference("BorrowerUnwantedField"); + at field_check=split(/\|/,$check_BorrowerUnwantedField); +foreach (@field_check) { + next unless m/\w/o; + $template->param( "no$_" => 1); +} $template->param( "add" => 1 ) if ( $op eq 'add' ); $template->param( "duplicate" => 1 ) if ( $op eq 'duplicate' ); $template->param( "checked" => 1 ) if ( defined($nodouble) && $nodouble eq 1 ); diff --git a/xt/syspref.t b/xt/syspref.t index 1b7c438..7b1fb76 100755 --- a/xt/syspref.t +++ b/xt/syspref.t @@ -33,6 +33,7 @@ my @trans_syspref_files = qw( uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql pl-PL/mandatory/sysprefs.sql + nb-NO/1-Obligatorisk/sysprefs.sql ); ok( -- 1.6.5 From robin at catalyst.net.nz Thu Jun 2 06:29:11 2011 From: robin at catalyst.net.nz (Robin Sheat) Date: Thu, 2 Jun 2011 16:29:11 +1200 Subject: [Koha-patches] [PATCH] Bug 5602: Changes to account for the version update. Message-ID: <1306988951-22210-1-git-send-email-robin@catalyst.net.nz> This is intended to apply on top of the previous 5602 patch. --- debian/README.build | 10 +++++----- debian/build-git-snapshot | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/debian/README.build b/debian/README.build index 32a0f5d..9d33726 100644 --- a/debian/README.build +++ b/debian/README.build @@ -1,4 +1,5 @@ -In order to build .deb packages, following debian packages need to be present (installed): +In order to build .deb packages, following debian packages need to be present +(installed): devscripts pbuilder dh-make @@ -7,7 +8,6 @@ fakeroot As root (or sudo) execute: pbuilder create -Executing build-git-snapshot without any arguments will leave package and the rest in some pbuilder dir, eg. /var/cache/pbuilder/result -It is highly recommended that --buildresult option is used. - -The script requires sudo. +Executing build-git-snapshot without any arguments will leave package and the +rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly +recommended that --buildresult option is used. diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index c3140e7..295b5fa 100755 --- a/debian/build-git-snapshot +++ b/debian/build-git-snapshot @@ -17,7 +17,8 @@ # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# Written by Robin Sheat +# Written by Robin Sheat and +# Srdjan Jankovic # Based on an sh version by Lars Wirzenius. use strict; @@ -29,7 +30,7 @@ use POSIX qw/strftime/; my $buildresult; my $distribution='squeeze-dev'; my $git_checks='all'; -my $version='3.3-1~git'; +my $version='3.5-1~git'; my $auto_version=1; my $need_help; my $debug; @@ -99,7 +100,7 @@ Options: tracked files with untracked changes will cause an error), and 'none' (checking git status is skipped totally.) Default is 'all'. --version, -v - the version string for the resulting package. Default is '3.3-1~git'. + the version string for the resulting package. Default is '3.5-1~git'. --(no)autoversion whether or not to use the date and git commit ID in the version value. Default is to include it. -- 1.7.4.1 From colin.campbell at ptfs-europe.com Thu Jun 2 12:36:54 2011 From: colin.campbell at ptfs-europe.com (Colin Campbell) Date: Thu, 2 Jun 2011 11:36:54 +0100 Subject: [Koha-patches] [Signed Off] Bug 6444 Corrects encoding problems in subscription-add.pl Message-ID: <1307011014-11667-1-git-send-email-colin.campbell@ptfs-europe.com> From: Fr?d?rick Capovilla When searching for a vendor, if the vendor has accented character in its name, the vendor's name that's added in the form of subscription-add.pl is encoded incorrectly. [2011.06.01] F. Demians. Port it to 3.4 Signed-off-by: Colin Campbell --- .../prog/en/modules/serials/acqui-search-result.tt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt index b92aafb..2a29f72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt @@ -6,7 +6,7 @@ function GetIt(aqbooksellerid,name) { opener.document.f.aqbooksellerid.value = aqbooksellerid; - opener.document.f.aqbooksellername.value = unescape(name); + opener.document.f.aqbooksellername.value = name; window.close(); } @@ -33,7 +33,7 @@ function GetIt(aqbooksellerid,name) [% END %] [% loop_supplier.name %] - Choose + Choose [% END %] -- 1.7.5.2 From colin.campbell at ptfs-europe.com Thu Jun 2 13:31:27 2011 From: colin.campbell at ptfs-europe.com (Colin Campbell) Date: Thu, 2 Jun 2011 12:31:27 +0100 Subject: [Koha-patches] [PATCH] Bug 6335 Set branch in sip session Message-ID: <1307014287-11954-1-git-send-email-colin.campbell@ptfs-europe.com> The server returns its branch as the institution in the config file However in transactions it will default to the homebranch of the sip user which may not be consistent with that. Needs to set branch in the session if there is a value in config otherwise statistics and behaviour can be wrong (esp in discharge) --- C4/SIP/Sip/MsgType.pm | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 508a06b..6c6d75a 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -817,7 +817,7 @@ sub login_core ($$$) { $server->{sip_username} = $uid; $server->{sip_password} = $pwd; - my $auth_status = api_auth($uid,$pwd); + my $auth_status = api_auth($uid,$pwd,$inst); if (!$auth_status or $auth_status !~ /^ok$/i) { syslog("LOG_WARNING", "api_auth failed for SIP terminal '%s' of '%s': %s", $uid, $inst, ($auth_status||'unknown')); @@ -1585,17 +1585,17 @@ sub patron_status_string { return $patron_status; } -sub api_auth($$) { - # AUTH - my ($username,$password) = (shift,shift); - $ENV{REMOTE_USER} = $username; - my $query = CGI->new(); - $query->param(userid => $username); - $query->param(password => $password); - my ($status, $cookie, $sessionID) = check_api_auth($query, {circulate=>1}, "intranet"); - # print STDERR "check_api_auth returns " . ($status || 'undef') . "\n"; - # print "api_auth userenv = " . &dump_userenv; - return $status; +sub api_auth { + my ($username,$password, $branch) = @_; + $ENV{REMOTE_USER} = $username; + my $query = CGI->new(); + $query->param(userid => $username); + $query->param(password => $password); + if ($branch) { + $query->param(branch => $branch); + } + my ($status, $cookie, $sessionID) = check_api_auth($query, {circulate=>1}, 'intranet'); + return $status; } 1; -- 1.7.5.2 From cnighswonger at foundations.edu Thu Jun 2 19:37:51 2011 From: cnighswonger at foundations.edu (Chris Nighswonger) Date: Thu, 2 Jun 2011 13:37:51 -0400 Subject: [Koha-patches] Proposed patch for bug number 6321 relative to Koha 3.2.X In-Reply-To: <04BC999E-A9A7-45F8-98F5-AC5030A97169@pusc.it> References: <04BC999E-A9A7-45F8-98F5-AC5030A97169@pusc.it> Message-ID: Hi Stefano, Please submit this work in the form of a git formated patch so that it can be tested and signed off on. Thanks for the good work! Kind Regards, Chris On Fri, May 13, 2011 at 5:59 AM, Stefano Bargioni wrote: > In C4/Serials.pm > > line 2136 must be changed into: > ? my @per_list = (0, 7, 7, 14, 21, 31, 62, 93, 93, 190, 365, 730, 0, 124, 0, 0); > > add at line 2299: > ? ? ? ?if ( $subscription->{periodicity} == 13 ) { > ? ? ? ? ? ?for ( my $i = 0 ; $i < @irreg ; $i++ ) { > ? ? ? ? ? ? ? ?if ( $irreg[$i] == ( ( $tmpmonth != 8 ) ? ( $tmpmonth + 4 ) % 12 : 12 ) ) { > ? ? ? ? ? ? ? ? ? ?( $year, $month, $day ) = Add_Delta_YMD( $year, $month, $day, 0, 4, 0 ); > ? ? ? ? ? ? ? ? ? ?$tmpmonth = ( ( $tmpmonth != 8 ) ? ( $tmpmonth + 4 ) % 12 : 12 ); > ? ? ? ? ? ? ? ?} > ? ? ? ? ? ?} > ? ? ? ? ? ?@resultdate = Add_Delta_YMD( $year, $month, $day, 0, 4, 0 ); > ? ? ? ?} > > In en/modules/serials/subscription-add.tmpl add at line 1236: > > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? > > Add a translation for "1/4 month (3/year)" in po files for two lines of subscription-add.tmpl. > _______________________________________________ > Koha-patches mailing list > Koha-patches at lists.koha-community.org > http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches > website : http://www.koha-community.org/ > git : http://git.koha-community.org/ > bugs : http://bugs.koha-community.org/ > From magnus at enger.priv.no Thu Jun 2 21:37:40 2011 From: magnus at enger.priv.no (Magnus Enger) Date: Thu, 2 Jun 2011 21:37:40 +0200 Subject: [Koha-patches] [PATCH 2/2] Bug 6450 - No check in/check out messages in message_queue Message-ID: <1307043460-4936-1-git-send-email-magnus@enger.priv.no> Huge thanks to Katrin Fischer for spotting what was the trouble here! --- C4/Circulation.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 9a2db4c..6cca9e9 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2613,8 +2613,8 @@ sub SendCirculationAlert { my ($type, $item, $borrower, $branch) = ($opts->{type}, $opts->{item}, $opts->{borrower}, $opts->{branch}); my %message_name = ( - CHECKIN => 'Item Check-in', - CHECKOUT => 'Item Checkout', + CHECKIN => 'Item_Check_in', + CHECKOUT => 'Item_Checkout', ); my $borrower_preferences = C4::Members::Messaging::GetMessagingPreferences({ borrowernumber => $borrower->{borrowernumber}, -- 1.7.4.1 From chrisc at catalyst.net.nz Fri Jun 3 03:06:19 2011 From: chrisc at catalyst.net.nz (Chris Cormack) Date: Fri, 3 Jun 2011 13:06:19 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6450 - No check in/check out messages in message_queue Message-ID: <1307063179-25403-1-git-send-email-chrisc@catalyst.net.nz> From: Magnus Enger Huge thanks to Katrin Fischer for spotting what was the trouble here! Signed-off-by: Chris Cormack --- C4/Circulation.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 9a2db4c..6cca9e9 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2613,8 +2613,8 @@ sub SendCirculationAlert { my ($type, $item, $borrower, $branch) = ($opts->{type}, $opts->{item}, $opts->{borrower}, $opts->{branch}); my %message_name = ( - CHECKIN => 'Item Check-in', - CHECKOUT => 'Item Checkout', + CHECKIN => 'Item_Check_in', + CHECKOUT => 'Item_Checkout', ); my $borrower_preferences = C4::Members::Messaging::GetMessagingPreferences({ borrowernumber => $borrower->{borrowernumber}, -- 1.7.4.1 From chrisc at catalyst.net.nz Fri Jun 3 03:11:01 2011 From: chrisc at catalyst.net.nz (Chris Cormack) Date: Fri, 3 Jun 2011 13:11:01 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] bug 6442 change opacnav wording so it's more accurate Message-ID: <1307063461-25727-1-git-send-email-chrisc@catalyst.net.nz> From: Nicole C. Engard Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- .../prog/en/modules/admin/preferences/opac.pref | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index 7f92cd6..71c9426 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -138,7 +138,7 @@ OPAC: type: textarea class: code - - - "Show the following HTML on the left hand column of all pages on the OPAC (generally navigation links):" + - "Show the following HTML on the left hand column of the main page and patron account on the OPAC (generally navigation links):" - pref: OpacNav type: textarea class: code -- 1.7.4.1 From pianohacker at gmail.com Fri Jun 3 03:51:40 2011 From: pianohacker at gmail.com (Jesse Weaver) Date: Thu, 2 Jun 2011 19:51:40 -0600 Subject: [Koha-patches] [PATCH 1/2] Bug 4222 - allow nonpublicnote to be a mapped DB column Message-ID: <1307065901-11397-1-git-send-email-pianohacker@gmail.com> From: Robin Sheat This means that it's possible (and easy) to put non-public notes (usually 952$x) on a template, same as public notes. It creates a mapping between the 952$x field and the new database column. Note that when this is applied, it will only work on newly saved records. It is possible this will need to be altered to allow for UNIMARC etc. if they use 952 differently. Signed-off-by: Jesse Weaver --- catalogue/detail.pl | 8 ++++++++ catalogue/moredetail.pl | 1 + installer/data/mysql/updatedatabase.pl | 7 +++++++ .../prog/en/modules/catalogue/detail.tt | 4 +++- .../prog/en/modules/catalogue/moredetail.tt | 1 + 5 files changed, 20 insertions(+), 1 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 03271b4..9abc3e4 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -224,6 +224,13 @@ foreach my $item (@items) { $item->{waitingdate} = format_date($wait_hashref->{waitingdate}); } + foreach my $f (qw( itemnotes nonpublicnote )) { + if ($item->{$f}) { + $item->{$f} =~ s|\n|
    |g; + $itemfields{$f} = 1; + } + } + push @itemloop, $item; } @@ -242,6 +249,7 @@ $template->param( itemdata_copynumber => $itemfields{copynumber}, volinfo => $itemfields{enumchron}, itemdata_itemnotes => $itemfields{itemnotes}, + itemdata_nonpublicnote => $itemfields{nonpublicnote}, z3950_search_params => C4::Search::z3950_search_args($dat), holdcount => $holdcount, C4::Search::enabled_staff_search_views, diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index d848188..364c26c 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -145,6 +145,7 @@ foreach my $item (@items){ } else { $item->{'issue'}= 0; } + $item->{nonpublicnote} =~ s|\n|
    |g if $item->{nonpublicnote}; } $template->param(count => $data->{'count'}, subscriptionsnumber => $subscriptionsnumber, diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 52951e7..d6bc16c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4332,6 +4332,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = '3.05.00.XXX'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("ALTER TABLE items ADD COLUMN nonpublicnote MEDIUMTEXT"); + $dbh->do("UPDATE marc_subfield_structure SET kohafield='items.nonpublicnote' WHERE (kohafield IS NULL OR kohafield = '') AND tagfield='952' AND tagsubfield='x'"); + print "Upgrade to $DBversion done (Make nonpublicnote easier to use)\n"; +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index a019733..8a57aff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -246,7 +246,8 @@ function verify_images() { [% IF ( volinfo ) %]Publication Details[% END %] [% IF ( itemdata_uri ) %]url[% END %] [% IF ( itemdata_copynumber ) %]Copy No.[% END %] - [% IF ( itemdata_itemnotes ) %]Public notes[% END %] + [% IF ( itemdata_itemnotes ) %]Public Notes[% END %] + [% IF ( itemdata_nonpublicnote ) %]Non-public Notes[% END %] [% IF ( SpineLabelShowPrintOnBibDetails ) %]Spine Label[% END %] [% FOREACH itemloo IN itemloop %] @@ -370,6 +371,7 @@ function verify_images() { [% itemloo.copynumber %] [% END %] [% IF ( itemdata_itemnotes ) %]
    [% itemloo.itemnotes %]
    [% END %] + [% IF ( itemdata_nonpublicnote ) %]
    [% itemloo.nonpublicnote %]
    [% END %] [% IF ( itemloo.type ) %] Fix Itemtype [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 86c8a3f..c9dac79 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -173,6 +173,7 @@ [% IF ( ITEM_DAT.card1 ) %]
  • Previous Borrower: [% ITEM_DAT.card1 %] 
  • [% END %] [% IF ( ITEM_DAT.card2 ) %]
  • Previous Borrower: [% ITEM_DAT.card2 %] 
  • [% END %]
  • Paid for?: [% ITEM_DAT.paidfor %] 
  • +
  • Non-public Note: [% ITEM_DAT.nonpublicnote %] 
  • Serial enumeration: [% ITEM_DAT.enumchron %] 
  • Public Note: [% IF ( CAN_user_editcatalogue_edit_items ) %] -- 1.7.4.1 From pianohacker at gmail.com Fri Jun 3 03:51:41 2011 From: pianohacker at gmail.com (Jesse Weaver) Date: Thu, 2 Jun 2011 19:51:41 -0600 Subject: [Koha-patches] [PATCH 2/2] Bug 4222 - Also add non-public note to checkin/out screens In-Reply-To: <1307065901-11397-1-git-send-email-pianohacker@gmail.com> References: <1307065901-11397-1-git-send-email-pianohacker@gmail.com> Message-ID: <1307065901-11397-2-git-send-email-pianohacker@gmail.com> --- circ/returns.pl | 1 + .../prog/en/modules/catalogue/moredetail.tt | 2 +- .../prog/en/modules/circ/circulation.tt | 8 ++++---- .../intranet-tmpl/prog/en/modules/circ/returns.tt | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index d7fad0c..20f2f4f 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -572,6 +572,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{itemcallnumber} = $biblio->{'itemcallnumber'}; $ri{itemtype} = $biblio->{'itemtype'}; $ri{itemnote} = $biblio->{'itemnotes'}; + $ri{nonpublicnote} = $biblio->{'nonpublicnote'}; $ri{ccode} = $biblio->{'ccode'}; $ri{itemnumber} = $biblio->{'itemnumber'}; $ri{barcode} = $bar_code; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index c9dac79..51648c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -173,7 +173,7 @@ [% IF ( ITEM_DAT.card1 ) %]
  • Previous Borrower: [% ITEM_DAT.card1 %] 
  • [% END %] [% IF ( ITEM_DAT.card2 ) %]
  • Previous Borrower: [% ITEM_DAT.card2 %] 
  • [% END %]
  • Paid for?: [% ITEM_DAT.paidfor %] 
  • -
  • Non-public Note: [% ITEM_DAT.nonpublicnote %] 
  • +
  • Non-public Note: [% ITEM_DAT.nonpublicnote %] 
  • Serial enumeration: [% ITEM_DAT.enumchron %] 
  • Public Note: [% IF ( CAN_user_editcatalogue_edit_items ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index afa6ec5..fdbd4d0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -702,7 +702,7 @@ No patron matched [% message %] [% IF ( todayissue.od ) %][% ELSE %][% END %] [% todayissue.dd %] - [% todayissue.title |html %][% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- [% todayissue.itemnotes %][% END %] [% todayissue.barcode %] + [% todayissue.title |html %][% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- [% todayissue.itemnotes %][% END %][% IF ( todayissue.nonpublicnote ) %]- [% todayissue.nonpublicnote %][% END %] [% todayissue.barcode %] [% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %][% END %][% END %][% todayissue.itemtype %] [% todayissue.checkoutdate %] [% IF ( todayissue.multiple_borrowers ) %][% todayissue.borrowername %][% END %] @@ -774,7 +774,7 @@ No patron matched [% message %] [% IF ( previssue.od ) %][% ELSE %][% END %] [% previssue.dd %] - [% previssue.title |html %][% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %] [% previssue.barcode %] + [% previssue.title |html %][% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %][% IF ( previssue.nonpublicnote ) %]- [% previssue.nonpublicnote %][% END %] [% previssue.barcode %] [% previssue.itemtype %] @@ -880,7 +880,7 @@ No patron matched [% message %] [% END %] [% IF ( relissue.overdue ) %][% ELSE %][% END %] [% relissue.dd %] - [% relissue.title |html %][% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- [% relissue.itemnotes %][% END %] [% relissue.barcode %] + [% relissue.title |html %][% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- [% relissue.itemnotes %][% END %][% IF ( relissue.nonpublicnote ) %]- [% relissue.nonpublicnote %][% END %] [% relissue.barcode %] [% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %][% END %][% END %][% relissue.itemtype %] [% relissue.displaydate %] [% relissue.itemcallnumber %] @@ -900,7 +900,7 @@ No patron matched [% message %] [% IF ( relprevissue.overdue ) %][% ELSE %][% END %] [% relprevissue.dd %] - [% relprevissue.title |html %][% IF ( relprevissue.author ) %], by [% relprevissue.author %][% END %] [% IF ( relprevissue.itemnotes ) %]- [% relprevissue.itemnotes %][% END %] [% relprevissue.barcode %] + [% relprevissue.title |html %][% IF ( relprevissue.author ) %], by [% relprevissue.author %][% END %] [% IF ( relprevissue.itemnotes ) %]- [% relprevissue.itemnotes %][% END %][% IF ( relprevissue.nonpublicnote ) %] - [% relprevissue.nonpublicnote %][% END %] [% relprevissue.barcode %] [% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %][% END %][% END %][% relprevissue.itemtype %] [% relprevissue.displaydate %] [% relprevissue.itemcallnumber %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 620f770..ffdeec4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -420,7 +420,8 @@ function Dopop(link) { [% ELSE %]Not checked out[% END %] [% IF ( riloo.bornote ) %][% riloo.bornote %]
    [% END %] - [% IF ( riloo.itemnote ) %][% riloo.itemnote %][% END %] + [% IF ( riloo.itemnote ) %][% riloo.itemnote %]
    [% END %] + [% IF ( riloo.nonpublicnote ) %][% riloo.nonpublicnote %][% END %] [% END %] -- 1.7.4.1 From oleonard at myacpl.org Fri Jun 3 14:16:00 2011 From: oleonard at myacpl.org (Owen Leonard) Date: Fri, 3 Jun 2011 08:16:00 -0400 Subject: [Koha-patches] [PATCH] Fix for Bug 6446, batch item deletion interface problems Message-ID: <1307103360-2840-1-git-send-email-oleonard@myacpl.org> Scoping error in T:T variable caused incorrect column display in batch delete and batch edit interfaces. After applying this patch header cells should align correctly with content and checkbox column should appear. --- .../prog/en/modules/tools/batchMod-del.tt | 2 +- .../prog/en/modules/tools/batchMod-edit.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index 21013f5..5aed1ba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -91,7 +91,7 @@ for( x=0; x - [% FOREACH item_loo IN item_loop %] [% IF ( item_loo.show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% END %] + [% FOREACH item_loo IN item_loop %] [% IF ( show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% END %] [% FOREACH item_valu IN item_loo.item_value %] [% item_valu.field |html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 461b6bc..05fa978 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -85,7 +85,7 @@ for( x=0; x - [% FOREACH item_loo IN item_loop %] [% IF ( item_loo.show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% ELSE %] [% END %] + [% FOREACH item_loo IN item_loop %] [% IF ( show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% ELSE %] [% END %] [% FOREACH item_valu IN item_loo.item_value %] [% item_valu.field |html %] [% END %] -- 1.7.3 From nengard at bywatersolutions.com Thu Jun 2 08:30:22 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Thu, 2 Jun 2011 02:30:22 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 6446, batch item deletion interface problems Message-ID: <1306996222-6669-1-git-send-email-nengard@bywatersolutions.com> From: Owen Leonard Scoping error in T:T variable caused incorrect column display in batch delete and batch edit interfaces. After applying this patch header cells should align correctly with content and checkbox column should appear. Signed-off-by: Nicole C. Engard --- .../prog/en/modules/tools/batchMod-del.tt | 2 +- .../prog/en/modules/tools/batchMod-edit.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index 21013f5..5aed1ba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -91,7 +91,7 @@ for( x=0; x - [% FOREACH item_loo IN item_loop %] [% IF ( item_loo.show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% END %] + [% FOREACH item_loo IN item_loop %] [% IF ( show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% END %] [% FOREACH item_valu IN item_loo.item_value %] [% item_valu.field |html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 461b6bc..05fa978 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -85,7 +85,7 @@ for( x=0; x - [% FOREACH item_loo IN item_loop %] [% IF ( item_loo.show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% ELSE %] [% END %] + [% FOREACH item_loo IN item_loop %] [% IF ( show ) %][% IF ( item_loo.nomod ) %] Cannot Edit[% ELSE %][% END %][% ELSE %] [% END %] [% FOREACH item_valu IN item_loo.item_value %] [% item_valu.field |html %] [% END %] -- 1.7.2.3 From chris at bigballofwax.co.nz Sat Jun 4 12:00:31 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Sat, 4 Jun 2011 22:00:31 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6181: Remove CGI Scolling lists from C4::Budgets Message-ID: <1307181631-19673-1-git-send-email-chris@bigballofwax.co.nz> From: Colin Campbell As noted on bug 766 more cases of usage of CGI::scrolling_list were imported into C4::Budgets Even if we were not trying to remove usage of this the C4 modules are not the place to generate markup Most of these routines are noise as they are not used in any current code but cause confusion and increase maintenance overhead. They are removed The sort dropboxes on order create are the only references in current templates to these routines they have been replaced by a select list generated by the markup. They can probably be removed too but their existence although the option that causes them to be displayed seems unlikely to be set. I've left them pending resolution of some of the inconsistencies and confusions surrounding Budgts Signed-off-by: Chris Cormack --- C4/Budgets.pm | 93 ++++---------------- acqui/addorderiso2709.pl | 12 ++-- acqui/fetch_sort_dropbox.pl | 65 -------------- acqui/neworderempty.pl | 16 ++-- admin/aqbudgetperiods.pl | 2 - admin/aqbudgets.pl | 3 - admin/aqplan.pl | 2 - .../prog/en/modules/acqui/addorderiso2709.tt | 29 +++++-- .../prog/en/modules/acqui/neworderempty.tt | 24 ++++- 9 files changed, 75 insertions(+), 171 deletions(-) delete mode 100755 acqui/fetch_sort_dropbox.pl diff --git a/C4/Budgets.pm b/C4/Budgets.pm index d2010d0..4b41b12 100644 --- a/C4/Budgets.pm +++ b/C4/Budgets.pm @@ -50,10 +50,7 @@ BEGIN { &AddBudgetPeriod &DelBudgetPeriod - &GetBudgetPeriodsDropbox - &GetBudgetSortDropbox &GetAuthvalueDropbox - &GetBudgetPermDropbox &ModBudgetPlan @@ -335,24 +332,6 @@ sub GetBudgetOrdered { } # ------------------------------------------------------------------- -sub GetBudgetPermDropbox { - my ($perm) = @_; - my %labels; - $labels{'0'} = 'None'; - $labels{'1'} = 'Owner'; - $labels{'2'} = 'Library'; - my $radio = CGI::scrolling_list( - -id => 'budget_permission', - -name => 'budget_permission', - -values => [ '0', '1', '2' ], - -default => $perm, - -labels => \%labels, - -size => 1, - ); - return $radio; -} - -# ------------------------------------------------------------------- sub GetBudgetAuthCats { my ($budget_period_id) = shift; # now, populate the auth_cats_loop used in the budget planning button @@ -374,61 +353,27 @@ sub GetBudgetAuthCats { # ------------------------------------------------------------------- sub GetAuthvalueDropbox { - my ( $name, $authcat, $default ) = @_; - my @authorised_values; - my %authorised_lib; - my $value; - my $dbh = C4::Context->dbh; - my $sth = $dbh->prepare( - "SELECT authorised_value,lib - FROM authorised_values - WHERE category = ? - ORDER BY lib" - ); - $sth->execute( $authcat ); - - push @authorised_values, ''; - while (my ($value, $lib) = $sth->fetchrow_array) { - push @authorised_values, $value; - $authorised_lib{$value} = $lib; - } - - return 0 if keys(%authorised_lib) == 0; - - my $budget_authvalue_dropbox = CGI::scrolling_list( - -values => \@authorised_values, - -labels => \%authorised_lib, - -default => $default, - -override => 1, - -size => 1, - -multiple => 0, - -name => $name, - -id => $name, + my ( $authcat, $default ) = @_; + my $dbh = C4::Context->dbh; + my $sth = $dbh->prepare( + 'SELECT authorised_value,lib FROM authorised_values + WHERE category = ? ORDER BY lib' ); + $sth->execute( $authcat ); + my $option_list = []; + my @authorised_values = ( q{} ); + while (my ($value, $lib) = $sth->fetchrow_array) { + push @{$option_list}, { + value => $value, + label => $lib, + default => ($default eq $value), + }; + } - return $budget_authvalue_dropbox -} - -# ------------------------------------------------------------------- -sub GetBudgetPeriodsDropbox { - my ($budget_period_id) = @_; - my %labels; - my @values; - my ($active, $periods) = GetBudgetPeriods(); - foreach my $r (@$periods) { - $labels{"$r->{budget_period_id}"} = $r->{budget_period_description}; - push @values, $r->{budget_period_id}; - } - - # if no buget_id is passed then its an add - my $budget_period_dropbox = CGI::scrolling_list( - -name => 'budget_period_id', - -values => \@values, - -default => $budget_period_id ? $budget_period_id : $active, - -size => 1, - -labels => \%labels, - ); - return $budget_period_dropbox; + if ( @{$option_list} ) { + return $option_list; + } + return; } # ------------------------------------------------------------------- diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index c46263a..0b9d860 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -281,12 +281,12 @@ $template->param( budget_loop => $budget_loop,); my $CGIsort1; if ($budget) { # its a mod .. if ( defined $budget->{'sort1_authcat'} ) { # with custom Asort* planning values - $CGIsort1 = GetAuthvalueDropbox( 'sort1', $budget->{'sort1_authcat'}, $data->{'sort1'} ); + $CGIsort1 = GetAuthvalueDropbox( $budget->{'sort1_authcat'}, $data->{'sort1'} ); } } elsif ( scalar(@$budgets) ) { - $CGIsort1 = GetAuthvalueDropbox( 'sort1', @$budgets[0]->{'sort1_authcat'}, '' ); + $CGIsort1 = GetAuthvalueDropbox( @$budgets[0]->{'sort1_authcat'}, '' ); } else { - $CGIsort1 = GetAuthvalueDropbox( 'sort1', '', '' ); + $CGIsort1 = GetAuthvalueDropbox( '', '' ); } # if CGIsort is successfully fetched, the use it @@ -300,12 +300,12 @@ if ($CGIsort1) { my $CGIsort2; if ($budget) { if ( defined $budget->{'sort2_authcat'} ) { - $CGIsort2 = GetAuthvalueDropbox( 'sort2', $budget->{'sort2_authcat'}, $data->{'sort2'} ); + $CGIsort2 = GetAuthvalueDropbox( $budget->{'sort2_authcat'}, $data->{'sort2'} ); } } elsif ( scalar(@$budgets) ) { - $CGIsort2 = GetAuthvalueDropbox( 'sort2', @$budgets[0]->{sort2_authcat}, '' ); + $CGIsort2 = GetAuthvalueDropbox( @$budgets[0]->{sort2_authcat}, '' ); } else { - $CGIsort2 = GetAuthvalueDropbox( 'sort2', '', '' ); + $CGIsort2 = GetAuthvalueDropbox( '', '' ); } if ($CGIsort2) { diff --git a/acqui/fetch_sort_dropbox.pl b/acqui/fetch_sort_dropbox.pl deleted file mode 100755 index 21d3c61..0000000 --- a/acqui/fetch_sort_dropbox.pl +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/perl - -# Copyright 2008-2009 BibLibre SARL -# -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -use strict; -#use warnings; FIXME - Bug 2505 -use CGI; -use C4::Context; -use C4::Output; -use C4::Auth; -use C4::Budgets; - -=head1 NAME - -fetch_sort_dropbox - -=cut - -my $input = new CGI; - -my $budget_id = $input->param('budget_id'); -my $sort_id = $input->param('sort'); - -my ( $template, $loggedinuser, $cookie ) = get_template_and_user( - { template_name => "acqui/ajax.tmpl", # FIXME: REMOVE TMPL DEP? - query => $input, - type => "intranet", - authnotrequired => 0, - flagsrequired => {editcatalogue => 'edit_catalogue'}, - debug => 0, - } -); - -my $sort_dropbox; -my $budget = GetBudget($budget_id); - -if ( $sort_id == 1 ) { - $sort_dropbox = GetAuthvalueDropbox( 'sort1', $budget->{'sort1_authcat'}, '' ); -} elsif ( $sort_id == 2 ) { - $sort_dropbox = GetAuthvalueDropbox( 'sort2', $budget->{'sort2_authcat'}, '' ); -} - -#strip off select tags ;/ -$sort_dropbox =~ s/^\//; -$sort_dropbox =~ s/\<\/select\>$//; -chomp $sort_dropbox; - -$template->param( return => $sort_dropbox ); -output_html_with_http_headers $input, $cookie, $template->output; -1; diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index 386dda7..eb92ba2 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -278,12 +278,12 @@ if ($close) { my $CGIsort1; if ($budget) { # its a mod .. if ( defined $budget->{'sort1_authcat'} ) { # with custom Asort* planning values - $CGIsort1 = GetAuthvalueDropbox( 'sort1', $budget->{'sort1_authcat'}, $data->{'sort1'} ); + $CGIsort1 = GetAuthvalueDropbox( $budget->{'sort1_authcat'}, $data->{'sort1'} ); } -} elsif(scalar(@$budgets)){ - $CGIsort1 = GetAuthvalueDropbox( 'sort1', @$budgets[0]->{'sort1_authcat'}, '' ); +} elsif(@{$budgets}){ + $CGIsort1 = GetAuthvalueDropbox( @$budgets[0]->{'sort1_authcat'}, '' ); }else{ - $CGIsort1 = GetAuthvalueDropbox( 'sort1','', '' ); + $CGIsort1 = GetAuthvalueDropbox( '', '' ); } # if CGIsort is successfully fetched, the use it @@ -297,12 +297,12 @@ if ($CGIsort1) { my $CGIsort2; if ($budget) { if ( defined $budget->{'sort2_authcat'} ) { - $CGIsort2 = GetAuthvalueDropbox( 'sort2', $budget->{'sort2_authcat'}, $data->{'sort2'} ); + $CGIsort2 = GetAuthvalueDropbox( $budget->{'sort2_authcat'}, $data->{'sort2'} ); } -} elsif(scalar(@$budgets)) { - $CGIsort2 = GetAuthvalueDropbox( 'sort2', @$budgets[0]->{sort2_authcat}, '' ); +} elsif(@{$budgets}) { + $CGIsort2 = GetAuthvalueDropbox( @$budgets[0]->{sort2_authcat}, '' ); }else{ - $CGIsort2 = GetAuthvalueDropbox( 'sort2','', '' ); + $CGIsort2 = GetAuthvalueDropbox( '', '' ); } if ($CGIsort2) { diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl index 724c7e5..e74935e 100755 --- a/admin/aqbudgetperiods.pl +++ b/admin/aqbudgetperiods.pl @@ -188,10 +188,8 @@ elsif ( $op eq 'delete_confirmed' ) { $budgetperiod->{budget_active} = 1; push( @period_loop, $budgetperiod ); } - my $budget_period_dropbox = GetBudgetPeriodsDropbox(); $template->param( - budget_period_dropbox => $budget_period_dropbox, period_loop => \@period_loop, pagination_bar => pagination_bar("aqbudgetperiods.pl",getnbpages(scalar(@$results),$pagesize),$page), ); diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl index e34f2cc..79c7b13 100755 --- a/admin/aqbudgets.pl +++ b/admin/aqbudgets.pl @@ -73,7 +73,6 @@ my $script_name = "/cgi-bin/koha/admin/aqbudgets.pl"; my $budget_hash = $input->Vars; my $budget_id = $$budget_hash{budget_id}; my $budget_permission = $input->param('budget_permission'); -my $budget_period_dropbox = $input->param('budget_period_dropbox'); my $filter_budgetbranch = $input->param('filter_budgetbranch'); #filtering non budget keys delete $$budget_hash{$_} foreach grep {/filter|^op$|show/} keys %$budget_hash; @@ -225,9 +224,7 @@ if ($op eq 'add_form') { } } my $branches = GetBranches(); - my $budget_period_dropbox = GetBudgetPeriodsDropbox($$period{budget_period_id} ); $template->param( - budget_period_dropbox => $budget_period_dropbox, budget_id => $budget_id, %$period, ); diff --git a/admin/aqplan.pl b/admin/aqplan.pl index 8b68d51..81418ff 100755 --- a/admin/aqplan.pl +++ b/admin/aqplan.pl @@ -74,14 +74,12 @@ my $budget_period_startdate = $period->{'budget_period_startdate'}; my $budget_period_enddate = $period->{'budget_period_enddate'}; my $budget_period_locked = $period->{'budget_period_locked'}; my $budget_period_description = $period->{'budget_period_description'}; -my $budget_period_dropbox = GetBudgetPeriodsDropbox($budget_period_id ); $template->param( budget_period_id => $budget_period_id, budget_period_locked => $budget_period_locked, budget_period_description => $budget_period_description, - budget_period_dropbox => $budget_period_dropbox, auth_cats_loop => $auth_cats_loop, ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 04d0c58..dd864cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -184,21 +184,36 @@
  • The 2 following fields are available for your own usage. They can be useful for statistical purposes
    - [% IF ( CGIsort1 ) %] - [% CGIsort1 %] + [% IF CGIsort1 %] + [% ELSE %] - [% END %]
  • - [% IF ( CGIsort2 ) %] - [% CGIsort2 %] - [% ELSE %] - + [% IF CGIsort2 %] + + [% ELSE %] + + [% END %]
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index d6c8459..03c8863 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -412,8 +412,16 @@ $(document).ready(function()
  • The 2 following fields are available for your own usage. They can be useful for statistical purposes
    - [% IF ( CGIsort1 ) %] - [% CGIsort1 %] + [% IF CGIsort1 %] + [% ELSE %] @@ -422,8 +430,16 @@ $(document).ready(function()
  • - [% IF ( CGIsort2 ) %] - [% CGIsort2 %] + [% IF CGIsort2 %] + [% ELSE %] [% END %] -- 1.7.2.2 From magnus at enger.priv.no Sat Jun 4 19:52:40 2011 From: magnus at enger.priv.no (Magnus Enger) Date: Sat, 4 Jun 2011 19:52:40 +0200 Subject: [Koha-patches] [PATCH] Needless call to C4::Context->dbh in C4::Templates::themelanguage() Message-ID: <1307209960-2753-1-git-send-email-magnus@enger.priv.no> As far as I can tell, $dbh is never used again in the scope in which it is created. This patch simply removes the line. --- C4/Templates.pm | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index 8939be5..4368492 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -191,7 +191,6 @@ sub themelanguage { $lang = $languages[0] || 'en'; } my $theme = 'prog'; # in the event of theme failure default to 'prog' -fbcit - my $dbh = C4::Context->dbh; my @themes; if ( $interface eq "intranet" ) { @themes = split " ", C4::Context->preference("template"); -- 1.7.4.1 From januszop at gmail.com Sun Jun 5 01:19:22 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Sun, 5 Jun 2011 02:19:22 +0300 Subject: [Koha-patches] [PATCH] Bug 6460 - No log generated if Action set to All or Modify or Delete Message-ID: <1307229562-3792-1-git-send-email-januszop@gmail.com> --- C4/Log.pm | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Log.pm b/C4/Log.pm index 822cda5..fa258f2 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -221,9 +221,9 @@ sub GetLogs { $query .= " AND module IN (".join(",",map {"?"} @$modules).") "; push(@parameters,@$modules); } - if($action && scalar(@$action)) { - $query .= " AND action IN (".join(",",map {"?"} @$action).") "; - push(@parameters,@$action); + if($action->[0]) { + $query .= " AND action LIKE ? "; + push(@parameters,"%".$action->[0]."%"); } if($object) { $query .= " AND object = ? "; -- 1.7.2.5 From januszop at gmail.com Sun Jun 5 01:57:01 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Sun, 5 Jun 2011 02:57:01 +0300 Subject: [Koha-patches] [PATCH] Bug 6461 - BiblioDefaultView has no impact on how record are displayed when going from results list Message-ID: <1307231821-4840-1-git-send-email-januszop@gmail.com> --- .../opac-tmpl/prog/en/modules/opac-results.tt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index 7d881f9..0fb550b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -410,9 +410,9 @@ $(document).ready(function(){ [% IF ( OPACXSLTResultsDisplay ) %] [% SEARCH_RESULT.XSLTResultsRecord %] [% ELSE %] - [% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %] + [% IF ( BiblioDefaultViewmarc ) %] [% ELSE %] - [% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %] + [% IF ( BiblioDefaultViewisbd ) %] [% ELSE %] [% END %] [% END %] -- 1.7.2.5 From januszop at gmail.com Sun Jun 5 02:28:18 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Sun, 5 Jun 2011 03:28:18 +0300 Subject: [Koha-patches] [PATCH] Bug 6462 - Authority type is not displayed in OPAC Message-ID: <1307233698-5822-1-git-send-email-januszop@gmail.com> --- .../en/modules/opac-authoritiessearchresultlist.tt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt index 4da5455..7fb7f49 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt @@ -51,7 +51,7 @@ [% resul.summary %] - [% resul.authtypetext %] + [% authtypetext %] [% UNLESS ( resul.isEDITORS ) %] -- 1.7.2.5 From chris at bigballofwax.co.nz Sun Jun 5 08:29:57 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Sun, 5 Jun 2011 18:29:57 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6462 - Authority type is not displayed in OPAC Message-ID: <1307255397-21373-1-git-send-email-chris@bigballofwax.co.nz> From: Janusz Kaczmarek Signed-off-by: Chris Cormack --- .../en/modules/opac-authoritiessearchresultlist.tt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt index b8c597f..203cf7f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt @@ -51,7 +51,7 @@ [% resul.summary %] - [% resul.authtypetext %] + [% authtypetext %] [% UNLESS ( resul.isEDITORS ) %] -- 1.7.2.2 From chris at bigballofwax.co.nz Sun Jun 5 08:33:52 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Sun, 5 Jun 2011 18:33:52 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6461 - BiblioDefaultView has no impact on how record are displayed when going from results list Message-ID: <1307255632-21518-1-git-send-email-chris@bigballofwax.co.nz> From: Janusz Kaczmarek Signed-off-by: Chris Cormack --- .../opac-tmpl/prog/en/modules/opac-results.tt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index f371db1..c1a0f8c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -410,9 +410,9 @@ $(document).ready(function(){ [% IF ( OPACXSLTResultsDisplay ) %] [% SEARCH_RESULT.XSLTResultsRecord %] [% ELSE %] - [% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %] + [% IF ( BiblioDefaultViewmarc ) %] [% ELSE %] - [% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %] + [% IF ( BiblioDefaultViewisbd ) %] [% ELSE %] [% END %] [% END %] -- 1.7.2.2 From januszop at gmail.com Sun Jun 5 18:38:07 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Sun, 5 Jun 2011 19:38:07 +0300 Subject: [Koha-patches] [PATCH] Bug 6463 - Authorities browsing error when using auth. plugins Message-ID: <1307291887-22388-1-git-send-email-januszop@gmail.com> --- .../modules/authorities/searchresultlist-auth.tt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt index cda1191..ba22e9c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt @@ -31,7 +31,7 @@ function jumpfull(page) [% IF ( number.highlight ) %] [% number.number %] [% ELSE %] - + [% number.number %] [% END %] [% END %] @@ -72,7 +72,7 @@ function jumpfull(page) [% IF ( resul.repets ) %] [% FOREACH repet IN resul.repets %] - [% repet.repet %] + [% repet.repet %] [% END %] [% ELSE %] choose @@ -94,7 +94,7 @@ function jumpfull(page) [% IF ( number.highlight ) %] [% number.number %] [% ELSE %] - + [% number.number %] [% END %] [% END %] -- 1.7.2.5 From f.demians at tamil.fr Sun Jun 5 20:52:56 2011 From: f.demians at tamil.fr (=?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?=) Date: Sun, 5 Jun 2011 20:52:56 +0200 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6463 - Authorities browsing error when using auth. plugins Message-ID: <1307299976-30997-1-git-send-email-f.demians@tamil.fr> From: Janusz Kaczmarek [2011.06.05] I confirm the solution. On my test UNIMARC installation, I haven't an error 500 but I have a wrong result pages navigation bar which doesn't limit search result on the selected authority type. Signed-off-by: Fr?d?ric Demians --- .../modules/authorities/searchresultlist-auth.tt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt index cda1191..ba22e9c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt @@ -31,7 +31,7 @@ function jumpfull(page) [% IF ( number.highlight ) %] [% number.number %] [% ELSE %] - + [% number.number %] [% END %] [% END %] @@ -72,7 +72,7 @@ function jumpfull(page) [% IF ( resul.repets ) %] [% FOREACH repet IN resul.repets %] - [% repet.repet %] + [% repet.repet %] [% END %] [% ELSE %] choose @@ -94,7 +94,7 @@ function jumpfull(page) [% IF ( number.highlight ) %] [% number.number %] [% ELSE %] - + [% number.number %] [% END %] [% END %] -- 1.7.5.1 From januszop at gmail.com Mon Jun 6 00:11:03 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Mon, 6 Jun 2011 01:11:03 +0300 Subject: [Koha-patches] =?utf-8?q?=5BPATCH=5D_Bug_6465_-_Errors_in_UNIMARC?= =?utf-8?q?_plugins_for_fixed_length_fields_=28for_=7C_and_space=29?= =?utf-8?b?IChUOjpUIGlzc3VlKQ==?= Message-ID: <1307311863-29501-1-git-send-email-januszop@gmail.com> --- cataloguing/value_builder/unimarc_field_100.pl | 18 +++++-- cataloguing/value_builder/unimarc_field_105.pl | 37 ++++++++------ cataloguing/value_builder/unimarc_field_110.pl | 26 ++++++--- cataloguing/value_builder/unimarc_field_115a.pl | 41 +++++++++------ cataloguing/value_builder/unimarc_field_115b.pl | 25 ++++++--- cataloguing/value_builder/unimarc_field_116.pl | 31 +++++++---- cataloguing/value_builder/unimarc_field_117.pl | 20 ++++++-- cataloguing/value_builder/unimarc_field_120.pl | 21 ++++++-- cataloguing/value_builder/unimarc_field_121a.pl | 12 ++++- cataloguing/value_builder/unimarc_field_125b.pl | 10 +++- cataloguing/value_builder/unimarc_field_126a.pl | 20 +++++-- cataloguing/value_builder/unimarc_field_128b.pl | 9 +++- cataloguing/value_builder/unimarc_field_130.pl | 10 +++- cataloguing/value_builder/unimarc_field_135a.pl | 10 +++- cataloguing/value_builder/unimarc_field_140.pl | 43 +++++++++------ cataloguing/value_builder/unimarc_leader.pl | 19 +++++-- .../cataloguing/value_builder/unimarc_field_100.tt | 10 ++-- .../cataloguing/value_builder/unimarc_field_105.tt | 18 +++--- .../cataloguing/value_builder/unimarc_field_110.tt | 2 +- .../value_builder/unimarc_field_115a.tt | 2 +- .../cataloguing/value_builder/unimarc_field_116.tt | 54 ++++++++++---------- .../cataloguing/value_builder/unimarc_field_117.tt | 30 ++++++------ .../cataloguing/value_builder/unimarc_field_120.tt | 14 +++--- .../value_builder/unimarc_field_121a.tt | 4 +- .../value_builder/unimarc_field_125b.tt | 2 +- .../value_builder/unimarc_field_126a.tt | 14 +++--- .../value_builder/unimarc_field_128b.tt | 6 +- .../cataloguing/value_builder/unimarc_field_130.tt | 2 +- .../value_builder/unimarc_field_135a.tt | 2 +- .../cataloguing/value_builder/unimarc_field_140.tt | 34 ++++++------ .../cataloguing/value_builder/unimarc_leader.tt | 6 +- 31 files changed, 340 insertions(+), 212 deletions(-) diff --git a/cataloguing/value_builder/unimarc_field_100.pl b/cataloguing/value_builder/unimarc_field_100.pl index 5477856..bc7742a 100755 --- a/cataloguing/value_builder/unimarc_field_100.pl +++ b/cataloguing/value_builder/unimarc_field_100.pl @@ -67,6 +67,14 @@ sub plugin_javascript { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -90,14 +98,14 @@ sub plugin { my @today = Date::Calc::Today(); $f1 = $today[0] . sprintf('%02s',$today[1]) . sprintf('%02s',$today[2]); } - my $f2 = substr( $result, 8, 1 ); + my $f2 = wrapper( substr( $result, 8, 1 ) ); my $f3 = substr( $result, 9, 4 ); $f3='' if $f3 eq ' '; # empty publication year if only spaces, otherwise it's hard to fill the field my $f4 = substr( $result, 13, 4 ); $f4='' if $f4 eq ' '; - my $f5 = substr( $result, 17, 1 ); - my $f6 = substr( $result, 18, 1 ); - my $f7 = substr( $result, 19, 1 ); + my $f5 = wrapper( substr( $result, 17, 1 ) ); + my $f6 = wrapper( substr( $result, 18, 1 ) ); + my $f7 = wrapper( substr( $result, 19, 1 ) ); my $f8 = substr( $result, 20, 1 ); my $f9 = substr( $result, 21, 1 ); my $f10 = substr( $result, 22, 3 ); @@ -105,7 +113,7 @@ sub plugin { my $f12 = substr( $result, 26, 2 ); my $f13 = substr( $result, 28, 2 ); my $f14 = substr( $result, 30, 4 ); - my $f15 = substr( $result, 34, 2 ); + my $f15 = wrapper( substr( $result, 34, 2 ) ); $template->param( index => $index, diff --git a/cataloguing/value_builder/unimarc_field_105.pl b/cataloguing/value_builder/unimarc_field_105.pl index d87afb4..69a8259 100755 --- a/cataloguing/value_builder/unimarc_field_105.pl +++ b/cataloguing/value_builder/unimarc_field_105.pl @@ -63,6 +63,13 @@ sub plugin_javascript { return ($field_number,$res); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -79,21 +86,21 @@ sub plugin { flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - - my $f5 = substr($result,4,1); - my $f6 = substr($result,5,1); - my $f7 = substr($result,6,1); - my $f8 = substr($result,7,1); - - my $f9 = substr($result,8,1); - my $f10 = substr($result,9,1); - my $f11 = substr($result,10,1); - my $f12 = substr($result,11,1); - my $f13 = substr($result,12,1); + my $f1 = wrapper( substr($result,0,1) ); + my $f2 = wrapper( substr($result,1,1) ); + my $f3 = wrapper( substr($result,2,1) ); + my $f4 = wrapper( substr($result,3,1) ); + + my $f5 = wrapper( substr($result,4,1) ); + my $f6 = wrapper( substr($result,5,1) ); + my $f7 = wrapper( substr($result,6,1) ); + my $f8 = wrapper( substr($result,7,1) ); + + my $f9 = wrapper( substr($result,8,1) ); + my $f10 = wrapper( substr($result,9,1) ); + my $f11 = wrapper( substr($result,10,1) ); + my $f12 = wrapper( substr($result,11,1) ); + my $f13 = wrapper( substr($result,12,1) ); $template->param(index => $index, "f1$f1" => 1, diff --git a/cataloguing/value_builder/unimarc_field_110.pl b/cataloguing/value_builder/unimarc_field_110.pl index 848a53a..5d6f1a9 100755 --- a/cataloguing/value_builder/unimarc_field_110.pl +++ b/cataloguing/value_builder/unimarc_field_110.pl @@ -62,6 +62,14 @@ sub plugin_javascript { return ($field_number,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,15 +84,15 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - my $f5 = substr($result,4,3); - my $f6 = substr($result,7,1); - my $f7 = substr($result,8,1); - my $f8 = substr($result,9,1); - my $f9 = substr($result,10,1); + my $f1 = wrapper( substr($result,0,1) ); + my $f2 = wrapper( substr($result,1,1) ); + my $f3 = wrapper( substr($result,2,1) ); + my $f4 = wrapper( substr($result,3,1) ); + my $f5 = substr($result,4,3) ); + my $f6 = wrapper( substr($result,7,1) ); + my $f7 = wrapper( substr($result,8,1) ); + my $f8 = wrapper( substr($result,9,1) ); + my $f9 = wrapper( substr($result,10,1) ); $template->param(index => $index, "f1$f1" => 1, diff --git a/cataloguing/value_builder/unimarc_field_115a.pl b/cataloguing/value_builder/unimarc_field_115a.pl index 6144771..2cfd3a3 100755 --- a/cataloguing/value_builder/unimarc_field_115a.pl +++ b/cataloguing/value_builder/unimarc_field_115a.pl @@ -69,6 +69,13 @@ sub plugin_javascript { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -86,24 +93,24 @@ sub plugin { debug => 1, } ); - my $f1 = substr( $result, 0, 1 ); + my $f1 = wrapper( substr( $result, 0, 1 ) ); my $f2 = substr( $result, 1, 3 ); - my $f3 = substr( $result, 4, 1 ); - my $f4 = substr( $result, 5, 1 ); - my $f5 = substr( $result, 6, 1 ); - my $f6 = substr( $result, 7, 1 ); - my $f7 = substr( $result, 8, 1 ); - my $f8 = substr( $result, 9, 1 ); - my $f9 = substr( $result, 10, 1 ); - my $f10 = substr( $result, 11, 1 ); - my $f11 = substr( $result, 12, 1 ); - my $f12 = substr( $result, 13, 1 ); - my $f13 = substr( $result, 14, 1 ); - my $f14 = substr( $result, 15, 1 ); - my $f15 = substr( $result, 16, 1 ); - my $f16 = substr( $result, 17, 1 ); - my $f17 = substr( $result, 18, 1 ); - my $f18 = substr( $result, 19, 1 ); + my $f3 = wrapper( substr( $result, 4, 1 ) ); + my $f4 = wrapper( substr( $result, 5, 1 ) ); + my $f5 = wrapper( substr( $result, 6, 1 ) ); + my $f6 = wrapper( substr( $result, 7, 1 ) ); + my $f7 = wrapper( substr( $result, 8, 1 ) ); + my $f8 = wrapper( substr( $result, 9, 1 ) ); + my $f9 = wrapper( substr( $result, 10, 1 ) ); + my $f10 = wrapper( substr( $result, 11, 1 ) ); + my $f11 = wrapper( substr( $result, 12, 1 ) ); + my $f12 = wrapper( substr( $result, 13, 1 ) ); + my $f13 = wrapper( substr( $result, 14, 1 ) ); + my $f14 = wrapper( substr( $result, 15, 1 ) ); + my $f15 = wrapper( substr( $result, 16, 1 ) ); + my $f16 = wrapper( substr( $result, 17, 1 ) ); + my $f17 = wrapper( substr( $result, 18, 1 ) ); + my $f18 = wrapper( substr( $result, 19, 1 ) ); $template->param( index => $index, diff --git a/cataloguing/value_builder/unimarc_field_115b.pl b/cataloguing/value_builder/unimarc_field_115b.pl index 7582e74..af8f26c 100755 --- a/cataloguing/value_builder/unimarc_field_115b.pl +++ b/cataloguing/value_builder/unimarc_field_115b.pl @@ -63,6 +63,13 @@ function Clic$field_number() { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -80,15 +87,15 @@ sub plugin { debug => 1, } ); - my $f1 = substr( $result, 0, 1 ); - my $f2 = substr( $result, 1, 1 ); - my $f3 = substr( $result, 2, 1 ); - my $f4 = substr( $result, 3, 1 ); - my $f5 = substr( $result, 4, 1 ); - my $f6 = substr( $result, 5, 1 ); - my $f7 = substr( $result, 6, 1 ); - my $f8 = substr( $result, 7, 1 ); - my $f9 = substr( $result, 8, 1 ); + my $f1 = wrapper( substr( $result, 0, 1 ) ); + my $f2 = wrapper( substr( $result, 1, 1 ) ); + my $f3 = wrapper( substr( $result, 2, 1 ) ); + my $f4 = wrapper( substr( $result, 3, 1 ) ); + my $f5 = wrapper( substr( $result, 4, 1 ) ); + my $f6 = wrapper( substr( $result, 5, 1 ) ); + my $f7 = wrapper( substr( $result, 6, 1 ) ); + my $f8 = wrapper( substr( $result, 7, 1 ) ); + my $f9 = wrapper( substr( $result, 8, 1 ) ); my $f10 = substr( $result, 9, 4 ); my $f11 = substr( $result, 13, 2 ); diff --git a/cataloguing/value_builder/unimarc_field_116.pl b/cataloguing/value_builder/unimarc_field_116.pl index 21e2368..66c8ffe 100755 --- a/cataloguing/value_builder/unimarc_field_116.pl +++ b/cataloguing/value_builder/unimarc_field_116.pl @@ -63,6 +63,15 @@ function Clic$field_number(i) { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return "dblpipe" if $char eq "||"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -79,20 +88,20 @@ sub plugin { debug => 1, } ); - my $f1 = substr( $result, 0, 1 ); - my $f2 = substr( $result, 1, 1 ); - my $f3 = substr( $result, 2, 1 ); - my $f4 = substr( $result, 3, 1 ); + my $f1 = wrapper( substr( $result, 0, 1 ) ); + my $f2 = wrapper( substr( $result, 1, 1 ) ); + my $f3 = wrapper( substr( $result, 2, 1 ) ); + my $f4 = wrapper( substr( $result, 3, 1 ) ); - my $f5 = substr( $result, 4, 2 ); - my $f6 = substr( $result, 6, 2 ); - my $f7 = substr( $result, 8, 2 ); + my $f5 = wrapper( substr( $result, 4, 2 ) ); + my $f6 = wrapper( substr( $result, 6, 2 ) ); + my $f7 = wrapper( substr( $result, 8, 2 ) ); - my $f8 = substr( $result, 10, 2 ); - my $f9 = substr( $result, 12, 2 ); - my $f10 = substr( $result, 14, 2 ); + my $f8 = wrapper( substr( $result, 10, 2 ) ); + my $f9 = wrapper( substr( $result, 12, 2 ) ); + my $f10 = wrapper( substr( $result, 14, 2 ) ); - my $f11 = substr( $result, 16, 2 ); + my $f11 = wrapper( substr( $result, 16, 2 ) ); $template->param( index => $index, diff --git a/cataloguing/value_builder/unimarc_field_117.pl b/cataloguing/value_builder/unimarc_field_117.pl index ff206f7..7b30d02 100755 --- a/cataloguing/value_builder/unimarc_field_117.pl +++ b/cataloguing/value_builder/unimarc_field_117.pl @@ -62,6 +62,16 @@ function Clic$field_number(i) { return ($field_number,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return "dblpipe" if $char eq "||"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,12 +86,12 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,2); - my $f2 = substr($result,2,2); - my $f3 = substr($result,4,2); - my $f4 = substr($result,6,2); + my $f1 = wrapper( substr($result,0,2) ); + my $f2 = wrapper( substr($result,2,2) ); + my $f3 = wrapper( substr($result,4,2) ); + my $f4 = wrapper( substr($result,6,2) ); - my $f5 = substr($result,8,1); + my $f5 = wrapper( substr($result,8,1) ); $template->param(index => $index, "f1$f1" => 1, diff --git a/cataloguing/value_builder/unimarc_field_120.pl b/cataloguing/value_builder/unimarc_field_120.pl index 3f72c85..61e9b9a 100755 --- a/cataloguing/value_builder/unimarc_field_120.pl +++ b/cataloguing/value_builder/unimarc_field_120.pl @@ -63,6 +63,15 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -82,13 +91,13 @@ my ($template, $loggedinuser, $cookie) my $f1 = substr($result,0,1); my $f2 = substr($result,1,1); my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - my $f5 = substr($result,4,1); - my $f6 = substr($result,5,1); - my $f7 = substr($result,6,1); + my $f4 = wrapper( substr($result,3,1) ); + my $f5 = wrapper( substr($result,4,1) ); + my $f6 = wrapper( substr($result,5,1) ); + my $f7 = wrapper( substr($result,6,1) ); my $f8 = substr($result,7,2); - my $f9 = substr($result,9,2); - my $f10 = substr($result,11,2); + my $f9 = wrapper( substr($result,9,2) ); + my $f10 = wrapper( substr($result,11,2) ); $template->param(index => $index, "f1$f1" => 1, "f2$f2" => 1, diff --git a/cataloguing/value_builder/unimarc_field_121a.pl b/cataloguing/value_builder/unimarc_field_121a.pl index a855332..8da7769 100755 --- a/cataloguing/value_builder/unimarc_field_121a.pl +++ b/cataloguing/value_builder/unimarc_field_121a.pl @@ -63,6 +63,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -80,8 +88,8 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); + my $f2 = wrapper( substr($result,1,1) ); + my $f3 = wrapper( substr($result,2,1) ); my $f4 = substr($result,3,2); my $f5 = substr($result,5,1); my $f6 = substr($result,6,1); diff --git a/cataloguing/value_builder/unimarc_field_125b.pl b/cataloguing/value_builder/unimarc_field_125b.pl index b356956..14c0e44 100755 --- a/cataloguing/value_builder/unimarc_field_125b.pl +++ b/cataloguing/value_builder/unimarc_field_125b.pl @@ -60,6 +60,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,7 +84,7 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); + my $f1 = wrapper( substr($result,0,1) ); $template->param(index => $index, "f1$f1" => 1); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/cataloguing/value_builder/unimarc_field_126a.pl b/cataloguing/value_builder/unimarc_field_126a.pl index 2f85f9e..b240397 100755 --- a/cataloguing/value_builder/unimarc_field_126a.pl +++ b/cataloguing/value_builder/unimarc_field_126a.pl @@ -60,6 +60,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -83,12 +91,12 @@ my ($template, $loggedinuser, $cookie) my $f5 = substr($result,4,1); my $f6 = substr($result,5,1); my $f7 = substr($result,6,1); - my $f8 = substr($result,7,1); - my $f9 = substr($result,8,1); - my $f10 = substr($result,9,1); - my $f11 = substr($result,10,1); - my $f12 = substr($result,11,1); - my $f13 = substr($result,12,1); + my $f8 = wrapper( substr($result,7,1) ); + my $f9 = wrapper( substr($result,8,1) ); + my $f10 = wrapper( substr($result,9,1) ); + my $f11 = wrapper( substr($result,10,1) ); + my $f12 = wrapper( substr($result,11,1) ); + my $f13 = wrapper( substr($result,12,1) ); my $f14 = substr($result,13,1); my $f15 = substr($result,14,1); $template->param(index => $index, diff --git a/cataloguing/value_builder/unimarc_field_128b.pl b/cataloguing/value_builder/unimarc_field_128b.pl index b44bd21..60fefc9 100755 --- a/cataloguing/value_builder/unimarc_field_128b.pl +++ b/cataloguing/value_builder/unimarc_field_128b.pl @@ -60,6 +60,13 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "dblpipe" if $char eq "||"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,7 +83,7 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,2); + my $f1 = wrapper( substr($result,0,2) ); $template->param(index => $index, "f1$f1" => 1); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/cataloguing/value_builder/unimarc_field_130.pl b/cataloguing/value_builder/unimarc_field_130.pl index caf6ba3..6b64b9f 100755 --- a/cataloguing/value_builder/unimarc_field_130.pl +++ b/cataloguing/value_builder/unimarc_field_130.pl @@ -61,6 +61,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -79,7 +87,7 @@ my ($template, $loggedinuser, $cookie) }); my $f1 = substr($result,0,1); my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); + my $f3 = wrapper( substr($result,2,1) ); my $f4 = substr($result,3,1); my $f5 = substr($result,4,3); my $f6 = substr($result,7,1); diff --git a/cataloguing/value_builder/unimarc_field_135a.pl b/cataloguing/value_builder/unimarc_field_135a.pl index de631c2..24d240a 100755 --- a/cataloguing/value_builder/unimarc_field_135a.pl +++ b/cataloguing/value_builder/unimarc_field_135a.pl @@ -60,6 +60,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,7 +84,7 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); + my $f1 = wrapper( substr($result,0,1) ); my $f2 = substr($result,1,1); my $f3 = substr($result,2,1); my $f4 = substr($result,3,1); diff --git a/cataloguing/value_builder/unimarc_field_140.pl b/cataloguing/value_builder/unimarc_field_140.pl index ac50f32..5d9b8ce 100755 --- a/cataloguing/value_builder/unimarc_field_140.pl +++ b/cataloguing/value_builder/unimarc_field_140.pl @@ -60,6 +60,15 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,23 +85,23 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - my $f5 = substr($result,4,1); - my $f6 = substr($result,5,1); - my $f7 = substr($result,6,1); - my $f8 = substr($result,7,1); - my $f9 = substr($result,8,1); - my $f10 = substr($result,9,2); - my $f11 = substr($result,11,2); - my $f12 = substr($result,13,2); - my $f13 = substr($result,15,2); - my $f14 = substr($result,17,2); - my $f15 = substr($result,19,1); - my $f16 = substr($result,20,1); - my $f17 = substr($result,21,1); + my $f1 = wrapper( substr($result,0,1) ); + my $f2 = wrapper( substr($result,1,1) ); + my $f3 = wrapper( substr($result,2,1) ); + my $f4 = wrapper( substr($result,3,1) ); + my $f5 = wrapper( substr($result,4,1) ); + my $f6 = wrapper( substr($result,5,1) ); + my $f7 = wrapper( substr($result,6,1) ); + my $f8 = wrapper( substr($result,7,1) ); + my $f9 = wrapper( substr($result,8,1) ); + my $f10 = wrapper( substr($result,9,2) ); + my $f11 = wrapper( substr($result,11,2) ); + my $f12 = wrapper( substr($result,13,2) ); + my $f13 = wrapper( substr($result,15,2) ); + my $f14 = wrapper( substr($result,17,2) ); + my $f15 = wrapper( substr($result,19,1) ); + my $f16 = wrapper( substr($result,20,1) ); + my $f17 = wrapper( substr($result,21,1) ); my $f18 = substr($result,22,1); my $f19 = substr($result,23,1); my $f20 = substr($result,24,1); diff --git a/cataloguing/value_builder/unimarc_leader.pl b/cataloguing/value_builder/unimarc_leader.pl index 02608c9..b0b1a22 100755 --- a/cataloguing/value_builder/unimarc_leader.pl +++ b/cataloguing/value_builder/unimarc_leader.pl @@ -66,6 +66,13 @@ function Clic$function_name(i) { return ( $function_name, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -83,13 +90,13 @@ sub plugin { } ); $result = " nam " unless $result; - my $f5 = substr( $result, 5, 1 ); - my $f6 = substr( $result, 6, 1 ); - my $f7 = substr( $result, 7, 1 ); - my $f8 = substr( $result, 8, 1 ); + my $f5 = wrapper( substr( $result, 5, 1 ) ); + my $f6 = wrapper( substr( $result, 6, 1 ) ); + my $f7 = wrapper( substr( $result, 7, 1 ) ); + my $f8 = wrapper( substr( $result, 8, 1 ) ); my $f9 = substr( $result, 9, 1 ); - my $f17 = substr( $result, 17, 1 ); - my $f18 = substr( $result, 18, 1 ); + my $f17 = wrapper( substr( $result, 17, 1 ) ); + my $f18 = wrapper( substr( $result, 18, 1 ) ); my $f19 = substr( $result, 19, 1 ); $template->param( diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt index d186dfa..4686148 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt @@ -14,7 +14,7 @@ - [% IF ( f13 ) %] + [% IF ( f13dblspace ) %] [% ELSE %] @@ -578,10 +578,10 @@ languages and obsolete typography) - [% IF ( f1pipe ) %] + [% IF ( f9pipe ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_110.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_110.tt index ccb7624..b661898 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_110.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_110.tt @@ -198,7 +198,7 @@ [% END %] - [% IF ( f4 ) %] + [% IF ( f4space ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115a.tt index 03a94e1..8a7b2eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115a.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115a.tt @@ -48,7 +48,7 @@ - [% IF ( f5pipe ) %] - + [% IF ( f5dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f5 ) %] + [% IF ( f5dblspace ) %] [% ELSE %] @@ -484,12 +484,12 @@ - [% IF ( f7pipe ) %] - + [% IF ( f7dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f7 ) %] + [% IF ( f7dblspace ) %] [% ELSE %] @@ -889,12 +889,12 @@ - [% IF ( f9pipe ) %] - + [% IF ( f9dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f9 ) %] + [% IF ( f9dblspace ) %] [% ELSE %] @@ -1278,13 +1278,13 @@ - [% IF ( f11pipe ) %] - + [% IF ( f11dblpipe ) %] + [% ELSE %] - + [% END %] [% IF ( f11aa ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_117.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_117.tt index b42650f..376641a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_117.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_117.tt @@ -10,10 +10,10 @@ - [% IF ( f2pipe ) %] - + [% IF ( f2dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f2 ) %] + [% IF ( f2dblspace ) %] [% ELSE %] @@ -399,13 +399,13 @@ - [% IF ( f4pipe ) %] - + [% IF ( f4dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f4 ) %] + [% IF ( f4dblspace ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_120.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_120.tt index d072701..09ac0df 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_120.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_120.tt @@ -71,7 +71,7 @@ - [% IF ( f5 ) %] + [% IF ( f5space ) %] [% ELSE %] @@ -226,7 +226,7 @@ - [% IF ( f7 ) %] + [% IF ( f7space ) %] [% ELSE %] @@ -661,7 +661,7 @@ - [% IF ( f10 ) %] + [% IF ( f10dblspace ) %] [% ELSE %] - + [% END %] [% IF ( f10aa ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_121a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_121a.tt index f43bea8..827c506 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_121a.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_121a.tt @@ -27,7 +27,7 @@ - [% IF ( f3 ) %] + [% IF ( f3space ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125b.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125b.tt index c8612de..7bee0bf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125b.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125b.tt @@ -10,7 +10,7 @@ - [% IF ( f8 ) %] + [% IF ( f8space ) %] [% ELSE %] @@ -502,7 +502,7 @@ - [% IF ( f10 ) %] + [% IF ( f10space ) %] [% ELSE %] @@ -676,7 +676,7 @@ - [% IF ( f12 ) %] + [% IF ( f12space ) %] [% ELSE %] @@ -848,7 +848,7 @@ - [% IF ( f1pipe ) %] - + [% IF ( f1dblpipe ) %] + [% ELSE %] - + [% END %] [% IF ( f1ba ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_130.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_130.tt index 8e66d82..6edba01 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_130.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_130.tt @@ -89,7 +89,7 @@ - [% IF ( f1 ) %] + [% IF ( f1space ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_140.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_140.tt index 0201d04..689e775 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_140.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_140.tt @@ -10,7 +10,7 @@ - [% IF ( f2 ) %] + [% IF ( f2space ) %] [% ELSE %] @@ -201,7 +201,7 @@ - [% IF ( f4 ) %] + [% IF ( f4space ) %] [% ELSE %] @@ -394,7 +394,7 @@ - [% IF ( f6 ) %] + [% IF ( f6space ) %] [% ELSE %] @@ -537,7 +537,7 @@ - [% IF ( f8 ) %] + [% IF ( f8space ) %] [% ELSE %] @@ -679,7 +679,7 @@ - [% IF ( f10 ) %] + [% IF ( f10dblspace ) %] [% ELSE %] @@ -888,7 +888,7 @@ - [% IF ( f12 ) %] + [% IF ( f12dblspace ) %] [% ELSE %] @@ -1202,7 +1202,7 @@ - [% IF ( f14 ) %] + [% IF ( f14dblspace ) %] [% ELSE %] @@ -1527,7 +1527,7 @@ - [% IF ( f16 ) %] + [% IF ( f16space ) %] [% ELSE %] @@ -1611,7 +1611,7 @@ - [% IF ( f2 ) %] + [% IF ( f2space ) %] [% ELSE %] @@ -494,7 +494,7 @@ languages and obsolete typography) - [% IF ( f15 ) %] - + [% IF ( f15dblspace ) %] + [% ELSE %] - + [% END %] [% IF ( f15ba ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_105.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_105.tt index 18f652f..f7e5884 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_105.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_105.tt @@ -16,7 +16,7 @@ [% END %] - [% IF ( f1 ) %] + [% IF ( f1space ) %] [% ELSE %] @@ -114,7 +114,7 @@ [% END %] - [% IF ( f2 ) %] + [% IF ( f2space ) %] [% ELSE %] @@ -211,7 +211,7 @@ [% END %] - [% IF ( f3 ) %] + [% IF ( f3space ) %] [% ELSE %] @@ -307,7 +307,7 @@ [% END %] - [% IF ( f4 ) %] + [% IF ( f4space ) %] [% ELSE %] @@ -404,7 +404,7 @@ [% END %] - [% IF ( f5 ) %] + [% IF ( f5space ) %] [% ELSE %] @@ -542,7 +542,7 @@ [% END %] - [% IF ( f6 ) %] + [% IF ( f6space ) %] [% ELSE %] @@ -680,7 +680,7 @@ [% END %] - [% IF ( f7 ) %] + [% IF ( f7space ) %] [% ELSE %] @@ -817,7 +817,7 @@ [% END %] - [% IF ( f8 ) %] + [% IF ( f8space ) %] [% ELSE %] @@ -949,7 +949,7 @@ - [% IF ( f1pipe ) %] + [% IF ( f3pipe ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_116.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_116.tt index acb0695..70cd050 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_116.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_116.tt @@ -287,12 +287,12 @@ - [% IF ( f6pipe ) %] - + [% IF ( f6dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f6 ) %] + [% IF ( f6dblspace ) %] [% ELSE %] @@ -685,12 +685,12 @@ - [% IF ( f8pipe ) %] - + [% IF ( f8dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f8 ) %] + [% IF ( f8dblspace ) %] [% ELSE %] @@ -1082,13 +1082,13 @@ - [% IF ( f10pipe ) %] - + [% IF ( f10dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f10 ) %] + [% IF ( f10dblspace ) %] [% ELSE %] @@ -1472,10 +1472,10 @@ - [% IF ( f1pipe ) %] - + [% IF ( f1dblpipe ) %] + [% ELSE %] - + [% END %] [% IF ( f1aa ) %] @@ -220,13 +220,13 @@ - [% IF ( f3pipe ) %] - + [% IF ( f3dblpipe ) %] + [% ELSE %] - + [% END %] - [% IF ( f3 ) %] + [% IF ( f3dblspace ) %] [% ELSE %] @@ -579,12 +579,12 @@ - [% IF ( f4 ) %] + [% IF ( f4space ) %] [% ELSE %] @@ -148,7 +148,7 @@ - [% IF ( f6 ) %] + [% IF ( f6space ) %] [% ELSE %] @@ -304,7 +304,7 @@ - [% IF ( f9 ) %] + [% IF ( f9dblspace ) %] [% ELSE %] @@ -901,10 +901,10 @@ - [% IF ( f2 ) %] + [% IF ( f2space ) %] [% ELSE %] @@ -64,7 +64,7 @@ - [% IF ( f1 ) %] + [% IF ( f1space ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126a.tt index e212a05..959e4a8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126a.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126a.tt @@ -415,7 +415,7 @@ - [% IF ( f9 ) %] + [% IF ( f9space ) %] [% ELSE %] @@ -589,7 +589,7 @@ - [% IF ( f11 ) %] + [% IF ( f11space ) %] [% ELSE %] @@ -762,7 +762,7 @@ - [% IF ( f13 ) %] + [% IF ( f13space ) %] [% ELSE %] @@ -1038,4 +1038,4 @@ //]]> -[% INCLUDE 'popup-bottom.inc' %] \ No newline at end of file +[% INCLUDE 'popup-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tt index 7aad5b3..5751b2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tt @@ -10,10 +10,10 @@ - [% IF ( f3 ) %] + [% IF ( f3space ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_135a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_135a.tt index 29b46e4..152c6f5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_135a.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_135a.tt @@ -11,7 +11,7 @@ - [% IF ( f1 ) %] + [% IF ( f1space ) %] [% ELSE %] @@ -105,7 +105,7 @@ - [% IF ( f3 ) %] + [% IF ( f3space ) %] [% ELSE %] @@ -297,7 +297,7 @@ - [% IF ( f5 ) %] + [% IF ( f5space ) %] [% ELSE %] @@ -465,7 +465,7 @@ - [% IF ( f7 ) %] + [% IF ( f7space ) %] [% ELSE %] @@ -608,7 +608,7 @@ - [% IF ( f9 ) %] + [% IF ( f9space ) %] [% ELSE %] @@ -732,7 +732,7 @@ - [% IF ( f11 ) %] + [% IF ( f11dblspace ) %] [% ELSE %] @@ -1046,7 +1046,7 @@ - [% IF ( f13 ) %] + [% IF ( f13dblspace ) %] [% ELSE %] @@ -1358,7 +1358,7 @@ - [% IF ( f15 ) %] + [% IF ( f15space ) %] [% ELSE %] @@ -1570,7 +1570,7 @@ - [% IF ( f17 ) %] + [% IF ( f17space ) %] [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tt index 24ffc74..6e53881 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tt @@ -188,7 +188,7 @@ [% END %] - [% IF ( f8 ) %] + [% IF ( f8space ) %] [% ELSE %] @@ -230,7 +230,7 @@ [% END %] - [% IF ( f17 ) %] + [% IF ( f17space ) %] [% ELSE %] @@ -264,7 +264,7 @@ [% END %] - [% IF ( f18 ) %] + [% IF ( f18space ) %] [% ELSE %] -- 1.7.2.5 From f.demians at tamil.fr Mon Jun 6 14:44:37 2011 From: f.demians at tamil.fr (=?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?=) Date: Mon, 6 Jun 2011 14:44:37 +0200 Subject: [Koha-patches] [PATCH] Bug 6464 Check inconsistent placeholders in translated strings Message-ID: <1307364277-29259-1-git-send-email-f.demians@tamil.fr> Display a warning for strings that don't have the same count of %s placeholders that the English original strings. Don't warn for not translated string and 'fuzzy' string because those strings are not installed, and this is the translator responsability to examine them. Based on Fr?re S?bastien Marie work. --- misc/translator/tmpl_process3.pl | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index 46ceceb..d862a97 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -274,6 +274,21 @@ if (defined $href) { # $charset_in = $candidate; # } # } + + # BUG6464: check consistency of PO messages + # - count number of '%s' in msgid and msgstr + for my $msg ( values %$href ) { + my $id_count = split(/%s/, $msg->{msgid}) - 1; + my $str_count = split(/%s/, $msg->{msgstr}) - 1; + next if $id_count == $str_count || + $msg->{msgstr} eq '""' || + grep { /fuzzy/ } @{$msg->{_flags}}; + warn_normal + "unconsistent %s count: ($id_count/$str_count):\n" . + " line: " . $msg->{loaded_line_number} . "\n" . + " msgid: " . $msg->{msgid} . "\n" . + " msgstr: " . $msg->{msgstr} . "\n", undef; + } } # set our charset in to UTF-8 -- 1.7.5.1 From oleonard at myacpl.org Mon Jun 6 14:47:15 2011 From: oleonard at myacpl.org (Owen Leonard) Date: Mon, 6 Jun 2011 08:47:15 -0400 Subject: [Koha-patches] [PATCH] [REVISED] Fix for Bug 6291, Cart printing truncated in Firefox Message-ID: <1307364435-5600-1-git-send-email-oleonard@myacpl.org> Implementing 100% width and height on ,
    , and as suggested by this post: http://www.piglets.org/serendipity/archives/45-Fixing-truncated-printing-with-Firefox.html --- koha-tmpl/intranet-tmpl/prog/en/css/print.css | 9 +++++++-- koha-tmpl/opac-tmpl/prog/en/css/print.css | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/print.css b/koha-tmpl/intranet-tmpl/prog/en/css/print.css index 955b68b..d2ad905 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/print.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/print.css @@ -17,7 +17,7 @@ body { background-color : #FFF; color : #333333; font-family : arial, geneva, sans-serif; - font-size : 14px; + font-size : 12px; margin : 0px 0px 0px 0px; } @@ -94,7 +94,8 @@ table { border-left : 1px solid #CCCCCC; margin : 3px 0px 5px 0px; padding : 0px; - width : 99%; + width : 100%; + height : 100%; } table.list { @@ -114,6 +115,8 @@ td { border-left : 0; font-size : 12px; padding : 5px 5px 5px 5px; + width : 100%; + height : 100%; } td:last-child { @@ -124,6 +127,8 @@ td:last-child { border-left : 0; font-size : 12px; padding : 5px 5px 5px 5px; + width : 100%; + height : 100%; } table.list th { diff --git a/koha-tmpl/opac-tmpl/prog/en/css/print.css b/koha-tmpl/opac-tmpl/prog/en/css/print.css index 85df351..53db2bc 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/print.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/print.css @@ -17,7 +17,7 @@ body { background-color : #FFF; color : #333333; font-family : arial, geneva, sans-serif; - font-size : 14px; + font-size : 12px; margin : 0px 0px 0px 0px; } @@ -98,7 +98,8 @@ table { border-left : 0px solid #CCCCCC; margin : 3px 0px 5px 0px; padding : 0px; - width : 99%; + width : 100%; + height : 100%; } td { @@ -107,6 +108,8 @@ td { border-right : 1px solid #CCCCCC; padding : 5px 5px 5px 5px; vertical-align : top; + width : 100%; + height : 100%; } td:last-child { @@ -123,6 +126,8 @@ th { border-right : 1px solid #CCCCCC; font-weight : bold; padding : 5px 5px 5px 5px; + width: 100%; + height : 100%; } th:last-child { -- 1.7.3 From januszop at gmail.com Mon Jun 6 15:46:16 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Mon, 6 Jun 2011 16:46:16 +0300 Subject: [Koha-patches] [PATCH] Bug 6468 - Authorities browsing error in OPAC Message-ID: <1307367976-16241-1-git-send-email-januszop@gmail.com> --- .../en/modules/opac-authoritiessearchresultlist.tt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt index 7fb7f49..5a30a74 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt @@ -20,7 +20,7 @@ [% IF ( number.highlight ) %] [% number.number %] [% ELSE %] - [% number.number %] + [% number.number %] [% END %] [% END %] [% IF ( displaynext ) %] @@ -71,7 +71,7 @@ [% END %] [% FOREACH number IN numbers %] [% IF ( number.highlight ) %][% number.number %][% ELSE %] - [% number.number %] + [% number.number %] [% END %] [% END %] [% IF ( displaynext ) %] -- 1.7.2.5 From colin.campbell at ptfs-europe.com Mon Jun 6 16:44:21 2011 From: colin.campbell at ptfs-europe.com (Colin Campbell) Date: Mon, 6 Jun 2011 15:44:21 +0100 Subject: [Koha-patches] [PATCH] Bug 6469: Avoid compile time warninggs in C4::Accounts Message-ID: <1307371461-10169-1-git-send-email-colin.campbell@ptfs-europe.com> $sth was redeclared in the same scope. Overwriting its value with the return from prepare is adequate removed some tab/space mixed indents from the SQL strings --- C4/Accounts.pm | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 7bddd1a..fd834b6 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -169,10 +169,10 @@ sub makepayment { my $data = $sth->fetchrow_hashref; $sth->finish; - my $sth = $dbh->prepare("UPDATE accountlines - SET amountoutstanding = 0 - WHERE borrowernumber = ? - AND accountno = ?"); + $sth = $dbh->prepare('UPDATE accountlines + SET amountoutstanding = 0 + WHERE borrowernumber = ? + AND accountno = ?'); $sth->execute($borrowernumber, $accountno); # print $updquery; @@ -185,10 +185,10 @@ sub makepayment { # create new line my $payment = 0 - $amount; - my $sth = $dbh->prepare("INSERT INTO accountlines - (borrowernumber, accountno, date, amount, - description, accounttype, amountoutstanding) - VALUES (?,?,now(),?,?,'Pay',0)"); + $sth = $dbh->prepare("INSERT INTO accountlines + (borrowernumber, accountno, date, amount, + description, accounttype, amountoutstanding) + VALUES (?,?,now(),?,?,'Pay',0)"); $sth->execute($borrowernumber, $nextaccntno, $payment, "Payment,thanks - $user"); # FIXME - The second argument to &UpdateStats is supposed to be the -- 1.7.5.2 From januszop at gmail.com Mon Jun 6 17:57:58 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Mon, 6 Jun 2011 18:57:58 +0300 Subject: [Koha-patches] [PATCH] Bug 6470 - Unable to filter out log entries for kohaadmin (user 0) Message-ID: <1307375878-19540-1-git-send-email-januszop@gmail.com> --- C4/Log.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Log.pm b/C4/Log.pm index 822cda5..98cd8d5 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -213,7 +213,7 @@ sub GetLogs { my @parameters; $query .= " AND DATE_FORMAT(timestamp, '%Y-%m-%d') >= \"".$iso_datefrom."\" " if $iso_datefrom; #fix me - mysql specific $query .= " AND DATE_FORMAT(timestamp, '%Y-%m-%d') <= \"".$iso_dateto."\" " if $iso_dateto; - if($user) { + if($user ne "") { $query .= " AND user = ? "; push(@parameters,$user); } -- 1.7.2.5 From lrea at nekls.org Mon Jun 6 20:40:35 2011 From: lrea at nekls.org (Liz Rea) Date: Mon, 6 Jun 2011 13:40:35 -0500 Subject: [Koha-patches] [PATCH] [SIGNED OFF] Bug 6467: Add shelving location to checkin screen Message-ID: <1307385635-4457-1-git-send-email-lrea@nekls.org> From: ruth at bywatersolutions.com Signed-off-by: Liz Rea --- circ/returns.pl | 6 ++++++ .../intranet-tmpl/prog/en/modules/circ/returns.tt | 3 ++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index d7fad0c..bb5230b 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -537,6 +537,7 @@ if ($borrower) { my $returned_counter = ( C4::Context->preference('numReturnedItemsToShow') ) ? C4::Context->preference('numReturnedItemsToShow') : 8; my $count = 0; my @riloop; +my $shelflocations = GetKohaAuthorisedValues('items.location',''); foreach ( sort { $a <=> $b } keys %returneditems ) { my %ri; if ( $count++ < $returned_counter ) { @@ -575,6 +576,11 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{ccode} = $biblio->{'ccode'}; $ri{itemnumber} = $biblio->{'itemnumber'}; $ri{barcode} = $bar_code; + + $ri{location} = $biblio->{'location'}; + my $shelfcode = $ri{'location'}; + $ri{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); + } else { last; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 620f770..c02be49 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -396,7 +396,7 @@ function Dopop(link) { [% IF ( riloop ) %]

    Checked-In items

    - + [% FOREACH riloo IN riloop %] @@ -412,6 +412,7 @@ function Dopop(link) { [% riloo.itemtitle |html %] + -- 1.7.2.3 From nengard at bywatersolutions.com Mon Jun 13 10:08:28 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Mon, 13 Jun 2011 04:08:28 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6497: MARC URLs not showing up in details pages under normal view Message-ID: <1307952508-12692-1-git-send-email-nengard@bywatersolutions.com> From: Ian Walls Part one: followup to the original patch. The variable name for the URL itself was wrong, so despite getting the link to show up, the href was the catalog page itself, NOT the 856$u. Updating "MARCurl.MARCurl" to "MARCurl.MARCURL" fixes this issue. To test: go to the OPAC, and see that the URL in the link is the same as the URL in the MARC Part two: this problem is present on the staff side, as well. This patch implements both parts of the fix (renaming "MARCurlS" to "MARCURLS" and "MARCurl.MARCurl" to "MARCurl.MARCURL") To test: go to the staff client, and check that a)URLs show up and b)they link to the URL in the MARC record Signed-off-by: Ian Walls Signed-off-by: Nicole C. Engard --- .../prog/en/modules/catalogue/detail.tt | 6 +++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 39c2cd3..fffe411 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -138,14 +138,14 @@ function verify_images() { [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %] [% IF ( size ) %][% size %][% END %] -[% IF ( MARCurlS ) %]
  • +[% IF ( MARCURLS ) %]
  • Online Resources: -
      [% FOREACH MARCurl IN MARCurlS %] +
        [% FOREACH MARCurl IN MARCURLS %]
      • [% IF ( MARCurl.part ) %][% MARCurl.part %]
        [% END %] - [% MARCurl.linktext %] + [% MARCurl.linktext %] [% IF ( MARCurl.notes ) %]
          [% FOREACH note IN MARCurl.notes %]
        • [% note.note %]
        • [% END %]
        [% END %]
      • [% END %]
      diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 534aeee..01a66a3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -189,7 +189,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
      [% END %] - [% IF ( MARCurl.OPACurlOpenInNewWindow ) %][% ELSE %][% END %] + [% IF ( MARCurl.OPACurlOpenInNewWindow ) %][% ELSE %][% END %] [% MARCurl.linktext %] [% IF ( MARCurl.notes ) %]
        [% FOREACH note IN MARCurl.notes %]
      • [% note.note %]
      • [% END %]
      [% END %] -- 1.7.2.3 From januszop at gmail.com Sat Jun 18 13:52:09 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Sat, 18 Jun 2011 13:52:09 +0200 Subject: [Koha-patches] =?utf-8?q?=5BPATCH=5D_Bug_6465_-_Errors_in_UNIMARC?= =?utf-8?q?_plugins_for_fixed_length_fields_=28for_=7C_and_space=29?= =?utf-8?b?IChUOjpUIGlzc3VlKQ==?= Message-ID: <1308397929-26701-1-git-send-email-januszop@gmail.com> A corrected version of the patch of 6 June 2011. --- cataloguing/value_builder/unimarc_field_100.pl | 18 +++++-- cataloguing/value_builder/unimarc_field_105.pl | 37 ++++++++------ cataloguing/value_builder/unimarc_field_110.pl | 24 ++++++--- cataloguing/value_builder/unimarc_field_115a.pl | 41 +++++++++------ cataloguing/value_builder/unimarc_field_115b.pl | 25 ++++++--- cataloguing/value_builder/unimarc_field_116.pl | 31 +++++++---- cataloguing/value_builder/unimarc_field_117.pl | 20 ++++++-- cataloguing/value_builder/unimarc_field_120.pl | 21 ++++++-- cataloguing/value_builder/unimarc_field_121a.pl | 12 ++++- cataloguing/value_builder/unimarc_field_125b.pl | 10 +++- cataloguing/value_builder/unimarc_field_126a.pl | 20 +++++-- cataloguing/value_builder/unimarc_field_128b.pl | 9 +++- cataloguing/value_builder/unimarc_field_130.pl | 10 +++- cataloguing/value_builder/unimarc_field_135a.pl | 10 +++- cataloguing/value_builder/unimarc_field_140.pl | 43 +++++++++------ cataloguing/value_builder/unimarc_leader.pl | 19 +++++-- .../cataloguing/value_builder/unimarc_field_100.tt | 10 ++-- .../cataloguing/value_builder/unimarc_field_105.tt | 18 +++--- .../cataloguing/value_builder/unimarc_field_110.tt | 2 +- .../value_builder/unimarc_field_115a.tt | 2 +- .../cataloguing/value_builder/unimarc_field_116.tt | 54 ++++++++++---------- .../cataloguing/value_builder/unimarc_field_117.tt | 30 ++++++------ .../cataloguing/value_builder/unimarc_field_120.tt | 14 +++--- .../value_builder/unimarc_field_121a.tt | 4 +- .../value_builder/unimarc_field_125b.tt | 2 +- .../value_builder/unimarc_field_126a.tt | 14 +++--- .../value_builder/unimarc_field_128b.tt | 6 +- .../cataloguing/value_builder/unimarc_field_130.tt | 2 +- .../value_builder/unimarc_field_135a.tt | 2 +- .../cataloguing/value_builder/unimarc_field_140.tt | 34 ++++++------ .../cataloguing/value_builder/unimarc_leader.tt | 6 +- 31 files changed, 339 insertions(+), 211 deletions(-) diff --git a/cataloguing/value_builder/unimarc_field_100.pl b/cataloguing/value_builder/unimarc_field_100.pl index c49b956..0d01554 100755 --- a/cataloguing/value_builder/unimarc_field_100.pl +++ b/cataloguing/value_builder/unimarc_field_100.pl @@ -67,6 +67,14 @@ sub plugin_javascript { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -90,14 +98,14 @@ sub plugin { my @today = Date::Calc::Today(); $f1 = $today[0] . sprintf('%02s',$today[1]) . sprintf('%02s',$today[2]); } - my $f2 = substr( $result, 8, 1 ); + my $f2 = substr( $result, 8, 1 ); $f2 = wrapper( $f2 ) if $f2; my $f3 = substr( $result, 9, 4 ); $f3='' if $f3 eq ' '; # empty publication year if only spaces, otherwise it's hard to fill the field my $f4 = substr( $result, 13, 4 ); $f4='' if $f4 eq ' '; - my $f5 = substr( $result, 17, 1 ); - my $f6 = substr( $result, 18, 1 ); - my $f7 = substr( $result, 19, 1 ); + my $f5 = substr( $result, 17, 1 ); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr( $result, 18, 1 ); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr( $result, 19, 1 ); $f7 = wrapper( $f7 ) if $f7; my $f8 = substr( $result, 20, 1 ); my $f9 = substr( $result, 21, 1 ); my $f10 = substr( $result, 22, 3 ); @@ -105,7 +113,7 @@ sub plugin { my $f12 = substr( $result, 26, 2 ); my $f13 = substr( $result, 28, 2 ); my $f14 = substr( $result, 30, 4 ); - my $f15 = substr( $result, 34, 2 ); + my $f15 = substr( $result, 34, 2 ); $f15 = wrapper( $f15 ) if $f15; $template->param( index => $index, diff --git a/cataloguing/value_builder/unimarc_field_105.pl b/cataloguing/value_builder/unimarc_field_105.pl index 8d44a82..c84e826 100755 --- a/cataloguing/value_builder/unimarc_field_105.pl +++ b/cataloguing/value_builder/unimarc_field_105.pl @@ -63,6 +63,13 @@ sub plugin_javascript { return ($field_number,$res); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -78,21 +85,21 @@ sub plugin { flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - - my $f5 = substr($result,4,1); - my $f6 = substr($result,5,1); - my $f7 = substr($result,6,1); - my $f8 = substr($result,7,1); - - my $f9 = substr($result,8,1); - my $f10 = substr($result,9,1); - my $f11 = substr($result,10,1); - my $f12 = substr($result,11,1); - my $f13 = substr($result,12,1); + my $f1 = substr($result,0,1); $f1 = wrapper( $f1 ) if $f1; + my $f2 = substr($result,1,1); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr($result,2,1); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr($result,3,1); $f4 = wrapper( $f4 ) if $f4; + + my $f5 = substr($result,4,1); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr($result,5,1); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr($result,6,1); $f7 = wrapper( $f7 ) if $f7; + my $f8 = substr($result,7,1); $f8 = wrapper( $f8 ) if $f8; + + my $f9 = substr($result,8,1); $f9 = wrapper( $f9 ) if $f9; + my $f10 = substr($result,9,1); $f10 = wrapper( $f10 ) if $f10; + my $f11 = substr($result,10,1); $f11 = wrapper( $f11 ) if $f11; + my $f12 = substr($result,11,1); $f12 = wrapper( $f12 ) if $f12; + my $f13 = substr($result,12,1); $f13 = wrapper( $f13 ) if $f13; $template->param(index => $index, "f1$f1" => 1, diff --git a/cataloguing/value_builder/unimarc_field_110.pl b/cataloguing/value_builder/unimarc_field_110.pl index 848a53a..2c301ae 100755 --- a/cataloguing/value_builder/unimarc_field_110.pl +++ b/cataloguing/value_builder/unimarc_field_110.pl @@ -62,6 +62,14 @@ sub plugin_javascript { return ($field_number,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,15 +84,15 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); + my $f1 = substr($result,0,1); $f1 = wrapper( $f1 ) if $f1; + my $f2 = substr($result,1,1); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr($result,2,1); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr($result,3,1); $f4 = wrapper( $f4 ) if $f4; my $f5 = substr($result,4,3); - my $f6 = substr($result,7,1); - my $f7 = substr($result,8,1); - my $f8 = substr($result,9,1); - my $f9 = substr($result,10,1); + my $f6 = substr($result,7,1); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr($result,8,1); $f7 = wrapper( $f7 ) if $f7; + my $f8 = substr($result,9,1); $f8 = wrapper( $f8 ) if $f8; + my $f9 = substr($result,10,1); $f9 = wrapper( $f9 ) if $f9; $template->param(index => $index, "f1$f1" => 1, diff --git a/cataloguing/value_builder/unimarc_field_115a.pl b/cataloguing/value_builder/unimarc_field_115a.pl index 6144771..2cd6806 100755 --- a/cataloguing/value_builder/unimarc_field_115a.pl +++ b/cataloguing/value_builder/unimarc_field_115a.pl @@ -69,6 +69,13 @@ sub plugin_javascript { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -86,24 +93,24 @@ sub plugin { debug => 1, } ); - my $f1 = substr( $result, 0, 1 ); + my $f1 = substr( $result, 0, 1 ); $f1 = wrapper( $f1 ) if $f1; my $f2 = substr( $result, 1, 3 ); - my $f3 = substr( $result, 4, 1 ); - my $f4 = substr( $result, 5, 1 ); - my $f5 = substr( $result, 6, 1 ); - my $f6 = substr( $result, 7, 1 ); - my $f7 = substr( $result, 8, 1 ); - my $f8 = substr( $result, 9, 1 ); - my $f9 = substr( $result, 10, 1 ); - my $f10 = substr( $result, 11, 1 ); - my $f11 = substr( $result, 12, 1 ); - my $f12 = substr( $result, 13, 1 ); - my $f13 = substr( $result, 14, 1 ); - my $f14 = substr( $result, 15, 1 ); - my $f15 = substr( $result, 16, 1 ); - my $f16 = substr( $result, 17, 1 ); - my $f17 = substr( $result, 18, 1 ); - my $f18 = substr( $result, 19, 1 ); + my $f3 = substr( $result, 4, 1 ); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr( $result, 5, 1 ); $f4 = wrapper( $f4 ) if $f4; + my $f5 = substr( $result, 6, 1 ); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr( $result, 7, 1 ); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr( $result, 8, 1 ); $f7 = wrapper( $f7 ) if $f7; + my $f8 = substr( $result, 9, 1 ); $f8 = wrapper( $f8 ) if $f8; + my $f9 = substr( $result, 10, 1 ); $f9 = wrapper( $f9 ) if $f9; + my $f10 = substr( $result, 11, 1 ); $f10 = wrapper( $f10 ) if $f10; + my $f11 = substr( $result, 12, 1 ); $f11 = wrapper( $f11 ) if $f11; + my $f12 = substr( $result, 13, 1 ); $f12 = wrapper( $f12 ) if $f12; + my $f13 = substr( $result, 14, 1 ); $f13 = wrapper( $f13 ) if $f13; + my $f14 = substr( $result, 15, 1 ); $f14 = wrapper( $f14 ) if $f14; + my $f15 = substr( $result, 16, 1 ); $f15 = wrapper( $f15 ) if $f15; + my $f16 = substr( $result, 17, 1 ); $f16 = wrapper( $f16 ) if $f16; + my $f17 = substr( $result, 18, 1 ); $f17 = wrapper( $f17 ) if $f17; + my $f18 = substr( $result, 19, 1 ); $f18 = wrapper( $f18 ) if $f18; $template->param( index => $index, diff --git a/cataloguing/value_builder/unimarc_field_115b.pl b/cataloguing/value_builder/unimarc_field_115b.pl index 7582e74..919b1fa 100755 --- a/cataloguing/value_builder/unimarc_field_115b.pl +++ b/cataloguing/value_builder/unimarc_field_115b.pl @@ -63,6 +63,13 @@ function Clic$field_number() { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -80,15 +87,15 @@ sub plugin { debug => 1, } ); - my $f1 = substr( $result, 0, 1 ); - my $f2 = substr( $result, 1, 1 ); - my $f3 = substr( $result, 2, 1 ); - my $f4 = substr( $result, 3, 1 ); - my $f5 = substr( $result, 4, 1 ); - my $f6 = substr( $result, 5, 1 ); - my $f7 = substr( $result, 6, 1 ); - my $f8 = substr( $result, 7, 1 ); - my $f9 = substr( $result, 8, 1 ); + my $f1 = substr( $result, 0, 1 ); $f1 = wrapper( $f1 ) if $f1; + my $f2 = substr( $result, 1, 1 ); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr( $result, 2, 1 ); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr( $result, 3, 1 ); $f4 = wrapper( $f4 ) if $f4; + my $f5 = substr( $result, 4, 1 ); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr( $result, 5, 1 ); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr( $result, 6, 1 ); $f7 = wrapper( $f7 ) if $f7; + my $f8 = substr( $result, 7, 1 ); $f8 = wrapper( $f8 ) if $f8; + my $f9 = substr( $result, 8, 1 ); $f9 = wrapper( $f9 ) if $f9; my $f10 = substr( $result, 9, 4 ); my $f11 = substr( $result, 13, 2 ); diff --git a/cataloguing/value_builder/unimarc_field_116.pl b/cataloguing/value_builder/unimarc_field_116.pl index 21e2368..67f6875 100755 --- a/cataloguing/value_builder/unimarc_field_116.pl +++ b/cataloguing/value_builder/unimarc_field_116.pl @@ -63,6 +63,15 @@ function Clic$field_number(i) { return ( $field_number, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return "dblpipe" if $char eq "||"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -79,20 +88,20 @@ sub plugin { debug => 1, } ); - my $f1 = substr( $result, 0, 1 ); - my $f2 = substr( $result, 1, 1 ); - my $f3 = substr( $result, 2, 1 ); - my $f4 = substr( $result, 3, 1 ); + my $f1 = substr( $result, 0, 1 ); $f1 = wrapper( $f1 ) if $f1; + my $f2 = substr( $result, 1, 1 ); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr( $result, 2, 1 ); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr( $result, 3, 1 ); $f4 = wrapper( $f4 ) if $f4; - my $f5 = substr( $result, 4, 2 ); - my $f6 = substr( $result, 6, 2 ); - my $f7 = substr( $result, 8, 2 ); + my $f5 = substr( $result, 4, 2 ); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr( $result, 6, 2 ); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr( $result, 8, 2 ); $f7 = wrapper( $f7 ) if $f7; - my $f8 = substr( $result, 10, 2 ); - my $f9 = substr( $result, 12, 2 ); - my $f10 = substr( $result, 14, 2 ); + my $f8 = substr( $result, 10, 2 ); $f8 = wrapper( $f8 ) if $f8; + my $f9 = substr( $result, 12, 2 ); $f9 = wrapper( $f9 ) if $f9; + my $f10 = substr( $result, 14, 2 ); $f10 = wrapper( $f10 ) if $f10; - my $f11 = substr( $result, 16, 2 ); + my $f11 = substr( $result, 16, 2 ); $f11 = wrapper( $f11 ) if $f11; $template->param( index => $index, diff --git a/cataloguing/value_builder/unimarc_field_117.pl b/cataloguing/value_builder/unimarc_field_117.pl index ff206f7..fcbb18f 100755 --- a/cataloguing/value_builder/unimarc_field_117.pl +++ b/cataloguing/value_builder/unimarc_field_117.pl @@ -62,6 +62,16 @@ function Clic$field_number(i) { return ($field_number,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return "dblpipe" if $char eq "||"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,12 +86,12 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,2); - my $f2 = substr($result,2,2); - my $f3 = substr($result,4,2); - my $f4 = substr($result,6,2); + my $f1 = substr($result,0,2); $f1 = wrapper( $f1 ) if $f1; + my $f2 = substr($result,2,2); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr($result,4,2); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr($result,6,2); $f4 = wrapper( $f4 ) if $f4; - my $f5 = substr($result,8,1); + my $f5 = substr($result,8,1); $f5 = wrapper( $f5 ) if $f5; $template->param(index => $index, "f1$f1" => 1, diff --git a/cataloguing/value_builder/unimarc_field_120.pl b/cataloguing/value_builder/unimarc_field_120.pl index 3f72c85..f140fce 100755 --- a/cataloguing/value_builder/unimarc_field_120.pl +++ b/cataloguing/value_builder/unimarc_field_120.pl @@ -63,6 +63,15 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -82,13 +91,13 @@ my ($template, $loggedinuser, $cookie) my $f1 = substr($result,0,1); my $f2 = substr($result,1,1); my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - my $f5 = substr($result,4,1); - my $f6 = substr($result,5,1); - my $f7 = substr($result,6,1); + my $f4 = substr($result,3,1); $f4 = wrapper( $f4 ) if $f4; + my $f5 = substr($result,4,1); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr($result,5,1); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr($result,6,1); $f7 = wrapper( $f7 ) if $f7; my $f8 = substr($result,7,2); - my $f9 = substr($result,9,2); - my $f10 = substr($result,11,2); + my $f9 = substr($result,9,2); $f9 = wrapper( $f9 ) if $f9; + my $f10 = substr($result,11,2); $f10 = wrapper( $f10 ) if $f10; $template->param(index => $index, "f1$f1" => 1, "f2$f2" => 1, diff --git a/cataloguing/value_builder/unimarc_field_121a.pl b/cataloguing/value_builder/unimarc_field_121a.pl index a855332..d40f49c 100755 --- a/cataloguing/value_builder/unimarc_field_121a.pl +++ b/cataloguing/value_builder/unimarc_field_121a.pl @@ -63,6 +63,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -80,8 +88,8 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); + my $f2 = substr($result,1,1); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr($result,2,1); $f3 = wrapper( $f3 ) if $f3; my $f4 = substr($result,3,2); my $f5 = substr($result,5,1); my $f6 = substr($result,6,1); diff --git a/cataloguing/value_builder/unimarc_field_125b.pl b/cataloguing/value_builder/unimarc_field_125b.pl index b356956..8c66161 100755 --- a/cataloguing/value_builder/unimarc_field_125b.pl +++ b/cataloguing/value_builder/unimarc_field_125b.pl @@ -60,6 +60,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,7 +84,7 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); + my $f1 = substr($result,0,1); $f1 = wrapper( $f1 ) if $f1; $template->param(index => $index, "f1$f1" => 1); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/cataloguing/value_builder/unimarc_field_126a.pl b/cataloguing/value_builder/unimarc_field_126a.pl index 2f85f9e..e3d47b5 100755 --- a/cataloguing/value_builder/unimarc_field_126a.pl +++ b/cataloguing/value_builder/unimarc_field_126a.pl @@ -60,6 +60,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -83,12 +91,12 @@ my ($template, $loggedinuser, $cookie) my $f5 = substr($result,4,1); my $f6 = substr($result,5,1); my $f7 = substr($result,6,1); - my $f8 = substr($result,7,1); - my $f9 = substr($result,8,1); - my $f10 = substr($result,9,1); - my $f11 = substr($result,10,1); - my $f12 = substr($result,11,1); - my $f13 = substr($result,12,1); + my $f8 = substr($result,7,1); $f8 = wrapper( $f8 ) if $f8; + my $f9 = substr($result,8,1); $f9 = wrapper( $f9 ) if $f9; + my $f10 = substr($result,9,1); $f10 = wrapper( $f10 ) if $f10; + my $f11 = substr($result,10,1); $f11 = wrapper( $f11 ) if $f11; + my $f12 = substr($result,11,1); $f12 = wrapper( $f12 ) if $f12; + my $f13 = substr($result,12,1); $f13 = wrapper( $f13 ) if $f13; my $f14 = substr($result,13,1); my $f15 = substr($result,14,1); $template->param(index => $index, diff --git a/cataloguing/value_builder/unimarc_field_128b.pl b/cataloguing/value_builder/unimarc_field_128b.pl index b44bd21..1f196ac 100755 --- a/cataloguing/value_builder/unimarc_field_128b.pl +++ b/cataloguing/value_builder/unimarc_field_128b.pl @@ -60,6 +60,13 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "dblpipe" if $char eq "||"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,7 +83,7 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,2); + my $f1 = substr($result,0,2); $f1 = wrapper( $f1 ) if $f1; $template->param(index => $index, "f1$f1" => 1); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/cataloguing/value_builder/unimarc_field_130.pl b/cataloguing/value_builder/unimarc_field_130.pl index caf6ba3..d0eb5c9 100755 --- a/cataloguing/value_builder/unimarc_field_130.pl +++ b/cataloguing/value_builder/unimarc_field_130.pl @@ -61,6 +61,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -79,7 +87,7 @@ my ($template, $loggedinuser, $cookie) }); my $f1 = substr($result,0,1); my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); + my $f3 = substr($result,2,1); $f3 = wrapper( $f3 ) if $f3; my $f4 = substr($result,3,1); my $f5 = substr($result,4,3); my $f6 = substr($result,7,1); diff --git a/cataloguing/value_builder/unimarc_field_135a.pl b/cataloguing/value_builder/unimarc_field_135a.pl index de631c2..93454aa 100755 --- a/cataloguing/value_builder/unimarc_field_135a.pl +++ b/cataloguing/value_builder/unimarc_field_135a.pl @@ -60,6 +60,14 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,7 +84,7 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); + my $f1 = substr($result,0,1); $f1 = wrapper( $f1 ) if $f1; my $f2 = substr($result,1,1); my $f3 = substr($result,2,1); my $f4 = substr($result,3,1); diff --git a/cataloguing/value_builder/unimarc_field_140.pl b/cataloguing/value_builder/unimarc_field_140.pl index ac50f32..201e31a 100755 --- a/cataloguing/value_builder/unimarc_field_140.pl +++ b/cataloguing/value_builder/unimarc_field_140.pl @@ -60,6 +60,15 @@ function Clic$function_name(i) { return ($function_name,$res); } + +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "dblspace" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index= $input->param('index'); @@ -76,23 +85,23 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {editcatalogue => '*'}, debug => 1, }); - my $f1 = substr($result,0,1); - my $f2 = substr($result,1,1); - my $f3 = substr($result,2,1); - my $f4 = substr($result,3,1); - my $f5 = substr($result,4,1); - my $f6 = substr($result,5,1); - my $f7 = substr($result,6,1); - my $f8 = substr($result,7,1); - my $f9 = substr($result,8,1); - my $f10 = substr($result,9,2); - my $f11 = substr($result,11,2); - my $f12 = substr($result,13,2); - my $f13 = substr($result,15,2); - my $f14 = substr($result,17,2); - my $f15 = substr($result,19,1); - my $f16 = substr($result,20,1); - my $f17 = substr($result,21,1); + my $f1 = substr($result,0,1); $f1 = wrapper( $f1 ) if $f1; + my $f2 = substr($result,1,1); $f2 = wrapper( $f2 ) if $f2; + my $f3 = substr($result,2,1); $f3 = wrapper( $f3 ) if $f3; + my $f4 = substr($result,3,1); $f4 = wrapper( $f4 ) if $f4; + my $f5 = substr($result,4,1); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr($result,5,1); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr($result,6,1); $f7 = wrapper( $f7 ) if $f7; + my $f8 = substr($result,7,1); $f8 = wrapper( $f8 ) if $f8; + my $f9 = substr($result,8,1); $f9 = wrapper( $f9 ) if $f9; + my $f10 = substr($result,9,2); $f10 = wrapper( $f10 ) if $f10; + my $f11 = substr($result,11,2); $f11 = wrapper( $f11 ) if $f11; + my $f12 = substr($result,13,2); $f12 = wrapper( $f12 ) if $f12; + my $f13 = substr($result,15,2); $f13 = wrapper( $f13 ) if $f13; + my $f14 = substr($result,17,2); $f14 = wrapper( $f14 ) if $f14; + my $f15 = substr($result,19,1); $f15 = wrapper( $f15 ) if $f15; + my $f16 = substr($result,20,1); $f16 = wrapper( $f16 ) if $f16; + my $f17 = substr($result,21,1); $f17 = wrapper( $f17 ) if $f17; my $f18 = substr($result,22,1); my $f19 = substr($result,23,1); my $f20 = substr($result,24,1); diff --git a/cataloguing/value_builder/unimarc_leader.pl b/cataloguing/value_builder/unimarc_leader.pl index 05748a2..af4d808 100755 --- a/cataloguing/value_builder/unimarc_leader.pl +++ b/cataloguing/value_builder/unimarc_leader.pl @@ -66,6 +66,13 @@ function Clic$function_name(i) { return ( $function_name, $res ); } +sub wrapper { + my ($char) = @_; + return "space" if $char eq " "; + return "pipe" if $char eq "|"; + return $char; +} + sub plugin { my ($input) = @_; my $index = $input->param('index'); @@ -83,13 +90,13 @@ sub plugin { } ); $result = " nam 3 " unless $result; - my $f5 = substr( $result, 5, 1 ); - my $f6 = substr( $result, 6, 1 ); - my $f7 = substr( $result, 7, 1 ); - my $f8 = substr( $result, 8, 1 ); + my $f5 = substr( $result, 5, 1 ); $f5 = wrapper( $f5 ) if $f5; + my $f6 = substr( $result, 6, 1 ); $f6 = wrapper( $f6 ) if $f6; + my $f7 = substr( $result, 7, 1 ); $f7 = wrapper( $f7 ) if $f7; + my $f8 = substr( $result, 8, 1 ); $f8 = wrapper( $f8 ) if $f8; my $f9 = substr( $result, 9, 1 ); - my $f17 = substr( $result, 17, 1 ); - my $f18 = substr( $result, 18, 1 ); + my $f17 = substr( $result, 17, 1 ); $f17 = wrapper( $f17 ) if $f17; + my $f18 = substr( $result, 18, 1 ); $f18 = wrapper( $f18 ) if $f18; my $f19 = substr( $result, 19, 1 ); $template->param( diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt index d186dfa..4686148 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt @@ -14,7 +14,7 @@
  • Due DateTitle Author BarcodeCall NumberType PatronNote
    Due DateTitle Author BarcodeShelving LocationCall NumberType PatronNote
    [% riloo.itemauthor %] [% riloo.barcode %][% riloo.location %] [% riloo.itemcallnumber %] [% riloo.itemtype %] [% riloo.ccode %] [% IF ( riloo.duedate ) %] -- 1.7.2.5 From nengard at bywatersolutions.com Mon Jun 6 10:21:08 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Mon, 6 Jun 2011 04:21:08 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 642: HidePatronName on detail page broken Message-ID: <1307348468-4321-1-git-send-email-nengard@bywatersolutions.com> From: Katrin Fischer TT issue To test: - Check out an item to a patron - Go to detail page of the title in intranet - Normal view will show cardnumber when HidePatronName is activated - Normal view will show patron's name, when HidePatronName is off Hold page was not broken. http://bugs.koha-community.org/show_bug.cgi?id=6472 Signed-off-by: Nicole C. Engard --- .../prog/en/modules/catalogue/detail.tt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 97cb22c..39c2cd3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -273,7 +273,7 @@ function verify_images() { Checked out [% UNLESS ( itemloo.NOTSAMEBRANCH ) %] to - [% IF ( hidepatronname ) %] + [% IF ( itemloo.hidepatronname ) %] [% itemloo.cardnumber %] [% ELSE %] [% itemloo.firstname %] [% itemloo.surname %] -- 1.7.2.3 From pianohacker at gmail.com Tue Jun 7 02:41:11 2011 From: pianohacker at gmail.com (Jesse Weaver) Date: Mon, 6 Jun 2011 18:41:11 -0600 Subject: [Koha-patches] =?utf-8?q?=5BPATCH=5D_Bug_5633_=3A_MT2897_=3A_Allo?= =?utf-8?q?w_import=5Fborrowers=2Epl_to_be_used_in_commandline_mode?= Message-ID: <1307407271-4369-1-git-send-email-pianohacker@gmail.com> From: Matthias Meusburger Signed-off-by: Jesse Weaver --- tools/import_borrowers.pl | 179 ++++++++++++++++++++++++++++++++++--------- tools/import_borrowers.yaml | 3 + 2 files changed, 144 insertions(+), 38 deletions(-) create mode 100644 tools/import_borrowers.yaml diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl index 6141998..6295f8d 100755 --- a/tools/import_borrowers.pl +++ b/tools/import_borrowers.pl @@ -46,7 +46,8 @@ use C4::Members; use C4::Members::Attributes qw(:all); use C4::Members::AttributeTypes; use C4::Members::Messaging; - +use Date::Calc qw(Today_and_Now); +use Getopt::Long; use Text::CSV; # Text::CSV::Unicode, even in binary mode, fails to parse lines with these diacriticals: # ? @@ -55,6 +56,45 @@ use Text::CSV; use CGI; # use encoding 'utf8'; # don't do this +my $input = CGI->new(); + +# Checks if the script is called from commandline +my $commandline = 0; +my $uploadborrowers; +my $matchpoint; +my $overwrite_cardnumber; +my $ext_preserve; +my $file; +my $cl_defaults; +my $help; +if (scalar @ARGV > 0) { + # Getting parameters + GetOptions ('matchpoint=s' => \$matchpoint, 'overwrite' => \$overwrite_cardnumber, 'preserve_attributes' => \$ext_preserve, 'file=s' => \$file, 'help|?' => \$help); + $commandline = 1; + + if ($help) { + print "\nimport_borrowers.pl [--matchpoint=matchpoint] [--overwrite] [--preserve_attributes] --file=csvtoimport.csv\n\n"; + print " * matchpoint is either 'cardnumber' or like 'patron_attribute_' + patron attribute code (example: patron_attribute_EXTERNALID)\n"; + print " * Default values can be specified in import_borrowers.yaml (keys must be column names from the borrowers table)\n\n"; + exit; + } + + # Default parameters values : + $matchpoint ||= "cardnumber"; + $overwrite_cardnumber ||= 0; + $ext_preserve ||= 0; + + # Default values + $cl_defaults = (-e 'import_borrowers.yaml') ? YAML::LoadFile('import_borrowers.yaml') : {}; + + open($uploadborrowers, '<', $file) or die("Unable to open $file"); +} else { + $uploadborrowers = $input->param('uploadborrowers'); + $matchpoint = $input->param('matchpoint'); + $overwrite_cardnumber = $input->param('overwrite_cardnumber'); + $ext_preserve = $input->param('ext_preserve') || 0; +} + my (@errors, @feedback); my $extended = C4::Context->preference('ExtendedPatronAttributes'); my $set_messaging_prefs = C4::Context->preference('EnhancedMessagingPreferences'); @@ -64,54 +104,55 @@ if ($extended) { } my $columnkeystpl = [ map { {'key' => $_} } grep {$_ ne 'borrowernumber' && $_ ne 'cardnumber'} @columnkeys ]; # ref. to array of hashrefs. -my $input = CGI->new(); our $csv = Text::CSV->new({binary => 1}); # binary needed for non-ASCII Unicode # push @feedback, {feedback=>1, name=>'backend', value=>$csv->backend, backend=>$csv->backend}; my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ - template_name => "tools/import_borrowers.tmpl", - query => $input, - type => "intranet", - authnotrequired => 0, - flagsrequired => { tools => 'import_patrons' }, - debug => 1, -}); - -$template->param(columnkeys => $columnkeystpl); - -if ($input->param('sample')) { - print $input->header( - -type => 'application/vnd.sun.xml.calc', # 'application/vnd.ms-excel' ? - -attachment => 'patron_import.csv', - ); - $csv->combine(@columnkeys); - print $csv->string, "\n"; - exit 1; + template_name => "tools/import_borrowers.tmpl", + query => $input, + type => "intranet", + authnotrequired => $commandline, + flagsrequired => { tools => 'import_patrons' }, + debug => 1, + }); + +if (!$commandline) { + $template->param(columnkeys => $columnkeystpl); + $template->param( SCRIPT_NAME => $ENV{'SCRIPT_NAME'} ); + ($extended) and $template->param(ExtendedPatronAttributes => 1); + + if ($input->param('sample')) { + print $input->header( + -type => 'application/vnd.sun.xml.calc', # 'application/vnd.ms-excel' ? + -attachment => 'patron_import.csv', + ); + $csv->combine(@columnkeys); + print $csv->string, "\n"; + exit 1; + } } -my $uploadborrowers = $input->param('uploadborrowers'); -my $matchpoint = $input->param('matchpoint'); + if ($matchpoint) { $matchpoint =~ s/^patron_attribute_//; } -my $overwrite_cardnumber = $input->param('overwrite_cardnumber'); -$template->param( SCRIPT_NAME => $ENV{'SCRIPT_NAME'} ); -($extended) and $template->param(ExtendedPatronAttributes => 1); if ( $uploadborrowers && length($uploadborrowers) > 0 ) { push @feedback, {feedback=>1, name=>'filename', value=>$uploadborrowers, filename=>$uploadborrowers}; - my $handle = $input->upload('uploadborrowers'); + my $handle = ($commandline == 1) ? $uploadborrowers : $input->upload('uploadborrowers'); my $uploadinfo = $input->uploadInfo($uploadborrowers); foreach (keys %$uploadinfo) { push @feedback, {feedback=>1, name=>$_, value=>$uploadinfo->{$_}, $_=>$uploadinfo->{$_}}; } my $imported = 0; my $alreadyindb = 0; + my $lastalreadyindb; my $overwritten = 0; my $invalid = 0; + my $lastinvalid; my $matchpoint_attr_type; - my %defaults = $input->Vars; + my %defaults = ($commandline) ? %$cl_defaults : $input->Vars; # use header line to construct key to column map my $borrowerline = <$handle>; @@ -126,7 +167,6 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { $csvkeycol{$keycol} = $col++; } #warn($borrowerline); - my $ext_preserve = $input->param('ext_preserve') || 0; if ($extended) { $matchpoint_attr_type = C4::Members::AttributeTypes->fetch($matchpoint); } @@ -187,7 +227,7 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { $_->{surname} = $borrower{surname} || 'UNDEF'; } $invalid++; - (25 > scalar @errors) and push @errors, {missing_criticals=>\@missing_criticals}; + ($commandline or 25 > scalar @errors) and push @errors, {missing_criticals=>\@missing_criticals}; # The first 25 errors are enough. Keeping track of 30,000+ would destroy performance. next LINE; } @@ -233,7 +273,8 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { # borrower exists unless ($overwrite_cardnumber) { $alreadyindb++; - $template->param('lastalreadyindb'=>$borrower{'surname'}.' / '.$borrowernumber); + $template->param('lastalreadyindb'=>$borrower{'surname'}.' / '.$borrowernumber) if (!$commandline); + $lastalreadyindb = $borrower{'surname'}.' / '.$borrowernumber; next LINE; } $borrower{'borrowernumber'} = $borrowernumber; @@ -246,7 +287,8 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { } unless (ModMember(%borrower)) { $invalid++; - $template->param('lastinvalid'=>$borrower{'surname'}.' / '.$borrowernumber); + $template->param('lastinvalid'=>$borrower{'surname'}.' / '.$borrowernumber) if (!$commandline); + $lastinvalid = $borrower{'surname'}.' / '.$borrowernumber; next LINE; } if ($extended) { @@ -257,7 +299,7 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { SetBorrowerAttributes($borrower{'borrowernumber'}, $patron_attributes); } $overwritten++; - $template->param('lastoverwritten'=>$borrower{'surname'}.' / '.$borrowernumber); + $template->param('lastoverwritten'=>$borrower{'surname'}.' / '.$borrowernumber) if (!$commandline); } else { # FIXME: fixup_cardnumber says to lock table, but the web interface doesn't so this doesn't either. # At least this is closer to AddMember than in members/memberentry.pl @@ -273,15 +315,16 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { categorycode => $borrower{categorycode} }); } $imported++; - $template->param('lastimported'=>$borrower{'surname'}.' / '.$borrowernumber); + $template->param('lastimported'=>$borrower{'surname'}.' / '.$borrowernumber) if (!$commandline); } else { $invalid++; - $template->param('lastinvalid'=>$borrower{'surname'}.' / AddMember'); + $template->param('lastinvalid'=>$borrower{'surname'}.' / AddMember') if (!$commandline); + $lastinvalid = $borrower{'surname'}.' / AddMember'; } } } - (@errors ) and $template->param( ERRORS=>\@errors ); - (@feedback) and $template->param(FEEDBACK=>\@feedback); + (@errors ) and $template->param( ERRORS=>\@errors ) if (!$commandline); + (@feedback) and $template->param(FEEDBACK=>\@feedback) if (!$commandline); $template->param( 'uploadborrowers' => 1, 'imported' => $imported, @@ -289,7 +332,67 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { 'alreadyindb' => $alreadyindb, 'invalid' => $invalid, 'total' => $imported + $alreadyindb + $invalid + $overwritten, - ); + ) if (!$commandline); + if ($commandline) { + + my $total = $imported + $alreadyindb + $invalid + $overwritten; + my $output; + + my $timestamp = C4::Dates->new()->output . " " . POSIX::strftime("%H:%M:%S",localtime); + $output .= "Timestamp : $timestamp\n"; + $output .= "Import results\n"; + $output .= "$imported imported records\n"; + $output .= "$overwritten overwritten records\n"; + $output .= "$alreadyindb not imported because already in borrowers table and overwrite disabled\n"; + $output .= "(last was $lastalreadyindb)\n" if ($lastalreadyindb); + $output .= "$invalid not imported because they are not in the expected format\n"; + $output .= "(last was $lastinvalid)\n" if ($lastinvalid); + $output .= "$total records parsed\n"; + + + $output .= "\nError analysis\n"; + foreach my $hash (@errors) { + $output .= "Header row could not be parsed" if ($hash->{'badheader'}); + foreach my $array ($hash->{'missing_criticals'}) { + foreach (@$array) { + $output .= "Line $_->{'line'}: "; + if ($hash->{'badparse'}) { + $output .= "could not be parsed!"; + } elsif ($hash->{'bad_date'}) { + $output .= "has $_->{'key'} in unrecognized format: $_->{'value'} "; + } else { + $output .= "Critical field $_->{'key'}: "; + if ($_->{'branch_map'} || $_->{'category_map'}) { + $output .= "has unrecognized value: $_->{'value'}"; + } else { + $output .= " missing"; + } + $output .= " (borrowernumber: $_->{'borrowernumber'}; surname: $_->{'surname'})"; + } + $output .= "\n". $_->{'lineraw'} . "\n"; + } + } + } + + # Write log file + my $logfile = "/var/log/koha/reports/import_borrowers.log"; + if (open (FH, ">>$logfile")) { + print FH $output; + close(FH); + } else { + $output .= "Unable to write to log file : $logfile\n"; + } + + + # Send email with log + my $mail = MIME::Lite->new( + To => C4::Context->preference('KohaAdminEmailAddress'), + Subject => "Import borrowers log email", + Type => 'text/plain', + Data => $output + ); + $mail->send() or print STDERR "Warning: Unable to send log email\n"; + } } else { if ($extended) { @@ -305,5 +408,5 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { } } -output_html_with_http_headers $input, $cookie, $template->output; +output_html_with_http_headers $input, $cookie, $template->output if (!$commandline); diff --git a/tools/import_borrowers.yaml b/tools/import_borrowers.yaml new file mode 100644 index 0000000..04b8d5f --- /dev/null +++ b/tools/import_borrowers.yaml @@ -0,0 +1,3 @@ +# Default values for import_borrowers.pl used in command line +column: value +othercolumn: value -- 1.7.4.1 From chris at bigballofwax.co.nz Tue Jun 7 08:37:02 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Tue, 7 Jun 2011 18:37:02 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6277 : CustomLog by default Message-ID: <1307428622-4284-1-git-send-email-chris@bigballofwax.co.nz> From: Nu?o L?pez Ans?tegui Signed-off-by: Chris Cormack --- etc/koha-httpd.conf | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) mode change 100644 => 100755 etc/koha-httpd.conf diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf old mode 100644 new mode 100755 index bc2b4d8..bf8cdc7 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -13,6 +13,7 @@ ScriptAlias /opac-search.pl "__OPAC_CGI_DIR__/opac/opac-search.pl" ScriptAlias /search "__OPAC_CGI_DIR__/opac/opac-search.pl" ErrorLog __LOG_DIR__/koha-opac-error_log +# CustomLog __LOG_DIR__/koha-opac-access_log combined # TransferLog __LOG_DIR__/koha-opac-access_log SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml" SetEnv PERL5LIB "__PERL_MODULE_DIR__" -- 1.7.2.2 From chris at bigballofwax.co.nz Tue Jun 7 08:42:13 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Tue, 7 Jun 2011 18:42:13 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6078: Request to find borrowers without issues overload the server Message-ID: <1307428933-4422-1-git-send-email-chris@bigballofwax.co.nz> From: Sophie Meynieux Optimization of the SQL request using NOT EXISTS instead of NOT IN BibLibre MT5946 Signed-off-by: Chris Cormack --- reports/borrowers_out.pl | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/reports/borrowers_out.pl b/reports/borrowers_out.pl index 0a135e1..278e412 100755 --- a/reports/borrowers_out.pl +++ b/reports/borrowers_out.pl @@ -230,18 +230,12 @@ sub calculate { @$filters[0]=~ s/\*/%/g if (@$filters[0]); $strcalc .= " AND borrowers.categorycode like '" . @$filters[0] ."'" if ( @$filters[0] ); - my $strqueryfilter = "SELECT DISTINCT borrowernumber FROM "; - $strqueryfilter .= "(SELECT borrowernumber from old_issues WHERE borrowernumber IS NOT NULL "; - if ($filters->[1]){ - $strqueryfilter .= "AND old_issues.timestamp> '$filters->[1]' "; - } - $strqueryfilter .= "UNION SELECT borrowernumber FROM issues WHERE 1 "; - if ($filters->[1]){ - $strqueryfilter .= "AND issues.timestamp> '$filters->[1]' "; - } - $strqueryfilter .= ") active_borrowers"; - - $strcalc .= " AND borrowers.borrowernumber not in ($strqueryfilter)"; + $strcalc .= " AND NOT EXISTS (SELECT * FROM issues WHERE issues.borrowernumber=borrowers.borrowernumber "; + $strcalc .= " AND issues.timestamp> '" . @$filters[1] . "'" if (@$filters[1]); + $strcalc .= ") "; + $strcalc .= " AND NOT EXISTS (SELECT * FROM old_issues WHERE old_issues.borrowernumber=borrowers.borrowernumber "; + $strcalc .= " AND old_issues.timestamp> '" . @$filters[1] . "'" if (@$filters[1]); + $strcalc .= ") "; $strcalc .= " group by borrowers.borrowernumber"; $strcalc .= ", $colfield" if ($column); $strcalc .= " order by $colfield " if ($colfield); -- 1.7.2.2 From chris at bigballofwax.co.nz Tue Jun 7 09:31:33 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Tue, 7 Jun 2011 19:31:33 +1200 Subject: [Koha-patches] [Signed Off] [PATCH 1/2] bug 5602: Rewriting the package making script Now it is a perl script. Various pdebuild flexibility. Message-ID: <1307431894-4954-1-git-send-email-chris@bigballofwax.co.nz> From: Srdjan Jankovic Signed-off-by: Chris Cormack --- debian/README.build | 13 ++++ debian/build-git-snapshot | 171 +++++++++++++++++++++++++++++++++------------ 2 files changed, 138 insertions(+), 46 deletions(-) create mode 100644 debian/README.build diff --git a/debian/README.build b/debian/README.build new file mode 100644 index 0000000..32a0f5d --- /dev/null +++ b/debian/README.build @@ -0,0 +1,13 @@ +In order to build .deb packages, following debian packages need to be present (installed): +devscripts +pbuilder +dh-make +fakeroot + +As root (or sudo) execute: +pbuilder create + +Executing build-git-snapshot without any arguments will leave package and the rest in some pbuilder dir, eg. /var/cache/pbuilder/result +It is highly recommended that --buildresult option is used. + +The script requires sudo. diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index 3847024..c3140e7 100755 --- a/debian/build-git-snapshot +++ b/debian/build-git-snapshot @@ -1,64 +1,143 @@ -#!/bin/sh +#!/usr/bin/perl + +# Copyright 2010 Catalyst IT Ltd. +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. # -# This script will build a .deb from a git snapshot of koha. -# Don't use it for building actual versions for uploading to Debian. +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# To use: -# - commit any changes into git -# - run this script +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# Written by Robin Sheat +# Based on an sh version by Lars Wirzenius. + +use strict; +use warnings; + +use Getopt::Long; +use POSIX qw/strftime/; + +my $buildresult; +my $distribution='squeeze-dev'; +my $git_checks='all'; +my $version='3.3-1~git'; +my $auto_version=1; +my $need_help; +my $debug; + +GetOptions( + 'buildresult|r=s' => \$buildresult, + 'distribution|D=s' => \$distribution, + 'git-checks|g=s' => \$git_checks, + 'version|v=s' => \$version, + 'autoversion!' => \$auto_version, + 'help|h' => \$need_help, + 'debug|d' => \$debug, +); + +help_and_exit() if $need_help; + -set -e +sub sys_command_output { + my ($command) = @_; -die() -{ - echo "$@" - exit 1 + print "$command\n" if $debug; + open COMMAND, "$command |" + or die qq{Cannot execute "$command": $!"}; + return map { chomp; $_ } ; } -everything_is_commited() -{ - if git status --short | grep -q '^' - then - return 1 - else - return 0 - fi +sub everything_is_committed { + my $filter; + for ($git_checks) { + $_ eq "none" + and return 1; + + $_ eq "modified" + and $filter = "no", + last; + + $_ eq "all" + and $filter = "normal", + last; + + help_and_exit("$0: --git-checks/-g must be one of 'all', 'modified', or 'none'"); + } + my $has_changes = grep /^xxx/, sys_command_output("git status --porcelain -u${filter}"); + + return !$has_changes; } -latest_sha1() { - git rev-parse --short=8 HEAD +sub help_and_exit { + my $msg = shift; + if ($msg) { + print "$msg\n\n"; + } + print < "../koha_$1.tar.gz" - pdebuild $2 +sub build_package { + my ($newversion) = @_; + sys_command_output( qq{git archive --format=tar --prefix="koha-$newversion/" HEAD | gzip -9 > "../koha_$newversion.tar.gz"} ); + + my $pdebuildopts = $buildresult ? "--buildresult $buildresult" : ""; + sys_command_output( "pdebuild $pdebuildopts" ); } -if ! everything_is_commited -then - die "cannot build: uncommited changes" -fi - -version="$(newversion)" -if [ -n "$1" ] -then - pdebuildopts="--buildresult $1" -fi -adjust_debian_changelog "$version" -build_package "$version" "$pdebuildopts" -reset_debian_changelog +everything_is_committed() or die "cannot build: uncommited changes"; + +my $newversion = $auto_version + ? sprintf ('%s%s.%s', $version, strftime("+%Y%m%d%H%M%S", localtime), latest_sha1()) + : $version; + +adjust_debian_changelog( $newversion ); +build_package( $newversion ); +reset_debian_changelog(); + -- 1.7.2.2 From chris at bigballofwax.co.nz Tue Jun 7 09:31:34 2011 From: chris at bigballofwax.co.nz (Chris Cormack) Date: Tue, 7 Jun 2011 19:31:34 +1200 Subject: [Koha-patches] [Signed Off] [PATCH 2/2] Bug 5602: Changes to account for the version update. In-Reply-To: <1307431894-4954-1-git-send-email-chris@bigballofwax.co.nz> References: <1307431894-4954-1-git-send-email-chris@bigballofwax.co.nz> Message-ID: <1307431894-4954-2-git-send-email-chris@bigballofwax.co.nz> From: Robin Sheat This is intended to apply on top of the previous 5602 patch. Signed-off-by: Chris Cormack --- debian/README.build | 10 +++++----- debian/build-git-snapshot | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/debian/README.build b/debian/README.build index 32a0f5d..9d33726 100644 --- a/debian/README.build +++ b/debian/README.build @@ -1,4 +1,5 @@ -In order to build .deb packages, following debian packages need to be present (installed): +In order to build .deb packages, following debian packages need to be present +(installed): devscripts pbuilder dh-make @@ -7,7 +8,6 @@ fakeroot As root (or sudo) execute: pbuilder create -Executing build-git-snapshot without any arguments will leave package and the rest in some pbuilder dir, eg. /var/cache/pbuilder/result -It is highly recommended that --buildresult option is used. - -The script requires sudo. +Executing build-git-snapshot without any arguments will leave package and the +rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly +recommended that --buildresult option is used. diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index c3140e7..295b5fa 100755 --- a/debian/build-git-snapshot +++ b/debian/build-git-snapshot @@ -17,7 +17,8 @@ # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# Written by Robin Sheat +# Written by Robin Sheat and +# Srdjan Jankovic # Based on an sh version by Lars Wirzenius. use strict; @@ -29,7 +30,7 @@ use POSIX qw/strftime/; my $buildresult; my $distribution='squeeze-dev'; my $git_checks='all'; -my $version='3.3-1~git'; +my $version='3.5-1~git'; my $auto_version=1; my $need_help; my $debug; @@ -99,7 +100,7 @@ Options: tracked files with untracked changes will cause an error), and 'none' (checking git status is skipped totally.) Default is 'all'. --version, -v - the version string for the resulting package. Default is '3.3-1~git'. + the version string for the resulting package. Default is '3.5-1~git'. --(no)autoversion whether or not to use the date and git commit ID in the version value. Default is to include it. -- 1.7.2.2 From tomascohen at gmail.com Tue Jun 7 16:30:05 2011 From: tomascohen at gmail.com (Tomas Cohen Arazi) Date: Tue, 7 Jun 2011 11:30:05 -0300 Subject: [Koha-patches] [PATCH] Bug 6299 - Provide a list of authorized values for Relator terms Message-ID: <1307457005-6441-1-git-send-email-tomascohen@gmail.com> That's it. I was not sure about fr-FR, please let me know if it is not correct so I fix it. Regards To+ --- .../mysql/de-DE/optional/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../mysql/de-DE/optional/marc21_relatorterms.txt | 1 + .../data/mysql/en/optional/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../data/mysql/en/optional/marc21_relatorterms.txt | 1 + .../mysql/fr-FR/2-Optionel/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../mysql/fr-FR/2-Optionel/marc21_relatorterms.txt | 1 + .../nb-NO/2-Valgfritt/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../nb-NO/2-Valgfritt/marc21_relatorterms.txt | 1 + .../mysql/pl-PL/optional/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../mysql/pl-PL/optional/marc21_relatorterms.txt | 1 + .../mysql/ru-RU/optional/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../mysql/ru-RU/optional/marc21_relatorterms.txt | 1 + .../mysql/uk-UA/optional/marc21_relatorterms.sql | 227 ++++++++++++++++++++ .../mysql/uk-UA/optional/marc21_relatorterms.txt | 1 + 14 files changed, 1596 insertions(+), 0 deletions(-) create mode 100644 installer/data/mysql/de-DE/optional/marc21_relatorterms.sql create mode 100644 installer/data/mysql/de-DE/optional/marc21_relatorterms.txt create mode 100644 installer/data/mysql/en/optional/marc21_relatorterms.sql create mode 100644 installer/data/mysql/en/optional/marc21_relatorterms.txt create mode 100644 installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.sql create mode 100644 installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.txt create mode 100644 installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.sql create mode 100644 installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.txt create mode 100644 installer/data/mysql/pl-PL/optional/marc21_relatorterms.sql create mode 100644 installer/data/mysql/pl-PL/optional/marc21_relatorterms.txt create mode 100644 installer/data/mysql/ru-RU/optional/marc21_relatorterms.sql create mode 100644 installer/data/mysql/ru-RU/optional/marc21_relatorterms.txt create mode 100644 installer/data/mysql/uk-UA/optional/marc21_relatorterms.sql create mode 100644 installer/data/mysql/uk-UA/optional/marc21_relatorterms.txt diff --git a/installer/data/mysql/de-DE/optional/marc21_relatorterms.sql b/installer/data/mysql/de-DE/optional/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/de-DE/optional/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/de-DE/optional/marc21_relatorterms.txt b/installer/data/mysql/de-DE/optional/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/de-DE/optional/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html diff --git a/installer/data/mysql/en/optional/marc21_relatorterms.sql b/installer/data/mysql/en/optional/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/en/optional/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/en/optional/marc21_relatorterms.txt b/installer/data/mysql/en/optional/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/en/optional/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html diff --git a/installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.sql b/installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.txt b/installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/fr-FR/2-Optionel/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html diff --git a/installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.sql b/installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.txt b/installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/nb-NO/2-Valgfritt/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html diff --git a/installer/data/mysql/pl-PL/optional/marc21_relatorterms.sql b/installer/data/mysql/pl-PL/optional/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/pl-PL/optional/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/pl-PL/optional/marc21_relatorterms.txt b/installer/data/mysql/pl-PL/optional/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/pl-PL/optional/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html diff --git a/installer/data/mysql/ru-RU/optional/marc21_relatorterms.sql b/installer/data/mysql/ru-RU/optional/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/ru-RU/optional/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/ru-RU/optional/marc21_relatorterms.txt b/installer/data/mysql/ru-RU/optional/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/ru-RU/optional/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html diff --git a/installer/data/mysql/uk-UA/optional/marc21_relatorterms.sql b/installer/data/mysql/uk-UA/optional/marc21_relatorterms.sql new file mode 100644 index 0000000..c5b5365 --- /dev/null +++ b/installer/data/mysql/uk-UA/optional/marc21_relatorterms.sql @@ -0,0 +1,227 @@ +-- MARC code list for Relators, taken from +-- http://www.loc.gov/marc/relators/relacode.html + +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','acp','Art'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','act','Actor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','adp','Adapter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aft','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anl','Analyst'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','anm','Animator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ann','Annotator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ant','Bibliographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','app','Applicant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aqt','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arc','Architect'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ard','Artistic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','arr','Arranger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','art','Artist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asg','Assignee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','asn','Associated'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','att','Attributed'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','auc','Auctioneer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aud','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aui','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aus','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','aut','Author'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bdd','Binding'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bjd','Bookjacket'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkd','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bkp','Book'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','blw','Blurb'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bnd','Binder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bpd','Bookplate'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','bsl','Bookseller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ccp','Conceptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','chr','Choreographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clb','Collaborator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cli','Client'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cll','Calligrapher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clr','Colorist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','clt','Collotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmm','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmp','Composer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cmt','Compositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cng','Cinematographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cnd','Conductor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cns','Censor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','coe','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','col','Collector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','com','Compiler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','con','Conservator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cos','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cot','Contestant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cov','Cover'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpc','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpe','Complainant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cph','Copyright'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpl','Complainant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cpt','Complainant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cre','Creator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crp','Correspondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','crr','Corrector'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csl','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','csp','Consultant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cst','Costume'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctb','Contributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cte','Contestee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctg','Cartographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctr','Contractor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cts','Contestee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ctt','Contestee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cur','Curator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','cwt','Commentator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfd','Defendant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dfe','Defendant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dft','Defendant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dgg','Degree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dis','Dissertant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dln','Delineator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnc','Dancer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dnr','Donor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpb','Distribution'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpc','Depicted'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dpt','Depositor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drm','Draftsman'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','drt','Director'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dsr','Designer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dst','Distributor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtc','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dte','Dedicatee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dtm','Data'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dto','Dedicator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','dub','Dubious'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','edt','Editor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','egr','Engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elg','Electrician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','elt','Electrotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','eng','Engineer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','etr','Etcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','evp','Event'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','exp','Expert'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fac','Facsimilist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fld','Field'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','flm','Film'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fmo','Former'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fpy','First'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','fnd','Funder'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','frg','Forger'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','gis','Geographic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','-grt','Graphic'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hnr','Honoree'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','hst','Host'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ill','Illustrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ilu','Illuminator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ins','Inscriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','inv','Inventor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','itr','Instrumentalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ive','Interviewee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ivr','Interviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lbt','Librettist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ldr','Laboratory'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','led','Lead'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lee','Libelee-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lel','Libelee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','len','Lender'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','let','Libelee-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lgd','Lighting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lie','Libelant-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lil','Libelant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lit','Libelant-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lsa','Landscape'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lse','Licensee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lso','Licensor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ltg','Lithographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','lyr','Lyricist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mcp','Music'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfp','Manufacture'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mfr','Manufacturer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mdc','Metadata'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mod','Moderator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mon','Monitor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrb','Marbler'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mrk','Markup'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','msd','Musical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mte','Metal-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','mus','Musician'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','nrt','Narrator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','opn','Opponent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','org','Originator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','orm','Organizer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','oth','Other'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','own','Owner'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pat','Patron'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbd','Publishing'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pbl','Publisher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pdr','Project'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pfr','Proofreader'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pht','Photographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','plt','Platemaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pma','Permitting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pmn','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pop','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppm','Papermaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ppt','Puppeteer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prc','Process'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prd','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prf','Performer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prg','Programmer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prm','Printmaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pro','Producer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prp','Production'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','prt','Printer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pta','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pte','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptf','Plaintiff'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pth','Patent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ptt','Plaintiff-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','pup','Publication'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rbr','Rubricator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rce','Recording'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rcp','Recipient'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','red','Redactor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ren','Renderer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','res','Researcher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rev','Reviewer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rps','Repository'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpt','Reporter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rpy','Responsible'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rse','Respondent-appellee'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsg','Restager'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rsp','Respondent'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rst','Respondent-appellant'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rth','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','rtm','Research'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sad','Scientific'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sce','Scenarist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scl','Sculptor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','scr','Scribe'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sds','Sound'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sec','Secretary'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sgn','Signer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sht','Supporting'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','sng','Singer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spk','Speaker'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spn','Sponsor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','spy','Second'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','srv','Surveyor'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','std','Set'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stl','Storyteller'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stm','Stage'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','stn','Standards'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','str','Stereotyper'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tcd','Technical'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tch','Teacher'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','ths','Thesis'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trc','Transcriber'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','trl','Translator'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyd','Type'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','tyg','Typographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','uvp','University'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','vdg','Videographer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','voc','Vocalist'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wam','Writer'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wdc','Woodcutter'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wde','Wood-engraver'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('MARCRELATOR','wit','Witness'); + diff --git a/installer/data/mysql/uk-UA/optional/marc21_relatorterms.txt b/installer/data/mysql/uk-UA/optional/marc21_relatorterms.txt new file mode 100644 index 0000000..ef8264b --- /dev/null +++ b/installer/data/mysql/uk-UA/optional/marc21_relatorterms.txt @@ -0,0 +1 @@ +MARC Code List for Relators, as of http://www.loc.gov/marc/relators/relaterm.html -- 1.7.4.1 From lrea at nekls.org Tue Jun 7 18:48:08 2011 From: lrea at nekls.org (Liz Rea) Date: Tue, 7 Jun 2011 11:48:08 -0500 Subject: [Koha-patches] [PATCH] Bug 6478 -- add purge_suggestions.pl to the crontab.example Message-ID: <1307465288-28391-1-git-send-email-lrea@nekls.org> To test: Verify that there is a listed job for purge_suggestions.pl in the crontab.example --- misc/cronjobs/crontab.example | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index b43d377..47bb064 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -76,3 +76,6 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use! 16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10 + +# delete old purchase suggestions weekly. + at weekly $KOHA_CRON_PATH/purge_suggestions.pl > /dev/null 2>&1 -- 1.7.2.5 From januszop at gmail.com Tue Jun 7 21:32:17 2011 From: januszop at gmail.com (Janusz Kaczmarek) Date: Tue, 7 Jun 2011 22:32:17 +0300 Subject: [Koha-patches] [PATCH] Bug 6480 - Koha produces a lot of apache logs for UNIMARC Message-ID: <1307475137-29838-1-git-send-email-januszop@gmail.com> For Koha with UNIMARC a lot of entries in apache log lines are produced. In the patch, corrections to the GetCOinSBiblio function has been introduces, in the UNIMARC section: (i.e. || '' at the end of lines that can create this problem) -- analogous as it is in the MARC21 section. --- C4/Biblio.pm | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 3c8936b..3d1cf3e 100755 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1175,8 +1175,8 @@ sub GetCOinSBiblio { if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) { # Setting datas - $aulast = $record->subfield( '700', 'a' ); - $aufirst = $record->subfield( '700', 'b' ); + $aulast = $record->subfield( '700', 'a' ) || ''; + $aufirst = $record->subfield( '700', 'b' ) || ''; $oauthors = "&rft.au=$aufirst $aulast"; # others authors @@ -1189,10 +1189,10 @@ sub GetCOinSBiblio { ( $mtx eq 'dc' ) ? "&rft.title=" . $record->subfield( '200', 'a' ) : "&rft.title=" . $record->subfield( '200', 'a' ) . "&rft.btitle=" . $record->subfield( '200', 'a' ); - $pubyear = $record->subfield( '210', 'd' ); - $publisher = $record->subfield( '210', 'c' ); - $isbn = $record->subfield( '010', 'a' ); - $issn = $record->subfield( '011', 'a' ); + $pubyear = $record->subfield( '210', 'd' ) || ''; + $publisher = $record->subfield( '210', 'c' ) || ''; + $isbn = $record->subfield( '010', 'a' ) || ''; + $issn = $record->subfield( '011', 'a' ) || ''; } else { # MARC21 need some improve -- 1.7.2.5 From chrisc at catalyst.net.nz Wed Jun 8 03:50:39 2011 From: chrisc at catalyst.net.nz (Chris Cormack) Date: Wed, 8 Jun 2011 13:50:39 +1200 Subject: [Koha-patches] [Signed Off] [PATCH] Bug 6478 -- add purge_suggestions.pl to the crontab.example Message-ID: <1307497839-28028-1-git-send-email-chrisc@catalyst.net.nz> From: Liz Rea To test: Verify that there is a listed job for purge_suggestions.pl in the crontab.example Signed-off-by: Chris Cormack --- misc/cronjobs/crontab.example | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index b43d377..47bb064 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -76,3 +76,6 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use! 16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10 + +# delete old purchase suggestions weekly. + at weekly $KOHA_CRON_PATH/purge_suggestions.pl > /dev/null 2>&1 -- 1.7.4.1 From robin at catalyst.net.nz Wed Jun 8 06:13:02 2011 From: robin at catalyst.net.nz (Robin Sheat) Date: Wed, 8 Jun 2011 16:13:02 +1200 Subject: [Koha-patches] [PATCH] Bug 6482 - allow the mysql details to be changed during koha-create Message-ID: <1307506382-20023-1-git-send-email-robin@catalyst.net.nz> This allows the database details (username and database name in particular) to be modified in between a koha-create --request-db and --populate-db. Most useful when you discover that the username is too long or something. Now, when populating the database, the connection information is reloaded from the koha-conf.xml rather than being generated from the instance name. --- debian/scripts/koha-create | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index e3c73fc..80c9cac 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -54,10 +54,16 @@ getmysqlhost() { } getinstancemysqlpassword() { - sed -n '//s:.*>\(.*\).*:\1:p' \ - "/etc/koha/sites/$1/koha-conf.xml" + xmlstarlet sel -t -v 'yazgfs/config/pass' "/etc/koha/sites/$1/koha-conf.xml" } +getinstancemysqluser() { + xmlstarlet sel -t -v 'yazgfs/config/user' "/etc/koha/sites/$1/koha-conf.xml" +} + +getinstancemysqldatabase() { + xmlstarlet sel -t -v 'yazgfs/config/database' "/etc/koha/sites/$1/koha-conf.xml" +} # Set defaults and read config file, if it exists. DOMAIN="" @@ -124,7 +130,7 @@ then koha-create-dirs "$name" # Generate Zebra database password. - zebrapwd="$(pwgen -1)" + zebrapwd="$(pwgen -s 12 1)" # Set up MySQL database for this instance. if [ "$op" = create ] then @@ -134,7 +140,7 @@ CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd'; GRANT ALL PRIVILEGES ON \`$mysqldb\`.* TO \`$mysqluser\`; FLUSH PRIVILEGES; eof - fi + fi #` # Generate and install Apache site-available file and log dir. generate_config_file apache-site.conf.in \ @@ -183,6 +189,11 @@ fi if [ "$op" = create ] || [ "$op" = populate ] then + # Re-fetch the passwords from the config we've generated, allows it + # to be different from what we set, in case the user had to change + # something. + mysqluser=$(getinstancemysqluser $name) + mysqldb=$(getinstancemysqldatabase $name) # Use the default database content if that exists. if [ -e "$DEFAULTSQL" ] then @@ -205,7 +216,7 @@ UPDATE borrowers SET password = '$staffdigest' WHERE borrowernumber = 3; eof - + #` echo "staff user password is '$staffpass' but keep that secret" # Upgrade the database schema, just in case the dump was from an -- 1.7.4.1 From colin.campbell at ptfs-europe.com Wed Jun 8 10:06:36 2011 From: colin.campbell at ptfs-europe.com (Colin Campbell) Date: Wed, 8 Jun 2011 09:06:36 +0100 Subject: [Koha-patches] [Signed Off] Bug 6305: Subscriptions can not be edited Message-ID: <1307520396-2981-1-git-send-email-colin.campbell@ptfs-europe.com> From: Katrin Fischer This seems to fix the problem with editing existing subscriptions. Please test. Signed-off-by: Colin Campbell --- .../prog/en/includes/serials-toolbar.inc | 4 +- .../prog/en/modules/serials/subscription-add.tt | 28 ++++++++++---------- serials/subscription-add.pl | 12 ++++---- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc index a330601..3e22038 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc @@ -18,7 +18,7 @@ [% IF ( subscriptionid ) %] var editmenu = [ [% IF ( CAN_user_serials_edit_subscription ) %] - { text: _("Edit Subscription"), [% IF ( cannotedit ) %]disabled: true, [% END %] url: "/cgi-bin/koha/serials/subscription-add.pl?op=mod&subscriptionid=[% subscriptionid %]" }, + { text: _("Edit Subscription"), [% IF ( cannotedit ) %]disabled: true, [% END %] url: "/cgi-bin/koha/serials/subscription-add.pl?op=modify&subscriptionid=[% subscriptionid %]" }, [% END %] [% IF ( CAN_user_serials_create_subscription ) %] { text: _("Edit as New (Duplicate)"), [% IF ( cannotedit ) %]disabled: true, [% END %] url: "/cgi-bin/koha/serials/subscription-add.pl?op=dup&subscriptionid=[% subscriptionid %]" }, @@ -69,7 +69,7 @@ onclick: {fn:function(){popup([% subscriptionid %])}} [% IF ( CAN_user_serials_edit_subscription || CAN_user_serials_create_subscription || CAN_user_serials_delete_subscription ) %] [% UNLESS ( cannotedit ) %] -
  • Edit
  • +
  • Edit
  • [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt index b20ced4..d5d1615 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt @@ -1,5 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] -Koha › Serials › [% IF ( modname ) %][% bibliotitle |html %] › Modify subscription[% ELSE %]New subscription[% END %] +Koha › Serials › [% IF ( modify ) %][% bibliotitle |html %] › Modify subscription[% ELSE %]New subscription[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] @@ -931,7 +931,7 @@ $(document).ready(function() { } ); // $(".widelabel").attr("width", "300px"); // labels stay skinny in IE7 anyway. -[% IF ( modname ) %] +[% IF ( modify ) %] set_num_pattern_from_template_vars(); [% IF ( hemisphere ) %] is_hemisphere = [% hemisphere %] ; @@ -952,15 +952,15 @@ $(document).ready(function() { [% INCLUDE 'header.inc' %] [% INCLUDE 'serials-search.inc' %] - +
    -

    [% IF ( modname ) %] Modify subscription for [% bibliotitle |html %][% ELSE %]Add a new subscription[% END %]

    +

    [% IF ( modify ) %] Modify subscription for [% bibliotitle |html %][% ELSE %]Add a new subscription[% END %]

    -[% IF ( modname ) %] +[% IF ( modify ) %] [% ELSE %] @@ -988,7 +988,7 @@ $(document).ready(function() { () Required
    Search for Biblio [% IF ( CAN_user_editcatalogue ) %] - [% IF ( modname ) %] + [% IF ( modify ) %] | Edit biblio [% ELSE %] | Create Biblio @@ -1107,10 +1107,10 @@ $(document).ready(function() {
    1. - [% UNLESS ( modname ) %]Show Calendar[% END %] - + [% UNLESS ( modify ) %]Show Calendar[% END %] +
    2. - [% IF ( modname ) %]
    3. + [% IF ( modify ) %]
    4. Show Calendar
    5. [% END %] @@ -1118,9 +1118,9 @@ $(document).ready(function() {
    6. + + + + + + +
    + +
    +
    + +
    +
    +
    +

    Welcome to Scooter

    +

    +

    +

    Please choose a library Below

    +

    +

    +

    +

    +
    + + +
    +
    + +
    +
    + + + -- 1.7.4.1 From peter at oslo.ie Fri Jun 10 14:54:26 2011 From: peter at oslo.ie (Peter Lorimer) Date: Fri, 10 Jun 2011 13:54:26 +0100 Subject: [Koha-patches] [PATCH 4/4] Bug 5806: This is my initial baseline commit. mod is driven by a system pref called searchMyLibraryOnly. If it is on then all data not in the logged in users home branch should be filtered (hidden). This system was designed with schools in mind so that several schools can share one library, effectively becoming one branch of the library. Not quite a consortium but inspired by the basic idea of a consortium. In-Reply-To: <1307710466-14605-1-git-send-email-peter@oslo.ie> References: <1307710466-14605-1-git-send-email-peter@oslo.ie> Message-ID: <1307710466-14605-4-git-send-email-peter@oslo.ie> --- catalogue/search.pl | 36 +------------------ circ/overdue.pl | 9 +++++ koha-tmpl/index.html | 6 --- .../prog/en/modules/catalogue/results.tt | 12 ++++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 3 ++ mainpage.pl | 6 +++ opac/opac-main.pl | 35 ++++++++++++++++++- opac/opac-search.pl | 19 ++++++++++ opac/opac-user.pl | 14 ++++++++ 9 files changed, 93 insertions(+), 47 deletions(-) delete mode 100644 koha-tmpl/index.html mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tt mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl diff --git a/catalogue/search.pl b/catalogue/search.pl index 8c35011..e1e9a98 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -150,7 +150,6 @@ use C4::Members qw(GetMember); use C4::VirtualShelves qw(GetRecentShelves); use POSIX qw(ceil floor); use C4::Branch; # GetBranches -use Data::Dumper::Simple; my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); # create a new CGI object @@ -248,7 +247,7 @@ my @itemtypesloop; my $selected=1; my $cnt; my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes"); -my @newresults1; + if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row =( number=>$cnt++, ccl => qq($itype_or_itemtype,phr), @@ -540,9 +539,6 @@ for (my $i=0;$i<@servers;$i++) { my $page = $cgi->param('page') || 0; my @newresults = searchResults('intranet', $query_desc, $hits, $results_per_page, $offset, $scan, @{$results_hashref->{$server}->{"RECORDS"}}); - - - $total = $total + $results_hashref->{$server}->{"hits"}; ## If there's just one result, redirect to the detail page if ($total == 1) { @@ -579,21 +575,7 @@ for (my $i=0;$i<@servers;$i++) { } $template->param(stopwords_removed => "@$stopwords_removed") if $stopwords_removed; $template->param(results_per_page => $results_per_page); - -my $i; -for $i (0..scalar @newresults) -{ - - if (substr($newresults[$i]->{holdingbranch},0,3) eq C4::Branch->mybranch()) - { - push @newresults1,$newresults[$i]; - #print 'Holding Branch: ' . $newresults1[$i]->{holdingbranch} . '
    Mu Branch:' . C4::Branch->mybranch(). '
    '; - } -} - - # $total = scalar @newresults1; - $template->param(SEARCH_RESULTS => \@newresults1); - #@newresults1 = @newresults; + $template->param(SEARCH_RESULTS => \@newresults); ## FIXME: add a global function for this, it's better than the current global one ## Build the page numbers on the bottom of the page @@ -707,17 +689,3 @@ if (@{$barshelves}) { output_html_with_http_headers $cgi, $cookie, $template->output; - -#print Dumper(@newresults1); - -print scalar @newresults1; -my @nr; -my $i; -for $i (0..scalar @newresults1) -{ - - if (substr($newresults1[$i]->{holdingbranch},0,3) eq C4::Branch->mybranch()) - { - print 'Holding Branch: ' . $newresults1[$i]->{holdingbranch} . '
    Mu Branch:' . C4::Branch->mybranch(). '
    '; - } -} diff --git a/circ/overdue.pl b/circ/overdue.pl index 18851a6..6e6aa4f 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -262,6 +262,12 @@ if ($noreport) { LEFT JOIN biblio ON (biblio.biblionumber=items.biblionumber ) WHERE 1=1 "; # placeholder, since it is possible that none of the additional # conditions will be selected by user + + if (C4::Context->preference("searchMyLibraryOnly")) + { + $strsth.=" AND issues.branchcode = '" . C4::Branch->mybranch() . "' "; + } + $strsth.=" AND date_due < '" . $todaysdate . "' " unless ($showall); $strsth.=" AND (borrowers.firstname like '".$bornamefilter."%' or borrowers.surname like '".$bornamefilter."%' or borrowers.cardnumber like '".$bornamefilter."%')" if($bornamefilter) ; $strsth.=" AND borrowers.categorycode = '" . $borcatfilter . "' " if $borcatfilter; @@ -301,6 +307,7 @@ if ($noreport) { push @patron_attr_value_loop, { value => join(', ', sort { lc $a cmp lc $b } @displayvalues) }; } + push @overduedata, { duedate => format_date($data->{date_due}), borrowernumber => $data->{borrowernumber}, @@ -404,3 +411,5 @@ sub build_csv { return join("\n", @lines) . "\n"; } + + diff --git a/koha-tmpl/index.html b/koha-tmpl/index.html deleted file mode 100644 index 5194d5b..0000000 --- a/koha-tmpl/index.html +++ /dev/null @@ -1,6 +0,0 @@ - - -Intranet -OPAC - - \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 95a1c9a..11f2cf4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -505,20 +505,22 @@ YAHOO.util.Event.onContentReady("searchheader", function () { [% IF ( SEARCH_RESULT.availablecount ) %] [% SEARCH_RESULT.availablecount %] available: -
      + [% END %] [% IF ( SEARCH_RESULT.onloancount ) %] [% SEARCH_RESULT.onloancount %] on loan: -
        + [% END %] [% IF ( SEARCH_RESULT.othercount ) %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tt old mode 100644 new mode 100755 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt old mode 100644 new mode 100755 index 58c6fa5..26c8670 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -67,6 +67,9 @@ $.tablesorter.addParser({ }); //]]> +[% IF (redirect) %] + +[% END %]
        diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl old mode 100644 new mode 100755 diff --git a/mainpage.pl b/mainpage.pl index 6a0c1af..dfeb6fc 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -24,6 +24,9 @@ use C4::Auth; use C4::AuthoritiesMarc; use C4::Koha; use C4::NewsChannels; +use Data::Dumper::Simple; + + my $query = new CGI; my $authtypes = getauthtypes; my @authtypesloop; @@ -65,3 +68,6 @@ $template->param( ); output_html_with_http_headers $query, $cookie, $template->output; + + + diff --git a/opac/opac-main.pl b/opac/opac-main.pl index 177d812..aeba92b 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -19,6 +19,7 @@ use strict; use warnings; use CGI; +use CGI::Session; use C4::Auth; # get_template_and_user use C4::Output; use C4::VirtualShelves; @@ -27,9 +28,13 @@ use C4::Members; # GetMember use C4::NewsChannels; # get_opac_news use C4::Acquisition; # GetRecentAcqui use C4::Languages qw(getTranslatedLanguages accept_language); +use Data::Dumper::Simple; + + +my $input = new CGI; +my $dbh = C4::Context->dbh; +my $branch; # = C4::Context->userenv->{branch}; -my $input = new CGI; -my $dbh = C4::Context->dbh; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { @@ -47,6 +52,8 @@ $template->param( ); + + my $borrower = GetMember( borrowernumber=>$borrowernumber ); $template->param( textmessaging => $borrower->{textmessaging}, @@ -95,4 +102,28 @@ if (C4::Context->preference('GoogleIndicTransliteration')) { $template->param('GoogleIndicTransliteration' => 1); } + +if (defined $input->param("library")) +{ + C4::Context->userenv->{branch} = $input->param("library"); + $template->param(branch=>C4::Context->userenv->{branch}); + my $session = C4::Auth::get_session(""); + C4::Context->set_userenv($session->param('branch',$input->param("library"))); + +} + +my $xx; +if ($template->{VARS}{loggedinusername} eq '') +{ + + print $input->redirect("/index.htm"); +} + + output_html_with_http_headers $input, $cookie, $template->output; + + + + + + diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 68018b6..df7fd0e 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -39,6 +39,7 @@ use C4::Branch; # GetBranches use POSIX qw(ceil floor strftime); use URI::Escape; use Storable qw(thaw freeze); +use Data::Dumper::Simple; my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); @@ -46,6 +47,7 @@ my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); # FIXME: no_undef_params needs to be tested use CGI qw('-no_undef_params'); my $cgi = new CGI; +my @newresults1; BEGIN { if (C4::Context->preference('BakerTaylorEnabled')) { @@ -462,6 +464,7 @@ for (my $i=0;$i<@servers;$i++) { @newresults = searchResults('opac', $query_desc, $hits, $results_per_page, $offset, $scan, @{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems')); } + @newresults1 = @newresults; my $tag_quantity; if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnList')) { @@ -674,3 +677,19 @@ if (C4::Context->preference('GoogleIndicTransliteration')) { } output_with_http_headers $cgi, $cookie, $template->output, $content_type; + +#print Dumper(@newresults1); + +foreach (@newresults1) { + my $bibnum = $_->{biblionumber} or next; + $_->{itemsissued} = CountItemsIssued( $bibnum ); + $_ ->{'TagLoop'} = get_tags({biblionumber=>$bibnum, approved=>1, 'sort'=>'-weight', + }); + + } + + print C4::Branch->mybranch(); + #print Dumper($template); + + + #print Dumper($template); \ No newline at end of file diff --git a/opac/opac-user.pl b/opac/opac-user.pl index a2f7d9b..5a5355f 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -35,6 +35,7 @@ use C4::Items; use C4::Dates qw/format_date/; use C4::Letters; use C4::Branch; # GetBranches +use Data::Dumper::Simple; use constant ATTRIBUTE_SHOW_BARCODE => 'SHOW_BCODE'; @@ -64,6 +65,8 @@ my $patronupdate = $query->param('patronupdate'); # get borrower information .... my ( $borr ) = GetMemberDetails( $borrowernumber ); + + for (qw(dateenrolled dateexpiry dateofbirth)) { ($borr->{$_}) and $borr->{$_} = format_date($borr->{$_}); } @@ -323,5 +326,16 @@ $template->param( dateformat => C4::Context->preference("dateformat"), ); + + + +if ($borr->{userid} eq $borr->{branchcode}) +{ + $template->param(redirect=>1); + #print $query->redirect('/cgi-bin/koha/opac-main.pl'); +} + + output_html_with_http_headers $query, $cookie, $template->output; + -- 1.7.4.1 From oleonard at myacpl.org Fri Jun 10 21:31:18 2011 From: oleonard at myacpl.org (Owen Leonard) Date: Fri, 10 Jun 2011 15:31:18 -0400 Subject: [Koha-patches] [PATCH] Follow-up fix for Bug 5714 Unescaped ampersands in OPAC facets Message-ID: <1307734278-15085-1-git-send-email-oleonard@myacpl.org> Removing unnecessary query_cgi output --- .../opac-tmpl/prog/en/includes/opac-facets.inc | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc index 2129026..3507880 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc @@ -2,7 +2,6 @@ [% IF ( facets_loop ) %]

        Refine your search

        -[% query_cgi %]
        • Availability [% IF ( related ) %]
        • (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %])
        • [% END %] -- 1.7.3 From peter at oslo.ie Fri Jun 10 14:16:47 2011 From: peter at oslo.ie (Peter Lorimer) Date: Fri, 10 Jun 2011 13:16:47 +0100 Subject: [Koha-patches] [PATCH 1/4] Initial SetUP Test In-Reply-To: References: Message-ID: <1307708207-14206-1-git-send-email-peter@oslo.ie> --- members/moremember.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/members/moremember.pl b/members/moremember.pl index b766f2f..2d79dda 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -31,7 +31,7 @@ needs html removed and to use the C4::Output more, but its tricky =cut - + use strict; #use warnings; FIXME - Bug 2505 use CGI; -- 1.7.4.1 From nengard at bywatersolutions.com Sat Jun 11 17:58:00 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Sat, 11 Jun 2011 11:58:00 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6497: MARC URLs not showing up in OPAC detail page with XSLT off Message-ID: <1307807880-5569-1-git-send-email-nengard@bywatersolutions.com> From: Ian Walls Renames T:T variable to match what's exported from opac-detail.pl. Signed-off-by: Ian Walls Signed-off-by: Nicole C. Engard --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index ff4b52c..534aeee 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -182,9 +182,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% END %] [% END %] - [% IF ( MARCurlS ) %] + [% IF ( MARCURLS ) %]
          Online Resources: -
            [% FOREACH MARCurl IN MARCurlS %] +
              [% FOREACH MARCurl IN MARCURLS %]
            • [% IF ( MARCurl.part ) %][% MARCurl.part %]
              [% END %] -- 1.7.2.3 From robin at catalyst.net.nz Tue Jun 14 09:44:03 2011 From: robin at catalyst.net.nz (Robin Sheat) Date: Tue, 14 Jun 2011 19:44:03 +1200 Subject: [Koha-patches] [PATCH] Bug 6296: allow users to be authenticated by SSL client certs Message-ID: <1308037443-16412-1-git-send-email-robin@catalyst.net.nz> This adds a new syspref: AllowPKIAuth. It can have one of three states: * None * Common Name * emailAddress If a) this is set to something that's not "None", and b) the webserver is passing SSL client cert details on to Koha, then the relevant field in the user's certificate will be matched up against the field in the database and they will be automatically logged in. This is used as a secure form of single sign-on in some organisations. The "Common Name" field is matched up against the userid, while "emailAddress" is matched against the primary email. This is an example of what might go in the Apache configuration for the virtual host: SSLVerifyClient require SSLVerifyDepth 2 SSLCACertificateFile /etc/apache2/ssl/test/ca.crt SSLOptions +StdEnvVars The last line ensures that the required details are passed to Koha. --- C4/Auth.pm | 320 +++++++++++--------- C4/Members.pm | 29 ++ acqui/finishreceive.pl | 4 +- catalogue/updateitem.pl | 4 +- installer/data/mysql/de-DE/mandatory/sysprefs.sql | 3 +- installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../1-Obligatoire/unimarc_standard_systemprefs.sql | 3 +- installer/data/mysql/it-IT/necessari/sysprefs.sql | 1 + installer/data/mysql/pl-PL/mandatory/sysprefs.sql | 3 +- ...m_preferences_full_optimal_for_install_only.sql | 3 +- ...m_preferences_full_optimal_for_install_only.sql | 1 + installer/data/mysql/updatedatabase.pl | 9 + .../prog/en/modules/admin/preferences/admin.pref | 11 +- members/setstatus.pl | 2 +- reserve/placerequest.pl | 2 +- serials/reorder_members.pl | 3 +- serials/subscription-detail.pl | 3 +- 17 files changed, 245 insertions(+), 157 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index b416449..a0212c9 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -147,6 +147,19 @@ sub get_template_and_user { my $borrowernumber; my $insecure = C4::Context->preference('insecure'); if ($user or $insecure) { + # It's possible for $user to be the borrowernumber if they don't have a + # userid defined (and are logging in through some other method, such + # as SSL certs against an email address) + $borrowernumber = getborrowernumber($user) if defined($user); + if (!defined($borrowernumber) && defined($user)) { + my $borrower = GetMember(borrowernumber => $user); + if ($borrower) { + $borrowernumber = $user; + # A bit of a hack, but I don't know there's a nicer way + # to do it. + $user = $borrower->{firstname} . ' ' . $borrower->{surname}; + } + } # load the template variables for stylesheets and JavaScript $template->param( css_libs => $in->{'css_libs'} ); @@ -177,8 +190,6 @@ sub get_template_and_user { $template->param( bartotal => $total->{'bartotal'}, ) if ($total->{'bartotal'} > scalar @{$barshelves}); } - $borrowernumber = getborrowernumber($user) if defined($user); - my ( $borr ) = GetMemberDetails( $borrowernumber ); my @bordat; $bordat[0] = $borr; @@ -722,154 +733,177 @@ sub checkauth { } unless ($userid || $sessionID) { #we initiate a session prior to checking for a username to allow for anonymous sessions... - my $session = get_session("") or die "Auth ERROR: Cannot get_session()"; + my $session = get_session("") or die "Auth ERROR: Cannot get_session()"; my $sessionID = $session->id; - C4::Context->_new_userenv($sessionID); + C4::Context->_new_userenv($sessionID); $cookie = $query->cookie(CGISESSID => $sessionID); - $userid = $query->param('userid'); - if ($cas || $userid) { - my $password = $query->param('password'); - my ($return, $cardnumber); - if ($cas && $query->param('ticket')) { - my $retuserid; - ( $return, $cardnumber, $retuserid ) = checkpw( $dbh, $userid, $password, $query ); - $userid = $retuserid; - $info{'invalidCasLogin'} = 1 unless ($return); - } else { - my $retuserid; - ( $return, $retuserid ) = checkpw( $dbh, $userid, $password, $query ); - $userid = $retuserid if ($retuserid ne ''); - } - if ($return) { - _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime)); - if ( $flags = haspermission( $userid, $flagsrequired ) ) { - $loggedin = 1; - } - else { - $info{'nopermission'} = 1; - C4::Context->_unset_userenv($sessionID); - } + $userid = $query->param('userid'); + if ($cas || $userid || + (my $pki_field = C4::Context->preference('AllowPKIAuth')) ne 'None') { + my $password = $query->param('password'); + my ($return, $cardnumber); + if ($cas && $query->param('ticket')) { + my $retuserid; + ( $return, $cardnumber, $retuserid ) = checkpw( $dbh, $userid, $password, $query ); + $userid = $retuserid; + $info{'invalidCasLogin'} = 1 unless ($return); + } elsif (($pki_field eq 'Common Name' && $ENV{'SSL_CLIENT_S_DN_CN'}) || + ($pki_field eq 'emailAddress' && $ENV{'SSL_CLIENT_S_DN_Email'})) { + my $value; + if ($pki_field eq 'Common Name') { + $value = $ENV{'SSL_CLIENT_S_DN_CN'}; + } elsif ($pki_field eq 'emailAddress') { + $value = $ENV{'SSL_CLIENT_S_DN_Email'}; + # If we're looking up the email, there's a chance that the person + # doesn't have a userid. So if there is none, we pass along the + # borrower number, and the bits of code that need to know the user + # ID will have to be smart enough to handle that. + my @users_info = GetBorrowersWithEmail($value); + if (@users_info) { + # First the userid, then the borrowernum + $value = $users_info[0][1] || $users_info[0][0]; + } else { + undef $value; + } + } + # 0 for no user, 1 for normal, 2 for demo user. + $return = $value ? 1 : 0; + $userid = $value; + } else { + my $retuserid; + ( $return, $retuserid ) = checkpw( $dbh, $userid, $password, $query ); + $userid = $retuserid if ($retuserid ne ''); + } + if ($return) { + _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime)); + if ( $flags = haspermission( $userid, $flagsrequired ) ) { + $loggedin = 1; + } + else { + $info{'nopermission'} = 1; + C4::Context->_unset_userenv($sessionID); + } - my ($borrowernumber, $firstname, $surname, $userflags, - $branchcode, $branchname, $branchprinter, $emailaddress); - - if ( $return == 1 ) { - my $select = " - SELECT borrowernumber, firstname, surname, flags, borrowers.branchcode, - branches.branchname as branchname, - branches.branchprinter as branchprinter, - email - FROM borrowers - LEFT JOIN branches on borrowers.branchcode=branches.branchcode - "; - my $sth = $dbh->prepare("$select where userid=?"); - $sth->execute($userid); - unless ($sth->rows) { - $debug and print STDERR "AUTH_1: no rows for userid='$userid'\n"; - $sth = $dbh->prepare("$select where cardnumber=?"); - $sth->execute($cardnumber); - - unless ($sth->rows) { - $debug and print STDERR "AUTH_2a: no rows for cardnumber='$cardnumber'\n"; - $sth->execute($userid); - unless ($sth->rows) { - $debug and print STDERR "AUTH_2b: no rows for userid='$userid' AS cardnumber\n"; - } - } - } - if ($sth->rows) { - ($borrowernumber, $firstname, $surname, $userflags, - $branchcode, $branchname, $branchprinter, $emailaddress) = $sth->fetchrow; - $debug and print STDERR "AUTH_3 results: " . - "$cardnumber,$borrowernumber,$userid,$firstname,$surname,$userflags,$branchcode,$emailaddress\n"; - } else { - print STDERR "AUTH_3: no results for userid='$userid', cardnumber='$cardnumber'.\n"; - } + my ($borrowernumber, $firstname, $surname, $userflags, + $branchcode, $branchname, $branchprinter, $emailaddress); + + if ( $return == 1 ) { + my $select = " + SELECT borrowernumber, firstname, surname, flags, borrowers.branchcode, + branches.branchname as branchname, + branches.branchprinter as branchprinter, + email + FROM borrowers + LEFT JOIN branches on borrowers.branchcode=branches.branchcode + "; + my $sth = $dbh->prepare("$select where userid=?"); + $sth->execute($userid); + unless ($sth->rows) { + $debug and print STDERR "AUTH_1: no rows for userid='$userid'\n"; + $sth = $dbh->prepare("$select where cardnumber=?"); + $sth->execute($cardnumber); + + unless ($sth->rows) { + $debug and print STDERR "AUTH_2a: no rows for cardnumber='$cardnumber'\n"; + $sth->execute($userid); + unless ($sth->rows) { + $debug and print STDERR "AUTH_2b: no rows for userid='$userid' AS cardnumber\n"; + } + } + } + if ($sth->rows) { + ($borrowernumber, $firstname, $surname, $userflags, + $branchcode, $branchname, $branchprinter, $emailaddress) = $sth->fetchrow; + $debug and print STDERR "AUTH_3 results: " . + "$cardnumber,$borrowernumber,$userid,$firstname,$surname,$userflags,$branchcode,$emailaddress\n"; + } else { + print STDERR "AUTH_3: no results for userid='$userid', cardnumber='$cardnumber'.\n"; + } # launch a sequence to check if we have a ip for the branch, i # if we have one we replace the branchcode of the userenv by the branch bound in the ip. - my $ip = $ENV{'REMOTE_ADDR'}; - # if they specify at login, use that - if ($query->param('branch')) { - $branchcode = $query->param('branch'); - $branchname = GetBranchName($branchcode); - } - my $branches = GetBranches(); - if (C4::Context->boolean_preference('IndependantBranches') && C4::Context->boolean_preference('Autolocation')){ - # we have to check they are coming from the right ip range - my $domain = $branches->{$branchcode}->{'branchip'}; - if ($ip !~ /^$domain/){ - $loggedin=0; - $info{'wrongip'} = 1; - } - } - - my @branchesloop; - foreach my $br ( keys %$branches ) { - # now we work with the treatment of ip - my $domain = $branches->{$br}->{'branchip'}; - if ( $domain && $ip =~ /^$domain/ ) { - $branchcode = $branches->{$br}->{'branchcode'}; - - # new op dev : add the branchprinter and branchname in the cookie - $branchprinter = $branches->{$br}->{'branchprinter'}; - $branchname = $branches->{$br}->{'branchname'}; - } - } - $session->param('number',$borrowernumber); - $session->param('id',$userid); - $session->param('cardnumber',$cardnumber); - $session->param('firstname',$firstname); - $session->param('surname',$surname); - $session->param('branch',$branchcode); - $session->param('branchname',$branchname); - $session->param('flags',$userflags); - $session->param('emailaddress',$emailaddress); - $session->param('ip',$session->remote_addr()); - $session->param('lasttime',time()); - $debug and printf STDERR "AUTH_4: (%s)\t%s %s - %s\n", map {$session->param($_)} qw(cardnumber firstname surname branch) ; - } - elsif ( $return == 2 ) { - #We suppose the user is the superlibrarian - $borrowernumber = 0; - $session->param('number',0); - $session->param('id',C4::Context->config('user')); - $session->param('cardnumber',C4::Context->config('user')); - $session->param('firstname',C4::Context->config('user')); - $session->param('surname',C4::Context->config('user')); - $session->param('branch','NO_LIBRARY_SET'); - $session->param('branchname','NO_LIBRARY_SET'); - $session->param('flags',1); - $session->param('emailaddress', C4::Context->preference('KohaAdminEmailAddress')); - $session->param('ip',$session->remote_addr()); - $session->param('lasttime',time()); - } - C4::Context::set_userenv( - $session->param('number'), $session->param('id'), - $session->param('cardnumber'), $session->param('firstname'), - $session->param('surname'), $session->param('branch'), - $session->param('branchname'), $session->param('flags'), - $session->param('emailaddress'), $session->param('branchprinter') - ); - - # Grab borrower's shelves and public shelves and add them to the session - # $row_count determines how many records are returned from the db query - # and the number of lists to be displayed of each type in the 'Lists' button drop down - my $row_count = 10; # FIXME:This probably should be a syspref - my ($total, $totshelves, $barshelves, $pubshelves); - ($barshelves, $totshelves) = C4::VirtualShelves::GetRecentShelves(1, $row_count, $borrowernumber); - $total->{'bartotal'} = $totshelves; - ($pubshelves, $totshelves) = C4::VirtualShelves::GetRecentShelves(2, $row_count, undef); - $total->{'pubtotal'} = $totshelves; - $session->param('barshelves', $barshelves); - $session->param('pubshelves', $pubshelves); - $session->param('totshelves', $total); - - C4::Context::set_shelves_userenv('bar',$barshelves); - C4::Context::set_shelves_userenv('pub',$pubshelves); - C4::Context::set_shelves_userenv('tot',$total); - } + my $ip = $ENV{'REMOTE_ADDR'}; + # if they specify at login, use that + if ($query->param('branch')) { + $branchcode = $query->param('branch'); + $branchname = GetBranchName($branchcode); + } + my $branches = GetBranches(); + if (C4::Context->boolean_preference('IndependantBranches') && C4::Context->boolean_preference('Autolocation')){ + # we have to check they are coming from the right ip range + my $domain = $branches->{$branchcode}->{'branchip'}; + if ($ip !~ /^$domain/){ + $loggedin=0; + $info{'wrongip'} = 1; + } + } + + my @branchesloop; + foreach my $br ( keys %$branches ) { + # now we work with the treatment of ip + my $domain = $branches->{$br}->{'branchip'}; + if ( $domain && $ip =~ /^$domain/ ) { + $branchcode = $branches->{$br}->{'branchcode'}; + + # new op dev : add the branchprinter and branchname in the cookie + $branchprinter = $branches->{$br}->{'branchprinter'}; + $branchname = $branches->{$br}->{'branchname'}; + } + } + $session->param('number',$borrowernumber); + $session->param('id',$userid); + $session->param('cardnumber',$cardnumber); + $session->param('firstname',$firstname); + $session->param('surname',$surname); + $session->param('branch',$branchcode); + $session->param('branchname',$branchname); + $session->param('flags',$userflags); + $session->param('emailaddress',$emailaddress); + $session->param('ip',$session->remote_addr()); + $session->param('lasttime',time()); + $debug and printf STDERR "AUTH_4: (%s)\t%s %s - %s\n", map {$session->param($_)} qw(cardnumber firstname surname branch) ; + } + elsif ( $return == 2 ) { + #We suppose the user is the superlibrarian + $borrowernumber = 0; + $session->param('number',0); + $session->param('id',C4::Context->config('user')); + $session->param('cardnumber',C4::Context->config('user')); + $session->param('firstname',C4::Context->config('user')); + $session->param('surname',C4::Context->config('user')); + $session->param('branch','NO_LIBRARY_SET'); + $session->param('branchname','NO_LIBRARY_SET'); + $session->param('flags',1); + $session->param('emailaddress', C4::Context->preference('KohaAdminEmailAddress')); + $session->param('ip',$session->remote_addr()); + $session->param('lasttime',time()); + } + C4::Context::set_userenv( + $session->param('number'), $session->param('id'), + $session->param('cardnumber'), $session->param('firstname'), + $session->param('surname'), $session->param('branch'), + $session->param('branchname'), $session->param('flags'), + $session->param('emailaddress'), $session->param('branchprinter') + ); + + # Grab borrower's shelves and public shelves and add them to the session + # $row_count determines how many records are returned from the db query + # and the number of lists to be displayed of each type in the 'Lists' button drop down + my $row_count = 10; # FIXME:This probably should be a syspref + my ($total, $totshelves, $barshelves, $pubshelves); + ($barshelves, $totshelves) = C4::VirtualShelves::GetRecentShelves(1, $row_count, $borrowernumber); + $total->{'bartotal'} = $totshelves; + ($pubshelves, $totshelves) = C4::VirtualShelves::GetRecentShelves(2, $row_count, undef); + $total->{'pubtotal'} = $totshelves; + $session->param('barshelves', $barshelves); + $session->param('pubshelves', $pubshelves); + $session->param('totshelves', $total); + + C4::Context::set_shelves_userenv('bar',$barshelves); + C4::Context::set_shelves_userenv('pub',$pubshelves); + C4::Context::set_shelves_userenv('tot',$total); + } else { if ($userid) { $info{'invalid_username_or_password'} = 1; diff --git a/C4/Members.pm b/C4/Members.pm index e03b40b..c9db1ae 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -91,6 +91,7 @@ BEGIN { &DeleteMessage &GetMessages &GetMessagesCount + GetBorrowersWithEmail ); #Modify data @@ -2257,6 +2258,34 @@ sub DeleteMessage { } +=head2 GetBorrowersWithEmail + + ([$borrnum,$userid], ...) = GetBorrowersWithEmail('me at example.com'); + +This gets a list of users and their basic details from their email address. +As it's possible for multiple user to have the same email address, it provides +you with all of them. If there is no userid for the user, there will be an +C there. An empty list will be returned if there are no matches. + +=cut + +sub GetBorrowersWithEmail { + my $email = shift; + + my $dbh = C4::Context->dbh; + + my $query = "SELECT borrowernumber, userid FROM borrowers WHERE email=?"; + my $sth=$dbh->prepare($query); + $sth->execute($email); + my @result = (); + while (my $ref = $sth->fetch) { + push @result, $ref; + } + die "Failure searching for borrowers by email address: $sth->errstr" if $sth->err; + return @result; +} + + END { } # module clean-up code here (global destructor) 1; diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl index 71b13d6..f8051ba 100755 --- a/acqui/finishreceive.pl +++ b/acqui/finishreceive.pl @@ -34,7 +34,9 @@ use List::MoreUtils qw/any/; my $input=new CGI; my $flagsrequired = {acquisition => 'order_receive'}; -my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired, 'intranet'); + +checkauth($input, 0, $flagsrequired, 'intranet'); + my $user=$input->remote_user; my $biblionumber = $input->param('biblionumber'); my $biblioitemnumber=$input->param('biblioitemnumber'); diff --git a/catalogue/updateitem.pl b/catalogue/updateitem.pl index e8ce20d..50765b7 100755 --- a/catalogue/updateitem.pl +++ b/catalogue/updateitem.pl @@ -31,7 +31,7 @@ use C4::Reserves; my $cgi= new CGI; -my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {circulate => 'circulate_remaining_permissions'}, 'intranet'); +checkauth($cgi, 0, {circulate => 'circulate_remaining_permissions'}, 'intranet'); my $biblionumber=$cgi->param('biblionumber'); my $itemnumber=$cgi->param('itemnumber'); @@ -57,7 +57,7 @@ for ($damaged,$itemlost,$wthdrawn) { # modify MARC item if input differs from items table. my $item_changes = {}; if (defined $itemnotes) { # i.e., itemnotes parameter passed from form - my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet'); + checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet'); if ((not defined $item_data_hashref->{'itemnotes'}) or $itemnotes ne $item_data_hashref->{'itemnotes'}) { $item_changes->{'itemnotes'} = $itemnotes; } diff --git a/installer/data/mysql/de-DE/mandatory/sysprefs.sql b/installer/data/mysql/de-DE/mandatory/sysprefs.sql index c7c885d..7c6d4bd 100755 --- a/installer/data/mysql/de-DE/mandatory/sysprefs.sql +++ b/installer/data/mysql/de-DE/mandatory/sysprefs.sql @@ -311,4 +311,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems' ,'','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index f98b053..2fc0512 100755 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -312,3 +312,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 185c74b..0bf7f86 100755 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -312,4 +312,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/it-IT/necessari/sysprefs.sql b/installer/data/mysql/it-IT/necessari/sysprefs.sql index fca0cfb..002a780 100755 --- a/installer/data/mysql/it-IT/necessari/sysprefs.sql +++ b/installer/data/mysql/it-IT/necessari/sysprefs.sql @@ -299,3 +299,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql index c39e231..df13bcd 100755 --- a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql +++ b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql @@ -310,4 +310,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql index a7c6a10..605dd47 100755 --- a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -365,4 +365,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql index f370766..bfbd48c 100755 --- a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -391,3 +391,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('numSearchRSSResults',50,'Specify the maximum number of results to display on a RSS page of results',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPKIAuth','None','Use the field from a client-side SSL certificate to look a user in the Koha database','None|Common Name|emailAddress','Choice'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3c7d043..8e6fcde 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4354,6 +4354,15 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.04.01.001"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + $dbh->do(qq{ + INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AllowPKIAuth',0,'This allows the user to authenticate via client side certificates',NULL,'YesNo'); + }); + print "Upgrade to $DBversion done (Bug 6296 New System preference AllowPKIAuth)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref index a2ecc5c..85fd549 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref @@ -94,4 +94,13 @@ Administration: - of CAS when logging out of Koha. - - The CAS Authentication Server can be found at - - pref: casServerUrl + - pref: casServerUrl + - + - Use + - pref: AllowPkiAuth + default: None + choices: + None: "no" + Common Name: the Common Name + emailAddress: the emailAddress + - field for SSL client certificate authentication diff --git a/members/setstatus.pl b/members/setstatus.pl index addeeb3..88825b6 100755 --- a/members/setstatus.pl +++ b/members/setstatus.pl @@ -36,7 +36,7 @@ my $input = new CGI; my $flagsrequired; $flagsrequired->{borrowers}=1; -my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired); +checkauth($input, 0, $flagsrequired); my $destination = $input->param("destination") || ''; my $cardnumber = $input->param("cardnumber"); diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl index bc3fc74..d14c0a4 100755 --- a/reserve/placerequest.pl +++ b/reserve/placerequest.pl @@ -35,7 +35,7 @@ use C4::Auth qw/checkauth/; my $input = CGI->new(); -my ($user, $cookie, $sesion_id, $flags) = checkauth($input, 0, { reserveforothers => 'place_holds' }, 'intranet'); +checkauth($input, 0, { reserveforothers => 'place_holds' }, 'intranet'); my @bibitems=$input->param('biblioitem'); # FIXME I think reqbib does not exist anymore, it's used in line 82, to AddReserve of contraint type 'o' diff --git a/serials/reorder_members.pl b/serials/reorder_members.pl index 28175fb..8b64fc7 100755 --- a/serials/reorder_members.pl +++ b/serials/reorder_members.pl @@ -29,8 +29,7 @@ my $subscriptionid = $query->param('subscriptionid'); my $routingid = $query->param('routingid'); my $rank = $query->param('rank'); -my ( $user, $cookie, $sesion_id, $flags ) = - checkauth( $query, 0, { serials => 1 }, 'intranet' ); +checkauth( $query, 0, { serials => 1 }, 'intranet' ); reorder_members( $subscriptionid, $routingid, $rank ); diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 7386820..ebb47ad 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -94,8 +94,7 @@ if ($op eq 'del') { } my $hasRouting = check_routing($subscriptionid); -my ($user, $sessionID, $flags); -($user, $cookie, $sessionID, $flags) +(undef, $cookie, undef, undef) = checkauth($query, 0, {catalogue => 1}, "intranet"); # COMMENT hdl : IMHO, we should think about passing more and more data hash to template->param rather than duplicating code a new coding Guideline ? -- 1.7.4.1 From koha at ricmarques.net Tue Jun 14 19:24:29 2011 From: koha at ricmarques.net (Ricardo Dias Marques) Date: Tue, 14 Jun 2011 18:24:29 +0100 Subject: [Koha-patches] [PATCH] Bug 6503 - Variable $sth is declared 3 times (with keyword "my") in "makepayment" sub of "Accounts.pm" Message-ID: <1308072269-4303-1-git-send-email-koha@ricmarques.net> In the code available today (14-Jun-2011), in Koha git's "master" branch, the file "Accounts.pm" (in the "C4" directory) has the variable "$sth" declared 3 times in the "makepayment" sub. This causes the following warnings to appear when running "make test" in Koha installation, for several tests: t/Heading.t ......................... "my" variable $sth masks earlier declaration in same scope at kohaclone/blib/PERL_MODULE_DIR/C4/Accounts.pm line 172. "my" variable $sth masks earlier declaration in same scope at kohaclone/blib/PERL_MODULE_DIR/C4/Accounts.pm line 188. [...] t/ILSDI_Services.t .................. "my" variable $sth masks earlier declaration in same scope at kohaclone/blib/PERL_MODULE_DIR/C4/Accounts.pm line 172. "my" variable $sth masks earlier declaration in same scope at kohaclone/blib/PERL_MODULE_DIR/C4/Accounts.pm line 188. [...etc...] Therefore, I'm removing the "my" keyword from the declarations of "$sth" in lines 172 and 188 of "Accounts.pm". --- C4/Accounts.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 7bddd1a..3275099 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -169,7 +169,7 @@ sub makepayment { my $data = $sth->fetchrow_hashref; $sth->finish; - my $sth = $dbh->prepare("UPDATE accountlines + $sth = $dbh->prepare("UPDATE accountlines SET amountoutstanding = 0 WHERE borrowernumber = ? AND accountno = ?"); @@ -185,7 +185,7 @@ sub makepayment { # create new line my $payment = 0 - $amount; - my $sth = $dbh->prepare("INSERT INTO accountlines + $sth = $dbh->prepare("INSERT INTO accountlines (borrowernumber, accountno, date, amount, description, accounttype, amountoutstanding) VALUES (?,?,now(),?,?,'Pay',0)"); -- 1.7.2.5 From chrisc at catalyst.net.nz Tue Jun 14 22:50:12 2011 From: chrisc at catalyst.net.nz (Chris Cormack) Date: Wed, 15 Jun 2011 08:50:12 +1200 Subject: [Koha-patches] [PATCH] bug_4002: issues referential integrity Message-ID: <1308084612-17649-1-git-send-email-chrisc@catalyst.net.nz> From: Srdjan Jankovic Signed-off-by: Chris Cormack --- installer/data/mysql/kohastructure.sql | 12 +++++----- installer/data/mysql/updatedatabase.pl | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index e3c6f42..cd0d722 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -936,8 +936,8 @@ CREATE TABLE `import_items` ( DROP TABLE IF EXISTS `issues`; CREATE TABLE `issues` ( - `borrowernumber` int(11) default NULL, - `itemnumber` int(11) default NULL, + `borrowernumber` int(11), + `itemnumber` int(11), `date_due` date default NULL, `branchcode` varchar(10) default NULL, `issuingbranch` varchar(18) default NULL, @@ -947,11 +947,11 @@ CREATE TABLE `issues` ( `renewals` tinyint(4) default NULL, `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `issuedate` date default NULL, + PRIMARY KEY (`itemnumber`), KEY `issuesborridx` (`borrowernumber`), - KEY `issuesitemidx` (`itemnumber`), KEY `bordate` (`borrowernumber`,`timestamp`), - CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE SET NULL, - CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE SET NULL + CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE RESTRICT ON UPDATE CASCADE, + CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE RESTRICT ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- @@ -2098,7 +2098,7 @@ CREATE TABLE `serialitems` ( UNIQUE KEY `serialitemsidx` (`itemnumber`), KEY `serialitems_sfk_1` (`serialid`), CONSTRAINT `serialitems_sfk_1` FOREIGN KEY (`serialid`) REFERENCES `serial` (`serialid`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT serialitems_sfk_2 FOREIGN KEY (itemnumber) REFERENCES items (itemnumber) ON DELETE CASCADE ON UPDATE CASCADE + CONSTRAINT `serialitems_sfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `user_permissions`; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3c7d043..6353383 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4354,6 +4354,39 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.05.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO old_issues (borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate) + SELECT borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate FROM issues WHERE borrowernumber IS NULL"); + $dbh->do("DELETE FROM issues WHERE borrowernumber IS NULL"); + + $dbh->do("INSERT INTO old_issues (borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate) + SELECT borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate FROM issues WHERE itemnumber IS NULL"); + $dbh->do("DELETE FROM issues WHERE itemnumber IS NULL"); + + $dbh->do("INSERT INTO old_issues (borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate) + SELECT borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate FROM issues WHERE NOT EXISTS (SELECT * FROM borrowers WHERE borrowernumber = issues.borrowernumber)"); + $dbh->do("DELETE FROM issues WHERE NOT EXISTS (SELECT * FROM borrowers WHERE borrowernumber = issues.borrowernumber)"); + + $dbh->do("INSERT INTO old_issues (borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate) + SELECT borrowernumber, itemnumber, date_due, branchcode, issuingbranch, returndate, lastreneweddate, `return`, renewals, timestamp, issuedate FROM issues WHERE NOT EXISTS (SELECT * FROM items WHERE itemnumber = issues.itemnumber)"); + $dbh->do("DELETE FROM issues WHERE NOT EXISTS (SELECT * FROM items WHERE itemnumber = issues.itemnumber)"); + + $dbh->do("ALTER TABLE issues ALTER COLUMN borrowernumber DROP DEFAULT"); + $dbh->do("ALTER TABLE issues ALTER COLUMN itemnumber DROP DEFAULT"); + $dbh->do("ALTER TABLE issues MODIFY COLUMN borrowernumber int(11) NOT NULL"); + $dbh->do("ALTER TABLE issues MODIFY COLUMN itemnumber int(11) NOT NULL"); + $dbh->do("ALTER TABLE issues DROP KEY `issuesitemidx`"); + $dbh->do("ALTER TABLE issues ADD PRIMARY KEY (`itemnumber`)"); + $dbh->do("ALTER TABLE issues DROP FOREIGN KEY `issues_ibfk_1`"); + $dbh->do("ALTER TABLE issues DROP FOREIGN KEY `issues_ibfk_2`"); + $dbh->do("ALTER TABLE issues ADD CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE RESTRICT ON UPDATE CASCADE"); + $dbh->do("ALTER TABLE issues ADD CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE RESTRICT ON UPDATE CASCADE"); + + print "Upgrade to $DBversion done (issues referential integrity)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) -- 1.7.4.1 From nengard at bywatersolutions.com Sun Jun 12 09:59:33 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Sun, 12 Jun 2011 03:59:33 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6485 - Checkout slip should be more useful Message-ID: <1307865573-8274-1-git-send-email-nengard@bywatersolutions.com> From: Jesse Weaver This patch makes the following improvements to the checkout slip: * Does not show the branchname if it is the same as the global LibraryName, which is useful for single-library catalogs. * Shows branchaddress* information. This is wrapped in a
              with class .slip-address-info, making it easy to disable with intranetuserjs... * ... which has been added to the checkout slip. Signed-off-by: Nicole C. Engard --- .../prog/en/modules/members/moremember-receipt.tt | 17 +++++++++++++++++ members/moremember.pl | 3 +++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt index 4a85ccb..0ef561c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt @@ -6,10 +6,18 @@ +[% IF ( intranetuserjs ) %] + +[% END %] @@ -17,6 +25,15 @@

              [% LibraryName %]

              [% IF ( branchname ) %][% branchname %]
              [% END %] +
              +[% IF ( branchphone ) %][% branchphone %]
              [% END %] +[% IF ( branchaddress1 ) %][% branchaddress1 %]
              [% END %] +[% IF ( branchaddress2 ) %][% branchaddress2 %]
              [% END %] +[% IF ( branchaddress3 ) %][% branchaddress3 %]
              [% END %] +[% IF ( branchcity ) %][% branchcity %], [% branchstate %] [% branchzip %]
              [% END %] +
              +
              + Checked out to [% firstname %] [% surname %]
              ([% cardnumber %])
              diff --git a/members/moremember.pl b/members/moremember.pl index b766f2f..f8e3dfb 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -428,6 +428,9 @@ $template->param( picture => 1 ) if $picture; my $branch=C4::Context->userenv->{'branch'}; $template->param(%$data); +if (C4::Context->preference('LibraryName') eq $branchdetail->{'branchname'}) { + $template->param(branchname => ''); +} if (C4::Context->preference('ExtendedPatronAttributes')) { $template->param(ExtendedPatronAttributes => 1); -- 1.7.2.3 From pianohacker at gmail.com Wed Jun 15 08:24:08 2011 From: pianohacker at gmail.com (Jesse Weaver) Date: Wed, 15 Jun 2011 00:24:08 -0600 Subject: [Koha-patches] [PATCH] Bug 6485 - Remove debugging cruft from earlier patch Message-ID: <1308119048-31584-1-git-send-email-pianohacker@gmail.com> --- .../prog/en/modules/members/moremember-receipt.tt | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt index 0ef561c..f8c252a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt @@ -6,7 +6,6 @@ + @@ -41,12 +51,15 @@ window.close();
              - +
              + + + [% FOREACH CAT_LOO IN CAT_LOOP %] [% END %] +
                Code Description
              @@ -55,6 +68,7 @@ window.close();
              @@ -72,4 +86,4 @@ window.close();
              -[% INCLUDE 'intranet-bottom.inc' %] +[% INCLUDE 'popup-bottom.inc' %] -- 1.7.2.5 From nengard at bywatersolutions.com Sun Jun 12 23:24:46 2011 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Sun, 12 Jun 2011 17:24:46 -0400 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6512: time missing from item circulation history Message-ID: <1307913886-10786-1-git-send-email-nengard@bywatersolutions.com> From: Ian Walls Re-enables the display of the seentime in circ/bookcount.tt; a DEFAULT was set, but the value was never actually called into the template. This patch also moves the time to the right side of the date, and removes the ??:?? default, because otherwise, it's just silly Signed-off-by: Ian Walls Signed-off-by: Nicole C. Engard --- .../prog/en/modules/circ/bookcount.tt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt index f22e407..43ef0c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt @@ -49,7 +49,7 @@ $(document).ready(function(){
    [% IF ( branchloo.seen ) %] [% branchloo.seen %][% branchloo.seentime %] - [% DEFAULT branchloo.seentime="??:??" %] [% branchloo.seen %] + [% branchloo.seen %] [% branchloo.seentime %] [% ELSE %]Never [% END %]
    - Filter : + Filter:
      -
    1. -
    2. +
    3. diff --git a/serials/member-search.pl b/serials/member-search.pl index f027df5..60b19e3 100755 --- a/serials/member-search.pl +++ b/serials/member-search.pl @@ -28,7 +28,7 @@ use warnings; use CGI; use C4::Auth; # get_template_and_user use C4::Output; -use C4::Members; # BornameSearch +use C4::Members qw/ FindByPartialName /; use C4::Branch; use C4::Category; use File::Basename; @@ -38,19 +38,17 @@ my $theme = $cgi->param('theme') || "default"; my $resultsperpage = $cgi->param('resultsperpage')||C4::Context->preference("PatronsPerPage")||20; my $startfrom = $cgi->param('startfrom')||1; -my $patron = $cgi->Vars; -foreach (keys %$patron){ - delete $$patron{$_} unless($$patron{$_}); -} +my $member=$cgi->param('member'); +my $branchcode = $cgi->param('branchcode'); +my $categorycode = $cgi->param('categorycode'); my @categories=C4::Category->all; -my $branches=(defined $$patron{branchcode}?GetBranchesLoop($$patron{branchcode}):GetBranchesLoop()); -my $subscriptionid = $cgi->param('subscriptionid'); -my $searchstring = $cgi->param('member'); +my @branches=@{ GetBranchesLoop( + $branchcode || undef +) }; -my %categories_dislay; -my ($template, $loggedinuser, $cookie); - ($template, $loggedinuser, $cookie) +my %categories_display; +my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "serials/member-search.tmpl", query => $cgi, type => "intranet", @@ -63,84 +61,69 @@ foreach my $category (@categories){ category_description=>$$category{description}, category_type=>$$category{category_type} }; - $categories_dislay{$$category{categorycode}} = $hash; + $categories_display{$$category{categorycode}} = $hash; } -$template->param( - "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1", - ); if (C4::Context->preference("AddPatronLists")=~/code/){ $categories[0]->{'first'}=1; } -my $member=$cgi->param('member'); -my $orderby=$cgi->param('orderby'); -$orderby = "surname,firstname" unless $orderby; -if (defined $member) { - $member =~ s/,//g; #remove any commas from search string - $member =~ s/\*/%/g; -} -my ($count,$results); +my ($count, at results) = (0); + +my $shouldsearch = $branchcode || $categorycode || $member; if (C4::Context->preference("IndependantBranches")){ if (C4::Context->userenv && C4::Context->userenv->{flags} % 2 !=1 && C4::Context->userenv->{'branch'}){ - $$patron{branchcode}=C4::Context->userenv->{'branch'} unless (C4::Context->userenv->{'branch'} eq "insecure"); + $branchcode = C4::Context->userenv->{'branch'} unless (C4::Context->userenv->{'branch'} eq "insecure"); } } -$$patron{firstname}.="\%" if ($$patron{firstname}); -$$patron{surname}.="\%" if ($$patron{surname}); -my @searchpatron; -push @searchpatron, $member if ($member); -push @searchpatron, $patron if ( keys %$patron ); + my $from = ( $startfrom - 1 ) * $resultsperpage; my $to = $from + $resultsperpage; -if (@searchpatron) { - ($results) = Search( - \@searchpatron, - [ { surname => 0 }, { firstname => 0 } ], - undef, - undef, - [ "firstname", "surname", "email", "othernames", "cardnumber" ], - "start_with" +if ($shouldsearch) { + @results = FindByPartialName( + $member, + categorycode => $categorycode, + branchcode => $branchcode, ); } -if ($results) { - $count = scalar(@$results); +if (@results) { + $count = @results; } my @resultsdata; $to=($count>$to?$to:$count); my $index=$from; -foreach my $borrower(@$results[$from..$to-1]){ +foreach my $borrower (@results[$from..$to-1]){ # find out stats - $borrower->{'dateexpiry'}= C4::Dates->new($borrower->{'dateexpiry'},'iso')->output('syspref'); - if ($categories_dislay{$borrower->{'categorycode'}}){ + if ($categories_display{$borrower->{'categorycode'}}){ my %row = ( - count => $index++, - %$borrower, - %{$categories_dislay{$$borrower{categorycode}}}, - ); - push(@resultsdata, \%row); - } - else { - warn $borrower->{'cardnumber'} ." has a bad category code of " . $borrower->{'categorycode'} ."\n"; + count => $index++, + %$borrower, + %{$categories_display{$$borrower{categorycode}}}, + ); + push(@resultsdata, \%row); + } else { + warn $borrower->{'cardnumber'} ." has a bad category code of " . $borrower->{'categorycode'} ."\n"; } } -if ($$patron{branchcode}){ - foreach my $branch (grep{$_->{value} eq $$patron{branchcode}}@$branches){ +if ($branchcode){ + foreach my $branch (grep {$_->{value} eq $branchcode} @branches){ $$branch{selected}=1; } } -if ($$patron{categorycode}){ - foreach my $category (grep{$_->{categorycode} eq $$patron{categorycode}}@categories){ +if ($categorycode){ + foreach my $category (grep {$_->{categorycode} eq $categorycode} @categories){ $$category{selected}=1; } } -my %parameters= -( %{$patron}, - 'orderby' => $orderby, - 'resultsperpage' => $resultsperpage, - 'type'=> 'intranet'); +my %parameters=( + member => $member, + categorycode => $categorycode, + branchcode => $branchcode, + resultsperpage => $resultsperpage, + type => 'intranet' +); my $base_url = 'member-search.pl?&' . join( @@ -158,18 +141,18 @@ $template->param( to => $to, multipage => ($count != $to+1 || $startfrom!=1), ); + $template->param( - branchloop=>$branches, + branchloop=>\@branches, categoryloop=>\@categories, ); - $template->param( - searching => "1", + searching => $shouldsearch, actionname => basename($0), - %$patron, + %parameters, numresults => $count, resultsloop => \@resultsdata, - ); +); output_html_with_http_headers $cgi, $cookie, $template->output; -- 1.7.4.1 From robin at catalyst.net.nz Mon Jun 20 09:07:37 2011 From: robin at catalyst.net.nz (Robin Sheat) Date: Mon, 20 Jun 2011 19:07:37 +1200 Subject: [Koha-patches] [PATCH] Bug 6513 - ensure the subscription ID gets carried across In-Reply-To: <1308549970-19617-1-git-send-email-robin@catalyst.net.nz> References: <1308549970-19617-1-git-send-email-robin@catalyst.net.nz> Message-ID: <1308553657-20875-1-git-send-email-robin@catalyst.net.nz> --- .../prog/en/modules/serials/member-search.tt | 2 +- serials/member-search.pl | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/member-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/member-search.tt index 67e3614..ddb8445 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/member-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/member-search.tt @@ -63,7 +63,7 @@ function add_member(subscriptionid,borrowernumber){ - + [% END %]
      [% resultsloo.cardnumber %] [% resultsloo.surname %], [% resultsloo.firstname %] [% resultsloo.branchcode %] Add
      Add
      diff --git a/serials/member-search.pl b/serials/member-search.pl index 60b19e3..7f12277 100755 --- a/serials/member-search.pl +++ b/serials/member-search.pl @@ -41,6 +41,7 @@ my $startfrom = $cgi->param('startfrom')||1; my $member=$cgi->param('member'); my $branchcode = $cgi->param('branchcode'); my $categorycode = $cgi->param('categorycode'); +my $subscriptionid = $cgi->param('subscriptionid'); my @categories=C4::Category->all; my @branches=@{ GetBranchesLoop( @@ -122,6 +123,7 @@ my %parameters=( categorycode => $categorycode, branchcode => $branchcode, resultsperpage => $resultsperpage, + subscriptionid => $subscriptionid, type => 'intranet' ); my $base_url = -- 1.7.4.1 From robin at catalyst.net.nz Tue Jun 21 06:42:58 2011 From: robin at catalyst.net.nz (Robin Sheat) Date: Tue, 21 Jun 2011 16:42:58 +1200 Subject: [Koha-patches] [PATCH] Bug 6521 - allow blank cardnumbers to not trigger "already in use" Message-ID: <1308631378-4809-1-git-send-email-robin@catalyst.net.nz> Now a blank cardnumber will get stored as a null in the database, which is a value that allows duplicates. As such, if cardnumbers aren't mandatory, then you can actually save a user with it being blank. --- C4/Members.pm | 3 +++ members/memberentry.pl | 28 +++++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index e03b40b..c6c6985 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -900,6 +900,7 @@ sub fixup_cardnumber ($) { # if ($cardnumber !~ /\S/ && $autonumber_members) { ($autonumber_members) or return $cardnumber; + defined($cardnumber) or return $cardnumber; my $checkdigit = C4::Context->preference('checkdigit'); my $dbh = C4::Context->dbh; if ( $checkdigit and $checkdigit eq 'katipo' ) { @@ -1261,6 +1262,8 @@ sub checkuniquemember { sub checkcardnumber { my ($cardnumber,$borrowernumber) = @_; + # If cardnumber is null, we assume they're allowed. + return 0 if !defined($cardnumber); my $dbh = C4::Context->dbh; my $query = "SELECT * FROM borrowers WHERE cardnumber=?"; $query .= " AND borrowernumber <> ?" if ($borrowernumber); diff --git a/members/memberentry.pl b/members/memberentry.pl index 61c3c2c..be34cc4 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -236,19 +236,22 @@ if ( (defined $newdata{'userid'}) && ($newdata{'userid'} eq '')){ $debug and warn join "\t", map {"$_: $newdata{$_}"} qw(dateofbirth dateenrolled dateexpiry); my $extended_patron_attributes = (); if ($op eq 'save' || $op eq 'insert'){ - if (checkcardnumber($newdata{cardnumber},$newdata{borrowernumber})){ - push @errors, 'ERROR_cardnumber'; - } - my $dateofbirthmandatory = (scalar grep {$_ eq "dateofbirth"} @field_check) ? 1 : 0; - if ($newdata{dateofbirth} && $dateofbirthmandatory) { - my $age = GetAge($newdata{dateofbirth}); - my $borrowercategory=GetBorrowercategory($newdata{'categorycode'}); - my ($low,$high) = ($borrowercategory->{'dateofbirthrequired'}, $borrowercategory->{'upperagelimit'}); - if (($high && ($age > $high)) or ($age < $low)) { - push @errors, 'ERROR_age_limitations'; - $template->param('ERROR_age_limitations' => "$low to $high"); + # If the cardnumber is blank, treat it as null. + $newdata{'cardnumber'} = undef if $newdata{'cardnumber'} =~ /^\s*$/; + + if (checkcardnumber($newdata{cardnumber},$newdata{borrowernumber})){ + push @errors, 'ERROR_cardnumber'; + } + my $dateofbirthmandatory = (scalar grep {$_ eq "dateofbirth"} @field_check) ? 1 : 0; + if ($newdata{dateofbirth} && $dateofbirthmandatory) { + my $age = GetAge($newdata{dateofbirth}); + my $borrowercategory=GetBorrowercategory($newdata{'categorycode'}); + my ($low,$high) = ($borrowercategory->{'dateofbirthrequired'}, $borrowercategory->{'upperagelimit'}); + if (($high && ($age > $high)) or ($age < $low)) { + push @errors, 'ERROR_age_limitations'; + $template->param('ERROR_age_limitations' => "$low to $high"); + } } - } if($newdata{surname} && C4::Context->preference('uppercasesurnames')) { $newdata{'surname'} = uc($newdata{'surname'}); @@ -396,7 +399,6 @@ if ( $op eq "duplicate" ) { $template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1 ) unless $step; } -# my $cardnumber=$data{'cardnumber'}; $data{'cardnumber'}=fixup_cardnumber($data{'cardnumber'}) if $op eq 'add'; if(!defined($data{'sex'})){ $template->param( none => 1); -- 1.7.4.1 From magnus at enger.priv.no Tue Jun 21 09:06:58 2011 From: magnus at enger.priv.no (Magnus Enger) Date: Tue, 21 Jun 2011 09:06:58 +0200 Subject: [Koha-patches] [PATCH] [SIGNED-OFF] Bug 6483 - Paging in opac-detail when coming from a search Message-ID: <1308640018-3332-1-git-send-email-magnus@enger.priv.no> From: Salvador Zaragoza Rubio Add paging in opac-detail when coming from a search to be able to continue viewing the previous and next register from the detail without returning to the results. The partial list pagination can be showed to increase forwarding or rewinding in the pagination. It's implemented for Zebra search and not build_grouped_results. The param busc with all the information from the search is stored on the session when running opac-search and opac-detail, outside these pages the busc param is removed from the session. A list of the biblionumbers inside the OPACnumSearchResults range is passed to avoid repeating the searching everytime we see the previous or next biblio. The searching will be run again when we are going to exceed the list and a new one will be calculated from the new search. Signed-off-by: Magnus Enger --- C4/Auth.pm | 5 + koha-tmpl/opac-tmpl/prog/en/css/opac.css | 165 +++++++++++- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 176 ++++++++++++ koha-tmpl/opac-tmpl/prog/images/ico_b_results.gif | Bin 0 -> 58 bytes opac/opac-detail.pl | 284 +++++++++++++++++++- opac/opac-search.pl | 37 +++ 6 files changed, 665 insertions(+), 2 deletions(-) mode change 100644 => 100755 C4/Auth.pm mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/css/opac.css mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt create mode 100644 koha-tmpl/opac-tmpl/prog/images/ico_b_results.gif diff --git a/C4/Auth.pm b/C4/Auth.pm old mode 100644 new mode 100755 index b416449..0b931df --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -386,6 +386,11 @@ sub get_template_and_user { my $LibraryNameTitle = C4::Context->preference("LibraryName"); $LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi; $LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg; + # clean up the busc param in the session if the page is not opac-detail + if ($in->{'template_name'} =~ /opac-(.+)\.(?:tt|tmpl)$/ && $1 !~ /^(?:MARC|ISBD)?detail$/) { + my $sessionSearch = get_session($sessionID || $in->{'query'}->cookie("CGISESSID")); + $sessionSearch->clear(["busc"]) if ($sessionSearch->param("busc")); + } # variables passed from CGI: opac_css_override and opac_search_limits. my $opac_search_limit = $ENV{'OPAC_SEARCH_LIMIT'}; my $opac_limit_override = $ENV{'OPAC_LIMIT_OVERRIDE'}; diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css old mode 100644 new mode 100755 index aa295c9..6d0bfe9 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1884,7 +1884,7 @@ table#items th { padding : 2px; } #action { - margin-top: 0; + /*margin-top: 0;*/ } #similars h4 { text-align : left; @@ -2014,3 +2014,166 @@ div.ft { #opac-isbddetail #isbdcontents { margin-top: 2em; } div.bibmessage { background-color : #ffffb0; border-radius : 5px; padding : 3px; margin : 2px; } + + +/* pagination */ +.pagination { + position: absolute; + top:32px; + left: -1px; + width: 100%; + height:auto; + border: 1px solid #D0D0D0; + display: none; + background-color:#F3F3F3; + padding-bottom:10px; +} + + +/* nav */ +.nav .close_pagination { + padding-right: 10px; + position: absolute; + right: 3px; + top: -25px; +} +.nav .close_pagination a { + text-decoration:none!important; +} + +.nav ul { + padding-top: 10px; +} + +.nav li { + list-style:none; + float:left; + padding:4px; + color:#999; +} + +.nav li a { + text-decoration:none!important; +} + +.nav li a:hover { + text-decoration:underline; +} + +.nav li ul { + float:left; +} + +.back { + float:right; +} + +.back input{ + background:none!important; + color:#999!important; +} + +.pagination_list { + float:bottom; +} +.pagination_list ul { + padding-top: 40px; + padding-left:0px; +} +.pagination_list li { + list-style:none; + float:bottom; + padding:4px; + color:#999; + /* border-bottom : 1px solid #DDDDDD;*/ +} +.pagination_list li.highlight { + background-color : #F3F3F3; + border-top : 1px solid #DDDDDD; + border-bottom : 1px solid #DDDDDD; +} +.pagination_list span.li_pag_index { + color: #999999; + float: left; + font-size: 15px; + font-weight: bold; + padding-right: 10px; + text-align: right; + width: 13px; + +} + +.pagination_list li a {padding-left:0px;} + + +.nav_results { + background-color: #F3F3F3; + border: 1px solid #D0D0D0; + margin-top: 0.5em; + position:relative; +} + +.nav_results .l_Results a { + background:#E1E1E1 url("../../images/ico_b_results.gif") 14px 13px no-repeat; + color:#006699; + display:block; + padding:8px 28px; + text-decoration:none; +} +.nav_results .l_Results a:hover { + background-color:#D9D9D9; +} +.nav_results ul.pg_menu { + height:25px; + border-top: 1px solid #D0D0D0; +} +.nav_results ul.pg_menu li { + color:#B2B2B2; + display:block; + float:left; + padding:5px 0; + list-style:none; + text-align:center; +} +.nav_results ul.pg_menu li.back_results { + padding:5px 0px; + width:45%; + border-left: 1px solid #D0D0D0; + border-right: 1px solid #D0D0D0; +} +.nav_results ul.pg_menu li a { + text-decoration:none; + font-weight:normal; + color:#4D4D4D; +} +.nav_results ul.pg_menu li a:hover { + color:#006699; +} +.nav_results ul.pg_menu li.left_results { + margin-right:10px; +} +.nav_results ul.pg_menu li.right_results { + margin-left:10px; +} + +.nav_results #listResults{ + line-height: 0.7em; +} + +.nav_results #listResults li { + background-color:#999999; + color:#C5C5C5; + font-weight:normal; + display:block; + margin-right:1px; + font-size:0.9em; + padding:5px 0px; + text-align:center; + min-width:20px; +} + +.nav_results #listResults li:hover {background-color:#006699;} + +.nav_results #listResults li a { color:#FFFFFF; font-weight:normal;} + + diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc old mode 100644 new mode 100755 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt old mode 100644 new mode 100755 index 534aeee..3676dfd --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -3,6 +3,17 @@