lp1422555: Shorter permalink on record summary page
authorKathy Lussier <klussier@masslnc.org>
Tue, 17 Feb 2015 03:06:01 +0000 (22:06 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 19 Feb 2015 13:56:17 +0000 (13:56 +0000)
The record summary page will now offer a link to a shorter permalink with
most URL parameters removed. The locg and copy-depth parameters are maintained.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/web/images/licenses.txt
Open-ILS/web/images/link.png [new file with mode: 0644]
docs/RELEASE_NOTES_NEXT/OPAC/permalink.txt [new file with mode: 0644]

index 416e573..9e3bdc8 100644 (file)
@@ -453,6 +453,11 @@ div.place_hold {
 
 div.toggle_list { padding-top: 6px; }
 
+div.share_record {
+    padding-top: 6px;
+    border-top: 1px dotted [% css_colors.accent_light %];
+}
+
 div.format_icon {
     float: right;
     margin-right: 17px;
index 2e494fb..5407062 100644 (file)
             [%- IF ctx.refworks.enabled == 'true' %]
                 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
             [%- END %]
+            <div class="rdetail_aux_utils share_record">
+              <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
+             <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">[% l('Permalink') %]</a>
+            </div>
         </div>
     </div>
 </div>
index fd648ed..442e53f 100644 (file)
@@ -3,17 +3,19 @@ http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/pinstripe/global/sp
 Mozilla Public License/GPL/GLPL
 
 
-braille.png derived from:
-https://www.iconfinder.com/icons/64010/braille_code_icon
-FatCow Web Hosting
+Farm-fresh icon set from FatCow Web Hosting
+link: https://www.iconfinder.com/iconsets/fatcow
 Creative Commons (Attribution 3.0 United States)
 
+Icons used:
+braille.png https://www.iconfinder.com/icons/64010/braille_code_icon 
+link.png https://www.iconfinder.com/icons/36158/link_url_icon
+
 
 serial.png comes from the Koha project and is used under the terms of the GPL3.
 The icon was originally provided by VOKAL (Vermont Organization of Koha
 Automated Libraries).
 
-
 Nuvola 1.0 (KDE 3.x icon set) (nuvola)
 link: http://www.icon-king.com/projects/nuvola/
 license: LGPL-2.1
diff --git a/Open-ILS/web/images/link.png b/Open-ILS/web/images/link.png
new file mode 100644 (file)
index 0000000..9109eec
Binary files /dev/null and b/Open-ILS/web/images/link.png differ
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/permalink.txt b/docs/RELEASE_NOTES_NEXT/OPAC/permalink.txt
new file mode 100644 (file)
index 0000000..3c65de0
--- /dev/null
@@ -0,0 +1,8 @@
+Permalinks
+^^^^^^^^^^
+The record summary page will now offer a link to a shorter permalink that
+can be used for sharing the record with others. All URL parameters are stripped
+from the link with the exception of the locg and copy_depth parameters. Those
+parameters are maintained so that people can share a link that displays just
+the holdings from one library/system or displays holdings from all libraries
+with a specific library's holdings floating to the top.