@@ -, +, @@ --- .../bug_19882_Add_novelist_staff_client_profile.perl | 7 +++++++ installer/data/mysql/sysprefs.sql | 5 +++-- .../en/modules/admin/preferences/enhanced_content.pref | 8 +++++++- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 16 ++++++++-------- 4 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl --- a/installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl +++ a/installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl @@ -0,0 +1,7 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('NovelistSelectStaffProfile',NULL,'Novelist staff client user Profile',NULL,'free')"); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19882 - Add Novelist Staff Client Profile)\n"; +} --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -290,9 +290,10 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('NoticeCSS','',NULL,'Notices CSS url.','free'), ('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'), ('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content. Requires Novelist Profile and Password','YesNo'), -('NovelistSelectPassword','',NULL,'Enable Novelist user Profile','free'), -('NovelistSelectProfile','',NULL,'Novelist Select user Password','free'), +('NovelistSelectPassword','',NULL,'Novelist select user Password','free'), +('NovelistSelectProfile','',NULL,'Novelist Select user Profile','free'), ('NovelistSelectStaffEnabled','0',NULL,'Enable Novelist Select content in the staff client. Requires Novelist Profile and Password','YesNo'), +('NovelistSelectStaffProfile','',NULL,'Novelist Select user Profile for staff client','free'), ('NovelistSelectStaffView','tab','tab|above|below','Where to display Novelist Select content in the staff client','Choice'), ('NovelistSelectView','tab','tab|above|below|right','Where to display Novelist Select content','Choice'), ('numReturnedItemsToShow','20',NULL,'Number of returned items to show on the check-in page','Integer'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref @@ -98,7 +98,13 @@ Enhanced Content: - - Access Novelist Select using user profile - pref: NovelistSelectProfile - - and password + - on the opac + - + - Access Novelist Select using user profile + - pref: NovelistSelectStaffProfile + - on the staff client + - + - Access Novelist Select using password: - pref: NovelistSelectPassword class: password - . --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -302,7 +302,7 @@ [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
  • Editions
  • [% END %][% END %] [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
  • Images
  • [% END %][% END %] [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]
  • Play media
  • [% END %][% END %] -[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] +[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] [% END %] @@ -546,7 +546,7 @@
    -[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %] +[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]