]> git.evergreen-ils.org Git - working/Evergreen.git/blob - docs/RELEASE_NOTES_3.0.adoc
f069e2dc6b9232b816c6a7b014db087a3034fb3a
[working/Evergreen.git] / docs / RELEASE_NOTES_3.0.adoc
1 Evergreen 3.0 Release Notes
2 ===========================
3 :toc:
4 :numbered:
5
6 Upgrade notes
7 -------------
8 The minimum version of PostgreSQL required to run Evergreen 3.0 is PostgreSQL 9.4.
9
10 Deprecation of XUL staff client
11 -------------------------------
12 Starting with the release of 3.0.0, patches that fix XUL bugs will not
13 be merged into master or backported unless they meet one or more of
14 the following conditions:
15
16 a. the bug is a security issue
17 b. the bug involves the destruction of data
18 c. the bug is a regression of functionality in the XUL staff client
19    introduced by other work done to Evergreen
20
21 Under no circumstances will XUL staff client feature enhancements be merged.
22
23 This policy will continue through the 3.0.x and 3.1.x maintenance
24 release cycles, and will become moot upon the release of 3.2.0, when
25 the XUL staff client is slated to be entirely removed.
26
27 New Features
28 ------------
29
30
31
32 Administration
33 ~~~~~~~~~~~~~~
34
35
36
37 New EDI Order Generator 
38 ^^^^^^^^^^^^^^^^^^^^^^^
39
40 Configuration
41 +++++++++++++
42
43 . New database tables exist for configuring vendor-specific EDI order 
44 attributes.
45
46  * acq.edi_attr 
47   ** List of EDI order generation toggles, e.g. "INCLUDE_COPIES" to add 
48      GIR segments
49  * acq.edi_attr_set
50   ** Collection of edi_attr's.  Each edi_account may be linked to one
51      edi_attr_set.
52   ** One edi_attr_set per known vendor is added to the stock data, matching
53      the stock configuration found in the JEDI template.
54  * acq.edi_attr_set_map
55   ** Link between edi_attr's and edi_attr_set's.
56
57 . EDI Attribute Sets are manged via a new (browser client only) configuration
58   interface at Administration -> Acquisistions Administration -> EDI
59   Attribute Sets.
60
61 . Each acq.edi_account should be linked to an acq.edi_attr_set.  If a link 
62   is not set, default values will be used.  Links between an EDI account
63   and an attribute set are managed in the EDI Accounts configuration 
64   interface.
65
66 . Local modifications to the stock EG JEDI template are managed by modifying
67   and/or adding additional edi_att_set's as needed.
68
69 . A new edi_order_pusher.pl script is added which replaces the functionality
70   of edi_pusher.pl.  edi_pusher.pl is still avaialable.
71
72 . After moving to edi_order_pusher.pl, the JEDI Action/Trigger event
73   definition is no longer required.  It can be disabled.
74
75 Migration
76 +++++++++
77
78 EDI accounts have a new boolean field "Use EDI Attributes" (use_attrs) that 
79 specifies whether PO's generated via the account should be built using 
80 EDI attributes or fall back to traditional JEDI A/T template generation.
81
82 This allows sites to activate EDI attributes on a per-account basis, making 
83 it possible to migrate piecemeal to EDI attributes.  For the initial roll
84 out of this new features, no accounts will be configured to use EDI 
85 attributes by default.  
86
87
88
89
90
91 3 Day Courtesy Notice by SMS
92 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 New optional SMS text notification to be sent out 3 days prior to the due
94 date of any circulating item for patrons who have an SMS text number and
95 carrier stored in their accounts. This action trigger is disabled by default,
96 but can be enabled and modified by going into Admin > Local Administration >
97 Notifications / Action Triggers.
98
99 You may wish to make use of granularity so that these messages are batched
100 and sent at the same time each day.
101
102
103
104
105 Add Description Field to Circulation and Hold Configuration Entries
106 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107 The circulation and hold policy configuration rules now each have a
108 description field. This allows administrators to add comments to
109 describe the purpose of each rule.
110
111
112
113
114 Apache Internal Port Configuration Option
115 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 Apache configuration now supports a new variable which allows admins to
117 specify the port used by Apache to handle HTTP traffic.  The value is
118 used for HTTP requests routed from Perl handlers back to the same Apache
119 instance, like added content requests.  Use this when running Apache
120 with a non-standard port, typical with a proxy setup.  Defaults to "80".
121
122 [source,conf]
123 -------------------------------------------------------------------
124 <Location /eg>
125     ...
126     PerlSetVar OILSWebInternalHTTPPort "7080"
127     ...
128 </Location>
129 -------------------------------------------------------------------
130
131
132
133
134 Configurable Bib Record Display Fields
135 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136
137 Admin -> Server Admin -> 'MARC Search/Facet Fields' have 2 new configuration 
138 fields: 'Display Field?' and 'Display XPATH'.
139
140 When 'Display Field' is set to true, data from the field will be extracted
141 from each record and added to a new table of display data for each bib 
142 record.  
143
144 If a value is present in the 'Display XPATH' field, this XPATH will be
145 applied to the extracted data *after* the base XPATH (from the 'XPath' 
146 field) is applied to each field.
147
148 This data acts as a replacement for the various and sundry ways bib record 
149 data is currently extracted, including inline XPATH in the TPAC, reporter 
150 views, real-time 'MVR' compilation from MODS, etc. and will be available
151 to the user interface, notification templates, etc. for rendering bib 
152 records.  
153
154 The browser client gets a new service 'egBibDisplay' which is capable
155 of translating the display field data from various formats into 
156 data more suitable for JavaScript usage.
157
158 The database gets 3 new VIEWs for representing display data in various
159 formats:
160
161  * metabib.flat_display_entry
162   ** List of all display fields linked to their configuration.
163  * metabib.compressed_display_entry
164   ** Same as metabib.flat_display_entry except there's one row
165      per display field type, which 'mulit' rows compressed into
166      JSON arrays.  Non-multi fields are represented as JSON 
167      strings/numbers.
168  * metabib.wide_display_entry
169   ** Tabular view of display field data, one column per well-known
170      field.  Values are represented JSON, consistent with 
171      metabib.flat_display_entry.  The view DOE NOT CONTAIN locally
172      configured dispaly fields, as each field must be encoded in
173      the view and IDL definition.  This is essentially a replacement 
174      for reporter.simple_record.
175
176 Reingesting
177 +++++++++++
178
179 After making changes to display field configuration, it's possible to 
180 reingest only display field data in the database using the following:
181
182 [source,sql]
183 ---------------------------------------------------------------------
184 SELECT metabib.reingest_metabib_field_entries(id, TRUE, FALSE, TRUE, TRUE, 
185   (SELECT ARRAY_AGG(id)::INT[] FROM config.metabib_field WHERE display_field))
186   FROM biblio.record_entry WHERE NOT deleted AND id > 0;
187 ---------------------------------------------------------------------
188
189
190
191
192
193 Fix COPY_STATUS_LONGOVERDUE.override Permission Typo
194 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195 The existing permission was incorrectly created with a code of
196 COPY_STATUS_LONGOVERDUE.override, while the event thrown requires a
197 permission with a code of COPY_STATUS_LONG_OVERDUE.override.  This
198 update changes the permission code to match what the event requires.
199
200
201
202
203
204 Hold Targeter V2 Repairs and Improvements
205 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
206 * Make the batch targeter more resilient to a single-hold failure.
207 * Additional batch targeter info logging.
208 * Set OSRF_LOG_CLIENT in hold_targeter_v2.pl for log tracing
209 * Removes the confusingly named --target-all option
210  ** The same behavior can be achieved by using --retarget-interval "0s"
211 * Removes --skip-viable (see --soft-retarget-interval below)
212
213 New --next-check-interval Option
214 ++++++++++++++++++++++++++++++++
215 Specify how long after the current run time the targeter will retarget
216 the currently affected holds. Applying a specific interval is useful
217 when the retarget-interval is shorter than the time between targeter
218 runs.
219
220 For example, if the targeter is run nightly at midnight with a
221 --retarget-interval 36h, you would set --next-check-interval to 48hr,
222 since the holds won't be processed again until 48 hours later. This
223 ensures that the org unit closed date checks are looking at the correct
224 date. 
225
226 This setting overrides the default behavior of calculating the next 
227 retarget time from the retarget-interval.
228
229 New --soft-retarget-interval Option
230 +++++++++++++++++++++++++++++++++++
231 This is a replacement for (and rebranding of) the --skip-viable option. 
232 The new option allows for time-based soft-targeting instead simple binary 
233 on/off soft-targeting.
234
235 How soft-targeting works:
236 * Update hold copy maps for all affected holds
237 * Holds with viable targets (on the pull list) are otherwise left alone.
238 * Holds without viable targets are retargeted in the usual manner. 
239
240
241
242
243
244 New marc_export --descendants option
245 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
246
247 The marc_export script has a new option, --descendants.  This option
248 takes one argument of an organizational unit shortname.  It works much
249 like the existing --library option except that it is aware of the
250 org. tree and will export records with holdings at the specified
251 organizational unit and all of its decendants.  This is handy if you
252 want to export the records for all of the branches of a system.  You
253 can do that by specifying this option and the system's shortname,
254 instead of specifying multiple --library options for each branch.
255
256 The --descendants option can be repeated, as the --library option can.
257 All of the specified org. units and their descendants will be included
258 in the output.  It can also be combined with individual --library
259 options when necessary.
260
261
262
263
264 RTL and LTR Public Catalog Stylesheets Merged
265 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
266 The RTL stylesheet for the public catalog,
267 `templates/opac/css/style-rtl.css.tt2`, has been merged into the LTR
268 one (`templates/opac/css/style.css.tt2`). The combined stylesheet
269 template will emit RTL or LTR styles based on the value of
270 the `rtl` flag of the active locale. An `rtl` variable is also available
271 in the template to allow the correct style to be chosen.
272
273 Upgrade notes
274 +++++++++++++
275 Administrators of Evergreen who use RTL locales and who have customized
276 `style-rtl.css.tt2` should now incorporate their customizations into
277 `style.css.tt2`.
278
279
280
281
282 Miscellaneous Improvements
283 ^^^^^^^^^^^^^^^^^^^^^^^^^^
284
285  * If a filter is in effect in the Library Settings Editor,
286    changing the selected library now results in the filter
287    continuing to be applied.
288  * Copy templates used for serials now correct link to age
289    protection rules and MARC item type values (for the
290    "Circ as Type" field). During upgrade, the database update
291    will set to NULL any age protection and circ as type fields
292    in serial copy templates that do not point to defined values.
293
294
295
296
297 Obsolete Internal Flag Removed
298 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
299
300 An obsolete, and unused, ingest.disable_metabib_field_entry internal
301 flag was removed from the config.internal_flags table.  It was
302 rendered obsolete by the addition of the 3 flags to control the
303 browse, search, and facet indexing.
304
305
306
307
308 Tweaks to Caching/Expiry of Public Catalog Assets
309 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
310 The default cache expiration time for static assets (e.g.,
311 CSS, image, and JavaScript files) in the public catalog and
312 the Kid's PAC has been increased to one year. Links to all
313 such assets now have a cache-busting value tacked on as a
314 query parameter. This value is refreshed when `autogen.sh` is
315 run, but it can also be manually set by adjusting the
316 `ctx.cache_key` Template Toolkit variable.
317
318
319
320
321 Action/Trigger Events Data Purging
322 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
323
324 Action/Trigger event definitions have a new field called "Retention 
325 Interval".  When an optional interval value is applied, events and
326 template output data linked to the event definition will be deleted
327 from the database once they reach the specified age.
328
329 Retention Interval Restrictions for Passive Hooks
330 +++++++++++++++++++++++++++++++++++++++++++++++++
331
332 Restrictions are placed on retention interval values for event definitions
333 using passive hooks to prevent data from being deleted while it's still
334 needed by the system.
335
336 The presence of event data is how the system knows not to send duplicate
337 events.  As long as a scenario exists where a duplicate event may be
338 generated, the events must be retained.
339
340 To apply a retention interval value to a passive-hook event definition:
341
342  * The event definition must have a max_delay value.
343  * The retention interval must be larger than the difference between
344    the delay and max_delay values.
345
346 For example, if the delay is 7 days and max_delay is 10 days, the retention
347 interval must be greater than 3 days to ensure no duplicate events are 
348 created between the first event on day 7 and the end of the event validity
349 window on day 10.
350
351 Deployment
352 ++++++++++
353
354 A new purge_at_events.sh script is installed in the bin directory
355 (typically /openils/bin) wich should be added to CRON for regular
356 maintanence.
357
358 NOTE: On large data sets, this script can take a long time to run and
359 create higher than normal I/O load as it churns though the event and
360 event_output tables.  You may wish to run the script by hand the first
361 time so it can be monitored.  It can be run in psql like so:
362
363 [source,sql]
364 ---------------------------------------------------------------
365 SELECT action_trigger.purge_events();
366 ---------------------------------------------------------------
367
368 NOTE: On *very* large data sets (10s to 100s of millions of event and
369 event_output rows), it may be advisable to first to repopulate the event
370 and event_output tables with only the desired data before starting
371 regular purges.  This can be done, for example, using the copy to temp
372 table, truncate source table, repopulate source table from temp table
373 approach.  This will be much faster than the purge_events() function
374 in cases where most of the data will be purged.
375
376 Hook Data Cleanup
377 +++++++++++++++++
378
379 A number of action_trigger.hook entries which have always been treated
380 as active hooks, though are configured as passive hooks, have been 
381 updated to properly reflect the non-passive-ness.  This allows for 
382 simpler configuration of their retention interval values.
383
384
385
386
387
388 Remove JSPAC Redirects
389 ^^^^^^^^^^^^^^^^^^^^^^
390 Future versions of Evergreen will no longer contain automatic redirects
391 from JSPAC URLs to TPAC URLs, with the exception of myopac.xml, given
392 that the JSPAC is no longer supported.  Existing sites, however, may
393 wish to retain JSPAC redirects in their Apache configuration files since
394 JSPAC URLs may still be used in the wild to access their catalogs.
395
396 The original JSPAC URL redirects are all retained in the file 
397 Open-ILS/examples/jspac_redirects.conf for reference.
398
399
400
401
402 API
403 ~~~
404
405
406
407 New open-ils.auth.login API
408 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
409 The open-ils.auth service has a new API for requesting an authentication
410 token.  It performs the same steps as the 
411 open-ils.auth.authenticate.init and .complete APIs in a single call,
412 using the bare password.  No intermediate password hashing is required.
413
414 The paramters are the same as the .complete call with a few modifications.
415
416 1. Using the generic "identifier" parameter in combination with the
417    "org" parameter allows the API to reliably determine if an identifier
418    value is a username or barcode.  The caller is no longer required to 
419    make that determination up front.  
420
421 2. The 'nonce' parameter is no longer used.
422
423 Upgrade Notes
424 +++++++++++++
425
426 The new open-ils.auth.login API must be added to the list of <log_protect>
427 API's in the opensrf_core.xml file.
428
429 Sample diff:
430
431 [code,sh]
432 ---------------------------------------------------------------------
433 --- a/Open-ILS/examples/opensrf_core.xml.example
434 +++ b/Open-ILS/examples/opensrf_core.xml.example
435 @@ -180,6 +180,7 @@ Example OpenSRF bootstrap configuration file for Evergreen
436      <log_protect>
437        <match_string>open-ils.auth.authenticate.verify</match_string>
438        <match_string>open-ils.auth.authenticate.complete</match_string>
439 +      <match_string>open-ils.auth.login</match_string>
440        <match_string>open-ils.auth_proxy.login</match_string>
441        <match_string>open-ils.actor.patron.password_reset.commit</match_string>
442        <match_string>open-ils.actor.user.password</match_string>
443 ---------------------------------------------------------------------
444
445
446
447
448
449 Batch Patron Contact Invalidation
450 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
451 The following methods are used to mark patron contact fields
452 as invalid by moving the invalid value to a standing penalty:
453
454  * `open-ils.actor.invalidate.email`
455  * `open-ils.actor.invalidate.day_phone`
456  * `open-ils.actor.invalidate.evening_phone`
457  * `open-ils.actor.invalidate.other_phone`
458
459 These methods now accept a fifth argument specifying the value
460 of the contact field, e.g., a specific phone number or email
461 address. If supplied, and if a specific patron ID (the first
462 argument) is not supplied, all patrons with that specific contact
463 value will have it marked invalid.
464
465
466
467
468 Architecture
469 ~~~~~~~~~~~~
470
471
472
473 Pure-SQL catalog searching
474 ^^^^^^^^^^^^^^^^^^^^^^^^^^
475 Public and staff catalog search is now both more accurate and faster
476 by redesigning how the visibility of records is calculated.
477
478
479
480
481 Cataloging
482 ~~~~~~~~~~
483
484
485
486 Authority Record and Headings Browse Improvements
487 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
488 Various improvements are made to support for authority records
489 and headings browsing:
490
491  * The MARC to MADS XSLT stylesheet is now used as part of parsing
492    headings from authority records. Since the MODS and MADS stylesheets
493    extract headings in similar ways, duplicate browse entries are now
494    much less likely to occur.
495  * A new configuration table, `authority.heading_field`, is now used
496    to specify how headings should be extracted from authority records.
497  * Related headings can now be identified as narrower or broader when
498    browsing in the public catalog.
499  * See references are now more reliably included in the browse list.
500  * Scope (public) notes now display only under the main heading.
501  * There is now a global flag, Display related headings (see-also) in browse,
502    that can be used to control whether related headings (see-alsos) are
503    displayed in the public catalog list.
504  * A complete set of thesauruses are now included in the seed data.  Thesauruses
505    can now be identified using short and long codes.
506  * The labels for see and see-also references in the public catalog are now
507    a bit more patron-friendly, and can now be tweaked via TPAC template
508    customization.
509
510
511
512
513
514 Copy Tags and Digital Bookplates
515 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
516 Copy tags will allow staff to apply custom, pre-defined labels or tags
517 to copies.  Copy tags are searchable in both the staff client and public
518 catalog.  This feature was designed to be used for Digital Bookplates to
519 attach donation or memorial information to copies, but may be used for
520 broader purposes to tag items.
521
522 Each copy tag can either be publicly-visible or visible only to staff.
523 Copy tags also have types that can be used for restricting catalog
524 searches on copy tags to particular types.
525
526 Copy tags are displayed in the copy table in the record summary page in
527 the public catalog, and a new library setting can be used to add
528 a "Digital Bookplate" search field.  Copy tags can also be used
529 as a search filter, e.g.,
530
531   * `copy_tag(bookplate, jane smith)`: search for records that have a
532     copy tag of type `bookplate` whose value contains `jane smith`.
533   * `copy_tag(*, jane smith)`: search for records that have a
534     copy tag of any type whose value contains `jane smith`.
535
536 All staff-side interfaces related to copy tags exist only in the web
537 staff client.  There are two new administration interfaces for managing
538 copy tags and copy tag types. The copy editor now has a `Copy Tags`
539 button for applying copy tags to copies; that interface can also be
540 used to create new copy tags on the fly. Furthermore, the copy buckets
541 interface now has an `Apply Tags` action for assigning tags to groups
542 of copies.
543
544 Permissions
545 +++++++++++
546
547 Two new permission are included:
548
549   * `ADMIN_COPY_TAG_TYPES`: required to create a new tag type under
550      Server Administration->Copy Tag Types
551   * `ADMIN_COPY_TAG`: required to create a new tag under
552     Local Administration->Copy Tags
553
554 The existing permission `UPDATE_COPY` controls whether or not a user
555 can link copies to tags.
556
557 Library Settings
558 ++++++++++++++++
559 A new library setting, "Enable Digital Bookplate Search", controls
560 whether to display a "Digital Bookplate" field in the search index
561 drop-downs in the catalog. A "Digital Bookplate" search will include
562 all records that have a copy that matches the tag specified by the user.
563 It should be noted that this library settings does not affect the
564 display of copy tags on the catalog record summary page.
565
566
567
568
569 Include Call Number Prefixes and Suffixes in Export and Z39.50 output
570 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
571 The call number prefix and suffix, when present, are now included in
572 subfields $k and $m of the 852 field when running `marc_export` with
573 the `--items` switch. Similarly, when using Evergreen as a Z39.50
574 server configured to embed item data in 852 fields, the affixes are now
575 included in subfields $k and $m.
576
577
578
579
580 Circulation
581 ~~~~~~~~~~~
582
583
584
585 Batch Editing of Patron Records
586 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
587 There is a now a new interface analogous to the Copy Bucket interface
588 to record the selection and grouping of a set of users into a User Bucket.
589 The addition of users to a User Bucket is possible from the Patron Search
590 interface by the use of a new grid Action, and directly on the User Bucket
591 interface by user barcode. It is also possible to add users by uploading
592 a text file that contains a list of user barcodes.
593
594 From this interface it is possible to perform a set of specific batch update
595 operations against users generally.
596
597 Editing users
598 +++++++++++++
599
600 The fields can now be changed in batch via an action on the User Bucket
601 grid if the staff user has the UPDATE_USER permission:
602
603  * Active flag
604  * Primary Permission Group (group application permissions consulted)
605  * Juvenile flag
606  * Home Library (UPDATE_USER checked against both old and new value)
607  * Privilege Expiration Date
608  * Barred flag (BAR_PATRON permission consulted)
609  * Internet Access Level
610
611 Each change set requires a name. Buckets may have multiple change sets. All
612 users in the Bucket at the time of processing are updated when the change
613 set is processed, and change sets are processed immediately upon successful
614 creation. The interface delivers progress information regarding the
615 processing stage and percent of completion.
616
617 While processing the users, the original value for each field edited is
618 recorded for potential future rollback. Users can examine the success and
619 failure of applied change sets.
620
621 The user will be able to rollback the entire change set, but not parts thereof.
622 The rollback will affect only those users that were successfully updated by the
623 original change set and may be different from the current set of users in the
624 Bucket. Users can manually discard change sets, removing them from the
625 interface but preventing future rollback.
626
627 As a batch process, rather than a direct edit, this mechanism explicitly skips
628 processing of Action/Trigger event definitions for user update.
629
630 Deleting users
631 ++++++++++++++
632
633 The batch edit mechanism also allows for the batch deletion of user.  The staff
634 user must have both the UPDATE_USER and DELETE_USER permissions.
635
636 Each delete set requires a name. Buckets may have multiple delete sets. All
637 users in the Bucket at the time of processing are marked as deleted when
638 the delete set is processed. The interface delivers progress information
639 regarding the processing stage and percent of completion.
640
641 While processing the users, the original value for the "deleted" field will be
642 recorded for potential future rollback. Users are able to examine the
643 success and failure of applied delete sets in the same interface used for the
644 above described change sets.
645
646 As a batch process, rather than a direct edit, this mechanism explicitly skips
647 processing of Action/Trigger event definitions for user deletion.
648
649 This mechanism does not use the Purge User functionality, but instead simply
650 marks the users as deleted.
651
652 Editing Statistical Category Entries
653 ++++++++++++++++++++++++++++++++++++
654
655 All users in the bucket can have their Statistical Category Entries
656 modified. Unlike user data field updates, modification of Statistical
657 Category Entries is permanent and cannot be rolled back. No named change
658 sets are required. The interface will deliver progress information regarding
659 the processing stage and percent of completion.
660
661 As a batch process, rather than a direct edit, this mechanism explicitly skips
662 processing of Action/Trigger event definitions for user update.
663
664 New service requirement
665 +++++++++++++++++++++++
666
667 This new functionality makes use of the QStore service, which was previously
668 unused in production.  If this service has been removed from the configuration
669 of a live Evergreen instances, it will need to be added back in order for
670 batch user editing to succeed.
671
672
673
674
675 Honor timezone of the acting library
676 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
677
678 Summary
679 +++++++
680
681 * Display day-granular due dates in the circulating library's timezone.
682 * Only display the date portion of the due date for day-granular circulations.
683 * Display the full timestamp, in the client's timezone rather than the circulation library's, for hourly circulations.
684 * Provide infrastructure for more advanced formatting of timestamps.
685 * Override the built-in AngularJS date filter with an implementation that uses moment.js, providing consistency and better standards compliance.
686
687 Upgrade note
688 ++++++++++++
689
690 The following query will adjust all historical, unaged circulations so
691 that if their due date field is pushed to the end of the day, it is done
692 in the circulating library's time zone, and not the server time zone.
693
694 It is safe to run this after any change to library time zones.
695
696 Running this is not required, as no code before this change has
697 depended on the time string of '23:59:59'.  It is also not necessary
698 if all of your libraries are in the same time zone, and that time zone
699 is the same as the database's configured time zone.
700
701 [source,sql]
702 ----
703 DO $$
704 declare
705     new_tz  text;
706     ou_id   int;
707 begin
708     for ou_id in select id from actor.org_unit loop
709         for new_tz in select oils_json_to_text(value) from actor.org_unit_ancestor_setting('lib.timezone',ou_id) loop
710             if new_tz is not null then
711                 update  action.circulation
712                   set   due_date = (due_date::timestamp || ' ' || new_tz)::timestamptz
713                   where circ_lib = ou_id
714                         and substring((due_date at time zone new_tz)::time::text from 1 for 8) <> '23:59:59';
715             end if;
716         end loop;
717     end loop;
718 end;
719 $$;
720 ----
721
722 Details
723 +++++++
724
725 This is a followup to the work done in bug 1485374, where we added the ability
726 for the client to specify a timezone in which timestamps should be interpreted
727 in business logic and the database.
728
729 Most specifically, this work focuses on circulation due dates and the closed
730 date editor. Due dates, where displayed using stock templates (including
731 receipt templates) and used for fine calculation, are now manipulated in the
732 library's configured timezone. This is controlled by the new 'lib.timezone'
733 YAOUS, loaded from the server when required. Additionally, closings are
734 recorded in the library's timezone so that so that due date calculation is more
735 accurate. The closed date editor is also taught how to display closings in the
736 closed library's timezone. Closed date entries also explicitly record if they
737 are a full day closing, or a multi-day closing. This significantly simplifies
738 the editor, and may be useful in other contexts.
739
740 To accomplish this, we use the moment.js library and the moment-timezone addon.
741 This is necessary because the stock AngularJS date filter does not understand
742 locale-aware timezone values, which are required to support DST. A simple
743 mapper translates the differences in format values from AngularJS date to
744 moment.js.
745
746 Of special note are a set of new filters used for formatting timestamps under
747 certain circumstances. The new egOrgDateInContext, egOrgDate, and egDueDate
748 filters provide the functionality, and autogrid is enhanced to make use of
749 these where applicable. egGrid and egGridField are also taught to accept
750 default and field-specific options for applying date filters. These filters may
751 be useful in other or related contexts.
752
753 The egDueDate filter, used for all existing displays of due date via Angular
754 code, intentionally interprets timestamps in two different ways WRT timezone,
755 based on the circulation duration. If the duration is day-granular (that is,
756 the number of seconds in the duration is divisible by 86,400, or 24 hours worth
757 of seconds) then the date is interpreted as being in the circulation library's
758 timezone. If it is an hourly loan (any duration that does not meet the
759 day-granular criterium) then it is instead displayed in the client's timezone,
760 just as all other timestamps currently are, because of the work in 1485374.
761
762 The OPAC is adjusted to always display the due date in the circulating
763 library's timezone. Because the OPAC displays only the date portion of the due
764 date field, this difference is currently considered acceptable. If this proves
765 to be a problem in the future, a minor adjustment can be made to match the
766 egDueDate filter logic.
767
768 Now that due dates are globally stored in the configured timezone of the
769 circulating library, the automatic adjustment to day-granular due dates needs
770 to take those timezones into account.
771
772 An optional SQL command is provided by the upgrade script to retroactively
773 adjust existing due dates after library configuration is complete.
774
775 This work, as with 1485374, was funded by SITKA, and we thank them for their
776 partnership in making this happen!
777
778
779
780
781
782 Enhancements to Hard Due Date Functionality
783 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
784 It will now be possible to delete Hard Due Date Values for dates that have
785 passed. Also, the Hard Due Date updater will no longer change Ceiling Dates
786 to a past date. This allows editing Ceiling Dates directly in a Hard Due Date
787 as well as scheduling Ceiling Date changes via Hard Due Date Values.
788
789
790
791
792 Patron Search by Birth Date
793 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
794 * Now you can include the patron birth year and/or birth month and/or
795   birth day when searching for patrons using the web based staff client.
796 * Day and month values are exact matches.  E.g. month "1" (or "01")
797   matches January, "12" matches December.
798 * Year searches are "contains" searches.  E.g. year "15" matches 2015,
799   1915, 1599, etc.  For exact matches use the full 4-digit year.
800
801
802
803 Patron Search from Place Hold
804 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
805 Patron Search from Place Hold allows staff members, when placing a
806 hold on behalf of a patron in the web staff client, to search for
807 patrons by names and other searchable patron information, rather than
808 relying on barcode alone. In particular, after performing a catalog
809 search or going to a specific bib record and clicking the 'Place Hold'
810 button, the form now includes a 'Patron Search' button. This button
811 will open a dialog allowing the staff member search for and select
812 a patron record.
813
814
815
816
817 Retrieve Recent Patrons 
818 ^^^^^^^^^^^^^^^^^^^^^^^
819
820 Adds a new library setting 'Number of Retrievable Recent Patrons' 
821 ('ui.staff.max_recent_patrons') that specifies the number of recently
822 retrieved patrons that can be re-fetched from the staff client.
823
824 A value of 0 means no recent patrons can be retrieved.
825 A value greater than 1 means staff will be able to retrive multiple
826 recent patrons via a new Circulation 'Retrieve Recent Patrons' menu entry.
827
828 The default value is 1 for backwards compatibility.
829
830
831
832
833
834
835 Fuller title in XUL client Simplified Pull List
836 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
837 The Simplified Pull List in the XUL client will now display subfields n and
838 p in the title field. The addition will make it easier for staff to distinguish
839 between different parts or seasons in a series.
840
841
842
843
844
845 Transit Cancel Time and Terminology Change
846 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
847
848 Transit Cancel Time
849 +++++++++++++++++++
850
851 Previously, Evergreen deleted canceled (aborted) transits from the database.  Now
852 the rows in action.transit_copy, action.hold_transit_copy, and action.reservation_transit_copy
853 are preserved in the database, though still not visible to the end user in the staff client.
854 This allows for better tracking of when transits are canceled for the purposes of knowing
855 which staff member canceled the transit, etc.
856
857 NOTE: This change may require the re-creation of transit reports to filter out canceled
858 transits from the results.  Cloning the template and adding a Base Filter of Cancel Time 
859 Is NULL will suffice.
860
861 "Canceled Transit" Terminology Change
862 +++++++++++++++++++++++++++++++++++++
863
864 The term "abort" has been replaced with "cancel" in all of the affected user interfaces.
865 For internal continuity, however, the following permission codes have not changed:
866
867  * ABORT_TRANSIT
868  * ABORT_REMOTE_TRANSIT
869  * ABORT_TRANSIT_ON_LOST
870  * ABORT_TRANSIT_ON_MISSING
871
872
873
874
875 Client
876 ~~~~~~
877
878
879
880 Add Circ Modifier to Record Detail Page in Staff TPAC
881 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
882 The circ_modifier field is added to the copy table to make
883 more information available to staff without having to open
884 the Holdings Maintenance view.
885
886
887
888
889
890 Date+Time Format Settings for Web Client
891 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
892
893 This change deprecates the existing Format Dates and Format Times settings
894 and adds two settings for use with the webstaff client:
895
896   * Format Dates with this pattern
897   * Format Date+Time with this pattern
898
899 These settings use format strings as documented here:
900
901 https://docs.angularjs.org/api/ng/filter/date
902
903 There is overlap with how the Dojo formats worked, but also some differences.
904
905 The original Format Dates and Format Times settings worked together, but the
906 new settings work independently.  Certain field elements will use one, and
907 certain field elements will use the other.  These distinctions are hard-coded
908 in the various UI templates, with the idea being that timestamp fields in
909 which the date component alone is sufficient information (for example, DOB)
910 will use the Format Dates setting.  Fields where the time component is
911 important (for example, Checkout Time) will use the Format Date+Time setting.
912
913 When the settings Format Dates and Format Date+Time are unset, we will default
914 to "shortDate" (M/d/yy) and "short" (M/d/yy h:mm a), respectively.
915
916
917
918
919
920 Global option to remove sound for a specific event
921 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
922 A new nosound.wav file has been added to the web client. The file can be used
923 to globally disable audio alerts for a specific event on an Evergreen system.
924
925 For example, to silence the alert that sounds after a successful patron search:
926
927   * mkdir -p /openils/var/web/audio/notifications/success/patron/
928   * cd /openils/var/web/audio/notifications/success/patron/
929   * ln -s ../../nosound.wav by_search.wav
930
931
932
933
934
935 OPAC
936 ~~~~
937
938
939
940 Improvements to Bill Payment Pages
941 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
942 The bill payment pages in the public catalog have been revamped
943 to
944
945  * use "charges" instead of "fees"
946  * include images of credit cards accepted
947  * make the print receipt template match other itemized receipts;
948    note that this change is not automatically applied when upgrading.
949  * display billing type
950  * add button to pay just selected charges
951  * reformat the page for inputting the credit card number
952
953
954
955
956 Clickable Copy Locations
957 ^^^^^^^^^^^^^^^^^^^^^^^^
958 Adds a url field to the copy locations editor. When a url is entered in this field, 
959 the associated copy location will display as a link in the opac summary display.
960
961
962
963
964 Download Checkout History CSV Fixed for Large Number of Circulations
965 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
966 Downloading checkout history as a CSV from My Account has been fixed
967 for users with a large circulation history.  Previously, this would
968 time out for patrons with more than 100 or so circulations.
969
970 This feature no longer uses the action/trigger mechanism and the OPAC
971 now generates the CSV directly.  The old action/trigger code is still
972 present in the database and should be removed at some point in the
973 near future.
974
975
976
977
978 Google Books Preview rewrite
979 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
980 The Google Books Preview functionality in record detail pages has been
981 rewritten to modernize its style and optimize its performance:
982
983 * The Dojo JavaScript framework is no longer used, saving approximately
984   150K of JavaScript and CSS and four network requests per page load.
985 * The Embedded Viewer is not loaded unless a possible preview is found,
986   saving more network and memory overhead.
987 * The Google Books Loader is used to load the Embedded Viewer instead of the
988   https://productforums.google.com/forum/#!topic/books-api/lZrq5cWKrTo;context-place=forum/books-api[deprecated
989   Google Loader].
990 * All variables are self-contained and do not pollute the global namespace.
991 * Event listeners are registered to handle clicks, rather than attaching
992   `href="javascript:function()"` to <a> elements.
993 * Book previews are displayed in a panel sized according to the viewport
994   of the browser, improving its appearance on both mobile and desktop
995   browsers.
996 * The rewritten code is now served up directly from
997   `/js/ui/default/opac/ac_google_books.js` rather than as a TT2 template.
998
999
1000
1001
1002 jQuery for the TPAC
1003 ^^^^^^^^^^^^^^^^^^^
1004 This release adds optional support for jQuery in the TPAC.  This support
1005 enabled by setting the ctx.want_jquery variable to a true value in the
1006 config.tt2 TPAC template.
1007
1008
1009
1010
1011
1012 New Popularity Parameter
1013 ^^^^^^^^^^^^^^^^^^^^^^^^
1014 New popularity parameters for in-house use over time and for count of distinct
1015 organizational units that own a title are now available. Evergreen sites
1016 can use these parameters to create new statistical popularity badges for
1017 sorting in the catalog by Most Popular or by Popularity-Adjusted Relevance.
1018
1019 The in-house use parameters will apply a badge to titles that have the most
1020 in-house use activity over time. The organizational unit count parameter
1021 will apply a badge to titles owned by the most number of libraries in a
1022 consortium. Ownership is determined by the copy's circulation library.
1023
1024
1025
1026
1027 Option to Suspend Holds at the Time They are Placed
1028 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1029 Users now have the option to suspend a hold at the same time they place the
1030 hold. The _Place Hold_ screen has a checkbox that can be enabled for users
1031 who want to suspend a hold at the time it is placed. There is also an option
1032 to set the activation date at the same time. This option is also available
1033 when placing holds on a batch of titles from _My List_ and will apply to
1034 all the titles in the batch.
1035
1036
1037
1038
1039
1040 Reports
1041 ~~~~~~~
1042
1043
1044
1045 Fix to reporter.classic_current_circ view
1046 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1047 The `reporter.classic_current_circ` view, which is part of some
1048 extra views defined in `Open-ILS/src/sql/Pg/example.reporter-extension.sql`,
1049 has been fixed to not exclude loans for patrons who do not have a
1050 billing address set. Users of this view should rerun
1051 `Open-ILS/src/sql/Pg/example.reporter-extension.sql` during upgrade.
1052
1053
1054
1055
1056 New report source table allowing report of "last" deleted copy
1057 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1058
1059 This source table allows you to construct a clever aggregate report template
1060 which will report bibliographic ID's where a library or a group of libraries 
1061 no longer have a copy attached but had* a copy attached. This is especially
1062 useful when a holdings sync is required with an external vendor.
1063
1064
1065 Instructions for creating the report template:
1066   * Create a new report template using the "Library Holdings Count with Deleted" as the source
1067   * Add "Has Only Deleted Copies 0/1" (Min) to the Aggregate Filters -> Change Value to "1"
1068   * Add "Last Edit Date" (Max) to Aggregate Filters -> Change Operator to "Between"
1069   * Add Circulation Library -> "Organizational Unit ID" Raw Data to Base Filters -> Change Operator to "In list"
1070   * Add "Bib ID" to Displayed Fields
1071   * Add "Last Edit Date" to Displayed Fields and Change Transform to Max
1072   * Add "Has Only Deleted Copies 0/1" to Displayed Fields and Change Transform to Min
1073   * Add "Total copies attached" to Displayed Fields and Change Transform to Sum
1074
1075
1076 This template will only output bibliographic ID's where all of the copies for the specified branch(es)
1077 are deleted. Furthermore, it will only output bibs whose copies were edited (deleted) during the 
1078 specified date range. Unfortunatly the user will have to manually type the date range without the date
1079 picker. This view will also allow you to answer questions like "Show me bibs where I have one visible
1080 copy and more than two deleted copies."
1081
1082
1083
1084
1085 Add Provider to Provider Note link
1086 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1087 The Provider reporting source now includes a link to Provider Note.
1088
1089
1090
1091
1092 Link ILS User and Working Location Reporting Sources
1093 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1094 The Working Location reporting source now has labels
1095 and it is now linked to the ILS User reporting source, allowing
1096 reports to display or filter on staff working location.
1097
1098
1099
1100
1101 New circulation report source "All Circulation Combined Types"
1102 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1103
1104 This report source will allow you to create a single report template for all of the following:
1105   * In House
1106   * In House Non Cat
1107   * Circulation (standard)
1108   * Non Cat Circulation
1109
1110 These columns are important to display:
1111   * Item Type
1112   * Circulation Type
1113
1114
1115
1116
1117 Reports Template Searching
1118 ^^^^^^^^^^^^^^^^^^^^^^^^^^
1119 A new form appears along the top of the reports interface for searching
1120 report templates.  Once found, typical template actions (e.g. create new
1121 report) are available from within the results interface.
1122
1123 Searches may be performed across selected (visible) folders or all 
1124 folders visible to the logged in user.
1125
1126 Searches are case-insensitive, any word order, with left-anchored words.  
1127 All searched words must appear in at least one of the searched fields.
1128
1129 Examples
1130 ++++++++
1131
1132  * Searching for 'stat cat' matches:
1133   ** stat cat
1134   ** statistical category
1135   ** categories, statistical
1136   ** patrons (stat cat)
1137  * Searching for 'stat cat' does not match:
1138   ** stat 
1139    *** both words must be present in the searched field(s)
1140   ** stat location
1141     *** location contains 'cat' but it's not left-anchored.
1142
1143 Reporter Paging
1144 +++++++++++++++
1145
1146 The templates, reports, and output interfaces now support paging via 
1147 new 'Next', 'Prev', and 'Start' links next to the output limit selector.
1148
1149
1150
1151
1152
1153
1154 Serials
1155 ~~~~~~~
1156
1157
1158
1159 Web Staff Client Serials Module
1160 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1161 The serials module has been ported over to the web staff
1162 client, implementing a unified serials interface that combines
1163 ideas from both the serial control view and alternate serials
1164 control view from the old staff client.
1165
1166 In addition to carrying over functionality that was available
1167 in the old staff client, several new features are included:
1168
1169 * the ability to save prediction pattern codes as templates
1170   that can be shared and reused within an Evergreen database
1171 * a more streamlined interface for managing subscriptions,
1172   distributions, and streams
1173 * it is no longer necessary to create a starting issue in
1174   order to predict a run of issues; the dialog box for
1175   generating a set of predicted issues now lets you specify
1176   the starting point directly.
1177 * the ability to more directly edit MFHDs
1178     
1179 The new serials interfaces can be accessed from the record
1180 details page via a Serials drop-down button that links to
1181 a subscription management page, a quick-receive action, and
1182 a MFHD management page. There is also a new Serials Administration
1183 page where prediction pattern and serial copy templates can
1184 be managed.
1185
1186
1187
1188
1189 SIP
1190 ~~~
1191
1192
1193
1194 SIP Bugfix Requires SIPServer Upgrade
1195 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1196
1197 The fix for Launchpad Bug 1542495: "OpenILS::SIP::clean_text() can
1198 crash" requires that you also upgrade SIPServer with the fix for
1199 Launchpad Bug 1463943: "Non-ascii Unicode characters in messages cause
1200 SIP client problems."  This means that if you use SIP2 with Evergreen,
1201 you must also upgrade SIPServer to the latest commit in the git
1202 repository.  Conversely, if you upgrade SIPServer to the latest commit
1203 in git, you must also upgrade Evergreen or, at least, apply the patch
1204 for Launchpad Bug 1542495.  These two patches are complementary and
1205 cannot be applied independently of one another.
1206
1207 SIP Bugfix Changes How Encoding Is Determined in Configuration
1208 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1209
1210 The combined fix for the above mentioned SIP bugs alters the way that
1211 the output encoding is looked up in the configuration file (typically
1212 oils_sip.xml).  SIPServer now looks for the encoding in the following
1213 places:
1214
1215 1. An +encoding+ attribute on the +account+ element for the currently active SIP account.
1216 2. The +encoding+ element that is a child of the +insitution+ element of the currently acctive SIP account.
1217 3. The +encoding+ element that is a child of the +implementation_config+ element that is itself a child of the +insitution+ element of the currently acctive SIP account.
1218 4. If none of the above exist, then ASCII encoding is used by default.
1219
1220 Number 3 is provided to ease the transition to the new code.  It is
1221 the current location of the +encoding+ element in the sample
1222 configuration file and as such, where it is likely to be found in
1223 actual files.  It is recommended that you alter your configuration to
1224 move this element out of the +implementation_config+ element and into
1225 its parent +institution+ element.  SIPServer should *not* look into
1226 the implementation config, and this check may be removed at some time
1227 in the future.
1228
1229
1230 Acknowledgments
1231 ---------------
1232 The Evergreen project would like to acknowledge the following
1233 organizations that commissioned developments in this release of
1234 Evergreen:
1235
1236 * Bibliomation
1237 * British Columbia Libraries Cooperative (BC Sitka)
1238 * C/W MARS
1239 * Georgia Public Library Service
1240 * King County Library System
1241 * MassLNC
1242 * Pennsylvania Integrated Library System
1243 * Pioneer Library System
1244
1245 We would also like to thank the following individuals who contributed
1246 code, translations, documentations patches and tests to this release of
1247 Evergreen:
1248
1249 TODO
1250
1251
1252 We also thank the following organizations whose employees contributed
1253 patches:
1254
1255 TODO
1256
1257 We regret any omissions.  If a contributor has been inadvertently
1258 missed, please open a bug at http://bugs.launchpad.net/evergreen/
1259 with a correction.
1260