From e2e248de610853ae3852bfa8333e9d55b7ca0500 Mon Sep 17 00:00:00 2001 From: Your Full Name Date: Mon, 26 Feb 2018 04:39:27 +0000 Subject: [PATCH] This patch adds a system preference that allows a user to toggle the published date for OPAC news items on or off. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: 1. Login to the staff client, navigate to Tools → News and create some news articles that have their display location set to “All”. 2. Navigate to the OPAC and notice that the news items you added have a line at the bottom reading “(published on mm/dd/yyyy)”. 3. Apply the patch. 4. Enter the instance user session - $ sudo koha-shell kohadev 5. Change into your git directory - $ cd kohaclone 6. Update the database - $ perl installer/data/mysql/updatedatabase.pl 7. Exit the instance user session and restart Apache, Memcached and Plack - $ restart_all 8. Open the staff client and navigate to Koha administration→ Global system preferences, click the “OPAC” tab on the left and notice a new option “OPACNoNewsDate” under the “Features” heading. 9. Select “Don’t show”, save and notice that the published date of news items on the OPAC is now suppressed. 10. Select “Show” and notice that the published date of news items on the OPAC is visible once more. https://bugs.koha-community.org/show_bug.cgi?id=20265 --- .../bug_20265-OPACNoNewsDate_syspref.perl | 9 + installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/opac.pref | 1775 +++++++++++--------- .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 311 ++-- 4 files changed, 1115 insertions(+), 981 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_20265-OPACNoNewsDate_syspref.perl diff --git a/installer/data/mysql/atomicupdate/bug_20265-OPACNoNewsDate_syspref.perl b/installer/data/mysql/atomicupdate/bug_20265-OPACNoNewsDate_syspref.perl new file mode 100644 index 0000000..f7bbbd5 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_20265-OPACNoNewsDate_syspref.perl @@ -0,0 +1,9 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + # you can use $dbh here like: + $dbh->do( "INSERT INTO `systempreferences` VALUES ('OPACNoNewsDate','1','','the published date in news items on the OPAC.','YesNo');" ); + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20265: Add OPACNoNewsDate system preference\n"; +} diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 8f5e94b..e7bdc82 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -281,6 +281,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('NoIssuesChargeGuarantees','','','Define maximum amount withstanding before check outs are blocked','Integer'), ('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'), ('NoLoginInstructions', '', '60|10', 'Instructions to display on the OPAC login form when a patron is not logged in', 'Textarea'), +('OPACNoNewsDate','1','','the published date in news items on the OPAC.','YesNo'), ('NorwegianPatronDBEnable','0',NULL,'Enable communication with the Norwegian national patron database.', 'YesNo'), ('NorwegianPatronDBEndpoint','',NULL,'Which NL endpoint to use.', 'Free'), ('NorwegianPatronDBUsername','',NULL,'Username for communication with the Norwegian national patron database.','Free'), 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 c44b109..d482127 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 @@ -1,826 +1,949 @@ -OPAC: - Appearance: - - - - pref: OPACUserSummary - choices: - yes: Show - no: "Don't show" - - "a summary of a logged in user's checkouts, overdues, holds and fines on the mainpage" - - - - For search results in the OPAC, show the item's - - pref: OPACResultsLibrary - choices: - holdingbranch: "current location" - homebranch: "home library" - - . Please note that this feature is currently available for MARC21 and UNIMARC. - - - - Use the - - pref: opacthemes - choices: opac-templates - - theme on the OPAC. - - - - Use the - - pref: OPACFallback - choices: - bootstrap: bootstrap - prog: prog - - theme as the fallback theme on the OPAC. - - - - "The OPAC is located at " - - pref: OPACBaseURL - class: url - - . This should be a complete URL, starting with http:// or https://. Do not include a trailing slash in the URL. (This must be filled in correctly for RSS, unAPI, and search plugins to work.) - - - - Show - - pref: LibraryName - class: long - - as the name of the library on the OPAC. - - - - pref: OpacPublic - choices: - yes: Enable - no: Disable - - "Koha OPAC as public. Private OPAC requires authentication before accessing the OPAC." - - - - pref: HighlightOwnItemsOnOPAC - choices: - yes: Emphasize - no: "Don't emphasize" - - "results from the " - - pref: HighlightOwnItemsOnOPACWhich - choices: - PatronBranch: "patron's home branch" - OpacURLBranch: "OPAC's branch via the URL" - - " by moving the results to the front and increasing the size or highlighting the rows for those results. (Non-XSLT Only)" - - - - "Show star-ratings on" - - pref: OpacStarRatings - choices: - all: "results and details" - disable: "no" - details: "only details" - - "pages." - - - - pref: OpacMaintenance - choices: - yes: Show - no: "Don't show" - - "a warning that the OPAC is under maintenance, instead of the OPAC itself. Note: this shows the same warning as when the database needs to be upgraded, but unconditionally." - - - - - - "Show the following HTML when OpacMaintenance is enabled:" - - pref: OpacMaintenanceNotice - type: htmlarea - class: code - - - - By default, show bib records - - pref: BiblioDefaultView - choices: - normal: in simple form. - marc: in their MARC form. - isbd: as specified in the ISBD template. - - - - When patrons click on a link to another website from your OPAC (like Amazon or OCLC), - - pref: OPACURLOpenInNewWindow - choices: - yes: do - no: "don't" - - open the website in a new window. - - - - pref: hidelostitems - choices: - yes: "Don't show" - no: Show - - lost items on search and detail pages. - - - - 'Display lists in the OPAC using XSLT stylesheet at: ' - - pref: OPACXSLTListsDisplay - class: file - - '
Options:{langcode} will be replaced with current interface language' - - - - 'Display OPAC results using XSLT stylesheet at: ' - - pref: OPACXSLTResultsDisplay - class: file - - '
Options:{langcode} will be replaced with current interface language' - - - - 'Display OPAC details using XSLT stylesheet at: ' - - pref: OPACXSLTDetailsDisplay - class: file - - '
Options:{langcode} will be replaced with current interface language' - - - - pref: DisplayOPACiconsXSLT - choices: - yes: Show - no: "Don't show" - - the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC. - - - - pref: COinSinOPACResults - choices: - yes: Include - no: "Don't include" - - "COinS / OpenURL / Z39.88 in OPAC search results.
Warning: Enabling this feature will slow OPAC search response times." - - - - pref: OPACShowUnusedAuthorities - choices: - yes: Show - no: "Do not show" - - unused authorities in the OPAC authority browser. - - - - pref: OPACShowHoldQueueDetails - choices: - none: "Don't show any hold details" - priority: "Show priority level" - holds: "Show holds" - holds_priority: "Show holds and their priority level" - - to patrons in the OPAC. - - - - pref: OPACShowCheckoutName - default: 0 - choices: - yes: Show - no: "Don't show" - - the name of the patron that has an item checked out on item detail pages on the OPAC. - - - - Display the - - pref: OpacLocationBranchToDisplay - choices: - home: "home library" - holding: "holding library" - both: "home and holding libraries" - - for items on the OPAC record details page. - - - - 'Display the shelving location ' - - pref: OpacLocationOnDetail - choices: - home: "below the home library" - holding: "below the holding library" - both: "below both home and holding libraries" - column: "on a separate column" - - "for items on the OPAC record details page." - - "
Note: If 'on a separate column' is selected, you still need to enable the item_shelving_location display on the configure columns administration page" - - - - pref: OpacKohaUrl - default: 0 - choices: - yes: Show - no: "Don't show" - - "'Powered by Koha' text on OPAC footer." - - - - pref: OpacShowRecentComments - default: 0 - choices: - yes: Show - no: "Don't show" - - a link to recent comments in the OPAC masthead. - - - - pref: GoogleIndicTransliteration - default: 0 - choices: - yes: Show - no: "Don't show" - - GoogleIndicTransliteration on the OPAC. - - - - pref: OpacHighlightedWords - choices: - yes: Highlight - no: "Don't highlight" - - words the patron searched for in their search results and detail pages; To prevent certain words from ever being highlighted, enter a list of stopwords here - - pref: NotHighlightedWords - class: multi - - (separate columns with |) - - - - Use the image at - - pref: OpacFavicon - class: url - - for the OPAC's favicon. (This should be a complete URL, starting with http://.) - - - - "Include the following JavaScript on all pages in the OPAC:" - - pref: OPACUserJS - type: textarea - class: code - - - - Include the additional CSS stylesheet - - pref: OpacAdditionalStylesheet - class: file - - to override specified settings from the default stylesheet (leave blank to disable). Enter just a filename, a full local path or a complete URL starting with http:// (if the file lives on a remote server). Please note that if you just enter a filename, the file should be in the css subdirectory for each active theme and language within the Koha templates directory. A full local path is expected to start from your HTTP document root. - - - - Use the CSS stylesheet - - pref: opaclayoutstylesheet - class: file - - on all pages in the OPAC, instead of the default css (used when leaving this field blank). Enter just a filename, a full local path or a complete URL starting with http:// (if the file lives on a remote server). Please note that if you just enter a filename, the file should be in the css subdirectory for each active theme and language within the Koha templates directory. A full local path is expected to start from your HTTP document root. - - - - "Include the following CSS on all pages in the OPAC:" - - pref: OPACUserCSS - type: textarea - class: code - - - - "Show the following HTML in its own column on the main page of the OPAC:" - - pref: OpacMainUserBlock - type: htmlarea - class: code - - - - "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: htmlarea - class: code - - - - "Show the following HTML in the right hand column of the main page under the main login form:" - - pref: OpacNavRight - type: htmlarea - class: code - - - - "Show the following HTML on the left hand column of the main page and patron account on the OPAC, after OpacNav, and before patron account links if available:" - - pref: OpacNavBottom - type: htmlarea - class: code - - - - "Include the following HTML in the header of all pages in the OPAC:" - - pref: opacheader - type: htmlarea - class: code - - - - "Include the following HTML in the footer of all pages in the OPAC:" - - pref: opaccredits - type: htmlarea - class: code - - - - 'Include a "More Searches" box on the detail pages of items on the OPAC, with the following HTML (leave blank to disable):' - - '
Note: The placeholders {BIBLIONUMBER}, {CONTROLNUMBER}, {TITLE}, {ISBN}, {ISSN} and {AUTHOR} will be replaced with information from the displayed record.' - - pref: OPACSearchForTitleIn - type: textarea - class: code - - - - 'Include a "Links" column on the "my summary" and "my reading history" tabs when a user is logged in to the OPAC, with the following HTML (leave blank to disable):' - - '
Note: The placeholders {BIBLIONUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record.' - - pref: OPACMySummaryHTML - type: htmlarea - class: code - - - - "Note to display on the patron summary page. This note only appears if the patron is logged in:" - - pref: OPACMySummaryNote - type: textarea - - - - "Include the following HTML under the facets in OPAC search results:" - - pref: OPACResultsSidebar - type: htmlarea - class: code - - - - pref: OpacAddMastheadLibraryPulldown - choices: - yes: Add - no: "Don't add" - - a library select pulldown menu on the OPAC masthead. - - - - 'Display this HTML when no results are found for a search in the OPAC:' - - '
Note: You can insert placeholders {QUERY_KW} that will be replaced with the keywords of the query.' - - pref: OPACNoResultsFound - type: htmlarea - class: code - - - - 'Display the URI in the 856u field as an image on: ' - - pref: OPACDisplay856uAsImage - choices: - OFF: "Neither detail or result pages" - Details: "Detail page only" - Results: "Result page only" - Both: "Both detail and result pages" - - '. Note: The corresponding OPACXSLT option must be turned on.' - - - - 'Select export options that should be available from OPAC detail page:' - - pref: OpacExportOptions - multiple: - bibtex: BibTeX - dc: Dublin Core - marcxml: MARCXML - marc8: MARC-8 encoded MARC - utf8: Unicode/UTF-8 encoded MARC - marcstd: Unicode/UTF-8 encoded MARC without local use -9xx, x9x, xx9- fields and subfields - mods: MODS - ris: RIS - isbd: ISBD - - - - pref: OpacSeparateHoldings - choices: - yes: Separate - no: Don't separate - - "items display into two tabs, where the first tab contains items whose" - - pref: OpacSeparateHoldingsBranch - choices: - homebranch: 'home library' - holdingbranch: 'holding library' - - "is the logged in user's library. The second tab will contain all other items." - - - - pref: OPACHoldingsDefaultSortField - choices: - first_column: First column of the table - homebranch: Home library - holdingbranch: Holding library - - "is the default sort field for the holdings table" - - - - pref: OpacSuggestionManagedBy - choices: - yes: Show - no: Don't show - - "the name of the staff member who managed a suggestion in OPAC." - - - - Display up to - - pref: OpacMaxItemsToDisplay - class: integer - - items on the biblio detail page (if the biblio has more items than this, a link is displayed instead that allows the user to choose to display all items). - - - - "Show the following HTML on the OPAC login form when a patron is not logged in:" - - pref: NoLoginInstructions - type: htmlarea - class: code - - - - "Replace the search box at the top of OPAC pages with the following HTML:" - - pref: OpacCustomSearch - type: textarea - class: code - - - - "Display language selector on " - - pref: OpacLangSelectorMode - choices: - both: "both top and footer" - top: "top" - footer: "only footer" - Features: - - - - pref: opacuserlogin - choices: - yes: Allow - no: "Don't allow" - - patrons to log in to their accounts on the OPAC. - - - - Show - - pref: OpacItemLocation - choices: - location: location - ccode: "collection code" - callnum: "call number only" - - for items on the OPAC search results. - - - - pref: OpacPasswordChange - choices: - yes: Allow - no: "Don't allow" - - patrons to change their own password on the OPAC. Note that this must be off to use LDAP authentication. - - - - "Library users are " - - pref: OpacResetPassword - default: 1 - choices: - yes: "allowed" - no: "not allowed" - - " to recover their password via e-mail in the OPAC" - - - - pref: OPACPatronDetails - choices: - yes: Allow - no: "Don't allow" - - patrons to notify the library of changes to their contact information from the OPAC. - - - - pref: OPACpatronimages - choices: - yes: Show - no: "Don't show" - - patron images on the patron information page in the OPAC. - - - - pref: OPACFinesTab - choices: - yes: Allow - no: "Don't allow" - - patrons to access the Fines tab on the My Account page on the OPAC. - - - - pref: OpacBrowser - choices: - yes: Allow - no: "Don't allow" - - patrons to browse subject authorities on OPAC (run misc/cronjobs/build_browser_and_cloud.pl to create the browser list) - - - - pref: OpacCloud - choices: - yes: Show - no: "Don't show" - - a subject cloud on OPAC (run misc/cronjobs/build_browser_and_cloud.pl to build) - - - - pref: OpacAuthorities - choices: - yes: Allow - no: "Don't allow" - - patrons to search your authority records. - - - - pref: opacbookbag - choices: - yes: Allow - no: "Don't allow" - - patrons to store items in a temporary "Cart" on the OPAC. - - - - pref: OpacTopissue - choices: - yes: Allow - no: "Don't allow" - - patrons to access a list of the most checked out items on the OPAC. Note that this is somewhat experimental, and should be avoided if your collection has a large number of items. - - - - pref: suggestion - choices: - yes: Allow - no: "Don't allow" - - patrons to make purchase suggestions on the OPAC. - - - - pref: reviewson - choices: - yes: Allow - no: "Don't allow" - - patrons to make comments on items on the OPAC. - - - - Show - - pref: ShowReviewer - choices: - none: no name - full: full name - first: first name - surname: last name - firstandinitial: first name and last name initial - username: username - - of commenter with comments in OPAC. - - - - pref: ShowReviewerPhoto - choices: - yes: Show - no: Hide - - reviewer's avatar beside comments in OPAC. The avatar will be searched on www.libravatar.org using the patron's e-mail address. - - - - pref: RequestOnOpac - choices: - yes: Allow - no: "Don't allow" - - patrons to place holds on items from the OPAC. - - - - Display - - pref: numSearchRSSResults - class: long - - search results in the RSS feed. - - - - pref: SocialNetworks - default: 0 - choices: - yes: Enable - no: Disable - - social network links in opac detail pages - - - - pref: OpacBrowseResults - default: 1 - choices: - yes: Enable - no: Disable - - browsing and paging search results from the OPAC detail page. - - - - pref: QuoteOfTheDay - default: 0 - choices: - yes: Enable - no: Disable - - Quote of the Day display on OPAC home page - - - - pref: OPACPopupAuthorsSearch - default: 0 - choices: - yes: Display - no: Don't display - - the list of authors/subjects in a popup for a combined search on OPAC detail pages. - - - - pref: OpacHoldNotes - default: 0 - choices: - yes: Allow - no: Do not allow - - users to add a note when placing a hold. - - - - pref: OPACAcquisitionDetails - default: 0 - choices: - yes: Display - no: Don't display - - the acquisition details on OPAC detail pages. - - - - pref: OpacNewsLibrarySelect - default: 0 - choices: - yes: Display - no: Don't display - - a branch selection list for news items in the OPAC. - - - - "Use the following as the OPAC ISBD template:" - - pref: OPACISBD - type: textarea - class: code - Policy: - - - - pref: SearchMyLibraryFirst - choices: - yes: Limit - no: "Don't limit" - - "patrons' searches to the library they are registered at." -# - -# This system preference does not actually affect anything -# - pref: OpacBrowser -# choices: -# yes: Show -# no: "Don't show" -# - a subject browser on the OPAC (generated using misc/cronjobs/build_browser_and_cloud.pl). -# - -# opac-tags_subject.pl is the only script affected by this, and it is not linked to by any other page -# - pref: OpacCloud -# choices: -# - If ON, enables subject cloud on OPAC - - - - pref: OpacRenewalAllowed - choices: - yes: Allow - no: "Don't allow" - - patrons to renew their own books on the OPAC. - - - - Use - - pref: OpacRenewalBranch - choices: - itemhomebranch: "the item's home library" - patronhomebranch: "the patron's home library" - checkoutbranch: "the library the item was checked out from" - null: "NULL" - opacrenew: "'OPACRenew'" - - as branchcode to store in the statistics table. - - - - Only allow patrons to renew their own books on the OPAC if they have less than - - pref: OPACFineNoRenewals - class: currency - - '[% local_currency %] in fines (leave blank to disable).' - - - - pref: OPACViewOthersSuggestions - choices: - yes: Show - no: "Don't show" - - purchase suggestions from other patrons on the OPAC. - - - - pref: AllowPurchaseSuggestionBranchChoice - default: 0 - choices: - no: "Don't allow" - yes: Allow - - patrons to select library when making a purchase suggestion - - - - "Fields that should be mandatory for patron purchase suggestions:" - - pref: OPACSuggestionMandatoryFields - multiple: - title: Title - author: Author - copyrightdate: Copyright or publication date - isbn: ISBN, ISSN or other standard number - publishercode: Publisher name - collectiontitle: Collection title - place: Publication place - itemtype: Item type - branch: Library or branch - patronreason: Patron reason - note: Note - - "
Note: if none of the above options are selected, 'Title' field would be mandatory anyway, by default." - - - - pref: OpacHiddenItems - type: textarea - class: code - - Define custom rules to hide specific items from search and view on the OPAC. How to write these rules is documented on the Koha wiki. - - - - pref: OpacAllowPublicListCreation - default: 1 - choices: - no: "Don't allow" - yes: Allow - - opac users to create public lists - - - - pref: OpacAllowSharingPrivateLists - default: 0 - choices: - no: "Don't allow" - yes: Allow - - opac users to share private lists with other patrons. - - - - pref: BlockExpiredPatronOpacActions - choices: - yes: "Block" - no: "Don't block" - - expired patrons from OPAC actions such as placing a hold or renewing. Note that the setting for a patron category takes priority over this system preference. - - - - Limit patrons to - - pref: MaxOpenSuggestions - class: integer - - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions" - Privacy: - - - - pref: StoreLastBorrower - default: 0 - choices: - yes: Store - no: "Don't store" - - the last patron to return an item. This setting is independent of opacreadinghistory/AnonymousPatron. - - - - pref: AnonSuggestions - choices: - yes: Allow - no: "Don't allow" - - "patrons that aren't logged in to make purchase suggestions. Suggestions are connected to the AnonymousPatron syspref" - - - - pref: opacreadinghistory - choices: - yes: Allow - no: "Don't allow" - - patrons to see what books they have checked out in the past. - - - - pref: EnableOpacSearchHistory - default: 0 - choices: - yes: Keep - no: "Don't keep" - - patron search history in the OPAC. - - - - pref: OPACPrivacy - default: 0 - choices: - yes: Allow - no: "Don't allow" - - patrons to choose their own privacy settings for their reading history. This requires opacreadinghistory and AnonymousPatron - - - - pref: AllowPatronToSetCheckoutsVisibilityForGuarantor - default: 0 - choices: - yes: Allow - no: "Don't allow" - - patrons to choose their own privacy settings for showing the patron's checkouts to the patron's guarantor". - - - - Use borrowernumber - - pref: AnonymousPatron - class: integer - - as the Anonymous Patron (for anonymous suggestions and reading history) - - - - pref: TrackClicks - default: 0 - choices: - anonymous: "Track anonymously" - track: "Track" - no: "Don't track" - - links that patrons click on - Restricted page: - - - - "Access from IP addresses beginning with" - - pref: RestrictedPageLocalIPs - - "do not need to be authenticated (comma separated - ex: '127.0.0,127.0.1')" - - - - "HTML content of your restricted page" - - pref: RestrictedPageContent - type: textarea - class: HTML - - - - Use - - pref: RestrictedPageTitle - class: long - - "as title of your restricted page (appears in the breadcrumb and on the top of the restricted page)" - Shelf Browser: - - - - pref: OPACShelfBrowser - choices: - yes: Show - no: "Don't show" - - "a shelf browser on item details pages, allowing patrons to see what's near that item on the shelf. Note that this uses up a fairly large amount of resources on your server, and should be avoided if your collection has a large number of items." - - - - pref: ShelfBrowserUsesLocation - default: 1 - choices: - yes: Use - no: "Don't use" - - "the item location when finding items for the shelf browser." - - - - pref: ShelfBrowserUsesHomeBranch - default: 1 - choices: - yes: Use - no: "Don't use" - - "the item home library when finding items for the shelf browser." - - - - pref: ShelfBrowserUsesCcode - default: 0 - choices: - yes: Use - no: "Don't use" - - "the item collection code when finding items for the shelf browser." - - Self Registration: - - - - pref: PatronSelfRegistration - choices: - yes: Allow - no: "Don't allow" - - "library patrons to register or modify their account via the OPAC. Note: This needs PatronSelfRegistrationDefaultCategory to be set to a valid patron category code." - - - - pref: PatronSelfRegistrationVerifyByEmail - choices: - yes: Require - no: "Don't require" - - "that a self-registering patron verify his or herself via email." - - - - "Use the patron category code" - - pref: PatronSelfRegistrationDefaultCategory - class: short - - "as the default patron category for patrons registered via the OPAC." - - - - "Delete patrons registered via the OPAC, but not yet verified after" - - pref: PatronSelfRegistrationExpireTemporaryAccountsDelay - class: integer - - "days." - - - - "The following database columns must be filled in on the patron entry screen:" - - pref: PatronSelfRegistrationBorrowerMandatoryField - class: multi - - (separate columns with |) - - - - "The following database columns will not appear on the patron self-registration screen:" - - pref: PatronSelfRegistrationBorrowerUnwantedField - class: multi - - (separate columns with |) - - - - "The following database columns will not appear on the patron self-modification screen:" - - pref: PatronSelfModificationBorrowerUnwantedField - class: multi - - (separate columns with |) - - - - "Display the following additional instructions for patrons who self register via the OPAC ( HTML is allowed ):" - - pref: PatronSelfRegistrationAdditionalInstructions - type: htmlarea - class: html - - - - pref: PatronSelfRegistrationEmailMustBeUnique - choices: - yes: "Consider" - no: "Do not consider" - - "patron's email (borrowers.email) as unique on self registering. An email won't be accepted if it already exists in the database." - - - - "Enable the self registration for the following libraries:" - - pref: PatronSelfRegistrationLibraryList - - (separate branchcode with |). - - If empty, all libraries will be listed. - - - - pref: PatronSelfRegistrationPrefillForm - choices: - yes: "Display and prefill" - no: "Do not display and prefill" - - "password and login form after a patron has self registered." - - Advanced Search Options: - - - - Show search options - - pref: OpacAdvSearchOptions - multiple: - pubdate: Publication date - itemtype: Item types - language: Language - subtype: Subtypes - sorting: Sorting - location: Location and availability - - - - Show search options for the expanded view - - pref: OpacAdvSearchMoreOptions - multiple: - pubdate: Publication date - itemtype: Item types - language: Language - subtype: Subtypes - sorting: Sorting - location: Location and availability - Payments: - - - - pref: EnablePayPalOpacPayments - default: 1 - choices: - yes: Allow - no: "Don't allow" - - "patrons to make payments from the OPAC via PayPal in" - - pref: PayPalSandboxMode - default: 1 - choices: - yes: "Sandbox" - no: "Production" - - "mode." - - - - "The email address to receive PayPal payments is " - - pref: PayPalUser - class: long - - - - "The password for the PayPal account to receive payments is " - - pref: PayPalPwd - class: long - - - - "The signature for the PayPal account to receive payments is " - - pref: PayPalSignature - class: long - - - - "The patron should see the charge description as " - - pref: PayPalChargeDescription - class: long +--- +opac.pref: + " Advanced Search Options": + - + - " Show search options" + - + multiple: + itemtype: Item types + language: Language + location: Location and availability + pubdate: Publication date + sorting: Sorting + subtype: Subtypes + pref: OpacAdvSearchOptions + - + - Show search options for the expanded view + - + multiple: + itemtype: Item types + language: Language + location: Location and availability + pubdate: Publication date + sorting: Sorting + subtype: Subtypes + pref: OpacAdvSearchMoreOptions + Appearance: + - + - + choices: + "": Don't show + 1: Show + pref: OPACUserSummary + - " a summary of a logged in user's issues, overdues, reserves and fines on the mainpage" + - + - For search results in the OPAC, show the item's + - + choices: + holdingbranch: " current location" + homebranch: " home library" + pref: OPACResultsLibrary + - " . Please note that this feature is currently available for MARC21 and UNIMARC." + - + - Use the + - + choices: opac-templates + pref: opacthemes + - theme on the OPAC. + - + - " Use the" + - + choices: + bootstrap: " bootstrap" + prog: prog + pref: OPACFallback + - " theme as the fallback theme on the OPAC." + - + - " The OPAC is located at " + - + class: url + pref: OPACBaseURL + - " . This should be a complete URL, starting with http:// or https://. Do not include a trailing slash in the URL. (This must be filled in correctly for RSS, unAPI, and search plugins to work.)" + - + - Show + - + class: long + pref: LibraryName + - as the name of the library on the OPAC. + - + - + choices: + "": Disable + 1: Enable + pref: OpacPublic + - Koha OPAC as public. Private OPAC requires authentication before accessing the OPAC. + - + - + choices: + "": Don't emphasise + 1: Emphasise + pref: HighlightOwnItemsOnOPAC + - "results from the " + - + choices: + OpacURLBranch: OPAC's branch via the URL + PatronBranch: user's home branch + pref: HighlightOwnItemsOnOPACWhich + - by moving the results to the front and increasing the size or highlighting the rows for those results. (Non-XSLT Only) + - + - Show star-ratings on + - + choices: + all: results and details + details: only details + disable: 'no' + pref: OpacStarRatings + - pages. + - + - + choices: + "": Don't show + 1: Show + pref: OpacMaintenance + - "a warning that the OPAC is under maintenance, instead of the OPAC itself. Note: this shows the same warning as when the database needs to be upgraded, but unconditionally." + - ~ + - + - "Show the following HTML when OpacMaintenance is enabled:" + - + class: code + pref: OpacMaintenanceNotice + type: htmlarea + - + - By default, show bib records + - + choices: + isbd: as specified in the ISBD template. + marc: in their MARC form. + normal: in simple form. + pref: BiblioDefaultView + - + - When users click on a link to another website from your OPAC (like Amazon or OCLC), + - + choices: + "": don't + 1: do + pref: OPACURLOpenInNewWindow + - open the website in a new window. + - + - + choices: + "": Show + 1: Don't show + pref: hidelostitems + - lost items on search and detail pages. + - + - " Display lists in the OPAC using XSLT stylesheet at: " + - + class: file + pref: OPACXSLTListsDisplay + -
Options:{langcode} will be replaced with current interface language + - + - " Display OPAC results using XSLT stylesheet at: " + - + class: file + pref: OPACXSLTResultsDisplay + -
Options:{langcode} will be replaced with current interface language + - + - " Display OPAC details using XSLT stylesheet at: " + - + class: file + pref: OPACXSLTDetailsDisplay + -
Options:{langcode} will be replaced with current interface language + - + - + choices: + "": Don't show + 1: Show + pref: DisplayOPACiconsXSLT + - the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC. + - + - + choices: + "": Don't include + 1: Include + pref: COinSinOPACResults + - "COinS / OpenURL / Z39.88 in OPAC search results.
Warning: Enabling this feature will slow OPAC search response times." + - + - + choices: + "": Do not show + 1: Show + pref: OPACShowUnusedAuthorities + - unused authorities in the OPAC authority browser. + - + - + choices: + holds: Show reserves + holds_priority: Show reserves and their priority level + none: Don't show any reserve details + priority: Show priority level + pref: OPACShowHoldQueueDetails + - to users in the OPAC. + - + - + choices: + "": Don't show + 1: Show + default: 0 + pref: OPACShowCheckoutName + - the name of the user that has an item issued on the item detail pages on the OPAC. + - + - " Display the" + - + choices: + both: " home and holding libraries" + holding: " holding library" + home: " home library" + pref: OpacLocationBranchToDisplay + - " for items on the OPAC record details page." + - + - "Display the shelving location " + - + choices: + both: " below both home and holding libraries" + column: " on a separate column" + holding: " below the holding library" + home: " below the home library" + pref: OpacLocationOnDetail + - " for items on the OPAC record details page." + - "
Note: If 'on a separate column' is selected, you still need to enable the item_shelving_location display on the configure columns administration page" + - + - + choices: + "": Don't show + 1: Show + default: 0 + pref: OpacKohaUrl + - "'Powered by Koha' text on OPAC footer." + - + - + choices: + "": Don't show + 1: Show + default: 0 + pref: OpacShowRecentComments + - a link to recent comments in the OPAC masthead. + - + - + choices: + "": " Don't show" + 1: " Show" + default: 0 + pref: GoogleIndicTransliteration + - " GoogleIndicTransliteration on the OPAC." + - + - + choices: + "": Don't highlight + 1: Highlight + pref: OpacHighlightedWords + - " words the user searched for in their search results and detail pages; To prevent certain words from ever being highlighted, enter a list of stopwords here" + - + class: multi + pref: NotHighlightedWords + - " (separate columns with |)" + - + - Use the image at + - + class: url + pref: OpacFavicon + - for the OPAC's favicon. (This should be a complete URL, starting with http://.) + - + - "Include the following JavaScript on all pages in the OPAC:" + - + class: code + pref: OPACUserJS + type: textarea + - + - Include the additional CSS stylesheet + - + class: file + pref: OpacAdditionalStylesheet + - to override specified settings from the default stylesheet (leave blank to disable). Enter just a filename, a full local path or a complete URL starting with http:// (if the file lives on a remote server). Please note that if you just enter a filename, the file should be in the css subdirectory for each active theme and language within the Koha templates directory. A full local path is expected to start from your HTTP document root. + - + - Use the CSS stylesheet + - + class: file + pref: opaclayoutstylesheet + - on all pages in the OPAC, instead of the default css (used when leaving this field blank). Enter just a filename, a full local path or a complete URL starting with http:// (if the file lives on a remote server). Please note that if you just enter a filename, the file should be in the css subdirectory for each active theme and language within the Koha templates directory. A full local path is expected to start from your HTTP document root. + - + - "Include the following CSS on all pages in the OPAC:" + - + class: code + pref: OPACUserCSS + type: textarea + - + - "Show the following HTML in its own column on the main page of the OPAC:" + - + class: code + pref: OpacMainUserBlock + type: htmlarea + - + - "Show the following HTML on the left hand column of the main page and user account on the OPAC (generally navigation links):" + - + class: code + pref: OpacNav + type: htmlarea + - + - "Show the following HTML in the right hand column of the main page under the main login form:" + - + class: code + pref: OpacNavRight + type: htmlarea + - + - "Show the following HTML on the left hand column of the main page and user account on the OPAC, after OpacNav, and before user account links if available:" + - + class: code + pref: OpacNavBottom + type: htmlarea + - + - "Include the following HTML in the header of all pages in the OPAC:" + - + class: code + pref: opacheader + type: htmlarea + - + - "Include the following HTML in the footer of all pages in the OPAC:" + - + class: code + pref: opaccredits + type: htmlarea + - + - "Include a \"More Searches\" box on the detail pages of items on the OPAC, with the following HTML (leave blank to disable):" + - "
Note: The placeholders {BIBLIONUMBER}, {CONTROLNUMBER}, {TITLE}, {ISBN}, {ISSN} and {AUTHOR} will be replaced with information from the displayed record." + - + class: code + pref: OPACSearchForTitleIn + type: textarea + - + - "Include a \"Links\" column on the \"my summary\" and \"my reading history\" tabs when a user is logged in to the OPAC, with the following HTML (leave blank to disable):" + - "
Note: The placeholders {BIBLIONUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record." + - + class: code + pref: OPACMySummaryHTML + type: htmlarea + - + - "Note to display on the user summary page. This note only appears if the user is logged in:" + - + pref: OPACMySummaryNote + type: textarea + - + - "Include the following HTML under the facets in OPAC search results:" + - + class: code + pref: OPACResultsSidebar + type: htmlarea + - + - + choices: + "": Don't add + 1: Add + pref: OpacAddMastheadLibraryPulldown + - a library select pulldown menu on the OPAC masthead. + - + - " Display this HTML when no results are found for a search in the OPAC:" + - "
Note: You can insert placeholders {QUERY_KW} that will be replaced with the keywords of the query." + - + class: code + pref: OPACNoResultsFound + type: htmlarea + - + - "Display the URI in the 856u field as an image on: " + - + choices: + "": " Neither detail or result pages" + Both: " Both detail and result pages" + Details: " Detail page only" + Results: " Result page only" + pref: OPACDisplay856uAsImage + - ". Note: The corresponding OPACXSLT option must be turned on." + - + - " Select export options that should be available from OPAC detail page:" + - + multiple: + bibtex: BibTeX + dc: Dublin Core + isbd: ISBD + marc8: MARC-8 encoded MARC + marcstd: Unicode/UTF-8 encoded MARC without local use -9xx, x9x, xx9- fields and subfields + marcxml: MARCXML + mods: MODS + ris: RIS + utf8: Unicode/UTF-8 encoded MARC + pref: OpacExportOptions + - + - + choices: + "": Don't separate + 1: Separate + pref: OpacSeparateHoldings + - items display into two tabs, where the first tab contains items whose + - + choices: + holdingbranch: holding library + homebranch: home library + pref: OpacSeparateHoldingsBranch + - is the logged in user's library. The second tab will contain all other items. + - + - + choices: + first_column: " First column of the table" + holdingbranch: " Holding library" + homebranch: Home library + pref: OPACHoldingsDefaultSortField + - " is the default sort field for the holdings table" + - + - + choices: + "": Don't show + 1: Show + pref: OpacSuggestionManagedBy + - the name of the staff member who managed a suggestion in OPAC. + - + - Display up to + - + class: integer + pref: OpacMaxItemsToDisplay + - items on the biblio detail page (if the biblio has more items than this, a link is displayed instead that allows the user to choose to display all items). + - + - "Show the following HTML on the OPAC login form when a user is not logged in:" + - + class: code + pref: NoLoginInstructions + type: htmlarea + - + - "Replace the search box at the top of OPAC pages with the following HTML:" + - + class: code + pref: OpacCustomSearch + type: textarea + - + - "Display language selector on " + - + choices: + both: both top and footer + footer: only footer + top: top + pref: OpacLangSelectorMode + Features: + - + - + choices: + "": Show + 1: Don't show + pref: OPACNoNewsDate + - the published date in news items on the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + pref: opacuserlogin + - members to log in to their accounts on the OPAC. + - + - Show + - + choices: + callnum: call number only + ccode: collection code + location: location + pref: OpacItemLocation + - for items on the OPAC search results. + - + - + choices: + "": Don't allow + 1: Allow + pref: OpacPasswordChange + - members to change their own password on the OPAC. Note that this must be off to use LDAP authentication. + - + - "Library users are " + - + choices: + "": not allowed + 1: allowed + default: 1 + pref: OpacResetPassword + - to recover their password via e-mail in the OPAC + - + - + choices: + "": Don't allow + 1: Allow + pref: OPACPatronDetails + - members to notify the library of changes to their contact information from the OPAC. + - + - + choices: + "": Don't show + 1: " Show" + pref: OPACpatronimages + - user images on the user information page in the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + pref: OPACFinesTab + - borrrowers to access the Fines tab on the My Account page on the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + pref: OpacBrowser + - users to browse subject authorities on OPAC (run misc/cronjobs/build_browser_and_cloud.pl to create the browser list) + - + - + choices: + "": Don't show + 1: Show + pref: OpacCloud + - a subject cloud on OPAC (run misc/cronjobs/build_browser_and_cloud.pl to build) + - + - + choices: + "": Don't allow + 1: Allow + pref: OpacAuthorities + - users to search your authority records. + - + - + choices: + "": Don't allow + 1: Allow + pref: opacbookbag + - users to store items in a temporary "Cart" on the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + pref: OpacTopissue + - users to access a list of the most issued items on the OPAC. Note that this is somewhat experimental, and should be avoided if your collection has a large number of items. + - + - + choices: + "": Don't allow + 1: Allow + pref: suggestion + - members to make purchase suggestions on the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + pref: reviewson + - members to make comments on items on the OPAC. + - + - Show + - + choices: + first: first name + firstandinitial: first name and last name initial + full: full name + none: no name + surname: last name + username: username + pref: ShowReviewer + - of commenter with comments in OPAC. + - + - + choices: + "": Hide + 1: Show + pref: ShowReviewerPhoto + - " reviewer's avatar beside comments in OPAC. The avatar will be searched on www.libravatar.org using the user's e-mail address." + - + - + choices: + "": Don't allow + 1: Allow + pref: RequestOnOpac + - users to place reserves on items from the OPAC. + - + - Display + - + class: long + pref: numSearchRSSResults + - search results in the RSS feed. + - + - + choices: + "": Disable + 1: Enable + default: 0 + pref: SocialNetworks + - social network links in opac detail pages + - + - + choices: + "": Disable + 1: Enable + default: 1 + pref: OpacBrowseResults + - browsing and paging search results from the OPAC detail page. + - + - + choices: + "": Disable + 1: Enable + default: 0 + pref: QuoteOfTheDay + - Quote of the Day display on OPAC home page + - + - + choices: + "": Don't display + 1: Display + default: 0 + pref: OPACPopupAuthorsSearch + - the list of authors/subjects in a popup for a combined search on OPAC detail pages. + - + - + choices: + "": Do not allow + 1: Allow + default: 0 + pref: OpacHoldNotes + - users to add a note when placing a reserve. + - + - + choices: + "": " Don't display" + 1: " Display" + default: 0 + pref: OPACAcquisitionDetails + - the acquisition details on OPAC detail pages. + - + - + choices: + "": " Don't display" + 1: " Display" + default: 0 + pref: OpacNewsLibrarySelect + - a branch selection list for news items in the OPAC. + - + - "Use the following as the OPAC ISBD template:" + - + class: code + pref: OPACISBD + type: textarea + Payments: + - + - + choices: + "": Don't allow + 1: Allow + default: 1 + pref: EnablePayPalOpacPayments + - users to make payments from the OPAC via PayPal in + - + choices: + "": Production + 1: Sandbox + default: 1 + pref: PayPalSandboxMode + - mode. + - + - "The email address to receive PayPal payments is " + - + class: long + pref: PayPalUser + - + - "The password for the PayPal account to receive payments is " + - + class: long + pref: PayPalPwd + - + - "The signature for the PayPal account to receive payments is " + - + class: long + pref: PayPalSignature + - + - "The user should see the charge description as " + - + class: long + pref: PayPalChargeDescription + Policy: + - + - + choices: + "": Don't limit + 1: Limit + pref: SearchMyLibraryFirst + - users' searches to the library they are registered at. + - + - + choices: + "": Don't allow + 1: Allow + pref: OpacRenewalAllowed + - members to renew their own issues on the OPAC. + - + - " Use" + - + choices: + "": " NULL" + checkoutbranch: the library the item was issued from + itemhomebranch: the item's home library + opacrenew: "'OPACRenew'" + patronhomebranch: the user's home library + pref: OpacRenewalBranch + - " as branchcode to store in the statistics table." + - + - Only allow users to renew their own books on the OPAC if they have less than + - + class: currency + pref: OPACFineNoRenewals + - " [% local_currency %] in fines (leave blank to disable)." + - + - + choices: + "": Don't show + 1: Show + pref: OPACViewOthersSuggestions + - purchase suggestions from other members on the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + default: 0 + pref: AllowPurchaseSuggestionBranchChoice + - " users to select library when making a purchase suggestion" + - + - " Fields that should be mandatory for user purchase suggestions:" + - + multiple: + author: Author + branch: Library or branch + collectiontitle: Collection title + copyrightdate: Copyright or publication date + isbn: ISBN, ISSN or other standard number + itemtype: Item type + note: Note + patronreason: Patron reason + place: Publication place + publishercode: Publisher name + title: Title + pref: OPACSuggestionMandatoryFields + - "
Note: if none of the above options are selected, 'Title' field would be mandatory anyway, by default." + - + - + class: code + pref: OpacHiddenItems + type: textarea + - Define custom rules to hide specific items from search and view on the OPAC. How to write these rules is documented on the Koha wiki. + - + - + choices: + "": " Don't allow" + 1: " Allow" + default: 1 + pref: OpacAllowPublicListCreation + - opac users to create public lists + - + - + choices: + "": Don't allow + 1: Allow + default: 0 + pref: OpacAllowSharingPrivateLists + - opac users to share private lists with other users. + - + - + choices: + "": Don't block + 1: Block + pref: BlockExpiredPatronOpacActions + - expired users from OPAC actions such as placing a reserve or renewing. Note that the setting for a user category takes priority over this system preference. + - + - " Limit users to" + - + class: integer + pref: MaxOpenSuggestions + - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions" + Privacy: + - + - + choices: + "": Don't store + 1: Store + default: 0 + pref: StoreLastBorrower + - the last user to return an item. This setting is independent of opacreadinghistory/AnonymousPatron. + - + - + choices: + "": Don't allow + 1: Allow + pref: AnonSuggestions + - users that aren't logged in to make purchase suggestions. Suggestions are connected to the AnonymousPatron syspref + - + - + choices: + "": Don't allow + 1: Allow + pref: opacreadinghistory + - members to see what books they have been issued in the past. + - + - + choices: + "": Don't keep + 1: Keep + default: 0 + pref: EnableOpacSearchHistory + - member search history in the OPAC. + - + - + choices: + "": Don't allow + 1: Allow + default: 0 + pref: OPACPrivacy + - users to choose their own privacy settings for their reading history. This requires opacreadinghistory and AnonymousPatron + - + - + choices: + "": Don't allow + 1: Allow + default: 0 + pref: AllowPatronToSetCheckoutsVisibilityForGuarantor + - users to choose their own privacy settings for showing the user's issues to the user's guarantor". + - + - Use borrowernumber + - + class: integer + pref: AnonymousPatron + - as the Anonymous User (for anonymous suggestions and reading history) + - + - + choices: + "": Don't track + anonymous: Track anonymously + track: Track + default: 0 + pref: TrackClicks + - links that users click on + Restricted page: + - + - Access from IP addresses beginning with + - + pref: RestrictedPageLocalIPs + - "do not need to be authenticated (comma separated - ex: '127.0.0,127.0.1')" + - + - HTML content of your restricted page + - + class: HTML + pref: RestrictedPageContent + type: textarea + - + - Use + - + class: long + pref: RestrictedPageTitle + - as title of your restricted page (appears in the breadcrumb and on the top of the restricted page) + Self Registration: + - + - + choices: + "": Don't allow + 1: Allow + pref: PatronSelfRegistration + - " library users to register or modify their account via the OPAC. Note: This needs PatronSelfRegistrationDefaultCategory to be set to a valid user category code." + - + - + choices: + "": Don't require + 1: Require + pref: PatronSelfRegistrationVerifyByEmail + - that a self-registering user verify theirself via email. + - + - Use the user category code + - + class: short + pref: PatronSelfRegistrationDefaultCategory + - as the default user category for users registered via the OPAC. + - + - " Delete users registered via the OPAC, but not yet verified after" + - + class: integer + pref: PatronSelfRegistrationExpireTemporaryAccountsDelay + - days. + - + - "The following database columns must be filled in on the user entry screen:" + - + class: multi + pref: PatronSelfRegistrationBorrowerMandatoryField + - (separate columns with |) + - + - " The following database columns will not appear on the user self-registration screen:" + - + class: multi + pref: PatronSelfRegistrationBorrowerUnwantedField + - (separate columns with |) + - + - "The following database columns will not appear on the user self-modification screen:" + - + class: multi + pref: PatronSelfModificationBorrowerUnwantedField + - (separate columns with |) + - + - "Display the following additional instructions for users who self register via the OPAC ( HTML is allowed ):" + - + class: html + pref: PatronSelfRegistrationAdditionalInstructions + type: htmlarea + - + - + choices: + "": " Do not consider" + 1: Consider + pref: PatronSelfRegistrationEmailMustBeUnique + - users's email (borrowers.email) as unique on self registering. An email won't be accepted if it already exists in the database. + - + - " Enable the self registration for the following libraries:" + - + pref: PatronSelfRegistrationLibraryList + - " (separate branchcode with |)." + - If empty, all libraries will be listed. + - + - + choices: + "": " Do not display and prefill" + 1: Display and prefill + pref: PatronSelfRegistrationPrefillForm + - " password and login form after a user has self registered." + Shelf Browser: + - + - + choices: + "": Don't show + 1: Show + pref: OPACShelfBrowser + - a shelf browser on item details pages, allowing members to see what's near that item on the shelf. Note that this uses up a fairly large amount of resources on your server, and should be avoided if your collection has a large number of items. + - + - + choices: + "": Don't use + 1: Use + default: 1 + pref: ShelfBrowserUsesLocation + - the item location when finding items for the shelf browser. + - + - + choices: + "": Don't use + 1: Use + default: 1 + pref: ShelfBrowserUsesHomeBranch + - the item home library when finding items for the shelf browser. + - + - + choices: + "": Don't use + 1: Use + default: 0 + pref: ShelfBrowserUsesCcode + - the item collection code when finding items for the shelf browser. diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 81a7580..4ed13dd 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -2,7 +2,7 @@ [% USE Branches %] [% USE Price %] [% INCLUDE 'doc-head-open.inc' %] -[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog +[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalogue [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] @@ -10,169 +10,170 @@ [% INCLUDE 'masthead.inc' %]
- + - [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] - [% IF ( loggedinusername ) %] -
- [% ELSE %] -
- [% END %] - [% ELSE %] -
- [% END %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + [% IF ( loggedinusername ) %] +
+ [% ELSE %] +
+ [% END %] + [% ELSE %] +
+ [% END %] -
- [% IF ( OpacNav || OpacNavBottom ) %] -
- -
- [% END %] +
+ [% IF ( OpacNav || OpacNavBottom ) %] +
+ +
+ [% END %] - [% IF ( OpacNav || OpacNavBottom ) %] -
- [% ELSE %] -
- [% END %] - [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] -
- - -
- [% END %] + [% IF ( OpacNav || OpacNavBottom ) %] +
+ [% ELSE %] +
+ [% END %] + [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] +
+ + +
+ [% END %] - [% IF ( koha_news_count ) %] + [% IF ( koha_news_count ) %] -
- [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %] - [% FOREACH koha_new IN koha_news %] -
-

[% koha_new.title %]

-
[% koha_new.content %]
-
(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])
-
- [% END %] -
-
- - - [% IF Branches.all.size == 1 %] - [% IF branchcode %] - RSS feed for [% Branches.GetName( branchcode ) %] library news. - [% ELSE %] - RSS feed for library news. - [% END %] - [% ELSE %] - [% IF branchcode %] - RSS feed for [% Branches.GetName( branchcode ) %] and system-wide library news. - [% ELSE %] - RSS feed for system-wide library news. - [% END %] - [% END %] -
- [% ELSE %] - [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] -
-
-
No news to display.
-
-
-
- [% END %] - [% END %] +
+ [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %] + [% FOREACH koha_new IN koha_news %] +
+

[% koha_new.title %]

+
[% koha_new.content %]
+ [% IF Koha.Preference( 'OPACNoNewsDate' ) == 1 %] + + [% ELSE %] +
(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])
+ [% END %] +
+ [% END %] +
+
+ + + [% IF Branches.all.size == 1 %] [% IF branchcode %] RSS feed for [% Branches.GetName( branchcode ) %] library news. [% ELSE %] RSS feed for library news. [% END %] [% ELSE %] [% IF branchcode %] RSS feed for [% Branches.GetName( branchcode ) %] and system-wide library news. [% ELSE %] RSS feed for system-wide library news. [% END %] [% END %]
+ [% ELSE %] + [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] +
+
+
No news to display.
+[% IF Koha.Preference( 'OPACNoNewsDate' ) == 1 %] + + [% ELSE %] +
(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])
+ [% END %] +
+
+ [% END %] + [% END %] - [% IF ( display_daily_quote && daily_quote ) %] -
-

Quote of the day

-
- [% daily_quote.text %] ~ [% daily_quote.source %] -
-
- [% END %] + [% IF ( display_daily_quote && daily_quote ) %] +
+

Quote of the day

+
+ [% daily_quote.text %] ~ [% daily_quote.source %] +
+
+ [% END %] - [% IF ( OpacMainUserBlock ) %]
[% OpacMainUserBlock %]
[% END %] -
+ [% IF ( OpacMainUserBlock ) %]
[% OpacMainUserBlock %]
[% END %] +
- [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %] -
- [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] - [% UNLESS ( loggedinusername ) %] - [% UNLESS ( casAuthentication || shibbolethAuthentication ) %] -
-
- -
- Log in to your account: - - -
- -
- [% IF Koha.Preference( 'NoLoginInstructions' ) %] -
- [% Koha.Preference( 'NoLoginInstructions' ) %] -
- [% END %] - [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %] - - [% END %] - [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] -
-

Don't have an account? Register here.

-
- [% END %] -
-
-
- [% END # /casAuthentication %] - [% ELSE %] - [% IF Koha.Preference('OPACUserSummary') && dashboard_info %] -
-

Welcome, [% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]

- -
- [% END %] - [% END # /loggedinusername %] - [% END # /opacuserlogin %] - [% IF ( OpacNavRight ) %] -
- [% OpacNavRight %] -
- [% END # /OpacNavRight %] -
- [% END # /opacuserlogin || OpacNavRight %] + [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %] +
+ [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + [% UNLESS ( loggedinusername ) %] + [% UNLESS ( casAuthentication || shibbolethAuthentication ) %] +
+
+ +
+ Log in to your account: + + +
+ +
+ [% IF Koha.Preference( 'NoLoginInstructions' ) %] +
+ [% Koha.Preference( 'NoLoginInstructions' ) %] +
+ [% END %] + [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %] + + [% END %] + [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] +
+

Don't have an account? Register here.

+
+ [% END %] +
+
+
+ [% END # /casAuthentication %] + [% ELSE %] + [% IF Koha.Preference('OPACUserSummary') && dashboard_info %] +
+

Welcome, [% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]

+ +
+ [% END %] + [% END # /loggedinusername %] + [% END # /opacuserlogin %] + [% IF ( OpacNavRight ) %] +
+ [% OpacNavRight %] +
+ [% END # /OpacNavRight %] +
+ [% END # /opacuserlogin || OpacNavRight %] -
-
+
+
[% INCLUDE 'opac-bottom.inc' %] -- 2.1.4